new license file version [CI SKIP]

This commit is contained in:
2023-03-15 12:34:41 +00:00
parent 0a6d92a1f3
commit 61328d20ed
13115 changed files with 1892314 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var isFinite = require('../../helpers/isFinite');
var isNaN = require('../../helpers/isNaN');
var Type = require('../Type');
// https://262.ecma-international.org/11.0/#sec-numeric-types-number-divide
module.exports = function NumberDivide(x, y) {
if (Type(x) !== 'Number' || Type(y) !== 'Number') {
throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
}
if (isNaN(x) || isNaN(y) || (!isFinite(x) && !isFinite(y))) {
return NaN;
}
// shortcut for the actual spec mechanics
return x / y;
};

View File

@@ -0,0 +1,412 @@
/**
* The `console` module provides a simple debugging console that is similar to the
* JavaScript console mechanism provided by web browsers.
*
* The module exports two specific components:
*
* * A `Console` class with methods such as `console.log()`, `console.error()` and`console.warn()` that can be used to write to any Node.js stream.
* * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('console')`.
*
* _**Warning**_: The global console object's methods are neither consistently
* synchronous like the browser APIs they resemble, nor are they consistently
* asynchronous like all other Node.js streams. See the `note on process I/O` for
* more information.
*
* Example using the global `console`:
*
* ```js
* console.log('hello world');
* // Prints: hello world, to stdout
* console.log('hello %s', 'world');
* // Prints: hello world, to stdout
* console.error(new Error('Whoops, something bad happened'));
* // Prints error message and stack trace to stderr:
* // Error: Whoops, something bad happened
* // at [eval]:5:15
* // at Script.runInThisContext (node:vm:132:18)
* // at Object.runInThisContext (node:vm:309:38)
* // at node:internal/process/execution:77:19
* // at [eval]-wrapper:6:22
* // at evalScript (node:internal/process/execution:76:60)
* // at node:internal/main/eval_string:23:3
*
* const name = 'Will Robinson';
* console.warn(`Danger ${name}! Danger!`);
* // Prints: Danger Will Robinson! Danger!, to stderr
* ```
*
* Example using the `Console` class:
*
* ```js
* const out = getStreamSomehow();
* const err = getStreamSomehow();
* const myConsole = new console.Console(out, err);
*
* myConsole.log('hello world');
* // Prints: hello world, to out
* myConsole.log('hello %s', 'world');
* // Prints: hello world, to out
* myConsole.error(new Error('Whoops, something bad happened'));
* // Prints: [Error: Whoops, something bad happened], to err
*
* const name = 'Will Robinson';
* myConsole.warn(`Danger ${name}! Danger!`);
* // Prints: Danger Will Robinson! Danger!, to err
* ```
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/console.js)
*/
declare module 'console' {
import console = require('node:console');
export = console;
}
declare module 'node:console' {
import { InspectOptions } from 'node:util';
global {
// This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
interface Console {
Console: console.ConsoleConstructor;
/**
* `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only
* writes a message and does not otherwise affect execution. The output always
* starts with `"Assertion failed"`. If provided, `message` is formatted using `util.format()`.
*
* If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens.
*
* ```js
* console.assert(true, 'does nothing');
*
* console.assert(false, 'Whoops %s work', 'didn\'t');
* // Assertion failed: Whoops didn't work
*
* console.assert();
* // Assertion failed
* ```
* @since v0.1.101
* @param value The value tested for being truthy.
* @param message All arguments besides `value` are used as error message.
*/
assert(value: any, message?: string, ...optionalParams: any[]): void;
/**
* When `stdout` is a TTY, calling `console.clear()` will attempt to clear the
* TTY. When `stdout` is not a TTY, this method does nothing.
*
* The specific operation of `console.clear()` can vary across operating systems
* and terminal types. For most Linux operating systems, `console.clear()`operates similarly to the `clear` shell command. On Windows, `console.clear()`will clear only the output in the
* current terminal viewport for the Node.js
* binary.
* @since v8.3.0
*/
clear(): void;
/**
* Maintains an internal counter specific to `label` and outputs to `stdout` the
* number of times `console.count()` has been called with the given `label`.
*
* ```js
* > console.count()
* default: 1
* undefined
* > console.count('default')
* default: 2
* undefined
* > console.count('abc')
* abc: 1
* undefined
* > console.count('xyz')
* xyz: 1
* undefined
* > console.count('abc')
* abc: 2
* undefined
* > console.count()
* default: 3
* undefined
* >
* ```
* @since v8.3.0
* @param label The display label for the counter.
*/
count(label?: string): void;
/**
* Resets the internal counter specific to `label`.
*
* ```js
* > console.count('abc');
* abc: 1
* undefined
* > console.countReset('abc');
* undefined
* > console.count('abc');
* abc: 1
* undefined
* >
* ```
* @since v8.3.0
* @param label The display label for the counter.
*/
countReset(label?: string): void;
/**
* The `console.debug()` function is an alias for {@link log}.
* @since v8.0.0
*/
debug(message?: any, ...optionalParams: any[]): void;
/**
* Uses `util.inspect()` on `obj` and prints the resulting string to `stdout`.
* This function bypasses any custom `inspect()` function defined on `obj`.
* @since v0.1.101
*/
dir(obj: any, options?: InspectOptions): void;
/**
* This method calls `console.log()` passing it the arguments received.
* This method does not produce any XML formatting.
* @since v8.0.0
*/
dirxml(...data: any[]): void;
/**
* Prints to `stderr` with newline. Multiple arguments can be passed, with the
* first used as the primary message and all additional used as substitution
* values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) (the arguments are all passed to `util.format()`).
*
* ```js
* const code = 5;
* console.error('error #%d', code);
* // Prints: error #5, to stderr
* console.error('error', code);
* // Prints: error 5, to stderr
* ```
*
* If formatting elements (e.g. `%d`) are not found in the first string then `util.inspect()` is called on each argument and the resulting string
* values are concatenated. See `util.format()` for more information.
* @since v0.1.100
*/
error(message?: any, ...optionalParams: any[]): void;
/**
* Increases indentation of subsequent lines by spaces for `groupIndentation`length.
*
* If one or more `label`s are provided, those are printed first without the
* additional indentation.
* @since v8.5.0
*/
group(...label: any[]): void;
/**
* An alias for {@link group}.
* @since v8.5.0
*/
groupCollapsed(...label: any[]): void;
/**
* Decreases indentation of subsequent lines by spaces for `groupIndentation`length.
* @since v8.5.0
*/
groupEnd(): void;
/**
* The `console.info()` function is an alias for {@link log}.
* @since v0.1.100
*/
info(message?: any, ...optionalParams: any[]): void;
/**
* Prints to `stdout` with newline. Multiple arguments can be passed, with the
* first used as the primary message and all additional used as substitution
* values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) (the arguments are all passed to `util.format()`).
*
* ```js
* const count = 5;
* console.log('count: %d', count);
* // Prints: count: 5, to stdout
* console.log('count:', count);
* // Prints: count: 5, to stdout
* ```
*
* See `util.format()` for more information.
* @since v0.1.100
*/
log(message?: any, ...optionalParams: any[]): void;
/**
* Try to construct a table with the columns of the properties of `tabularData`(or use `properties`) and rows of `tabularData` and log it. Falls back to just
* logging the argument if it cant be parsed as tabular.
*
* ```js
* // These can't be parsed as tabular data
* console.table(Symbol());
* // Symbol()
*
* console.table(undefined);
* // undefined
*
* console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);
* // ┌─────────┬─────┬─────┐
* // │ (index) │ a │ b │
* // ├─────────┼─────┼─────┤
* // │ 0 │ 1 │ 'Y' │
* // │ 1 │ 'Z' │ 2 │
* // └─────────┴─────┴─────┘
*
* console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']);
* // ┌─────────┬─────┐
* // │ (index) │ a │
* // ├─────────┼─────┤
* // │ 0 │ 1 │
* // │ 1 │ 'Z' │
* // └─────────┴─────┘
* ```
* @since v10.0.0
* @param properties Alternate properties for constructing the table.
*/
table(tabularData: any, properties?: ReadonlyArray<string>): void;
/**
* Starts a timer that can be used to compute the duration of an operation. Timers
* are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in
* suitable time units to `stdout`. For example, if the elapsed
* time is 3869ms, `console.timeEnd()` displays "3.869s".
* @since v0.1.104
*/
time(label?: string): void;
/**
* Stops a timer that was previously started by calling {@link time} and
* prints the result to `stdout`:
*
* ```js
* console.time('100-elements');
* for (let i = 0; i < 100; i++) {}
* console.timeEnd('100-elements');
* // prints 100-elements: 225.438ms
* ```
* @since v0.1.104
*/
timeEnd(label?: string): void;
/**
* For a timer that was previously started by calling {@link time}, prints
* the elapsed time and other `data` arguments to `stdout`:
*
* ```js
* console.time('process');
* const value = expensiveProcess1(); // Returns 42
* console.timeLog('process', value);
* // Prints "process: 365.227ms 42".
* doExpensiveProcess2(value);
* console.timeEnd('process');
* ```
* @since v10.7.0
*/
timeLog(label?: string, ...data: any[]): void;
/**
* Prints to `stderr` the string `'Trace: '`, followed by the `util.format()` formatted message and stack trace to the current position in the code.
*
* ```js
* console.trace('Show me');
* // Prints: (stack trace will vary based on where trace is called)
* // Trace: Show me
* // at repl:2:9
* // at REPLServer.defaultEval (repl.js:248:27)
* // at bound (domain.js:287:14)
* // at REPLServer.runBound [as eval] (domain.js:300:12)
* // at REPLServer.<anonymous> (repl.js:412:12)
* // at emitOne (events.js:82:20)
* // at REPLServer.emit (events.js:169:7)
* // at REPLServer.Interface._onLine (readline.js:210:10)
* // at REPLServer.Interface._line (readline.js:549:8)
* // at REPLServer.Interface._ttyWrite (readline.js:826:14)
* ```
* @since v0.1.104
*/
trace(message?: any, ...optionalParams: any[]): void;
/**
* The `console.warn()` function is an alias for {@link error}.
* @since v0.1.100
*/
warn(message?: any, ...optionalParams: any[]): void;
// --- Inspector mode only ---
/**
* This method does not display anything unless used in the inspector.
* Starts a JavaScript CPU profile with an optional label.
*/
profile(label?: string): void;
/**
* This method does not display anything unless used in the inspector.
* Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector.
*/
profileEnd(label?: string): void;
/**
* This method does not display anything unless used in the inspector.
* Adds an event with the label `label` to the Timeline panel of the inspector.
*/
timeStamp(label?: string): void;
}
/**
* The `console` module provides a simple debugging console that is similar to the
* JavaScript console mechanism provided by web browsers.
*
* The module exports two specific components:
*
* * A `Console` class with methods such as `console.log()`, `console.error()` and`console.warn()` that can be used to write to any Node.js stream.
* * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('console')`.
*
* _**Warning**_: The global console object's methods are neither consistently
* synchronous like the browser APIs they resemble, nor are they consistently
* asynchronous like all other Node.js streams. See the `note on process I/O` for
* more information.
*
* Example using the global `console`:
*
* ```js
* console.log('hello world');
* // Prints: hello world, to stdout
* console.log('hello %s', 'world');
* // Prints: hello world, to stdout
* console.error(new Error('Whoops, something bad happened'));
* // Prints error message and stack trace to stderr:
* // Error: Whoops, something bad happened
* // at [eval]:5:15
* // at Script.runInThisContext (node:vm:132:18)
* // at Object.runInThisContext (node:vm:309:38)
* // at node:internal/process/execution:77:19
* // at [eval]-wrapper:6:22
* // at evalScript (node:internal/process/execution:76:60)
* // at node:internal/main/eval_string:23:3
*
* const name = 'Will Robinson';
* console.warn(`Danger ${name}! Danger!`);
* // Prints: Danger Will Robinson! Danger!, to stderr
* ```
*
* Example using the `Console` class:
*
* ```js
* const out = getStreamSomehow();
* const err = getStreamSomehow();
* const myConsole = new console.Console(out, err);
*
* myConsole.log('hello world');
* // Prints: hello world, to out
* myConsole.log('hello %s', 'world');
* // Prints: hello world, to out
* myConsole.error(new Error('Whoops, something bad happened'));
* // Prints: [Error: Whoops, something bad happened], to err
*
* const name = 'Will Robinson';
* myConsole.warn(`Danger ${name}! Danger!`);
* // Prints: Danger Will Robinson! Danger!, to err
* ```
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/console.js)
*/
namespace console {
interface ConsoleConstructorOptions {
stdout: NodeJS.WritableStream;
stderr?: NodeJS.WritableStream | undefined;
ignoreErrors?: boolean | undefined;
colorMode?: boolean | 'auto' | undefined;
inspectOptions?: InspectOptions | undefined;
/**
* Set group indentation
* @default 2
*/
groupIndentation?: number | undefined;
}
interface ConsoleConstructor {
prototype: Console;
new (stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console;
new (options: ConsoleConstructorOptions): Console;
}
}
var console: Console;
}
export = globalThis.console;
}

View File

@@ -0,0 +1,30 @@
/**
Returns a boolean for whether the two given types are equal.
@link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650
@link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796
Use-cases:
- If you want to make a conditional branch based on the result of a comparison of two types.
@example
```
import type {IsEqual} from 'type-fest';
// This type returns a boolean for whether the given array includes the given item.
// `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.
type Includes<Value extends readonly any[], Item> =
Value extends readonly [Value[0], ...infer rest]
? IsEqual<Value[0], Item> extends true
? true
: Includes<rest, Item>
: false;
```
@category Utilities
*/
export type IsEqual<A, B> =
(<G>() => G extends A ? 1 : 2) extends
(<G>() => G extends B ? 1 : 2)
? true
: false;

View File

@@ -0,0 +1,47 @@
import type {DelimiterCasedPropertiesDeep} from './delimiter-cased-properties-deep';
/**
Convert object properties to kebab case recursively.
This can be useful when, for example, converting some API types from a different style.
@see KebabCase
@see KebabCasedProperties
@example
```
import type [KebabCasedPropertiesDeep] from 'type-fest';
interface User {
userId: number;
userName: string;
}
interface UserWithFriends {
userInfo: User;
userFriends: User[];
}
const result: KebabCasedPropertiesDeep<UserWithFriends> = {
'user-info': {
'user-id': 1,
'user-name': 'Tom',
},
'user-friends': [
{
'user-id': 2,
'user-name': 'Jerry',
},
{
'user-id': 3,
'user-name': 'Spike',
},
],
};
```
@category Change case
@category Template literal
@category Object
*/
export type KebabCasedPropertiesDeep<Value> = DelimiterCasedPropertiesDeep<Value, '-'>;

View File

@@ -0,0 +1,59 @@
{
"name": "debug",
"version": "4.3.4",
"repository": {
"type": "git",
"url": "git://github.com/debug-js/debug.git"
},
"description": "Lightweight debugging utility for Node.js and the browser",
"keywords": [
"debug",
"log",
"debugger"
],
"files": [
"src",
"LICENSE",
"README.md"
],
"author": "Josh Junon <josh.junon@protonmail.com>",
"contributors": [
"TJ Holowaychuk <tj@vision-media.ca>",
"Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)",
"Andrew Rhyne <rhyneandrew@gmail.com>"
],
"license": "MIT",
"scripts": {
"lint": "xo",
"test": "npm run test:node && npm run test:browser && npm run lint",
"test:node": "istanbul cover _mocha -- test.js",
"test:browser": "karma start --single-run",
"test:coverage": "cat ./coverage/lcov.info | coveralls"
},
"dependencies": {
"ms": "2.1.2"
},
"devDependencies": {
"brfs": "^2.0.1",
"browserify": "^16.2.3",
"coveralls": "^3.0.2",
"istanbul": "^0.4.5",
"karma": "^3.1.4",
"karma-browserify": "^6.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-mocha": "^1.3.0",
"mocha": "^5.2.0",
"mocha-lcov-reporter": "^1.2.0",
"xo": "^0.23.0"
},
"peerDependenciesMeta": {
"supports-color": {
"optional": true
}
},
"main": "./src/index.js",
"browser": "./src/browser.js",
"engines": {
"node": ">=6.0"
}
}

View File

@@ -0,0 +1,954 @@
'use strict';
module.exports = {
IsPropertyDescriptor: 'https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type', // not actually an abstract op
abs: {
url: 'https://262.ecma-international.org/8.0/#eqn-abs'
},
'Abstract Equality Comparison': {
url: 'https://262.ecma-international.org/8.0/#sec-abstract-equality-comparison'
},
'Abstract Relational Comparison': {
url: 'https://262.ecma-international.org/8.0/#sec-abstract-relational-comparison'
},
AddRestrictedFunctionProperties: {
url: 'https://262.ecma-international.org/8.0/#sec-addrestrictedfunctionproperties'
},
AddWaiter: {
url: 'https://262.ecma-international.org/8.0/#sec-addwaiter'
},
AdvanceStringIndex: {
url: 'https://262.ecma-international.org/8.0/#sec-advancestringindex'
},
'agent-order': {
url: 'https://262.ecma-international.org/8.0/#sec-agent-order'
},
AgentCanSuspend: {
url: 'https://262.ecma-international.org/8.0/#sec-agentcansuspend'
},
AgentSignifier: {
url: 'https://262.ecma-international.org/8.0/#sec-agentsignifier'
},
AllocateArrayBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-allocatearraybuffer'
},
AllocateSharedArrayBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-allocatesharedarraybuffer'
},
AllocateTypedArray: {
url: 'https://262.ecma-international.org/8.0/#sec-allocatetypedarray'
},
AllocateTypedArrayBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-allocatetypedarraybuffer'
},
ArrayCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-arraycreate'
},
ArraySetLength: {
url: 'https://262.ecma-international.org/8.0/#sec-arraysetlength'
},
ArraySpeciesCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-arrayspeciescreate'
},
AsyncFunctionAwait: {
url: 'https://262.ecma-international.org/8.0/#sec-async-functions-abstract-operations-async-function-await'
},
AsyncFunctionCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-async-functions-abstract-operations-async-function-create'
},
AsyncFunctionStart: {
url: 'https://262.ecma-international.org/8.0/#sec-async-functions-abstract-operations-async-function-start'
},
AtomicLoad: {
url: 'https://262.ecma-international.org/8.0/#sec-atomicload'
},
AtomicReadModifyWrite: {
url: 'https://262.ecma-international.org/8.0/#sec-atomicreadmodifywrite'
},
BlockDeclarationInstantiation: {
url: 'https://262.ecma-international.org/8.0/#sec-blockdeclarationinstantiation'
},
BoundFunctionCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-boundfunctioncreate'
},
Call: {
url: 'https://262.ecma-international.org/8.0/#sec-call'
},
Canonicalize: {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-canonicalize-ch'
},
CanonicalNumericIndexString: {
url: 'https://262.ecma-international.org/8.0/#sec-canonicalnumericindexstring'
},
CharacterRange: {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-characterrange-abstract-operation'
},
CharacterRangeOrUnion: {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-characterrangeorunion-abstract-operation'
},
CharacterSetMatcher: {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-charactersetmatcher-abstract-operation'
},
CloneArrayBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-clonearraybuffer'
},
CompletePropertyDescriptor: {
url: 'https://262.ecma-international.org/8.0/#sec-completepropertydescriptor'
},
Completion: {
url: 'https://262.ecma-international.org/8.0/#sec-completion-record-specification-type'
},
CompletionRecord: {
url: 'https://262.ecma-international.org/8.0/#sec-completion-record-specification-type'
},
ComposeWriteEventBytes: {
url: 'https://262.ecma-international.org/8.0/#sec-composewriteeventbytes'
},
Construct: {
url: 'https://262.ecma-international.org/8.0/#sec-construct'
},
CopyDataBlockBytes: {
url: 'https://262.ecma-international.org/8.0/#sec-copydatablockbytes'
},
CreateArrayFromList: {
url: 'https://262.ecma-international.org/8.0/#sec-createarrayfromlist'
},
CreateArrayIterator: {
url: 'https://262.ecma-international.org/8.0/#sec-createarrayiterator'
},
CreateBuiltinFunction: {
url: 'https://262.ecma-international.org/8.0/#sec-createbuiltinfunction'
},
CreateByteDataBlock: {
url: 'https://262.ecma-international.org/8.0/#sec-createbytedatablock'
},
CreateDataProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-createdataproperty'
},
CreateDataPropertyOrThrow: {
url: 'https://262.ecma-international.org/8.0/#sec-createdatapropertyorthrow'
},
CreateDynamicFunction: {
url: 'https://262.ecma-international.org/8.0/#sec-createdynamicfunction'
},
CreateHTML: {
url: 'https://262.ecma-international.org/8.0/#sec-createhtml'
},
CreateIntrinsics: {
url: 'https://262.ecma-international.org/8.0/#sec-createintrinsics'
},
CreateIterResultObject: {
url: 'https://262.ecma-international.org/8.0/#sec-createiterresultobject'
},
CreateListFromArrayLike: {
url: 'https://262.ecma-international.org/8.0/#sec-createlistfromarraylike'
},
CreateListIterator: {
url: 'https://262.ecma-international.org/8.0/#sec-createlistiterator'
},
CreateMapIterator: {
url: 'https://262.ecma-international.org/8.0/#sec-createmapiterator'
},
CreateMappedArgumentsObject: {
url: 'https://262.ecma-international.org/8.0/#sec-createmappedargumentsobject'
},
CreateMethodProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-createmethodproperty'
},
CreatePerIterationEnvironment: {
url: 'https://262.ecma-international.org/8.0/#sec-createperiterationenvironment'
},
CreateRealm: {
url: 'https://262.ecma-international.org/8.0/#sec-createrealm'
},
CreateResolvingFunctions: {
url: 'https://262.ecma-international.org/8.0/#sec-createresolvingfunctions'
},
CreateSetIterator: {
url: 'https://262.ecma-international.org/8.0/#sec-createsetiterator'
},
CreateSharedByteDataBlock: {
url: 'https://262.ecma-international.org/8.0/#sec-createsharedbytedatablock'
},
CreateStringIterator: {
url: 'https://262.ecma-international.org/8.0/#sec-createstringiterator'
},
CreateUnmappedArgumentsObject: {
url: 'https://262.ecma-international.org/8.0/#sec-createunmappedargumentsobject'
},
DateFromTime: {
url: 'https://262.ecma-international.org/8.0/#sec-date-number'
},
Day: {
url: 'https://262.ecma-international.org/8.0/#eqn-Day'
},
DayFromYear: {
url: 'https://262.ecma-international.org/8.0/#eqn-DaysFromYear'
},
DaylightSavingTA: {
url: 'https://262.ecma-international.org/8.0/#sec-daylight-saving-time-adjustment'
},
DaysInYear: {
url: 'https://262.ecma-international.org/8.0/#eqn-DaysInYear'
},
DayWithinYear: {
url: 'https://262.ecma-international.org/8.0/#eqn-DayWithinYear'
},
Decode: {
url: 'https://262.ecma-international.org/8.0/#sec-decode'
},
DefinePropertyOrThrow: {
url: 'https://262.ecma-international.org/8.0/#sec-definepropertyorthrow'
},
DeletePropertyOrThrow: {
url: 'https://262.ecma-international.org/8.0/#sec-deletepropertyorthrow'
},
DetachArrayBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-detacharraybuffer'
},
Encode: {
url: 'https://262.ecma-international.org/8.0/#sec-encode'
},
EnqueueJob: {
url: 'https://262.ecma-international.org/8.0/#sec-enqueuejob'
},
EnterCriticalSection: {
url: 'https://262.ecma-international.org/8.0/#sec-entercriticalsection'
},
EnumerableOwnProperties: {
url: 'https://262.ecma-international.org/8.0/#sec-enumerableownproperties'
},
EnumerateObjectProperties: {
url: 'https://262.ecma-international.org/8.0/#sec-enumerate-object-properties'
},
EscapeRegExpPattern: {
url: 'https://262.ecma-international.org/8.0/#sec-escaperegexppattern'
},
EvalDeclarationInstantiation: {
url: 'https://262.ecma-international.org/8.0/#sec-evaldeclarationinstantiation'
},
EvaluateCall: {
url: 'https://262.ecma-international.org/8.0/#sec-evaluatecall'
},
EvaluateDirectCall: {
url: 'https://262.ecma-international.org/8.0/#sec-evaluatedirectcall'
},
EvaluateNew: {
url: 'https://262.ecma-international.org/8.0/#sec-evaluatenew'
},
EventSet: {
url: 'https://262.ecma-international.org/8.0/#sec-event-set'
},
floor: {
url: 'https://262.ecma-international.org/8.0/#eqn-floor'
},
ForBodyEvaluation: {
url: 'https://262.ecma-international.org/8.0/#sec-forbodyevaluation'
},
'ForIn/OfBodyEvaluation': {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset'
},
'ForIn/OfHeadEvaluation': {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-forin-div-ofheadevaluation-tdznames-expr-iterationkind'
},
FromPropertyDescriptor: {
url: 'https://262.ecma-international.org/8.0/#sec-frompropertydescriptor'
},
FulfillPromise: {
url: 'https://262.ecma-international.org/8.0/#sec-fulfillpromise'
},
FunctionAllocate: {
url: 'https://262.ecma-international.org/8.0/#sec-functionallocate'
},
FunctionCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-functioncreate'
},
FunctionDeclarationInstantiation: {
url: 'https://262.ecma-international.org/8.0/#sec-functiondeclarationinstantiation'
},
FunctionInitialize: {
url: 'https://262.ecma-international.org/8.0/#sec-functioninitialize'
},
GeneratorFunctionCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-generatorfunctioncreate'
},
GeneratorResume: {
url: 'https://262.ecma-international.org/8.0/#sec-generatorresume'
},
GeneratorResumeAbrupt: {
url: 'https://262.ecma-international.org/8.0/#sec-generatorresumeabrupt'
},
GeneratorStart: {
url: 'https://262.ecma-international.org/8.0/#sec-generatorstart'
},
GeneratorValidate: {
url: 'https://262.ecma-international.org/8.0/#sec-generatorvalidate'
},
GeneratorYield: {
url: 'https://262.ecma-international.org/8.0/#sec-generatoryield'
},
Get: {
url: 'https://262.ecma-international.org/8.0/#sec-get-o-p'
},
GetActiveScriptOrModule: {
url: 'https://262.ecma-international.org/8.0/#sec-getactivescriptormodule'
},
GetBase: {
url: 'https://262.ecma-international.org/8.0/#ao-getbase'
},
GetFunctionRealm: {
url: 'https://262.ecma-international.org/8.0/#sec-getfunctionrealm'
},
GetGlobalObject: {
url: 'https://262.ecma-international.org/8.0/#sec-getglobalobject'
},
GetIdentifierReference: {
url: 'https://262.ecma-international.org/8.0/#sec-getidentifierreference'
},
GetIterator: {
url: 'https://262.ecma-international.org/8.0/#sec-getiterator'
},
GetMethod: {
url: 'https://262.ecma-international.org/8.0/#sec-getmethod'
},
GetModifySetValueInBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-getmodifysetvalueinbuffer'
},
GetModuleNamespace: {
url: 'https://262.ecma-international.org/8.0/#sec-getmodulenamespace'
},
GetNewTarget: {
url: 'https://262.ecma-international.org/8.0/#sec-getnewtarget'
},
GetOwnPropertyKeys: {
url: 'https://262.ecma-international.org/8.0/#sec-getownpropertykeys'
},
GetPrototypeFromConstructor: {
url: 'https://262.ecma-international.org/8.0/#sec-getprototypefromconstructor'
},
GetReferencedName: {
url: 'https://262.ecma-international.org/8.0/#ao-getreferencedname'
},
GetSubstitution: {
url: 'https://262.ecma-international.org/8.0/#sec-getsubstitution'
},
GetSuperConstructor: {
url: 'https://262.ecma-international.org/8.0/#sec-getsuperconstructor'
},
GetTemplateObject: {
url: 'https://262.ecma-international.org/8.0/#sec-gettemplateobject'
},
GetThisEnvironment: {
url: 'https://262.ecma-international.org/8.0/#sec-getthisenvironment'
},
GetThisValue: {
url: 'https://262.ecma-international.org/8.0/#sec-getthisvalue'
},
GetV: {
url: 'https://262.ecma-international.org/8.0/#sec-getv'
},
GetValue: {
url: 'https://262.ecma-international.org/8.0/#sec-getvalue'
},
GetValueFromBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-getvaluefrombuffer'
},
GetViewValue: {
url: 'https://262.ecma-international.org/8.0/#sec-getviewvalue'
},
GetWaiterList: {
url: 'https://262.ecma-international.org/8.0/#sec-getwaiterlist'
},
GlobalDeclarationInstantiation: {
url: 'https://262.ecma-international.org/8.0/#sec-globaldeclarationinstantiation'
},
'happens-before': {
url: 'https://262.ecma-international.org/8.0/#sec-happens-before'
},
HasOwnProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-hasownproperty'
},
HasPrimitiveBase: {
url: 'https://262.ecma-international.org/8.0/#ao-hasprimitivebase'
},
HasProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-hasproperty'
},
'host-synchronizes-with': {
url: 'https://262.ecma-international.org/8.0/#sec-host-synchronizes-with'
},
HostEventSet: {
url: 'https://262.ecma-international.org/8.0/#sec-hosteventset'
},
HourFromTime: {
url: 'https://262.ecma-international.org/8.0/#eqn-HourFromTime'
},
IfAbruptRejectPromise: {
url: 'https://262.ecma-international.org/8.0/#sec-ifabruptrejectpromise'
},
ImportedLocalNames: {
url: 'https://262.ecma-international.org/8.0/#sec-importedlocalnames'
},
InitializeBoundName: {
url: 'https://262.ecma-international.org/8.0/#sec-initializeboundname'
},
InitializeHostDefinedRealm: {
url: 'https://262.ecma-international.org/8.0/#sec-initializehostdefinedrealm'
},
InitializeReferencedBinding: {
url: 'https://262.ecma-international.org/8.0/#sec-initializereferencedbinding'
},
InLeapYear: {
url: 'https://262.ecma-international.org/8.0/#eqn-InLeapYear'
},
InstanceofOperator: {
url: 'https://262.ecma-international.org/8.0/#sec-instanceofoperator'
},
IntegerIndexedElementGet: {
url: 'https://262.ecma-international.org/8.0/#sec-integerindexedelementget'
},
IntegerIndexedElementSet: {
url: 'https://262.ecma-international.org/8.0/#sec-integerindexedelementset'
},
IntegerIndexedObjectCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-integerindexedobjectcreate'
},
InternalizeJSONProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-internalizejsonproperty'
},
Invoke: {
url: 'https://262.ecma-international.org/8.0/#sec-invoke'
},
IsAccessorDescriptor: {
url: 'https://262.ecma-international.org/8.0/#sec-isaccessordescriptor'
},
IsAnonymousFunctionDefinition: {
url: 'https://262.ecma-international.org/8.0/#sec-isanonymousfunctiondefinition'
},
IsArray: {
url: 'https://262.ecma-international.org/8.0/#sec-isarray'
},
IsCallable: {
url: 'https://262.ecma-international.org/8.0/#sec-iscallable'
},
IsCompatiblePropertyDescriptor: {
url: 'https://262.ecma-international.org/8.0/#sec-iscompatiblepropertydescriptor'
},
IsConcatSpreadable: {
url: 'https://262.ecma-international.org/8.0/#sec-isconcatspreadable'
},
IsConstructor: {
url: 'https://262.ecma-international.org/8.0/#sec-isconstructor'
},
IsDataDescriptor: {
url: 'https://262.ecma-international.org/8.0/#sec-isdatadescriptor'
},
IsDetachedBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-isdetachedbuffer'
},
IsExtensible: {
url: 'https://262.ecma-international.org/8.0/#sec-isextensible-o'
},
IsGenericDescriptor: {
url: 'https://262.ecma-international.org/8.0/#sec-isgenericdescriptor'
},
IsInTailPosition: {
url: 'https://262.ecma-international.org/8.0/#sec-isintailposition'
},
IsInteger: {
url: 'https://262.ecma-international.org/8.0/#sec-isinteger'
},
IsLabelledFunction: {
url: 'https://262.ecma-international.org/8.0/#sec-islabelledfunction'
},
IsPromise: {
url: 'https://262.ecma-international.org/8.0/#sec-ispromise'
},
IsPropertyKey: {
url: 'https://262.ecma-international.org/8.0/#sec-ispropertykey'
},
IsPropertyReference: {
url: 'https://262.ecma-international.org/8.0/#ao-ispropertyreference'
},
IsRegExp: {
url: 'https://262.ecma-international.org/8.0/#sec-isregexp'
},
IsSharedArrayBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-issharedarraybuffer'
},
IsStrictReference: {
url: 'https://262.ecma-international.org/8.0/#ao-isstrictreference'
},
IsSuperReference: {
url: 'https://262.ecma-international.org/8.0/#ao-issuperreference'
},
IsUnresolvableReference: {
url: 'https://262.ecma-international.org/8.0/#ao-isunresolvablereference'
},
IsWordChar: {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-iswordchar-abstract-operation'
},
IterableToList: {
url: 'https://262.ecma-international.org/8.0/#sec-iterabletolist'
},
IteratorClose: {
url: 'https://262.ecma-international.org/8.0/#sec-iteratorclose'
},
IteratorComplete: {
url: 'https://262.ecma-international.org/8.0/#sec-iteratorcomplete'
},
IteratorNext: {
url: 'https://262.ecma-international.org/8.0/#sec-iteratornext'
},
IteratorStep: {
url: 'https://262.ecma-international.org/8.0/#sec-iteratorstep'
},
IteratorValue: {
url: 'https://262.ecma-international.org/8.0/#sec-iteratorvalue'
},
LeaveCriticalSection: {
url: 'https://262.ecma-international.org/8.0/#sec-leavecriticalsection'
},
LocalTime: {
url: 'https://262.ecma-international.org/8.0/#sec-localtime'
},
LoopContinues: {
url: 'https://262.ecma-international.org/8.0/#sec-loopcontinues'
},
MakeArgGetter: {
url: 'https://262.ecma-international.org/8.0/#sec-makearggetter'
},
MakeArgSetter: {
url: 'https://262.ecma-international.org/8.0/#sec-makeargsetter'
},
MakeClassConstructor: {
url: 'https://262.ecma-international.org/8.0/#sec-makeclassconstructor'
},
MakeConstructor: {
url: 'https://262.ecma-international.org/8.0/#sec-makeconstructor'
},
MakeDate: {
url: 'https://262.ecma-international.org/8.0/#sec-makedate'
},
MakeDay: {
url: 'https://262.ecma-international.org/8.0/#sec-makeday'
},
MakeMethod: {
url: 'https://262.ecma-international.org/8.0/#sec-makemethod'
},
MakeSuperPropertyReference: {
url: 'https://262.ecma-international.org/8.0/#sec-makesuperpropertyreference'
},
MakeTime: {
url: 'https://262.ecma-international.org/8.0/#sec-maketime'
},
max: {
url: 'https://262.ecma-international.org/8.0/#eqn-max'
},
'memory-order': {
url: 'https://262.ecma-international.org/8.0/#sec-memory-order'
},
min: {
url: 'https://262.ecma-international.org/8.0/#eqn-min'
},
MinFromTime: {
url: 'https://262.ecma-international.org/8.0/#eqn-MinFromTime'
},
ModuleNamespaceCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-modulenamespacecreate'
},
modulo: {
url: 'https://262.ecma-international.org/8.0/#eqn-modulo'
},
MonthFromTime: {
url: 'https://262.ecma-international.org/8.0/#eqn-MonthFromTime'
},
msFromTime: {
url: 'https://262.ecma-international.org/8.0/#eqn-msFromTime'
},
NewDeclarativeEnvironment: {
url: 'https://262.ecma-international.org/8.0/#sec-newdeclarativeenvironment'
},
NewFunctionEnvironment: {
url: 'https://262.ecma-international.org/8.0/#sec-newfunctionenvironment'
},
NewGlobalEnvironment: {
url: 'https://262.ecma-international.org/8.0/#sec-newglobalenvironment'
},
NewModuleEnvironment: {
url: 'https://262.ecma-international.org/8.0/#sec-newmoduleenvironment'
},
NewObjectEnvironment: {
url: 'https://262.ecma-international.org/8.0/#sec-newobjectenvironment'
},
NewPromiseCapability: {
url: 'https://262.ecma-international.org/8.0/#sec-newpromisecapability'
},
NormalCompletion: {
url: 'https://262.ecma-international.org/8.0/#sec-normalcompletion'
},
NumberToRawBytes: {
url: 'https://262.ecma-international.org/8.0/#sec-numbertorawbytes'
},
ObjectCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-objectcreate'
},
ObjectDefineProperties: {
url: 'https://262.ecma-international.org/8.0/#sec-objectdefineproperties'
},
OrdinaryCallBindThis: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarycallbindthis'
},
OrdinaryCallEvaluateBody: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarycallevaluatebody'
},
OrdinaryCreateFromConstructor: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarycreatefromconstructor'
},
OrdinaryDefineOwnProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarydefineownproperty'
},
OrdinaryDelete: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarydelete'
},
OrdinaryGet: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinaryget'
},
OrdinaryGetOwnProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarygetownproperty'
},
OrdinaryGetPrototypeOf: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarygetprototypeof'
},
OrdinaryHasInstance: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinaryhasinstance'
},
OrdinaryHasProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinaryhasproperty'
},
OrdinaryIsExtensible: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinaryisextensible'
},
OrdinaryOwnPropertyKeys: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinaryownpropertykeys'
},
OrdinaryPreventExtensions: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarypreventextensions'
},
OrdinarySet: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinaryset'
},
OrdinarySetPrototypeOf: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarysetprototypeof'
},
OrdinaryToPrimitive: {
url: 'https://262.ecma-international.org/8.0/#sec-ordinarytoprimitive'
},
ParseModule: {
url: 'https://262.ecma-international.org/8.0/#sec-parsemodule'
},
ParseScript: {
url: 'https://262.ecma-international.org/8.0/#sec-parse-script'
},
PerformEval: {
url: 'https://262.ecma-international.org/8.0/#sec-performeval'
},
PerformPromiseAll: {
url: 'https://262.ecma-international.org/8.0/#sec-performpromiseall'
},
PerformPromiseRace: {
url: 'https://262.ecma-international.org/8.0/#sec-performpromiserace'
},
PerformPromiseThen: {
url: 'https://262.ecma-international.org/8.0/#sec-performpromisethen'
},
PrepareForOrdinaryCall: {
url: 'https://262.ecma-international.org/8.0/#sec-prepareforordinarycall'
},
PrepareForTailCall: {
url: 'https://262.ecma-international.org/8.0/#sec-preparefortailcall'
},
PromiseReactionJob: {
url: 'https://262.ecma-international.org/8.0/#sec-promisereactionjob'
},
PromiseResolveThenableJob: {
url: 'https://262.ecma-international.org/8.0/#sec-promiseresolvethenablejob'
},
ProxyCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-proxycreate'
},
PutValue: {
url: 'https://262.ecma-international.org/8.0/#sec-putvalue'
},
QuoteJSONString: {
url: 'https://262.ecma-international.org/8.0/#sec-quotejsonstring'
},
RawBytesToNumber: {
url: 'https://262.ecma-international.org/8.0/#sec-rawbytestonumber'
},
'reads-bytes-from': {
url: 'https://262.ecma-international.org/8.0/#sec-reads-bytes-from'
},
'reads-from': {
url: 'https://262.ecma-international.org/8.0/#sec-reads-from'
},
RegExpAlloc: {
url: 'https://262.ecma-international.org/8.0/#sec-regexpalloc'
},
RegExpBuiltinExec: {
url: 'https://262.ecma-international.org/8.0/#sec-regexpbuiltinexec'
},
RegExpCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-regexpcreate'
},
RegExpExec: {
url: 'https://262.ecma-international.org/8.0/#sec-regexpexec'
},
RegExpInitialize: {
url: 'https://262.ecma-international.org/8.0/#sec-regexpinitialize'
},
RejectPromise: {
url: 'https://262.ecma-international.org/8.0/#sec-rejectpromise'
},
RemoveWaiter: {
url: 'https://262.ecma-international.org/8.0/#sec-removewaiter'
},
RemoveWaiters: {
url: 'https://262.ecma-international.org/8.0/#sec-removewaiters'
},
RepeatMatcher: {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-repeatmatcher-abstract-operation'
},
RequireObjectCoercible: {
url: 'https://262.ecma-international.org/8.0/#sec-requireobjectcoercible'
},
ResolveBinding: {
url: 'https://262.ecma-international.org/8.0/#sec-resolvebinding'
},
ResolveThisBinding: {
url: 'https://262.ecma-international.org/8.0/#sec-resolvethisbinding'
},
ReturnIfAbrupt: {
url: 'https://262.ecma-international.org/8.0/#sec-returnifabrupt'
},
RunJobs: {
url: 'https://262.ecma-international.org/8.0/#sec-runjobs'
},
SameValue: {
url: 'https://262.ecma-international.org/8.0/#sec-samevalue'
},
SameValueNonNumber: {
url: 'https://262.ecma-international.org/8.0/#sec-samevaluenonnumber'
},
SameValueZero: {
url: 'https://262.ecma-international.org/8.0/#sec-samevaluezero'
},
ScriptEvaluation: {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-scriptevaluation'
},
ScriptEvaluationJob: {
url: 'https://262.ecma-international.org/8.0/#sec-scriptevaluationjob'
},
SecFromTime: {
url: 'https://262.ecma-international.org/8.0/#eqn-SecFromTime'
},
SerializeJSONArray: {
url: 'https://262.ecma-international.org/8.0/#sec-serializejsonarray'
},
SerializeJSONObject: {
url: 'https://262.ecma-international.org/8.0/#sec-serializejsonobject'
},
SerializeJSONProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-serializejsonproperty'
},
Set: {
url: 'https://262.ecma-international.org/8.0/#sec-set-o-p-v-throw'
},
SetDefaultGlobalBindings: {
url: 'https://262.ecma-international.org/8.0/#sec-setdefaultglobalbindings'
},
SetFunctionName: {
url: 'https://262.ecma-international.org/8.0/#sec-setfunctionname'
},
SetImmutablePrototype: {
url: 'https://262.ecma-international.org/8.0/#sec-set-immutable-prototype'
},
SetIntegrityLevel: {
url: 'https://262.ecma-international.org/8.0/#sec-setintegritylevel'
},
SetRealmGlobalObject: {
url: 'https://262.ecma-international.org/8.0/#sec-setrealmglobalobject'
},
SetValueInBuffer: {
url: 'https://262.ecma-international.org/8.0/#sec-setvalueinbuffer'
},
SetViewValue: {
url: 'https://262.ecma-international.org/8.0/#sec-setviewvalue'
},
SharedDataBlockEventSet: {
url: 'https://262.ecma-international.org/8.0/#sec-sharedatablockeventset'
},
SortCompare: {
url: 'https://262.ecma-international.org/8.0/#sec-sortcompare'
},
SpeciesConstructor: {
url: 'https://262.ecma-international.org/8.0/#sec-speciesconstructor'
},
SplitMatch: {
url: 'https://262.ecma-international.org/8.0/#sec-splitmatch'
},
'Strict Equality Comparison': {
url: 'https://262.ecma-international.org/8.0/#sec-strict-equality-comparison'
},
StringCreate: {
url: 'https://262.ecma-international.org/8.0/#sec-stringcreate'
},
StringGetOwnProperty: {
url: 'https://262.ecma-international.org/8.0/#sec-stringgetownproperty'
},
Suspend: {
url: 'https://262.ecma-international.org/8.0/#sec-suspend'
},
SymbolDescriptiveString: {
url: 'https://262.ecma-international.org/8.0/#sec-symboldescriptivestring'
},
'synchronizes-with': {
url: 'https://262.ecma-international.org/8.0/#sec-synchronizes-with'
},
TestIntegrityLevel: {
url: 'https://262.ecma-international.org/8.0/#sec-testintegritylevel'
},
thisBooleanValue: {
url: 'https://262.ecma-international.org/8.0/#sec-thisbooleanvalue'
},
thisNumberValue: {
url: 'https://262.ecma-international.org/8.0/#sec-thisnumbervalue'
},
thisStringValue: {
url: 'https://262.ecma-international.org/8.0/#sec-thisstringvalue'
},
thisTimeValue: {
url: 'https://262.ecma-international.org/8.0/#sec-thistimevalue'
},
TimeClip: {
url: 'https://262.ecma-international.org/8.0/#sec-timeclip'
},
TimeFromYear: {
url: 'https://262.ecma-international.org/8.0/#eqn-TimeFromYear'
},
TimeWithinDay: {
url: 'https://262.ecma-international.org/8.0/#eqn-TimeWithinDay'
},
ToBoolean: {
url: 'https://262.ecma-international.org/8.0/#sec-toboolean'
},
ToDateString: {
url: 'https://262.ecma-international.org/8.0/#sec-todatestring'
},
ToIndex: {
url: 'https://262.ecma-international.org/8.0/#sec-toindex'
},
ToInt16: {
url: 'https://262.ecma-international.org/8.0/#sec-toint16'
},
ToInt32: {
url: 'https://262.ecma-international.org/8.0/#sec-toint32'
},
ToInt8: {
url: 'https://262.ecma-international.org/8.0/#sec-toint8'
},
ToInteger: {
url: 'https://262.ecma-international.org/8.0/#sec-tointeger'
},
ToLength: {
url: 'https://262.ecma-international.org/8.0/#sec-tolength'
},
ToNumber: {
url: 'https://262.ecma-international.org/8.0/#sec-tonumber'
},
ToObject: {
url: 'https://262.ecma-international.org/8.0/#sec-toobject'
},
TopLevelModuleEvaluationJob: {
url: 'https://262.ecma-international.org/8.0/#sec-toplevelmoduleevaluationjob'
},
ToPrimitive: {
url: 'https://262.ecma-international.org/8.0/#sec-toprimitive'
},
ToPropertyDescriptor: {
url: 'https://262.ecma-international.org/8.0/#sec-topropertydescriptor'
},
ToPropertyKey: {
url: 'https://262.ecma-international.org/8.0/#sec-topropertykey'
},
ToString: {
url: 'https://262.ecma-international.org/8.0/#sec-tostring'
},
'ToString Applied to the Number Type': {
url: 'https://262.ecma-international.org/8.0/#sec-tostring-applied-to-the-number-type'
},
ToUint16: {
url: 'https://262.ecma-international.org/8.0/#sec-touint16'
},
ToUint32: {
url: 'https://262.ecma-international.org/8.0/#sec-touint32'
},
ToUint8: {
url: 'https://262.ecma-international.org/8.0/#sec-touint8'
},
ToUint8Clamp: {
url: 'https://262.ecma-international.org/8.0/#sec-touint8clamp'
},
TriggerPromiseReactions: {
url: 'https://262.ecma-international.org/8.0/#sec-triggerpromisereactions'
},
Type: {
url: 'https://262.ecma-international.org/8.0/#sec-ecmascript-data-types-and-values'
},
TypedArrayCreate: {
url: 'https://262.ecma-international.org/8.0/#typedarray-create'
},
TypedArraySpeciesCreate: {
url: 'https://262.ecma-international.org/8.0/#typedarray-species-create'
},
UpdateEmpty: {
url: 'https://262.ecma-international.org/8.0/#sec-updateempty'
},
UTC: {
url: 'https://262.ecma-international.org/8.0/#sec-utc-t'
},
UTF16Decode: {
url: 'https://262.ecma-international.org/8.0/#sec-utf16decode'
},
UTF16Encoding: {
url: 'https://262.ecma-international.org/8.0/#sec-utf16encoding'
},
ValidateAndApplyPropertyDescriptor: {
url: 'https://262.ecma-international.org/8.0/#sec-validateandapplypropertydescriptor'
},
ValidateAtomicAccess: {
url: 'https://262.ecma-international.org/8.0/#sec-validateatomicaccess'
},
ValidateSharedIntegerTypedArray: {
url: 'https://262.ecma-international.org/8.0/#sec-validatesharedintegertypedarray'
},
ValidateTypedArray: {
url: 'https://262.ecma-international.org/8.0/#sec-validatetypedarray'
},
ValueOfReadEvent: {
url: 'https://262.ecma-international.org/8.0/#sec-valueofreadevent'
},
WakeWaiter: {
url: 'https://262.ecma-international.org/8.0/#sec-wakewaiter'
},
WeekDay: {
url: 'https://262.ecma-international.org/8.0/#sec-week-day'
},
WordCharacters: {
url: 'https://262.ecma-international.org/8.0/#sec-runtime-semantics-wordcharacters-abstract-operation'
},
YearFromTime: {
url: 'https://262.ecma-international.org/8.0/#eqn-YearFromTime'
}
};

View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 Kevin Gravier
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,101 @@
var SourceMapGenerator = require('source-map').SourceMapGenerator;
var all = require('./helpers').all;
var isRemoteResource = require('../utils/is-remote-resource');
var isWindows = process.platform == 'win32';
var NIX_SEPARATOR_PATTERN = /\//g;
var UNKNOWN_SOURCE = '$stdin';
var WINDOWS_SEPARATOR = '\\';
function store(serializeContext, element) {
var fromString = typeof element == 'string';
var value = fromString ? element : element[1];
var mappings = fromString ? null : element[2];
var wrap = serializeContext.wrap;
wrap(serializeContext, value);
track(serializeContext, value, mappings);
serializeContext.output.push(value);
}
function wrap(serializeContext, value) {
if (serializeContext.column + value.length > serializeContext.format.wrapAt) {
track(serializeContext, serializeContext.format.breakWith, false);
serializeContext.output.push(serializeContext.format.breakWith);
}
}
function track(serializeContext, value, mappings) {
var parts = value.split('\n');
if (mappings) {
trackAllMappings(serializeContext, mappings);
}
serializeContext.line += parts.length - 1;
serializeContext.column = parts.length > 1 ? 0 : (serializeContext.column + parts.pop().length);
}
function trackAllMappings(serializeContext, mappings) {
for (var i = 0, l = mappings.length; i < l; i++) {
trackMapping(serializeContext, mappings[i]);
}
}
function trackMapping(serializeContext, mapping) {
var line = mapping[0];
var column = mapping[1];
var originalSource = mapping[2];
var source = originalSource;
var storedSource = source || UNKNOWN_SOURCE;
if (isWindows && source && !isRemoteResource(source)) {
storedSource = source.replace(NIX_SEPARATOR_PATTERN, WINDOWS_SEPARATOR);
}
serializeContext.outputMap.addMapping({
generated: {
line: serializeContext.line,
column: serializeContext.column
},
source: storedSource,
original: {
line: line,
column: column
}
});
if (serializeContext.inlineSources && (originalSource in serializeContext.sourcesContent)) {
serializeContext.outputMap.setSourceContent(storedSource, serializeContext.sourcesContent[originalSource]);
}
}
function serializeStylesAndSourceMap(tokens, context) {
var serializeContext = {
column: 0,
format: context.options.format,
indentBy: 0,
indentWith: '',
inlineSources: context.options.sourceMapInlineSources,
line: 1,
output: [],
outputMap: new SourceMapGenerator(),
sourcesContent: context.sourcesContent,
spaceAfterClosingBrace: context.options.compatibility.properties.spaceAfterClosingBrace,
store: store,
wrap: context.options.format.wrapAt ?
wrap :
function () { /* noop */ }
};
all(serializeContext, tokens);
return {
sourceMap: serializeContext.outputMap,
styles: serializeContext.output.join('')
};
}
module.exports = serializeStylesAndSourceMap;

View File

@@ -0,0 +1,181 @@
import process from 'node:process';
import os from 'node:os';
import tty from 'node:tty';
// From: https://github.com/sindresorhus/has-flag/blob/main/index.js
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
const position = argv.indexOf(prefix + flag);
const terminatorPosition = argv.indexOf('--');
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
}
const {env} = process;
let flagForceColor;
if (
hasFlag('no-color')
|| hasFlag('no-colors')
|| hasFlag('color=false')
|| hasFlag('color=never')
) {
flagForceColor = 0;
} else if (
hasFlag('color')
|| hasFlag('colors')
|| hasFlag('color=true')
|| hasFlag('color=always')
) {
flagForceColor = 1;
}
function envForceColor() {
if ('FORCE_COLOR' in env) {
if (env.FORCE_COLOR === 'true') {
return 1;
}
if (env.FORCE_COLOR === 'false') {
return 0;
}
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
}
}
function translateLevel(level) {
if (level === 0) {
return false;
}
return {
level,
hasBasic: true,
has256: level >= 2,
has16m: level >= 3,
};
}
function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
const noFlagForceColor = envForceColor();
if (noFlagForceColor !== undefined) {
flagForceColor = noFlagForceColor;
}
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
if (forceColor === 0) {
return 0;
}
if (sniffFlags) {
if (hasFlag('color=16m')
|| hasFlag('color=full')
|| hasFlag('color=truecolor')) {
return 3;
}
if (hasFlag('color=256')) {
return 2;
}
}
// Check for Azure DevOps pipelines.
// Has to be above the `!streamIsTTY` check.
if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
return 1;
}
if (haveStream && !streamIsTTY && forceColor === undefined) {
return 0;
}
const min = forceColor || 0;
if (env.TERM === 'dumb') {
return min;
}
if (process.platform === 'win32') {
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
const osRelease = os.release().split('.');
if (
Number(osRelease[0]) >= 10
&& Number(osRelease[2]) >= 10_586
) {
return Number(osRelease[2]) >= 14_931 ? 3 : 2;
}
return 1;
}
if ('CI' in env) {
if ('GITHUB_ACTIONS' in env) {
return 3;
}
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
return 1;
}
return min;
}
if ('TEAMCITY_VERSION' in env) {
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
}
if (env.COLORTERM === 'truecolor') {
return 3;
}
if (env.TERM === 'xterm-kitty') {
return 3;
}
if ('TERM_PROGRAM' in env) {
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
switch (env.TERM_PROGRAM) {
case 'iTerm.app': {
return version >= 3 ? 3 : 2;
}
case 'Apple_Terminal': {
return 2;
}
// No default
}
}
if (/-256(color)?$/i.test(env.TERM)) {
return 2;
}
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
return 1;
}
if ('COLORTERM' in env) {
return 1;
}
return min;
}
export function createSupportsColor(stream, options = {}) {
const level = _supportsColor(stream, {
streamIsTTY: stream && stream.isTTY,
...options,
});
return translateLevel(level);
}
const supportsColor = {
stdout: createSupportsColor({isTTY: tty.isatty(1)}),
stderr: createSupportsColor({isTTY: tty.isatty(2)}),
};
export default supportsColor;

View File

@@ -0,0 +1,15 @@
"use strict";
var ensureValue = require("type/value/ensure");
var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
module.exports = function (object) {
object = Object(ensureValue(object));
var result = [];
for (var key in object) {
if (!objPropertyIsEnumerable.call(object, key)) continue;
result.push([key, object[key]]);
}
return result;
};

View File

@@ -0,0 +1,7 @@
module.exports = {
'cap': false,
'curry': false,
'fixed': false,
'immutable': false,
'rearg': false
};

View File

@@ -0,0 +1,102 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for csv2json/libs/core/filterRow.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../../prettify.css" />
<link rel="stylesheet" href="../../../base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(../../../sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>
<a href="../../../index.html">All files</a> / <a href="index.html">csv2json/libs/core</a> filterRow.js
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Statements</span>
<span class='fraction'>0/12</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Branches</span>
<span class='fraction'>0/12</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Functions</span>
<span class='fraction'>0/1</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Lines</span>
<span class='fraction'>0/12</span>
</div>
</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
</div>
<div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
<a name='L2'></a><a href='#L2'>2</a>
<a name='L3'></a><a href='#L3'>3</a>
<a name='L4'></a><a href='#L4'>4</a>
<a name='L5'></a><a href='#L5'>5</a>
<a name='L6'></a><a href='#L6'>6</a>
<a name='L7'></a><a href='#L7'>7</a>
<a name='L8'></a><a href='#L8'>8</a>
<a name='L9'></a><a href='#L9'>9</a>
<a name='L10'></a><a href='#L10'>10</a>
<a name='L11'></a><a href='#L11'>11</a>
<a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span></td><td class="text"><pre class="prettyprint lang-js">Unable to lookup source: /Users/kxiang/work/projects/csv2json/libs/core/filterRow.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/filterRow.js')
Error: Unable to lookup source: /Users/kxiang/work/projects/csv2json/libs/core/filterRow.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/filterRow.js')
at Context.defaultSourceLookup [as sourceFinder] (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/context.js:15:15)
at Context.getSource (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/context.js:74:17)
at Object.annotateSourceCode (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:172:38)
at HtmlReport.onDetail (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-reports/lib/html/index.js:237:39)
at Visitor.(anonymous function) [as onDetail] (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:34:30)
at ReportNode.Node.visit (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:123:17)
at /Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:116:23
at Array.forEach (native)
at visitChildren (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:115:32)
at ReportNode.Node.visit (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:126:5)</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri May 11 2018 21:36:07 GMT+0100 (IST)
</div>
</div>
<script src="../../../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../../../sorter.js"></script>
<script src="../../../block-navigation.js"></script>
</body>
</html>

View File

@@ -0,0 +1 @@
{"version":3,"file":"mergeScan.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeScan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAoElD,MAAM,UAAU,SAAS,CACvB,WAAoE,EACpE,IAAO,EACP,UAAU,GAAG,QAAQ;IAErB,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAEpC,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,OAAO,cAAc,CACnB,MAAM,EACN,UAAU,EACV,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAClD,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,KAAK,GAAG,KAAK,CAAC;QAChB,CAAC,EACD,KAAK,EACL,SAAS,EACT,GAAG,EAAE,CAAC,CAAC,KAAK,GAAG,IAAK,CAAC,CACtB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}

View File

@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('now', require('../now'), require('./_falseOptions'));
func.placeholder = require('./placeholder');
module.exports = func;

View File

@@ -0,0 +1,11 @@
import { asyncScheduler } from '../scheduler/async';
import { timer } from './timer';
export function interval(period, scheduler) {
if (period === void 0) { period = 0; }
if (scheduler === void 0) { scheduler = asyncScheduler; }
if (period < 0) {
period = 0;
}
return timer(period, period, scheduler);
}
//# sourceMappingURL=interval.js.map

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"1":"F A B","132":"J D E CC"},B:{"1":"C K L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB EC FC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC"},E:{"1":"I v J D E F A B C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e PC QC RC SC qB AC TC rB"},G:{"1":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},H:{"1":"oC"},I:{"1":"tB I f pC qC rC sC BC tC uC"},J:{"1":"D A"},K:{"1":"A B C h qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"1":"A B"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"AD BD"}},B:2,C:"CSS first-line pseudo-element"};

View File

@@ -0,0 +1,34 @@
import { parse, MessageFormatElement } from '@formatjs/icu-messageformat-parser';
import { Formatters, Formats, FormatXMLElementFn, PrimitiveType, MessageFormatPart } from './formatters';
export interface Options {
formatters?: Formatters;
/**
* Whether to treat HTML/XML tags as string literal
* instead of parsing them as tag token.
* When this is false we only allow simple tags without
* any attributes
*/
ignoreTag?: boolean;
}
export declare class IntlMessageFormat {
private readonly ast;
private readonly locales;
private readonly resolvedLocale;
private readonly formatters;
private readonly formats;
private readonly message;
private readonly formatterCache;
constructor(message: string | MessageFormatElement[], locales?: string | string[], overrideFormats?: Partial<Formats>, opts?: Options);
format: <T = void>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => string | T | (string | T)[];
formatToParts: <T>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => MessageFormatPart<T>[];
resolvedOptions: () => {
locale: string;
};
getAst: () => MessageFormatElement[];
private static memoizedDefaultLocale;
static get defaultLocale(): string;
static resolveLocale: (locales: string | string[]) => Intl.Locale;
static __parse: typeof parse | undefined;
static formats: Formats;
}
//# sourceMappingURL=core.d.ts.map

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"1":"A B","2":"J D E F CC"},B:{"1":"C K L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"2":"DC tB I v J D E F A B C K L G M N O w g x y z EC FC","66":"0 1 2 3 4 5 6","129":"7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB","257":"VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC","2":"I v J D E F A B C K L G M N"},E:{"1":"J D E F A B C K L G JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v HC zB IC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"F B C PC QC RC SC qB AC TC rB"},G:{"1":"E XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","2":"zB UC BC VC WC"},H:{"2":"oC"},I:{"1":"f tC uC","2":"tB I pC qC rC sC BC"},J:{"1":"A","2":"D"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"1":"B","2":"A"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"129":"AD BD"}},B:4,C:"WebVTT - Web Video Text Tracks"};

View File

@@ -0,0 +1 @@
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0.00783,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.00783,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0.00783,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0.00783,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0.03134,"94":0,"95":0,"96":0,"97":0.00783,"98":0,"99":0.00783,"100":0,"101":0,"102":0.11751,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0.00783,"109":0.35253,"110":0.18018,"111":0,"112":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.01567,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0.03917,"51":0,"52":0.047,"53":0,"54":0.0235,"55":0,"56":0,"57":0,"58":0.01567,"59":0,"60":0,"61":0,"62":0.00783,"63":0,"64":0.01567,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0.03917,"77":0,"78":0,"79":0.0235,"80":0,"81":0.00783,"83":0,"84":0,"85":0,"86":0.00783,"87":0,"88":0.21935,"89":0,"90":0,"91":0.00783,"92":0.0235,"93":0,"94":0.00783,"95":0,"96":0,"97":0.00783,"98":0,"99":0.03917,"100":0.17235,"101":0,"102":0.0235,"103":0.03134,"104":0.0235,"105":0,"106":0.00783,"107":0.00783,"108":0.047,"109":7.15244,"110":3.19627,"111":0,"112":0.00783,"113":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0.01567,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0.00783,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0.00783,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0.20368,"90":0,"91":0,"92":0,"93":0.01567,"94":0.03917,"95":0.07051,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0.01567,"13":0,"14":0,"15":0,"16":0,"17":0.00783,"18":0.05484,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0.01567,"90":0,"91":0,"92":0.00783,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0.00783,"105":0.01567,"106":0.08617,"107":0.00783,"108":0.82257,"109":17.42282,"110":29.14248},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.0235,"12":0,"13":0,"14":0.01567,"15":0.07051,_:"0","3.1":0,"3.2":0,"5.1":0.0235,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0,"13.1":0,"14.1":0.01567,"15.1":0,"15.2-15.3":0.00783,"15.4":0,"15.5":0,"15.6":0.07051,"16.0":0,"16.1":0,"16.2":0,"16.3":0.01567,"16.4":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00279,"6.0-6.1":0,"7.0-7.1":0.00975,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0209,"10.0-10.2":0,"10.3":0.01951,"11.0-11.2":0.03065,"11.3-11.4":0,"12.0-12.1":0.47653,"12.2-12.5":6.43314,"13.0-13.1":0.00418,"13.2":0.05016,"13.3":1.5522,"13.4-13.7":0.46956,"14.0-14.4":0.19786,"14.5-14.8":0.82905,"15.0-15.1":0.1254,"15.2-15.3":0.27171,"15.4":0.25359,"15.5":0.12401,"15.6":0.32047,"16.0":0.37899,"16.1":0.41104,"16.2":0.45702,"16.3":0.44727,"16.4":0},P:{"4":0.19614,"20":0.04129,"5.0-5.4":0,"6.2-6.4":0.01032,"7.2-7.4":0.03097,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0.01032,"12.0":0,"13.0":0,"14.0":0.01032,"15.0":0,"16.0":0.02065,"17.0":0.01032,"18.0":0.01032,"19.0":0.14452},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00069,"4.2-4.3":0.0309,"4.4":0,"4.4.3-4.4.4":0.15657},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.01567,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":0.15162},H:{"0":0.34246},L:{"0":24.80218},R:{_:"0"},M:{"0":0.03466},Q:{"13.1":0}};

View File

@@ -0,0 +1 @@
{"version":3,"file":"interval.js","sourceRoot":"","sources":["../../../../src/internal/observable/interval.ts"],"names":[],"mappings":";;;AACA,4CAAoD;AAEpD,iCAAgC;AA+ChC,SAAgB,QAAQ,CAAC,MAAU,EAAE,SAAyC;IAArD,uBAAA,EAAA,UAAU;IAAE,0BAAA,EAAA,YAA2B,sBAAc;IAC5E,IAAI,MAAM,GAAG,CAAC,EAAE;QAEd,MAAM,GAAG,CAAC,CAAC;KACZ;IAED,OAAO,aAAK,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AAC1C,CAAC;AAPD,4BAOC"}

View File

@@ -0,0 +1,48 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.AsapScheduler = void 0;
var AsyncScheduler_1 = require("./AsyncScheduler");
var AsapScheduler = (function (_super) {
__extends(AsapScheduler, _super);
function AsapScheduler() {
return _super !== null && _super.apply(this, arguments) || this;
}
AsapScheduler.prototype.flush = function (action) {
this._active = true;
var flushId = this._scheduled;
this._scheduled = undefined;
var actions = this.actions;
var error;
action = action || actions.shift();
do {
if ((error = action.execute(action.state, action.delay))) {
break;
}
} while ((action = actions[0]) && action.id === flushId && actions.shift());
this._active = false;
if (error) {
while ((action = actions[0]) && action.id === flushId && actions.shift()) {
action.unsubscribe();
}
throw error;
}
};
return AsapScheduler;
}(AsyncScheduler_1.AsyncScheduler));
exports.AsapScheduler = AsapScheduler;
//# sourceMappingURL=AsapScheduler.js.map

View File

@@ -0,0 +1,47 @@
// given a set of versions and a range, create a "simplified" range
// that includes the same versions that the original range does
// If the original range is shorter than the simplified one, return that.
const satisfies = require('../functions/satisfies.js')
const compare = require('../functions/compare.js')
module.exports = (versions, range, options) => {
const set = []
let first = null
let prev = null
const v = versions.sort((a, b) => compare(a, b, options))
for (const version of v) {
const included = satisfies(version, range, options)
if (included) {
prev = version
if (!first) {
first = version
}
} else {
if (prev) {
set.push([first, prev])
}
prev = null
first = null
}
}
if (first) {
set.push([first, null])
}
const ranges = []
for (const [min, max] of set) {
if (min === max) {
ranges.push(min)
} else if (!max && min === v[0]) {
ranges.push('*')
} else if (!max) {
ranges.push(`>=${min}`)
} else if (min === v[0]) {
ranges.push(`<=${max}`)
} else {
ranges.push(`${min} - ${max}`)
}
}
const simplified = ranges.join(' || ')
const original = typeof range.raw === 'string' ? range.raw : String(range)
return simplified.length < original.length ? simplified : range
}

View File

@@ -0,0 +1,11 @@
import ts from 'typescript';
import type { Transformer, Options } from '../types';
export declare function loadTsconfig(compilerOptionsJSON: any, filename: string, tsOptions: Options.Typescript): {
errors: any[];
options: any;
} | {
errors: ts.Diagnostic[];
options: ts.CompilerOptions;
};
declare const transformer: Transformer<Options.Typescript>;
export { transformer };

View File

@@ -0,0 +1,86 @@
{
"name": "execa",
"version": "7.0.0",
"description": "Process execution for humans",
"license": "MIT",
"repository": "sindresorhus/execa",
"funding": "https://github.com/sindresorhus/execa?sponsor=1",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"engines": {
"node": "^14.18.0 || ^16.14.0 || >=18.0.0"
},
"scripts": {
"test": "xo && c8 ava && tsd"
},
"files": [
"index.js",
"index.d.ts",
"lib"
],
"keywords": [
"exec",
"child",
"process",
"execute",
"fork",
"execfile",
"spawn",
"file",
"shell",
"bin",
"binary",
"binaries",
"npm",
"path",
"local"
],
"dependencies": {
"cross-spawn": "^7.0.3",
"get-stream": "^6.0.1",
"human-signals": "^4.3.0",
"is-stream": "^3.0.0",
"merge-stream": "^2.0.0",
"npm-run-path": "^5.1.0",
"onetime": "^6.0.0",
"signal-exit": "^3.0.7",
"strip-final-newline": "^3.0.0"
},
"devDependencies": {
"@types/node": "^18.13.0",
"ava": "^5.2.0",
"c8": "^7.12.0",
"get-node": "^13.5.0",
"is-running": "^2.1.0",
"p-event": "^5.0.1",
"path-key": "^4.0.0",
"tempfile": "^4.0.0",
"tsd": "^0.25.0",
"xo": "^0.53.1"
},
"c8": {
"reporter": [
"text",
"lcov"
],
"exclude": [
"**/fixtures/**",
"**/test.js",
"**/test/**"
]
},
"ava": {
"workerThreads": false
},
"xo": {
"rules": {
"unicorn/no-empty-file": "off",
"@typescript-eslint/ban-types": "off"
}
}
}

View File

@@ -0,0 +1 @@
{"name":"@nodelib/fs.walk","version":"1.2.8","files":{"LICENSE":{"checkedAt":1678883670836,"integrity":"sha512-klyzttd362E9inpFU2X0jkZ+kaWZ+PhDEXJfMgfuWDKwC4dCmwlGbdsDCsQjWPUstsuss2EizcqjeZNZs2Qp9A==","mode":436,"size":1079},"out/types/index.js":{"checkedAt":1678883670006,"integrity":"sha512-f2XGQDoj2T+xSOglmwEtZVKrO/8Xj0p9ap2c7A9gQp/BiZ45tLyozAivx12afHv9sT/DcspjyF6yKwNV601gAA==","mode":436,"size":77},"out/providers/async.js":{"checkedAt":1678883670853,"integrity":"sha512-+W5Vt9NvIdehfLBx3slCmkja6GMA0zglsOkpsJqoBS1IlHK8kttsmRVOutYQc9vAoO2I99LoteG5Z+KYgk0AZQ==","mode":436,"size":895},"out/readers/async.js":{"checkedAt":1678883670853,"integrity":"sha512-Sk6NVLuKxCq/QhZdxXxHqn5wlpXPaaxtvtDNAzjmiB/QizRbwrfW5OGCNnwv2Q83YURioeDKOGhThTZnwf6WGw==","mode":436,"size":3157},"out/readers/common.js":{"checkedAt":1678883670853,"integrity":"sha512-UF2HjQnRwnpefmcg0P6Jeksthf08nuRYv8H5i/lWYcVaV72A00UoVbx9CA9/HhdAEyan6to6H1f6MntB3+M/2w==","mode":436,"size":1052},"out/index.js":{"checkedAt":1678883670853,"integrity":"sha512-Bc+R+Q50dDHJ+nRHPG92Uru0XsR+D3hG8aYkDzYF80ENWCXwluH+13AGYo+Et3slYcl+qzcNAuTB9mp6O/rbhQ==","mode":436,"size":1390},"out/providers/index.js":{"checkedAt":1678883670853,"integrity":"sha512-afQ2Rk5M8k31k0StY+kQpnxDL3Z9odVuiYtuBlSm2g3UdUTqBCSH3A8Tcg8luJvEFPQTy39s4UCn19f8bjG1Eg==","mode":436,"size":388},"out/readers/reader.js":{"checkedAt":1678883670853,"integrity":"sha512-fU1l5qqzuv77L6jb71XV/rRRxj/meQk3rsGhNnB2E+sdn2ETY1Z+HMaNI7gJpKlBQyNRUwYtuqQLKPCShVRuvQ==","mode":436,"size":358},"out/settings.js":{"checkedAt":1678883670854,"integrity":"sha512-Q7aqjE9Q5aELJD57IAInlaT9RjsNyhYkBY/imiU0q4Ajp5JosIpL5lLQywuqcLAarhkRE1sci0QKf5sT/JROXg==","mode":436,"size":1250},"out/providers/stream.js":{"checkedAt":1678883670854,"integrity":"sha512-Y7a9nN7Uy04VDmjGQBDQJs1KV+AphR/J1GRWvWq+36RIwTK19faeRcpwt6TTQUjyGWafczCY6J50lxalj5sKoA==","mode":436,"size":1021},"out/providers/sync.js":{"checkedAt":1678883670854,"integrity":"sha512-23mD4aVeAB4bAPeXJVLZx/GCc7mc1+qYq/A3vPgu+i+ePXHbd4BYdPwEqxUw6MT5PucLjaV8mE+iBnEAmL3WPg==","mode":436,"size":407},"out/readers/sync.js":{"checkedAt":1678883670855,"integrity":"sha512-wVyFLYFU3XpRzRISRRHA4ErmpLVkMVUHwwCJg2tkBuJIbih0NSJcYgZ8dFHA76pYTcv7POj4gsO36D9MLujQ5Q==","mode":436,"size":1911},"package.json":{"checkedAt":1678883670855,"integrity":"sha512-piWCuUCg8kwsbFubT4ZxLXTpOLVeXVflHNXMfYS8jw9GbDuSXnbgFoPZdYnQeJcmG6b+JE3ooMMDRpgrCAdwIw==","mode":436,"size":1138},"README.md":{"checkedAt":1678883670855,"integrity":"sha512-j8ogIsjqpcj0C8/x7t1bRoGNnm0Av7HlNUaitS08jMNqy+qCcDnms1nN1I5UHROiE2M8/13tYOxx0ym/WZMMog==","mode":436,"size":6139},"out/providers/async.d.ts":{"checkedAt":1678883670855,"integrity":"sha512-XJ5fhvrVB2TwhKdxJ9YKSqPm2+HtLyXjzfvQldV69q2ARaxGS6BBThVLywxs7QqgKZLM+xVnmfsZ1EsejCWUzw==","mode":436,"size":478},"out/readers/async.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-4B3NTq3g/qqZMXJveOHFGlUfMqmxC3UKIoY07pyR48SF2UyUmjs4tvDE8hAu7yPGSCTcydjEClOmTiXuh4WsuA==","mode":436,"size":1091},"out/index.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-pbxYZF2UqYbC05v9CoLlL8N5+j2s8O7Ln+lMrFjR+zMEJl6ZpDGhuTtWQvIlqFPzp3bjAa2W9+S40Do63cyp7A==","mode":436,"size":1019},"out/types/index.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-vwTyGFiiKtd7d2Qm+NE9zZoMcOTxcqtsQKwpdxk9Owu/SqcNObJPfoTtLFEe+CxE+y2pW4kRXsbgQi1d9GsCng==","mode":436,"size":251},"out/readers/reader.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-8AcjAwe7OJb4VP8xlaXKhwCIX+0cP8gTngvu43m5SX4U24lWrOXCfSCfWzFov84epVtnxfLz9f1UwcIREkEBaQ==","mode":436,"size":208},"out/readers/common.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-R3ls0llwv4RLm3L6qKd8+C2ilNE5h0eUlYU2EZGKJOVlZ0rNtcyQhD2w0RL7tkT7kqIO8jVEOjWfpdiN/8ltog==","mode":436,"size":498},"out/providers/index.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-0c732jQdPWtv5otF0Nl+6YGufwg0vZmlspa4QU94RBcz3pSwKIiJYz5Oyk8MeTk7gOSnE951dh9ekoGtax3tEg==","mode":436,"size":167},"out/settings.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-UWdWnBIoM6g+GyQEXYeAA7rldj8nI1W3YtBCv0/N1PSuuB19T5hyBpJULPgpJUTQ1wgkkD+omPFwXkGDi5IgRg==","mode":436,"size":1175},"out/providers/stream.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-5koza8bgHEY6raALhTbI/jnHvDXDdtMf8dEzRxJFT8iVpLNtd9FFQX/bepKph2gkkSNI70gR8YaH/plt+6dm7A==","mode":436,"size":413},"out/providers/sync.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-K2dMgaX3P5CpBFx9EVRTkEhWP4dHLFd0DZbLZSHcHLcVWyn60XyJ3FyJQrrvApoAzHLLbWqxPDMcfThggSxVsw==","mode":436,"size":338},"out/readers/sync.d.ts":{"checkedAt":1678883670858,"integrity":"sha512-JNKuNj7hdh3gOQIZTtVeTIoEDdcFCDOLVwkUyXaZoEeIchAjVYpOjdIthzxJ7vBYT4RpcrR/q5XMo+fqK+Ssvw==","mode":436,"size":477}}}

View File

@@ -0,0 +1,106 @@
{
"name": "yaml",
"version": "1.10.2",
"license": "ISC",
"author": "Eemeli Aro <eemeli@gmail.com>",
"repository": "github:eemeli/yaml",
"description": "JavaScript parser and stringifier for YAML",
"keywords": [
"YAML",
"parser",
"stringifier"
],
"homepage": "https://eemeli.org/yaml/v1/",
"files": [
"browser/",
"dist/",
"types/",
"*.d.ts",
"*.js",
"*.mjs",
"!*config.js"
],
"type": "commonjs",
"main": "./index.js",
"browser": {
"./index.js": "./browser/index.js",
"./map.js": "./browser/map.js",
"./pair.js": "./browser/pair.js",
"./parse-cst.js": "./browser/parse-cst.js",
"./scalar.js": "./browser/scalar.js",
"./schema.js": "./browser/schema.js",
"./seq.js": "./browser/seq.js",
"./types.js": "./browser/types.js",
"./types.mjs": "./browser/types.js",
"./types/binary.js": "./browser/types/binary.js",
"./types/omap.js": "./browser/types/omap.js",
"./types/pairs.js": "./browser/types/pairs.js",
"./types/set.js": "./browser/types/set.js",
"./types/timestamp.js": "./browser/types/timestamp.js",
"./util.js": "./browser/util.js",
"./util.mjs": "./browser/util.js"
},
"exports": {
".": "./index.js",
"./parse-cst": "./parse-cst.js",
"./types": [
{
"import": "./types.mjs"
},
"./types.js"
],
"./util": [
{
"import": "./util.mjs"
},
"./util.js"
],
"./": "./"
},
"scripts": {
"build": "npm run build:node && npm run build:browser",
"build:browser": "rollup -c rollup.browser-config.js",
"build:node": "rollup -c rollup.node-config.js",
"clean": "git clean -fdxe node_modules",
"lint": "eslint src/",
"prettier": "prettier --write .",
"start": "cross-env TRACE_LEVEL=log npm run build:node && node -i -e 'YAML=require(\".\")'",
"test": "jest",
"test:browsers": "cd playground && npm test",
"test:dist": "npm run build:node && jest",
"test:types": "tsc --lib ES2017 --noEmit tests/typings.ts",
"docs:install": "cd docs-slate && bundle install",
"docs:deploy": "cd docs-slate && ./deploy.sh",
"docs": "cd docs-slate && bundle exec middleman server",
"preversion": "npm test && npm run build",
"prepublishOnly": "npm run clean && npm test && npm run build"
},
"browserslist": "> 0.5%, not dead",
"prettier": {
"arrowParens": "avoid",
"semi": false,
"singleQuote": true,
"trailingComma": "none"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.11",
"@rollup/plugin-babel": "^5.2.3",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"babel-plugin-trace": "^1.1.0",
"common-tags": "^1.8.0",
"cross-env": "^7.0.3",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
"fast-check": "^2.12.0",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"rollup": "^2.38.2",
"typescript": "^4.1.3"
},
"engines": {
"node": ">= 6"
}
}

View File

@@ -0,0 +1,2 @@
module.exports = require('./dist/types').Scalar
require('./dist/legacy-exports').warnFileDeprecation(__filename)

View File

@@ -0,0 +1,40 @@
{
"name": "imurmurhash",
"version": "0.1.4",
"description": "An incremental implementation of MurmurHash3",
"homepage": "https://github.com/jensyt/imurmurhash-js",
"main": "imurmurhash.js",
"files": [
"imurmurhash.js",
"imurmurhash.min.js",
"package.json",
"README.md"
],
"repository": {
"type": "git",
"url": "https://github.com/jensyt/imurmurhash-js"
},
"bugs": {
"url": "https://github.com/jensyt/imurmurhash-js/issues"
},
"keywords": [
"murmur",
"murmurhash",
"murmurhash3",
"hash",
"incremental"
],
"author": {
"name": "Jens Taylor",
"email": "jensyt@gmail.com",
"url": "https://github.com/homebrewing"
},
"license": "MIT",
"dependencies": {
},
"devDependencies": {
},
"engines": {
"node": ">=0.8.19"
}
}

View File

@@ -0,0 +1,22 @@
Copyright (c) 2022 Simon Boudrias
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,129 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Explorer = void 0;
var _path = _interopRequireDefault(require("path"));
var _cacheWrapper = require("./cacheWrapper");
var _ExplorerBase = require("./ExplorerBase");
var _getDirectory = require("./getDirectory");
var _readFile = require("./readFile");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
class Explorer extends _ExplorerBase.ExplorerBase {
constructor(options) {
super(options);
}
async search(searchFrom = process.cwd()) {
if (this.config.metaConfigFilePath) {
const config = await this._loadFile(this.config.metaConfigFilePath, true);
if (config && !config.isEmpty) {
return config;
}
}
return await this.searchFromDirectory(await (0, _getDirectory.getDirectory)(searchFrom));
}
async searchFromDirectory(dir) {
const absoluteDir = _path.default.resolve(process.cwd(), dir);
const run = async () => {
const result = await this.searchDirectory(absoluteDir);
const nextDir = this.nextDirectoryToSearch(absoluteDir, result);
if (nextDir) {
return this.searchFromDirectory(nextDir);
}
return await this.config.transform(result);
};
if (this.searchCache) {
return (0, _cacheWrapper.cacheWrapper)(this.searchCache, absoluteDir, run);
}
return run();
}
async searchDirectory(dir) {
for await (const place of this.config.searchPlaces) {
const placeResult = await this.loadSearchPlace(dir, place);
if (this.shouldSearchStopWithResult(placeResult)) {
return placeResult;
}
} // config not found
return null;
}
async loadSearchPlace(dir, place) {
const filepath = _path.default.join(dir, place);
const fileContents = await (0, _readFile.readFile)(filepath);
return await this.createCosmiconfigResult(filepath, fileContents, false);
}
async loadFileContent(filepath, content) {
if (content === null) {
return null;
}
if (content.trim() === '') {
return undefined;
}
const loader = this.getLoaderEntryForFile(filepath);
try {
return await loader(filepath, content);
} catch (e) {
e.filepath = filepath;
throw e;
}
}
async createCosmiconfigResult(filepath, content, forceProp) {
const fileContent = await this.loadFileContent(filepath, content);
return this.loadedContentToCosmiconfigResult(filepath, fileContent, forceProp);
}
async load(filepath) {
return this._loadFile(filepath, false);
}
async _loadFile(filepath, forceProp) {
this.validateFilePath(filepath);
const absoluteFilePath = _path.default.resolve(process.cwd(), filepath);
const runLoad = async () => {
const fileContents = await (0, _readFile.readFile)(absoluteFilePath, {
throwNotFound: true
});
const result = await this.createCosmiconfigResult(absoluteFilePath, fileContents, forceProp);
return await this.config.transform(result);
};
if (this.loadCache) {
return (0, _cacheWrapper.cacheWrapper)(this.loadCache, absoluteFilePath, runLoad);
}
return runLoad();
}
}
exports.Explorer = Explorer;
//# sourceMappingURL=Explorer.js.map

View File

@@ -0,0 +1,72 @@
write-file-atomic
-----------------
This is an extension for node's `fs.writeFile` that makes its operation
atomic and allows you set ownership (uid/gid of the file).
### var writeFileAtomic = require('write-file-atomic')<br>writeFileAtomic(filename, data, [options], [callback])
* filename **String**
* data **String** | **Buffer**
* options **Object** | **String**
* chown **Object** default, uid & gid of existing file, if any
* uid **Number**
* gid **Number**
* encoding **String** | **Null** default = 'utf8'
* fsync **Boolean** default = true
* mode **Number** default, from existing file, if any
* tmpfileCreated **Function** called when the tmpfile is created
* callback **Function**
Atomically and asynchronously writes data to a file, replacing the file if it already
exists. data can be a string or a buffer.
The file is initially named `filename + "." + murmurhex(__filename, process.pid, ++invocations)`.
Note that `require('worker_threads').threadId` is used in addition to `process.pid` if running inside of a worker thread.
If writeFile completes successfully then, if passed the **chown** option it will change
the ownership of the file. Finally it renames the file back to the filename you specified. If
it encounters errors at any of these steps it will attempt to unlink the temporary file and then
pass the error back to the caller.
If multiple writes are concurrently issued to the same file, the write operations are put into a queue and serialized in the order they were called, using Promises. Writes to different files are still executed in parallel.
If provided, the **chown** option requires both **uid** and **gid** properties or else
you'll get an error. If **chown** is not specified it will default to using
the owner of the previous file. To prevent chown from being ran you can
also pass `false`, in which case the file will be created with the current user's credentials.
If **mode** is not specified, it will default to using the permissions from
an existing file, if any. Expicitly setting this to `false` remove this default, resulting
in a file created with the system default permissions.
If options is a String, it's assumed to be the **encoding** option. The **encoding** option is ignored if **data** is a buffer. It defaults to 'utf8'.
If the **fsync** option is **false**, writeFile will skip the final fsync call.
If the **tmpfileCreated** option is specified it will be called with the name of the tmpfile when created.
Example:
```javascript
writeFileAtomic('message.txt', 'Hello Node', {chown:{uid:100,gid:50}}, function (err) {
if (err) throw err;
console.log('It\'s saved!');
});
```
This function also supports async/await:
```javascript
(async () => {
try {
await writeFileAtomic('message.txt', 'Hello Node', {chown:{uid:100,gid:50}});
console.log('It\'s saved!');
} catch (err) {
console.error(err);
process.exit(1);
}
})();
```
### var writeFileAtomicSync = require('write-file-atomic').sync<br>writeFileAtomicSync(filename, data, [options])
The synchronous version of **writeFileAtomic**.

View File

@@ -0,0 +1,22 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $BigInt = GetIntrinsic('%BigInt%', true);
var $RangeError = GetIntrinsic('%RangeError%');
var $TypeError = GetIntrinsic('%TypeError%');
var Type = require('../Type');
// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-divide
module.exports = function BigIntDivide(x, y) {
if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') {
throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
}
if (y === $BigInt(0)) {
throw new $RangeError('Division by zero');
}
// shortcut for the actual spec mechanics
return x / y;
};

View File

@@ -0,0 +1 @@
{"version":3,"file":"publishLast.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/publishLast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,wBAAgB,WAAW,CAAC,CAAC,KAAK,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAMvF"}

View File

@@ -0,0 +1 @@
{"name":"deep-is","version":"0.1.4","files":{"LICENSE":{"checkedAt":1678883672135,"integrity":"sha512-Y/3DaTdKZmy+ITAbdaEUL7/efFl/1a/SAEvKMNXwUDdSkjWKp6dAz2f6tTvaRKK05zguzZDlIoPfzzxP3//sSQ==","mode":420,"size":1237},"example/cmp.js":{"checkedAt":1678883672135,"integrity":"sha512-q1iZdWwhTKDrHZXU9WZ7O+cO9HljZ1VCEQJC/5XfFf9i9Tv92UHlLIioWnNuoXc0Rso/k7Bct+qiTZM2/9AB4w==","mode":420,"size":207},"test/cmp.js":{"checkedAt":1678883672135,"integrity":"sha512-AyNwXPmJ0TncA5ErxfcpBadWlI0mPLjuHkUdAIIc7wfML1qTmbsUn7IinaFz3EmYo6Q+KFk5zoeZ01in2PI4dg==","mode":420,"size":446},"index.js":{"checkedAt":1678883672135,"integrity":"sha512-rfEa6i/j3UOAm/HXilKwjcTx8WT3OFyKQPHsw5TgKIuSbfjFOihL8TatTrBRW3W9UHDbTYJ1cS/RWzTyE+i/Zw==","mode":420,"size":3104},"test/NaN.js":{"checkedAt":1678883672135,"integrity":"sha512-NoZCZeFWjK8zp8aRGf3hdJr2W999x6nvHYGip0Uen6dsWGgqSzj1M80FvGYJJfbOgO2suG8F+kzv/Z94Xv3SBQ==","mode":420,"size":329},"test/neg-vs-pos-0.js":{"checkedAt":1678883672135,"integrity":"sha512-m/vEPvnHaGiiOWvY17Ci5M1uufBfoD8Qb/iI9Cs83dsx82qmqC7bNOdxWHpLJysQLKYZQcMzwzGlI21yiOlvSQ==","mode":420,"size":343},"package.json":{"checkedAt":1678883672135,"integrity":"sha512-LgNReco0UnL0S9GqOm5SkWl1jEOBRgk72Z3i2ZV0e4HzBp7TPZ8a9Vv+wOzClMfVBrq59qDdFcQXBEyk0Uxg4w==","mode":420,"size":953},"README.markdown":{"checkedAt":1678883672135,"integrity":"sha512-XtivGXvlGtbQ2wF6pf+gSzPvtBggIW4YMqaUgeoAeB+A6N81bFFCdRwZ8Tpq6fhnHvnJJXgDwSQESKm5Pbpm9w==","mode":420,"size":1443},".travis.yml":{"checkedAt":1678883672135,"integrity":"sha512-bhogr1+NYi9MaUcpDVoItziNur2K/BOU7RmPq1SSogayAZtzpDitEF/Z8VBqamWK1JB6WK2UqPeXJqaGUl7Ajw==","mode":420,"size":52}}}

View File

@@ -0,0 +1,14 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
// http://262.ecma-international.org/5.1/#sec-9.10
module.exports = function CheckObjectCoercible(value, optMessage) {
if (value == null) {
throw new $TypeError(optMessage || ('Cannot call method on ' + value));
}
return value;
};

View File

@@ -0,0 +1,40 @@
let Declaration = require('../declaration')
class BlockLogical extends Declaration {
/**
* Use old syntax for -moz- and -webkit-
*/
prefixed(prop, prefix) {
if (prop.includes('-start')) {
return prefix + prop.replace('-block-start', '-before')
}
return prefix + prop.replace('-block-end', '-after')
}
/**
* Return property name by spec
*/
normalize(prop) {
if (prop.includes('-before')) {
return prop.replace('-before', '-block-start')
}
return prop.replace('-after', '-block-end')
}
}
BlockLogical.names = [
'border-block-start',
'border-block-end',
'margin-block-start',
'margin-block-end',
'padding-block-start',
'padding-block-end',
'border-before',
'border-after',
'margin-before',
'margin-after',
'padding-before',
'padding-after'
]
module.exports = BlockLogical

View File

@@ -0,0 +1,123 @@
import { isPlainObject } from "is-plain-object";
import nodeFetch from "node-fetch";
import { RequestError } from "@octokit/request-error";
import getBuffer from "./get-buffer-response";
export default function fetchWrapper(requestOptions) {
const log = requestOptions.request && requestOptions.request.log
? requestOptions.request.log
: console;
if (isPlainObject(requestOptions.body) ||
Array.isArray(requestOptions.body)) {
requestOptions.body = JSON.stringify(requestOptions.body);
}
let headers = {};
let status;
let url;
const fetch = (requestOptions.request && requestOptions.request.fetch) ||
globalThis.fetch ||
/* istanbul ignore next */ nodeFetch;
return fetch(requestOptions.url, Object.assign({
method: requestOptions.method,
body: requestOptions.body,
headers: requestOptions.headers,
redirect: requestOptions.redirect,
},
// `requestOptions.request.agent` type is incompatible
// see https://github.com/octokit/types.ts/pull/264
requestOptions.request))
.then(async (response) => {
url = response.url;
status = response.status;
for (const keyAndValue of response.headers) {
headers[keyAndValue[0]] = keyAndValue[1];
}
if ("deprecation" in headers) {
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
const deprecationLink = matches && matches.pop();
log.warn(`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`);
}
if (status === 204 || status === 205) {
return;
}
// GitHub API returns 200 for HEAD requests
if (requestOptions.method === "HEAD") {
if (status < 400) {
return;
}
throw new RequestError(response.statusText, status, {
response: {
url,
status,
headers,
data: undefined,
},
request: requestOptions,
});
}
if (status === 304) {
throw new RequestError("Not modified", status, {
response: {
url,
status,
headers,
data: await getResponseData(response),
},
request: requestOptions,
});
}
if (status >= 400) {
const data = await getResponseData(response);
const error = new RequestError(toErrorMessage(data), status, {
response: {
url,
status,
headers,
data,
},
request: requestOptions,
});
throw error;
}
return getResponseData(response);
})
.then((data) => {
return {
status,
url,
headers,
data,
};
})
.catch((error) => {
if (error instanceof RequestError)
throw error;
else if (error.name === "AbortError")
throw error;
throw new RequestError(error.message, 500, {
request: requestOptions,
});
});
}
async function getResponseData(response) {
const contentType = response.headers.get("content-type");
if (/application\/json/.test(contentType)) {
return response.json();
}
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
return response.text();
}
return getBuffer(response);
}
function toErrorMessage(data) {
if (typeof data === "string")
return data;
// istanbul ignore else - just in case
if ("message" in data) {
if (Array.isArray(data.errors)) {
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}`;
}
return data.message;
}
// istanbul ignore next - just in case
return `Unknown error: ${JSON.stringify(data)}`;
}

View File

@@ -0,0 +1,24 @@
'use strict';
var callBound = require('call-bind/callBound');
var $arrayPush = callBound('Array.prototype.push');
var GetIterator = require('./GetIterator');
var IteratorStep = require('./IteratorStep');
var IteratorValue = require('./IteratorValue');
// https://262.ecma-international.org/9.0/#sec-iterabletolist
module.exports = function IterableToList(items, method) {
var iterator = GetIterator(items, 'sync', method);
var values = [];
var next = true;
while (next) {
next = IteratorStep(iterator);
if (next) {
var nextValue = IteratorValue(next);
$arrayPush(values, nextValue);
}
}
return values;
};

View File

@@ -0,0 +1,15 @@
/**
* Checks if `value` is suitable for use as unique object key.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
function isKeyable(value) {
var type = typeof value;
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
? (value !== '__proto__')
: (value === null);
}
module.exports = isKeyable;

View File

@@ -0,0 +1,61 @@
# Contributing
The WordJS Libraries should be free and clear to use in your projects. In
order to maintain that, every contributor must be vigilant.
There have been many projects in the past that have been very lax regarding
licensing, and we are of the opinion that those are ticking timebombs and that
no corporate product should depend on them.
# Required Reading
These are pretty short reads and emphasize the importance of proper licensing:
- https://github.com/kennethreitz/tablib/issues/114 (discussion of other tools)
- http://www.codinghorror.com/blog/2007/04/pick-a-license-any-license.html
# Raising Issues
Issues should generally be accompanied by test files. Since github does not
support attachments, the best method is to send files to <sheetjs@gmail.com>
(subject line should contain issue number or message) or to share using some
storage service. Unless expressly permitted, any attachments will not be
shared or included in a test suite (although I will ask :)
# Pre-Contribution Checklist
Before thinking about contributing, make sure that:
- You are not, nor have ever been, an employee of Microsoft Corporation.
- You have not signed any NDAs or Shared Source Agreements with Microsoft
Corporation or a subsidiary
- You have not consulted any existing relevant codebase (if you have, please
take note of which codebases were consulted).
If you cannot attest to each of these items, the best approach is to raise an
issue. If it is a particularly high-priority issue, please drop an email to
<sheetjs@gmail.com> and it will be prioritized.
# Intra-Contribution
Keep these in mind as you work:
- Your contributions are your original work. Take note of any resources you
consult in the process (and be extra careful not to use unlicensed code on
the internet.
- You are working on your own time. Unless they explicitly grant permission,
your employer may be the ultimate owner of your IP
# Post-Contribution
Before contributions are merged, you will receive an email (at the address
associated with the git commit) and will be asked to confirm the aforementioned
items.

View File

@@ -0,0 +1,77 @@
var Marker = require('../../tokenizer/marker');
var Selector = {
ADJACENT_SIBLING: '+',
DESCENDANT: '>',
DOT: '.',
HASH: '#',
NON_ADJACENT_SIBLING: '~',
PSEUDO: ':'
};
var LETTER_PATTERN = /[a-zA-Z]/;
var NOT_PREFIX = ':not(';
var SEPARATOR_PATTERN = /[\s,\(>~\+]/;
function specificity(selector) {
var result = [0, 0, 0];
var character;
var isEscaped;
var isSingleQuoted;
var isDoubleQuoted;
var roundBracketLevel = 0;
var couldIntroduceNewTypeSelector;
var withinNotPseudoClass = false;
var wasPseudoClass = false;
var i, l;
for (i = 0, l = selector.length; i < l; i++) {
character = selector[i];
if (isEscaped) {
// noop
} else if (character == Marker.SINGLE_QUOTE && !isDoubleQuoted && !isSingleQuoted) {
isSingleQuoted = true;
} else if (character == Marker.SINGLE_QUOTE && !isDoubleQuoted && isSingleQuoted) {
isSingleQuoted = false;
} else if (character == Marker.DOUBLE_QUOTE && !isDoubleQuoted && !isSingleQuoted) {
isDoubleQuoted = true;
} else if (character == Marker.DOUBLE_QUOTE && isDoubleQuoted && !isSingleQuoted) {
isDoubleQuoted = false;
} else if (isSingleQuoted || isDoubleQuoted) {
continue;
} else if (roundBracketLevel > 0 && !withinNotPseudoClass) {
// noop
} else if (character == Marker.OPEN_ROUND_BRACKET) {
roundBracketLevel++;
} else if (character == Marker.CLOSE_ROUND_BRACKET && roundBracketLevel == 1) {
roundBracketLevel--;
withinNotPseudoClass = false;
} else if (character == Marker.CLOSE_ROUND_BRACKET) {
roundBracketLevel--;
} else if (character == Selector.HASH) {
result[0]++;
} else if (character == Selector.DOT || character == Marker.OPEN_SQUARE_BRACKET) {
result[1]++;
} else if (character == Selector.PSEUDO && !wasPseudoClass && !isNotPseudoClass(selector, i)) {
result[1]++;
withinNotPseudoClass = false;
} else if (character == Selector.PSEUDO) {
withinNotPseudoClass = true;
} else if ((i === 0 || couldIntroduceNewTypeSelector) && LETTER_PATTERN.test(character)) {
result[2]++;
}
isEscaped = character == Marker.BACK_SLASH;
wasPseudoClass = character == Selector.PSEUDO;
couldIntroduceNewTypeSelector = !isEscaped && SEPARATOR_PATTERN.test(character);
}
return result;
}
function isNotPseudoClass(selector, index) {
return selector.indexOf(NOT_PREFIX, index) === index;
}
module.exports = specificity;

View File

@@ -0,0 +1 @@
{"name":"chalk","version":"4.1.2","files":{"license":{"checkedAt":1678883669272,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"source/index.js":{"checkedAt":1678883669371,"integrity":"sha512-bm9r2fxPG5vpwd8qhm2+xozcBBaaQsfaRmf+TNabaGR70nVy1d2PvBOeyaRgbr2v/ZsjrEObbA6fNtDQIaWM8w==","mode":420,"size":6075},"source/templates.js":{"checkedAt":1678883669371,"integrity":"sha512-2bH4hJ4J6+DMzgmVmTzPf4PuOPlBTO+/DvNNyuIdQvMVzK1AMqQO6913UXZeM4Qj/n+05bhbcdXeu+O7qJTZ+A==","mode":420,"size":3367},"source/util.js":{"checkedAt":1678883669371,"integrity":"sha512-niRJz5zRCOfRW8aMV7RatOy7hLjsfWwuejZ6R6pO3mXHxKpXCzmUC+dyFMZmcwwfpSUKx2dANFtuDu+FLM+KUg==","mode":420,"size":1035},"package.json":{"checkedAt":1678883669373,"integrity":"sha512-WzNe32BW9XwmHMA+sSKXmeZNK78mIPORgv/nyH21s5Ynxx+38Qoi8ERatmzFttbwZokgnepepPYmXvrZkxBKxw==","mode":420,"size":1197},"readme.md":{"checkedAt":1678883669373,"integrity":"sha512-zQJiTcxzwk7gtIixeYpg3iA9NIfWsPdahpvQvJhF8w6QepDucn0fZP/DxoJPst/JAPE0BqtjyCfacZurw0B8ng==","mode":420,"size":13365},"index.d.ts":{"checkedAt":1678883669374,"integrity":"sha512-Un4AkHM1HBNbSz0E13bQHd3RNvh8Q4BLb/9Jn/fWPw1pj80+4F/jN0gMIOSWd2dlzIrmT1wESetR0MjopAoukQ==","mode":420,"size":8899}}}

View File

@@ -0,0 +1,51 @@
{
"Commands:": "Команды:",
"Options:": "Опции:",
"Examples:": "Примеры:",
"boolean": "булевый тип",
"count": "подсчет",
"string": "строковой тип",
"number": "число",
"array": "массив",
"required": "необходимо",
"default": "по умолчанию",
"default:": "по умолчанию:",
"choices:": "возможности:",
"aliases:": "алиасы:",
"generated-value": "генерированное значение",
"Not enough non-option arguments: got %s, need at least %s": {
"one": "Недостаточно неопционных аргументов: есть %s, нужно как минимум %s",
"other": "Недостаточно неопционных аргументов: есть %s, нужно как минимум %s"
},
"Too many non-option arguments: got %s, maximum of %s": {
"one": "Слишком много неопционных аргументов: есть %s, максимум допустимо %s",
"other": "Слишком много неопционных аргументов: есть %s, максимум допустимо %s"
},
"Missing argument value: %s": {
"one": "Не хватает значения аргумента: %s",
"other": "Не хватает значений аргументов: %s"
},
"Missing required argument: %s": {
"one": "Не хватает необходимого аргумента: %s",
"other": "Не хватает необходимых аргументов: %s"
},
"Unknown argument: %s": {
"one": "Неизвестный аргумент: %s",
"other": "Неизвестные аргументы: %s"
},
"Invalid values:": "Недействительные значения:",
"Argument: %s, Given: %s, Choices: %s": "Аргумент: %s, Данное значение: %s, Возможности: %s",
"Argument check failed: %s": "Проверка аргументов не удалась: %s",
"Implications failed:": "Данный аргумент требует следующий дополнительный аргумент:",
"Not enough arguments following: %s": "Недостаточно следующих аргументов: %s",
"Invalid JSON config file: %s": "Недействительный файл конфигурации JSON: %s",
"Path to JSON config file": "Путь к файлу конфигурации JSON",
"Show help": "Показать помощь",
"Show version number": "Показать номер версии",
"Did you mean %s?": "Вы имели в виду %s?",
"Arguments %s and %s are mutually exclusive": "Аргументы %s и %s являются взаимоисключающими",
"Positionals:": "Позиционные аргументы:",
"command": "команда",
"deprecated": "устар.",
"deprecated: %s": "устар.: %s"
}

View File

@@ -0,0 +1,64 @@
# typed-array-length <sup>[![Version Badge][2]][1]</sup>
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][11]][1]
Robustly get the length of a Typed Array, or `false` if it is not a Typed Array. Works cross-realm, in every engine, even if the `length` property is overridden.
## Example
```js
var typedArrayLength = require('typed-array-length');
var assert = require('assert');
assert.equal(false, typedArrayLength(undefined));
assert.equal(false, typedArrayLength(null));
assert.equal(false, typedArrayLength(false));
assert.equal(false, typedArrayLength(true));
assert.equal(false, typedArrayLength([]));
assert.equal(false, typedArrayLength({}));
assert.equal(false, typedArrayLength(/a/g));
assert.equal(false, typedArrayLength(new RegExp('a', 'g')));
assert.equal(false, typedArrayLength(new Date()));
assert.equal(false, typedArrayLength(42));
assert.equal(false, typedArrayLength(NaN));
assert.equal(false, typedArrayLength(Infinity));
assert.equal(false, typedArrayLength(new Number(42)));
assert.equal(false, typedArrayLength('foo'));
assert.equal(false, typedArrayLength(Object('foo')));
assert.equal(false, typedArrayLength(function () {}));
assert.equal(false, typedArrayLength(function* () {}));
assert.equal(false, typedArrayLength(x => x * x));
assert.equal(false, typedArrayLength([]));
assert.equal(1, typedArrayLength(new Int8Array(1)));
assert.equal(2, typedArrayLength(new Uint8Array(2)));
assert.equal(3, typedArrayLength(new Uint8ClampedArray(3)));
assert.equal(4, typedArrayLength(new Int16Array(4)));
assert.equal(5, typedArrayLength(new Uint16Array(5)));
assert.equal(6, typedArrayLength(new Int32Array(6)));
assert.equal(7, typedArrayLength(new Uint32Array(7)));
assert.equal(8, typedArrayLength(new Float32Array(8)));
assert.equal(9, typedArrayLength(new Float64Array(9)));
assert.equal(10, typedArrayLength(new BigInt64Array(10)));
assert.equal(11, typedArrayLength(new BigUint64Array(11)));
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[1]: https://npmjs.org/package/typed-array-length
[2]: https://versionbadg.es/inspect-js/typed-array-length.svg
[5]: https://david-dm.org/inspect-js/typed-array-length.svg
[6]: https://david-dm.org/inspect-js/typed-array-length
[7]: https://david-dm.org/inspect-js/typed-array-length/dev-status.svg
[8]: https://david-dm.org/inspect-js/typed-array-length#info=devDependencies
[11]: https://nodei.co/npm/typed-array-length.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/typed-array-length.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/typed-array-length.svg
[downloads-url]: http://npm-stat.com/charts.html?package=typed-array-length

View File

@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isBoolean;
var _assertString = _interopRequireDefault(require("./util/assertString"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var defaultOptions = {
loose: false
};
var strictBooleans = ['true', 'false', '1', '0'];
var looseBooleans = [].concat(strictBooleans, ['yes', 'no']);
function isBoolean(str) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
(0, _assertString.default)(str);
if (options.loose) {
return looseBooleans.includes(str.toLowerCase());
}
return strictBooleans.includes(str);
}
module.exports = exports.default;
module.exports.default = exports.default;

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"1":"J D E F A B","16":"CC"},B:{"1":"C K L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","16":"DC tB EC FC"},D:{"1":"2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC","16":"0 1 I v J D E F A B C K L G M N O w g x y z"},E:{"1":"J D E F A B C K L G IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","16":"I v HC zB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","16":"F PC","132":"B C QC RC SC qB AC TC rB"},G:{"1":"E XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","16":"zB UC BC VC WC"},H:{"1":"oC"},I:{"1":"tB I f rC sC BC tC uC","16":"pC qC"},J:{"1":"D A"},K:{"1":"h","132":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"257":"A B"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"AD BD"}},B:1,C:"readonly attribute of input and textarea elements"};

View File

@@ -0,0 +1 @@
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-messageformat/src/core.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,KAAK,EAAE,oBAAoB,EAAC,MAAM,oCAAoC,CAAA;AAE9E,OAAO,EAEL,UAAU,EACV,OAAO,EAEP,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EAElB,MAAM,cAAc,CAAA;AAsCrB,MAAM,WAAW,OAAO;IACtB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAwCD,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAwB;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAa;IAC5C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IACvC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAC5C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAI9B;gBAEC,OAAO,EAAE,MAAM,GAAG,oBAAoB,EAAE,EACxC,OAAO,GAAE,MAAM,GAAG,MAAM,EAAoC,EAC5D,eAAe,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAClC,IAAI,CAAC,EAAE,OAAO;IAkChB,MAAM,yJAyBL;IACD,aAAa,6IAWV;IACH,eAAe;;MAEb;IACF,MAAM,+BAAiB;IACvB,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAsB;IAE1D,MAAM,KAAK,aAAa,WAOvB;IACD,MAAM,CAAC,aAAa,YAAa,MAAM,GAAG,MAAM,EAAE,KAAG,KAAK,MAAM,CAO/D;IACD,MAAM,CAAC,OAAO,EAAE,OAAO,KAAK,GAAG,SAAS,CAAQ;IAIhD,MAAM,CAAC,OAAO,EAAE,OAAO,CAmEtB;CACF"}

View File

@@ -0,0 +1,73 @@
"use strict";
function arrayMove(src, srcIndex, dst, dstIndex, len) {
for (var j = 0; j < len; ++j) {
dst[j + dstIndex] = src[j + srcIndex];
src[j + srcIndex] = void 0;
}
}
function Queue(capacity) {
this._capacity = capacity;
this._length = 0;
this._front = 0;
}
Queue.prototype._willBeOverCapacity = function (size) {
return this._capacity < size;
};
Queue.prototype._pushOne = function (arg) {
var length = this.length();
this._checkCapacity(length + 1);
var i = (this._front + length) & (this._capacity - 1);
this[i] = arg;
this._length = length + 1;
};
Queue.prototype.push = function (fn, receiver, arg) {
var length = this.length() + 3;
if (this._willBeOverCapacity(length)) {
this._pushOne(fn);
this._pushOne(receiver);
this._pushOne(arg);
return;
}
var j = this._front + length - 3;
this._checkCapacity(length);
var wrapMask = this._capacity - 1;
this[(j + 0) & wrapMask] = fn;
this[(j + 1) & wrapMask] = receiver;
this[(j + 2) & wrapMask] = arg;
this._length = length;
};
Queue.prototype.shift = function () {
var front = this._front,
ret = this[front];
this[front] = undefined;
this._front = (front + 1) & (this._capacity - 1);
this._length--;
return ret;
};
Queue.prototype.length = function () {
return this._length;
};
Queue.prototype._checkCapacity = function (size) {
if (this._capacity < size) {
this._resizeTo(this._capacity << 1);
}
};
Queue.prototype._resizeTo = function (capacity) {
var oldCapacity = this._capacity;
this._capacity = capacity;
var front = this._front;
var length = this._length;
var moveItemsCount = (front + length) & (oldCapacity - 1);
arrayMove(this, 0, this, oldCapacity, moveItemsCount);
};
module.exports = Queue;

View File

@@ -0,0 +1,21 @@
/// <reference types="node" />
import net from 'net';
import tls from 'tls';
import { Url } from 'url';
import { AgentOptions } from 'agent-base';
import _HttpProxyAgent from './agent';
declare function createHttpProxyAgent(opts: string | createHttpProxyAgent.HttpProxyAgentOptions): _HttpProxyAgent;
declare namespace createHttpProxyAgent {
interface BaseHttpProxyAgentOptions {
secureProxy?: boolean;
host?: string | null;
path?: string | null;
port?: string | number | null;
}
export interface HttpProxyAgentOptions extends AgentOptions, BaseHttpProxyAgentOptions, Partial<Omit<Url & net.NetConnectOpts & tls.ConnectionOptions, keyof BaseHttpProxyAgentOptions>> {
}
export type HttpProxyAgent = _HttpProxyAgent;
export const HttpProxyAgent: typeof _HttpProxyAgent;
export {};
}
export = createHttpProxyAgent;

View File

@@ -0,0 +1,59 @@
import type {RequiredKeysOf} from './required-keys-of';
/**
Creates a type that represents `true` or `false` depending on whether the given type has any required fields.
This is useful when you want to create an API whose behavior depends on the presence or absence of required fields.
@example
```
import type {HasRequiredKeys} from 'type-fest';
type GeneratorOptions<Template extends object> = {
prop1: number;
prop2: string;
} & (HasRequiredKeys<Template> extends true
? {template: Template}
: {template?: Template});
interface Template1 {
optionalSubParam?: string;
}
interface Template2 {
requiredSubParam: string;
}
type Options1 = GeneratorOptions<Template1>;
type Options2 = GeneratorOptions<Template2>;
const optA: Options1 = {
prop1: 0,
prop2: 'hi'
};
const optB: Options1 = {
prop1: 0,
prop2: 'hi',
template: {}
};
const optC: Options1 = {
prop1: 0,
prop2: 'hi',
template: {
optionalSubParam: 'optional value'
}
};
const optD: Options2 = {
prop1: 0,
prop2: 'hi',
template: {
requiredSubParam: 'required value'
}
};
```
@category Utilities
*/
export type HasRequiredKeys<BaseType extends object> = RequiredKeysOf<BaseType> extends never ? false : true;

View File

@@ -0,0 +1,2 @@
if(typeof cptable === 'undefined') cptable = {};
cptable[775] = (function(){ var d = "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ ", D = [], e = {}; for(var i=0;i!=d.length;++i) { if(d.charCodeAt(i) !== 0xFFFD) e[d.charAt(i)] = i; D[i] = d.charAt(i); } return {"enc": e, "dec": D }; })();

View File

@@ -0,0 +1,66 @@
import { __values } from "tslib";
import { Subject } from '../Subject';
import { Subscription } from '../Subscription';
import { operate } from '../util/lift';
import { innerFrom } from '../observable/innerFrom';
import { createOperatorSubscriber } from './OperatorSubscriber';
import { noop } from '../util/noop';
import { arrRemove } from '../util/arrRemove';
export function windowToggle(openings, closingSelector) {
return operate(function (source, subscriber) {
var windows = [];
var handleError = function (err) {
while (0 < windows.length) {
windows.shift().error(err);
}
subscriber.error(err);
};
innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, function (openValue) {
var window = new Subject();
windows.push(window);
var closingSubscription = new Subscription();
var closeWindow = function () {
arrRemove(windows, window);
window.complete();
closingSubscription.unsubscribe();
};
var closingNotifier;
try {
closingNotifier = innerFrom(closingSelector(openValue));
}
catch (err) {
handleError(err);
return;
}
subscriber.next(window.asObservable());
closingSubscription.add(closingNotifier.subscribe(createOperatorSubscriber(subscriber, closeWindow, noop, handleError)));
}, noop));
source.subscribe(createOperatorSubscriber(subscriber, function (value) {
var e_1, _a;
var windowsCopy = windows.slice();
try {
for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) {
var window_1 = windowsCopy_1_1.value;
window_1.next(value);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return)) _a.call(windowsCopy_1);
}
finally { if (e_1) throw e_1.error; }
}
}, function () {
while (0 < windows.length) {
windows.shift().complete();
}
subscriber.complete();
}, handleError, function () {
while (0 < windows.length) {
windows.shift().unsubscribe();
}
}));
});
}
//# sourceMappingURL=windowToggle.js.map

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.map = void 0;
var lift_1 = require("../util/lift");
var OperatorSubscriber_1 = require("./OperatorSubscriber");
function map(project, thisArg) {
return lift_1.operate(function (source, subscriber) {
var index = 0;
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
subscriber.next(project.call(thisArg, value, index++));
}));
});
}
exports.map = map;
//# sourceMappingURL=map.js.map

View File

@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('drop', require('../drop'));
func.placeholder = require('./placeholder');
module.exports = func;

View File

@@ -0,0 +1,26 @@
Copyright (c) 2012, Artur Adib <arturadib@gmail.com>
All rights reserved.
You may use this project under the terms of the New BSD license as follows:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Artur Adib nor the
names of the contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL ARTUR ADIB BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,264 @@
'use strict';
const EventEmitter = require('events');
const JSONB = require('json-buffer');
const loadStore = options => {
const adapters = {
redis: '@keyv/redis',
rediss: '@keyv/redis',
mongodb: '@keyv/mongo',
mongo: '@keyv/mongo',
sqlite: '@keyv/sqlite',
postgresql: '@keyv/postgres',
postgres: '@keyv/postgres',
mysql: '@keyv/mysql',
etcd: '@keyv/etcd',
offline: '@keyv/offline',
tiered: '@keyv/tiered',
};
if (options.adapter || options.uri) {
const adapter = options.adapter || /^[^:+]*/.exec(options.uri)[0];
return new (require(adapters[adapter]))(options);
}
return new Map();
};
const iterableAdapters = [
'sqlite',
'postgres',
'mysql',
'mongo',
'redis',
'tiered',
];
class Keyv extends EventEmitter {
constructor(uri, {emitErrors = true, ...options} = {}) {
super();
this.opts = {
namespace: 'keyv',
serialize: JSONB.stringify,
deserialize: JSONB.parse,
...((typeof uri === 'string') ? {uri} : uri),
...options,
};
if (!this.opts.store) {
const adapterOptions = {...this.opts};
this.opts.store = loadStore(adapterOptions);
}
if (this.opts.compression) {
const compression = this.opts.compression;
this.opts.serialize = compression.serialize.bind(compression);
this.opts.deserialize = compression.deserialize.bind(compression);
}
if (typeof this.opts.store.on === 'function' && emitErrors) {
this.opts.store.on('error', error => this.emit('error', error));
}
this.opts.store.namespace = this.opts.namespace;
const generateIterator = iterator => async function * () {
for await (const [key, raw] of typeof iterator === 'function'
? iterator(this.opts.store.namespace)
: iterator) {
const data = this.opts.deserialize(raw);
if (this.opts.store.namespace && !key.includes(this.opts.store.namespace)) {
continue;
}
if (typeof data.expires === 'number' && Date.now() > data.expires) {
this.delete(key);
continue;
}
yield [this._getKeyUnprefix(key), data.value];
}
};
// Attach iterators
if (typeof this.opts.store[Symbol.iterator] === 'function' && this.opts.store instanceof Map) {
this.iterator = generateIterator(this.opts.store);
} else if (typeof this.opts.store.iterator === 'function' && this.opts.store.opts
&& this._checkIterableAdaptar()) {
this.iterator = generateIterator(this.opts.store.iterator.bind(this.opts.store));
}
}
_checkIterableAdaptar() {
return iterableAdapters.includes(this.opts.store.opts.dialect)
|| iterableAdapters.findIndex(element => this.opts.store.opts.url.includes(element)) >= 0;
}
_getKeyPrefix(key) {
return `${this.opts.namespace}:${key}`;
}
_getKeyPrefixArray(keys) {
return keys.map(key => `${this.opts.namespace}:${key}`);
}
_getKeyUnprefix(key) {
return key
.split(':')
.splice(1)
.join(':');
}
get(key, options) {
const {store} = this.opts;
const isArray = Array.isArray(key);
const keyPrefixed = isArray ? this._getKeyPrefixArray(key) : this._getKeyPrefix(key);
if (isArray && store.getMany === undefined) {
const promises = [];
for (const key of keyPrefixed) {
promises.push(Promise.resolve()
.then(() => store.get(key))
.then(data => (typeof data === 'string') ? this.opts.deserialize(data) : (this.opts.compression ? this.opts.deserialize(data) : data))
.then(data => {
if (data === undefined || data === null) {
return undefined;
}
if (typeof data.expires === 'number' && Date.now() > data.expires) {
return this.delete(key).then(() => undefined);
}
return (options && options.raw) ? data : data.value;
}),
);
}
return Promise.allSettled(promises)
.then(values => {
const data = [];
for (const value of values) {
data.push(value.value);
}
return data;
});
}
return Promise.resolve()
.then(() => isArray ? store.getMany(keyPrefixed) : store.get(keyPrefixed))
.then(data => (typeof data === 'string') ? this.opts.deserialize(data) : (this.opts.compression ? this.opts.deserialize(data) : data))
.then(data => {
if (data === undefined || data === null) {
return undefined;
}
if (isArray) {
const result = [];
for (let row of data) {
if ((typeof row === 'string')) {
row = this.opts.deserialize(row);
}
if (row === undefined || row === null) {
result.push(undefined);
continue;
}
if (typeof row.expires === 'number' && Date.now() > row.expires) {
this.delete(key).then(() => undefined);
result.push(undefined);
} else {
result.push((options && options.raw) ? row : row.value);
}
}
return result;
}
if (typeof data.expires === 'number' && Date.now() > data.expires) {
return this.delete(key).then(() => undefined);
}
return (options && options.raw) ? data : data.value;
});
}
set(key, value, ttl) {
const keyPrefixed = this._getKeyPrefix(key);
if (typeof ttl === 'undefined') {
ttl = this.opts.ttl;
}
if (ttl === 0) {
ttl = undefined;
}
const {store} = this.opts;
return Promise.resolve()
.then(() => {
const expires = (typeof ttl === 'number') ? (Date.now() + ttl) : null;
if (typeof value === 'symbol') {
this.emit('error', 'symbol cannot be serialized');
}
value = {value, expires};
return this.opts.serialize(value);
})
.then(value => store.set(keyPrefixed, value, ttl))
.then(() => true);
}
delete(key) {
const {store} = this.opts;
if (Array.isArray(key)) {
const keyPrefixed = this._getKeyPrefixArray(key);
if (store.deleteMany === undefined) {
const promises = [];
for (const key of keyPrefixed) {
promises.push(store.delete(key));
}
return Promise.allSettled(promises)
.then(values => values.every(x => x.value === true));
}
return Promise.resolve()
.then(() => store.deleteMany(keyPrefixed));
}
const keyPrefixed = this._getKeyPrefix(key);
return Promise.resolve()
.then(() => store.delete(keyPrefixed));
}
clear() {
const {store} = this.opts;
return Promise.resolve()
.then(() => store.clear());
}
has(key) {
const keyPrefixed = this._getKeyPrefix(key);
const {store} = this.opts;
return Promise.resolve()
.then(async () => {
if (typeof store.has === 'function') {
return store.has(keyPrefixed);
}
const value = await store.get(keyPrefixed);
return value !== undefined;
});
}
disconnect() {
const {store} = this.opts;
if (typeof store.disconnect === 'function') {
return store.disconnect();
}
}
}
module.exports = Keyv;

View File

@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/has-tostringtag
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

View File

@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.argsArgArrayOrObject = void 0;
var isArray = Array.isArray;
var getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys;
function argsArgArrayOrObject(args) {
if (args.length === 1) {
var first_1 = args[0];
if (isArray(first_1)) {
return { args: first_1, keys: null };
}
if (isPOJO(first_1)) {
var keys = getKeys(first_1);
return {
args: keys.map(function (key) { return first_1[key]; }),
keys: keys,
};
}
}
return { args: args, keys: null };
}
exports.argsArgArrayOrObject = argsArgArrayOrObject;
function isPOJO(obj) {
return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;
}
//# sourceMappingURL=argsArgArrayOrObject.js.map

View File

@@ -0,0 +1,81 @@
# detective
find all calls to `require()` by walking the AST
[![build status](https://secure.travis-ci.org/browserify/detective.png)](http://travis-ci.org/browserify/detective)
# example
## strings
strings_src.js:
``` js
var a = require('a');
var b = require('b');
var c = require('c');
```
strings.js:
``` js
var detective = require('detective');
var fs = require('fs');
var src = fs.readFileSync(__dirname + '/strings_src.js');
var requires = detective(src);
console.dir(requires);
```
output:
```
$ node examples/strings.js
[ 'a', 'b', 'c' ]
```
# methods
``` js
var detective = require('detective');
```
## detective(src, opts)
Give some source body `src`, return an array of all the `require()` calls with
string arguments.
The options parameter `opts` is passed along to `detective.find()`.
## var found = detective.find(src, opts)
Give some source body `src`, return `found` with:
* `found.strings` - an array of each string found in a `require()`
* `found.expressions` - an array of each stringified expression found in a
`require()` call
* `found.nodes` (when `opts.nodes === true`) - an array of AST nodes for each
argument found in a `require()` call
Optionally:
* `opts.word` - specify a different function name instead of `"require"`
* `opts.nodes` - when `true`, populate `found.nodes`
* `opts.isRequire(node)` - a function returning whether an AST `CallExpression`
node is a require call
* `opts.parse` - supply options directly to
[acorn](https://npmjs.org/package/acorn) with some support for esprima-style
options `range` and `loc`
* `opts.ecmaVersion` - default: 9
# install
With [npm](https://npmjs.org) do:
```
npm install detective
```
# license
MIT

View File

@@ -0,0 +1,14 @@
"use strict";
var callable = require("../../object/valid-callable")
, aFrom = require("../../array/from")
, defineLength = require("../_define-length")
, apply = Function.prototype.apply;
module.exports = function (/* …args*/) {
var fn = callable(this), args = aFrom(arguments);
return defineLength(function () {
return apply.call(fn, this, args.concat(aFrom(arguments)));
}, fn.length - args.length);
};

View File

@@ -0,0 +1,38 @@
var arrayPush = require('./_arrayPush'),
isFlattenable = require('./_isFlattenable');
/**
* The base implementation of `_.flatten` with support for restricting flattening.
*
* @private
* @param {Array} array The array to flatten.
* @param {number} depth The maximum recursion depth.
* @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
* @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
* @param {Array} [result=[]] The initial result value.
* @returns {Array} Returns the new flattened array.
*/
function baseFlatten(array, depth, predicate, isStrict, result) {
var index = -1,
length = array.length;
predicate || (predicate = isFlattenable);
result || (result = []);
while (++index < length) {
var value = array[index];
if (depth > 0 && predicate(value)) {
if (depth > 1) {
// Recursively flatten arrays (susceptible to call stack limits).
baseFlatten(value, depth - 1, predicate, isStrict, result);
} else {
arrayPush(result, value);
}
} else if (!isStrict) {
result[result.length] = value;
}
}
return result;
}
module.exports = baseFlatten;

View File

@@ -0,0 +1 @@
{"version":3,"file":"isObservable.js","sourceRoot":"","sources":["../../../../src/internal/util/isObservable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,MAAM,UAAU,YAAY,CAAC,GAAQ;IAGnC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,YAAY,UAAU,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC"}

View File

@@ -0,0 +1,38 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var Call = require('./Call');
var Get = require('./Get');
var IsCallable = require('./IsCallable');
var Type = require('./Type');
var inspect = require('object-inspect');
// https://262.ecma-international.org/8.0/#sec-ordinarytoprimitive
module.exports = function OrdinaryToPrimitive(O, hint) {
if (Type(O) !== 'Object') {
throw new $TypeError('Assertion failed: Type(O) is not Object');
}
if (/* Type(hint) !== 'String' || */ hint !== 'string' && hint !== 'number') {
throw new $TypeError('Assertion failed: `hint` must be "string" or "number"');
}
var methodNames = hint === 'string' ? ['toString', 'valueOf'] : ['valueOf', 'toString'];
for (var i = 0; i < methodNames.length; i += 1) {
var name = methodNames[i];
var method = Get(O, name);
if (IsCallable(method)) {
var result = Call(method, O);
if (Type(result) !== 'Object') {
return result;
}
}
}
throw new $TypeError('No primitive value for ' + inspect(O));
};

View File

@@ -0,0 +1,389 @@
var canReorderSingle = require('./reorderable').canReorderSingle;
var extractProperties = require('./extract-properties');
var isMergeable = require('./is-mergeable');
var tidyRuleDuplicates = require('./tidy-rule-duplicates');
var Token = require('../../tokenizer/token');
var cloneArray = require('../../utils/clone-array');
var serializeBody = require('../../writer/one-time').body;
var serializeRules = require('../../writer/one-time').rules;
function naturalSorter(a, b) {
return a > b ? 1 : -1;
}
function cloneAndMergeSelectors(propertyA, propertyB) {
var cloned = cloneArray(propertyA);
cloned[5] = cloned[5].concat(propertyB[5]);
return cloned;
}
function restructure(tokens, context) {
var options = context.options;
var mergeablePseudoClasses = options.compatibility.selectors.mergeablePseudoClasses;
var mergeablePseudoElements = options.compatibility.selectors.mergeablePseudoElements;
var mergeLimit = options.compatibility.selectors.mergeLimit;
var multiplePseudoMerging = options.compatibility.selectors.multiplePseudoMerging;
var specificityCache = context.cache.specificity;
var movableTokens = {};
var movedProperties = [];
var multiPropertyMoveCache = {};
var movedToBeDropped = [];
var maxCombinationsLevel = 2;
var ID_JOIN_CHARACTER = '%';
function sendToMultiPropertyMoveCache(position, movedProperty, allFits) {
for (var i = allFits.length - 1; i >= 0; i--) {
var fit = allFits[i][0];
var id = addToCache(movedProperty, fit);
if (multiPropertyMoveCache[id].length > 1 && processMultiPropertyMove(position, multiPropertyMoveCache[id])) {
removeAllMatchingFromCache(id);
break;
}
}
}
function addToCache(movedProperty, fit) {
var id = cacheId(fit);
multiPropertyMoveCache[id] = multiPropertyMoveCache[id] || [];
multiPropertyMoveCache[id].push([movedProperty, fit]);
return id;
}
function removeAllMatchingFromCache(matchId) {
var matchSelectors = matchId.split(ID_JOIN_CHARACTER);
var forRemoval = [];
var i;
for (var id in multiPropertyMoveCache) {
var selectors = id.split(ID_JOIN_CHARACTER);
for (i = selectors.length - 1; i >= 0; i--) {
if (matchSelectors.indexOf(selectors[i]) > -1) {
forRemoval.push(id);
break;
}
}
}
for (i = forRemoval.length - 1; i >= 0; i--) {
delete multiPropertyMoveCache[forRemoval[i]];
}
}
function cacheId(cachedTokens) {
var id = [];
for (var i = 0, l = cachedTokens.length; i < l; i++) {
id.push(serializeRules(cachedTokens[i][1]));
}
return id.join(ID_JOIN_CHARACTER);
}
function tokensToMerge(sourceTokens) {
var uniqueTokensWithBody = [];
var mergeableTokens = [];
for (var i = sourceTokens.length - 1; i >= 0; i--) {
if (!isMergeable(serializeRules(sourceTokens[i][1]), mergeablePseudoClasses, mergeablePseudoElements, multiplePseudoMerging)) {
continue;
}
mergeableTokens.unshift(sourceTokens[i]);
if (sourceTokens[i][2].length > 0 && uniqueTokensWithBody.indexOf(sourceTokens[i]) == -1)
uniqueTokensWithBody.push(sourceTokens[i]);
}
return uniqueTokensWithBody.length > 1 ?
mergeableTokens :
[];
}
function shortenIfPossible(position, movedProperty) {
var name = movedProperty[0];
var value = movedProperty[1];
var key = movedProperty[4];
var valueSize = name.length + value.length + 1;
var allSelectors = [];
var qualifiedTokens = [];
var mergeableTokens = tokensToMerge(movableTokens[key]);
if (mergeableTokens.length < 2)
return;
var allFits = findAllFits(mergeableTokens, valueSize, 1);
var bestFit = allFits[0];
if (bestFit[1] > 0)
return sendToMultiPropertyMoveCache(position, movedProperty, allFits);
for (var i = bestFit[0].length - 1; i >=0; i--) {
allSelectors = bestFit[0][i][1].concat(allSelectors);
qualifiedTokens.unshift(bestFit[0][i]);
}
allSelectors = tidyRuleDuplicates(allSelectors);
dropAsNewTokenAt(position, [movedProperty], allSelectors, qualifiedTokens);
}
function fitSorter(fit1, fit2) {
return fit1[1] > fit2[1] ? 1 : (fit1[1] == fit2[1] ? 0 : -1);
}
function findAllFits(mergeableTokens, propertySize, propertiesCount) {
var combinations = allCombinations(mergeableTokens, propertySize, propertiesCount, maxCombinationsLevel - 1);
return combinations.sort(fitSorter);
}
function allCombinations(tokensVariant, propertySize, propertiesCount, level) {
var differenceVariants = [[tokensVariant, sizeDifference(tokensVariant, propertySize, propertiesCount)]];
if (tokensVariant.length > 2 && level > 0) {
for (var i = tokensVariant.length - 1; i >= 0; i--) {
var subVariant = Array.prototype.slice.call(tokensVariant, 0);
subVariant.splice(i, 1);
differenceVariants = differenceVariants.concat(allCombinations(subVariant, propertySize, propertiesCount, level - 1));
}
}
return differenceVariants;
}
function sizeDifference(tokensVariant, propertySize, propertiesCount) {
var allSelectorsSize = 0;
for (var i = tokensVariant.length - 1; i >= 0; i--) {
allSelectorsSize += tokensVariant[i][2].length > propertiesCount ? serializeRules(tokensVariant[i][1]).length : -1;
}
return allSelectorsSize - (tokensVariant.length - 1) * propertySize + 1;
}
function dropAsNewTokenAt(position, properties, allSelectors, mergeableTokens) {
var i, j, k, m;
var allProperties = [];
for (i = mergeableTokens.length - 1; i >= 0; i--) {
var mergeableToken = mergeableTokens[i];
for (j = mergeableToken[2].length - 1; j >= 0; j--) {
var mergeableProperty = mergeableToken[2][j];
for (k = 0, m = properties.length; k < m; k++) {
var property = properties[k];
var mergeablePropertyName = mergeableProperty[1][1];
var propertyName = property[0];
var propertyBody = property[4];
if (mergeablePropertyName == propertyName && serializeBody([mergeableProperty]) == propertyBody) {
mergeableToken[2].splice(j, 1);
break;
}
}
}
}
for (i = properties.length - 1; i >= 0; i--) {
allProperties.unshift(properties[i][3]);
}
var newToken = [Token.RULE, allSelectors, allProperties];
tokens.splice(position, 0, newToken);
}
function dropPropertiesAt(position, movedProperty) {
var key = movedProperty[4];
var toMove = movableTokens[key];
if (toMove && toMove.length > 1) {
if (!shortenMultiMovesIfPossible(position, movedProperty))
shortenIfPossible(position, movedProperty);
}
}
function shortenMultiMovesIfPossible(position, movedProperty) {
var candidates = [];
var propertiesAndMergableTokens = [];
var key = movedProperty[4];
var j, k;
var mergeableTokens = tokensToMerge(movableTokens[key]);
if (mergeableTokens.length < 2)
return;
movableLoop:
for (var value in movableTokens) {
var tokensList = movableTokens[value];
for (j = mergeableTokens.length - 1; j >= 0; j--) {
if (tokensList.indexOf(mergeableTokens[j]) == -1)
continue movableLoop;
}
candidates.push(value);
}
if (candidates.length < 2)
return false;
for (j = candidates.length - 1; j >= 0; j--) {
for (k = movedProperties.length - 1; k >= 0; k--) {
if (movedProperties[k][4] == candidates[j]) {
propertiesAndMergableTokens.unshift([movedProperties[k], mergeableTokens]);
break;
}
}
}
return processMultiPropertyMove(position, propertiesAndMergableTokens);
}
function processMultiPropertyMove(position, propertiesAndMergableTokens) {
var valueSize = 0;
var properties = [];
var property;
for (var i = propertiesAndMergableTokens.length - 1; i >= 0; i--) {
property = propertiesAndMergableTokens[i][0];
var fullValue = property[4];
valueSize += fullValue.length + (i > 0 ? 1 : 0);
properties.push(property);
}
var mergeableTokens = propertiesAndMergableTokens[0][1];
var bestFit = findAllFits(mergeableTokens, valueSize, properties.length)[0];
if (bestFit[1] > 0)
return false;
var allSelectors = [];
var qualifiedTokens = [];
for (i = bestFit[0].length - 1; i >= 0; i--) {
allSelectors = bestFit[0][i][1].concat(allSelectors);
qualifiedTokens.unshift(bestFit[0][i]);
}
allSelectors = tidyRuleDuplicates(allSelectors);
dropAsNewTokenAt(position, properties, allSelectors, qualifiedTokens);
for (i = properties.length - 1; i >= 0; i--) {
property = properties[i];
var index = movedProperties.indexOf(property);
delete movableTokens[property[4]];
if (index > -1 && movedToBeDropped.indexOf(index) == -1)
movedToBeDropped.push(index);
}
return true;
}
function boundToAnotherPropertyInCurrrentToken(property, movedProperty, token) {
var propertyName = property[0];
var movedPropertyName = movedProperty[0];
if (propertyName != movedPropertyName)
return false;
var key = movedProperty[4];
var toMove = movableTokens[key];
return toMove && toMove.indexOf(token) > -1;
}
for (var i = tokens.length - 1; i >= 0; i--) {
var token = tokens[i];
var isRule;
var j, k, m;
var samePropertyAt;
if (token[0] == Token.RULE) {
isRule = true;
} else if (token[0] == Token.NESTED_BLOCK) {
isRule = false;
} else {
continue;
}
// We cache movedProperties.length as it may change in the loop
var movedCount = movedProperties.length;
var properties = extractProperties(token);
movedToBeDropped = [];
var unmovableInCurrentToken = [];
for (j = properties.length - 1; j >= 0; j--) {
for (k = j - 1; k >= 0; k--) {
if (!canReorderSingle(properties[j], properties[k], specificityCache)) {
unmovableInCurrentToken.push(j);
break;
}
}
}
for (j = properties.length - 1; j >= 0; j--) {
var property = properties[j];
var movedSameProperty = false;
for (k = 0; k < movedCount; k++) {
var movedProperty = movedProperties[k];
if (movedToBeDropped.indexOf(k) == -1 && (!canReorderSingle(property, movedProperty, specificityCache) && !boundToAnotherPropertyInCurrrentToken(property, movedProperty, token) ||
movableTokens[movedProperty[4]] && movableTokens[movedProperty[4]].length === mergeLimit)) {
dropPropertiesAt(i + 1, movedProperty, token);
if (movedToBeDropped.indexOf(k) == -1) {
movedToBeDropped.push(k);
delete movableTokens[movedProperty[4]];
}
}
if (!movedSameProperty) {
movedSameProperty = property[0] == movedProperty[0] && property[1] == movedProperty[1];
if (movedSameProperty) {
samePropertyAt = k;
}
}
}
if (!isRule || unmovableInCurrentToken.indexOf(j) > -1)
continue;
var key = property[4];
if (movedSameProperty && movedProperties[samePropertyAt][5].length + property[5].length > mergeLimit) {
dropPropertiesAt(i + 1, movedProperties[samePropertyAt]);
movedProperties.splice(samePropertyAt, 1);
movableTokens[key] = [token];
movedSameProperty = false;
} else {
movableTokens[key] = movableTokens[key] || [];
movableTokens[key].push(token);
}
if (movedSameProperty) {
movedProperties[samePropertyAt] = cloneAndMergeSelectors(movedProperties[samePropertyAt], property);
} else {
movedProperties.push(property);
}
}
movedToBeDropped = movedToBeDropped.sort(naturalSorter);
for (j = 0, m = movedToBeDropped.length; j < m; j++) {
var dropAt = movedToBeDropped[j] - j;
movedProperties.splice(dropAt, 1);
}
}
var position = tokens[0] && tokens[0][0] == Token.AT_RULE && tokens[0][1].indexOf('@charset') === 0 ? 1 : 0;
for (; position < tokens.length - 1; position++) {
var isImportRule = tokens[position][0] === Token.AT_RULE && tokens[position][1].indexOf('@import') === 0;
var isComment = tokens[position][0] === Token.COMMENT;
if (!(isImportRule || isComment))
break;
}
for (i = 0; i < movedProperties.length; i++) {
dropPropertiesAt(position, movedProperties[i]);
}
}
module.exports = restructure;