new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible');
|
||||
var ToString = require('es-abstract/2022/ToString');
|
||||
var callBound = require('call-bind/callBound');
|
||||
var $replace = callBound('String.prototype.replace');
|
||||
|
||||
var mvsIsWS = (/^\s$/).test('\u180E');
|
||||
/* eslint-disable no-control-regex */
|
||||
var leftWhitespace = mvsIsWS
|
||||
? /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/
|
||||
: /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/;
|
||||
var rightWhitespace = mvsIsWS
|
||||
? /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/
|
||||
: /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;
|
||||
/* eslint-enable no-control-regex */
|
||||
|
||||
module.exports = function trim() {
|
||||
var S = ToString(RequireObjectCoercible(this));
|
||||
return $replace($replace(S, leftWhitespace, ''), rightWhitespace, '');
|
||||
};
|
||||
@@ -0,0 +1,46 @@
|
||||
import runtime from './handlebars.runtime';
|
||||
|
||||
// Compiler imports
|
||||
import AST from './handlebars/compiler/ast';
|
||||
import {
|
||||
parser as Parser,
|
||||
parse,
|
||||
parseWithoutProcessing
|
||||
} from './handlebars/compiler/base';
|
||||
import { Compiler, compile, precompile } from './handlebars/compiler/compiler';
|
||||
import JavaScriptCompiler from './handlebars/compiler/javascript-compiler';
|
||||
import Visitor from './handlebars/compiler/visitor';
|
||||
|
||||
import noConflict from './handlebars/no-conflict';
|
||||
|
||||
let _create = runtime.create;
|
||||
function create() {
|
||||
let hb = _create();
|
||||
|
||||
hb.compile = function(input, options) {
|
||||
return compile(input, options, hb);
|
||||
};
|
||||
hb.precompile = function(input, options) {
|
||||
return precompile(input, options, hb);
|
||||
};
|
||||
|
||||
hb.AST = AST;
|
||||
hb.Compiler = Compiler;
|
||||
hb.JavaScriptCompiler = JavaScriptCompiler;
|
||||
hb.Parser = Parser;
|
||||
hb.parse = parse;
|
||||
hb.parseWithoutProcessing = parseWithoutProcessing;
|
||||
|
||||
return hb;
|
||||
}
|
||||
|
||||
let inst = create();
|
||||
inst.create = create;
|
||||
|
||||
noConflict(inst);
|
||||
|
||||
inst.Visitor = Visitor;
|
||||
|
||||
inst['default'] = inst;
|
||||
|
||||
export default inst;
|
||||
@@ -0,0 +1,111 @@
|
||||
var baseToString = require('./_baseToString'),
|
||||
castSlice = require('./_castSlice'),
|
||||
hasUnicode = require('./_hasUnicode'),
|
||||
isObject = require('./isObject'),
|
||||
isRegExp = require('./isRegExp'),
|
||||
stringSize = require('./_stringSize'),
|
||||
stringToArray = require('./_stringToArray'),
|
||||
toInteger = require('./toInteger'),
|
||||
toString = require('./toString');
|
||||
|
||||
/** Used as default options for `_.truncate`. */
|
||||
var DEFAULT_TRUNC_LENGTH = 30,
|
||||
DEFAULT_TRUNC_OMISSION = '...';
|
||||
|
||||
/** Used to match `RegExp` flags from their coerced string values. */
|
||||
var reFlags = /\w*$/;
|
||||
|
||||
/**
|
||||
* Truncates `string` if it's longer than the given maximum string length.
|
||||
* The last characters of the truncated string are replaced with the omission
|
||||
* string which defaults to "...".
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to truncate.
|
||||
* @param {Object} [options={}] The options object.
|
||||
* @param {number} [options.length=30] The maximum string length.
|
||||
* @param {string} [options.omission='...'] The string to indicate text is omitted.
|
||||
* @param {RegExp|string} [options.separator] The separator pattern to truncate to.
|
||||
* @returns {string} Returns the truncated string.
|
||||
* @example
|
||||
*
|
||||
* _.truncate('hi-diddly-ho there, neighborino');
|
||||
* // => 'hi-diddly-ho there, neighbo...'
|
||||
*
|
||||
* _.truncate('hi-diddly-ho there, neighborino', {
|
||||
* 'length': 24,
|
||||
* 'separator': ' '
|
||||
* });
|
||||
* // => 'hi-diddly-ho there,...'
|
||||
*
|
||||
* _.truncate('hi-diddly-ho there, neighborino', {
|
||||
* 'length': 24,
|
||||
* 'separator': /,? +/
|
||||
* });
|
||||
* // => 'hi-diddly-ho there...'
|
||||
*
|
||||
* _.truncate('hi-diddly-ho there, neighborino', {
|
||||
* 'omission': ' [...]'
|
||||
* });
|
||||
* // => 'hi-diddly-ho there, neig [...]'
|
||||
*/
|
||||
function truncate(string, options) {
|
||||
var length = DEFAULT_TRUNC_LENGTH,
|
||||
omission = DEFAULT_TRUNC_OMISSION;
|
||||
|
||||
if (isObject(options)) {
|
||||
var separator = 'separator' in options ? options.separator : separator;
|
||||
length = 'length' in options ? toInteger(options.length) : length;
|
||||
omission = 'omission' in options ? baseToString(options.omission) : omission;
|
||||
}
|
||||
string = toString(string);
|
||||
|
||||
var strLength = string.length;
|
||||
if (hasUnicode(string)) {
|
||||
var strSymbols = stringToArray(string);
|
||||
strLength = strSymbols.length;
|
||||
}
|
||||
if (length >= strLength) {
|
||||
return string;
|
||||
}
|
||||
var end = length - stringSize(omission);
|
||||
if (end < 1) {
|
||||
return omission;
|
||||
}
|
||||
var result = strSymbols
|
||||
? castSlice(strSymbols, 0, end).join('')
|
||||
: string.slice(0, end);
|
||||
|
||||
if (separator === undefined) {
|
||||
return result + omission;
|
||||
}
|
||||
if (strSymbols) {
|
||||
end += (result.length - end);
|
||||
}
|
||||
if (isRegExp(separator)) {
|
||||
if (string.slice(end).search(separator)) {
|
||||
var match,
|
||||
substring = result;
|
||||
|
||||
if (!separator.global) {
|
||||
separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
|
||||
}
|
||||
separator.lastIndex = 0;
|
||||
while ((match = separator.exec(substring))) {
|
||||
var newEnd = match.index;
|
||||
}
|
||||
result = result.slice(0, newEnd === undefined ? end : newEnd);
|
||||
}
|
||||
} else if (string.indexOf(baseToString(separator), end) != end) {
|
||||
var index = result.lastIndexOf(separator);
|
||||
if (index > -1) {
|
||||
result = result.slice(0, index);
|
||||
}
|
||||
}
|
||||
return result + omission;
|
||||
}
|
||||
|
||||
module.exports = truncate;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"raceWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/raceWith.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4B5C,MAAM,UAAU,QAAQ;IACtB,sBAA6C;SAA7C,UAA6C,EAA7C,qBAA6C,EAA7C,IAA6C;QAA7C,iCAA6C;;IAE7C,OAAO,CAAC,YAAY,CAAC,MAAM;QACzB,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,QAAQ,gBAAiB,MAAM,UAAK,YAAY,GAAE,CAAC,UAAU,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;AACT,CAAC"}
|
||||
@@ -0,0 +1,58 @@
|
||||
module.exports = {
|
||||
'castArray': require('./castArray'),
|
||||
'clone': require('./clone'),
|
||||
'cloneDeep': require('./cloneDeep'),
|
||||
'cloneDeepWith': require('./cloneDeepWith'),
|
||||
'cloneWith': require('./cloneWith'),
|
||||
'conformsTo': require('./conformsTo'),
|
||||
'eq': require('./eq'),
|
||||
'gt': require('./gt'),
|
||||
'gte': require('./gte'),
|
||||
'isArguments': require('./isArguments'),
|
||||
'isArray': require('./isArray'),
|
||||
'isArrayBuffer': require('./isArrayBuffer'),
|
||||
'isArrayLike': require('./isArrayLike'),
|
||||
'isArrayLikeObject': require('./isArrayLikeObject'),
|
||||
'isBoolean': require('./isBoolean'),
|
||||
'isBuffer': require('./isBuffer'),
|
||||
'isDate': require('./isDate'),
|
||||
'isElement': require('./isElement'),
|
||||
'isEmpty': require('./isEmpty'),
|
||||
'isEqual': require('./isEqual'),
|
||||
'isEqualWith': require('./isEqualWith'),
|
||||
'isError': require('./isError'),
|
||||
'isFinite': require('./isFinite'),
|
||||
'isFunction': require('./isFunction'),
|
||||
'isInteger': require('./isInteger'),
|
||||
'isLength': require('./isLength'),
|
||||
'isMap': require('./isMap'),
|
||||
'isMatch': require('./isMatch'),
|
||||
'isMatchWith': require('./isMatchWith'),
|
||||
'isNaN': require('./isNaN'),
|
||||
'isNative': require('./isNative'),
|
||||
'isNil': require('./isNil'),
|
||||
'isNull': require('./isNull'),
|
||||
'isNumber': require('./isNumber'),
|
||||
'isObject': require('./isObject'),
|
||||
'isObjectLike': require('./isObjectLike'),
|
||||
'isPlainObject': require('./isPlainObject'),
|
||||
'isRegExp': require('./isRegExp'),
|
||||
'isSafeInteger': require('./isSafeInteger'),
|
||||
'isSet': require('./isSet'),
|
||||
'isString': require('./isString'),
|
||||
'isSymbol': require('./isSymbol'),
|
||||
'isTypedArray': require('./isTypedArray'),
|
||||
'isUndefined': require('./isUndefined'),
|
||||
'isWeakMap': require('./isWeakMap'),
|
||||
'isWeakSet': require('./isWeakSet'),
|
||||
'lt': require('./lt'),
|
||||
'lte': require('./lte'),
|
||||
'toArray': require('./toArray'),
|
||||
'toFinite': require('./toFinite'),
|
||||
'toInteger': require('./toInteger'),
|
||||
'toLength': require('./toLength'),
|
||||
'toNumber': require('./toNumber'),
|
||||
'toPlainObject': require('./toPlainObject'),
|
||||
'toSafeInteger': require('./toSafeInteger'),
|
||||
'toString': require('./toString')
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
var baseRest = require('./_baseRest'),
|
||||
createWrap = require('./_createWrap'),
|
||||
getHolder = require('./_getHolder'),
|
||||
replaceHolders = require('./_replaceHolders');
|
||||
|
||||
/** Used to compose bitmasks for function metadata. */
|
||||
var WRAP_BIND_FLAG = 1,
|
||||
WRAP_PARTIAL_FLAG = 32;
|
||||
|
||||
/**
|
||||
* Creates a function that invokes `func` with the `this` binding of `thisArg`
|
||||
* and `partials` prepended to the arguments it receives.
|
||||
*
|
||||
* The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
|
||||
* may be used as a placeholder for partially applied arguments.
|
||||
*
|
||||
* **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
|
||||
* property of bound functions.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Function
|
||||
* @param {Function} func The function to bind.
|
||||
* @param {*} thisArg The `this` binding of `func`.
|
||||
* @param {...*} [partials] The arguments to be partially applied.
|
||||
* @returns {Function} Returns the new bound function.
|
||||
* @example
|
||||
*
|
||||
* function greet(greeting, punctuation) {
|
||||
* return greeting + ' ' + this.user + punctuation;
|
||||
* }
|
||||
*
|
||||
* var object = { 'user': 'fred' };
|
||||
*
|
||||
* var bound = _.bind(greet, object, 'hi');
|
||||
* bound('!');
|
||||
* // => 'hi fred!'
|
||||
*
|
||||
* // Bound with placeholders.
|
||||
* var bound = _.bind(greet, object, _, '!');
|
||||
* bound('hi');
|
||||
* // => 'hi fred!'
|
||||
*/
|
||||
var bind = baseRest(function(func, thisArg, partials) {
|
||||
var bitmask = WRAP_BIND_FLAG;
|
||||
if (partials.length) {
|
||||
var holders = replaceHolders(partials, getHolder(bind));
|
||||
bitmask |= WRAP_PARTIAL_FLAG;
|
||||
}
|
||||
return createWrap(func, bitmask, thisArg, partials, holders);
|
||||
});
|
||||
|
||||
// Assign default placeholders.
|
||||
bind.placeholder = {};
|
||||
|
||||
module.exports = bind;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../../src/internal/operators/concat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAY1C,MAAM,UAAU,MAAM,CAAO,GAAG,IAAW;IACzC,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* https://tc39.es/ecma402/#sec-iswellformedunitidentifier
|
||||
* @param unit
|
||||
*/
|
||||
export declare function IsWellFormedUnitIdentifier(unit: string): boolean;
|
||||
//# sourceMappingURL=IsWellFormedUnitIdentifier.d.ts.map
|
||||
@@ -0,0 +1,30 @@
|
||||
'use strict'
|
||||
|
||||
var fib = require('./fib')
|
||||
var max = 100000000
|
||||
var start = Date.now()
|
||||
|
||||
// create a funcion with the typical error
|
||||
// pattern, that delegates the heavy load
|
||||
// to something else
|
||||
function createNoCodeFunction () {
|
||||
/* eslint no-constant-condition: "off" */
|
||||
var num = 100
|
||||
|
||||
;(function () {
|
||||
if (null) {
|
||||
// do nothing
|
||||
} else {
|
||||
fib(num)
|
||||
}
|
||||
})()
|
||||
}
|
||||
|
||||
for (var i = 0; i < max; i++) {
|
||||
createNoCodeFunction()
|
||||
}
|
||||
|
||||
var time = Date.now() - start
|
||||
console.log('Total time', time)
|
||||
console.log('Total iterations', max)
|
||||
console.log('Iteration/s', max / time * 1000)
|
||||
@@ -0,0 +1,11 @@
|
||||
// Use node-qunit to run the tests.
|
||||
|
||||
var qunit = require("qunit");
|
||||
|
||||
qunit.run({
|
||||
code: {
|
||||
namespace: "xregexp",
|
||||
path: __dirname + "/../xregexp-all.js"
|
||||
},
|
||||
tests: __dirname + "/tests.js"
|
||||
});
|
||||
@@ -0,0 +1,129 @@
|
||||
import type { NumberFormatOptions } from '@formatjs/ecma402-abstract';
|
||||
import { NumberSkeletonToken } from '@formatjs/icu-skeleton-parser';
|
||||
export interface ExtendedNumberFormatOptions extends NumberFormatOptions {
|
||||
scale?: number;
|
||||
}
|
||||
export declare enum TYPE {
|
||||
/**
|
||||
* Raw text
|
||||
*/
|
||||
literal = 0,
|
||||
/**
|
||||
* Variable w/o any format, e.g `var` in `this is a {var}`
|
||||
*/
|
||||
argument = 1,
|
||||
/**
|
||||
* Variable w/ number format
|
||||
*/
|
||||
number = 2,
|
||||
/**
|
||||
* Variable w/ date format
|
||||
*/
|
||||
date = 3,
|
||||
/**
|
||||
* Variable w/ time format
|
||||
*/
|
||||
time = 4,
|
||||
/**
|
||||
* Variable w/ select format
|
||||
*/
|
||||
select = 5,
|
||||
/**
|
||||
* Variable w/ plural format
|
||||
*/
|
||||
plural = 6,
|
||||
/**
|
||||
* Only possible within plural argument.
|
||||
* This is the `#` symbol that will be substituted with the count.
|
||||
*/
|
||||
pound = 7,
|
||||
/**
|
||||
* XML-like tag
|
||||
*/
|
||||
tag = 8
|
||||
}
|
||||
export declare enum SKELETON_TYPE {
|
||||
number = 0,
|
||||
dateTime = 1
|
||||
}
|
||||
export interface LocationDetails {
|
||||
offset: number;
|
||||
line: number;
|
||||
column: number;
|
||||
}
|
||||
export interface Location {
|
||||
start: LocationDetails;
|
||||
end: LocationDetails;
|
||||
}
|
||||
export interface BaseElement<T extends TYPE> {
|
||||
type: T;
|
||||
value: string;
|
||||
location?: Location;
|
||||
}
|
||||
export declare type LiteralElement = BaseElement<TYPE.literal>;
|
||||
export declare type ArgumentElement = BaseElement<TYPE.argument>;
|
||||
export interface TagElement {
|
||||
type: TYPE.tag;
|
||||
value: string;
|
||||
children: MessageFormatElement[];
|
||||
location?: Location;
|
||||
}
|
||||
export interface SimpleFormatElement<T extends TYPE, S extends Skeleton> extends BaseElement<T> {
|
||||
style?: string | S | null;
|
||||
}
|
||||
export declare type NumberElement = SimpleFormatElement<TYPE.number, NumberSkeleton>;
|
||||
export declare type DateElement = SimpleFormatElement<TYPE.date, DateTimeSkeleton>;
|
||||
export declare type TimeElement = SimpleFormatElement<TYPE.time, DateTimeSkeleton>;
|
||||
export interface SelectOption {
|
||||
id: string;
|
||||
value: MessageFormatElement[];
|
||||
location?: Location;
|
||||
}
|
||||
export declare type ValidPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other' | string;
|
||||
export interface PluralOrSelectOption {
|
||||
value: MessageFormatElement[];
|
||||
location?: Location;
|
||||
}
|
||||
export interface SelectElement extends BaseElement<TYPE.select> {
|
||||
options: Record<string, PluralOrSelectOption>;
|
||||
}
|
||||
export interface PluralElement extends BaseElement<TYPE.plural> {
|
||||
options: Record<ValidPluralRule, PluralOrSelectOption>;
|
||||
offset: number;
|
||||
pluralType: Intl.PluralRulesOptions['type'];
|
||||
}
|
||||
export interface PoundElement {
|
||||
type: TYPE.pound;
|
||||
location?: Location;
|
||||
}
|
||||
export declare type MessageFormatElement = ArgumentElement | DateElement | LiteralElement | NumberElement | PluralElement | PoundElement | SelectElement | TagElement | TimeElement;
|
||||
export interface NumberSkeleton {
|
||||
type: SKELETON_TYPE.number;
|
||||
tokens: NumberSkeletonToken[];
|
||||
location?: Location;
|
||||
parsedOptions: ExtendedNumberFormatOptions;
|
||||
}
|
||||
export interface DateTimeSkeleton {
|
||||
type: SKELETON_TYPE.dateTime;
|
||||
pattern: string;
|
||||
location?: Location;
|
||||
parsedOptions: Intl.DateTimeFormatOptions;
|
||||
}
|
||||
export declare type Skeleton = NumberSkeleton | DateTimeSkeleton;
|
||||
/**
|
||||
* Type Guards
|
||||
*/
|
||||
export declare function isLiteralElement(el: MessageFormatElement): el is LiteralElement;
|
||||
export declare function isArgumentElement(el: MessageFormatElement): el is ArgumentElement;
|
||||
export declare function isNumberElement(el: MessageFormatElement): el is NumberElement;
|
||||
export declare function isDateElement(el: MessageFormatElement): el is DateElement;
|
||||
export declare function isTimeElement(el: MessageFormatElement): el is TimeElement;
|
||||
export declare function isSelectElement(el: MessageFormatElement): el is SelectElement;
|
||||
export declare function isPluralElement(el: MessageFormatElement): el is PluralElement;
|
||||
export declare function isPoundElement(el: MessageFormatElement): el is PoundElement;
|
||||
export declare function isTagElement(el: MessageFormatElement): el is TagElement;
|
||||
export declare function isNumberSkeleton(el: NumberElement['style'] | Skeleton): el is NumberSkeleton;
|
||||
export declare function isDateTimeSkeleton(el?: DateElement['style'] | TimeElement['style'] | Skeleton): el is DateTimeSkeleton;
|
||||
export declare function createLiteralElement(value: string): LiteralElement;
|
||||
export declare function createNumberElement(value: string, style?: string | null): NumberElement;
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var str = "foo";
|
||||
|
||||
module.exports = function () {
|
||||
if (typeof str.repeat !== "function") return false;
|
||||
return str.repeat(2) === "foofoo";
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"subscribeToArray.js","sourceRoot":"","sources":["../../../../src/internal/util/subscribeToArray.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAI,KAAmB,IAAK,OAAA,UAAC,UAAyB;IACpF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3B;IACD,UAAU,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC,EAL2D,CAK3D,CAAC"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"VirtualTimeScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/VirtualTimeScheduler.ts"],"names":[],"mappings":"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"}
|
||||
@@ -0,0 +1,7 @@
|
||||
export default function isInteractive({stream = process.stdout} = {}) {
|
||||
return Boolean(
|
||||
stream && stream.isTTY &&
|
||||
process.env.TERM !== 'dumb' &&
|
||||
!('CI' in process.env)
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import {SplitIncludingDelimiters} from './delimiter-case';
|
||||
import {SnakeCase} from './snake-case';
|
||||
import {Includes} from './includes';
|
||||
|
||||
/**
|
||||
Returns a boolean for whether the string is screaming snake case.
|
||||
*/
|
||||
type IsScreamingSnakeCase<Value extends string> = Value extends Uppercase<Value>
|
||||
? Includes<SplitIncludingDelimiters<Lowercase<Value>, '_'>, '_'> extends true
|
||||
? true
|
||||
: false
|
||||
: false;
|
||||
|
||||
/**
|
||||
Convert a string literal to screaming-snake-case.
|
||||
|
||||
This can be useful when, for example, converting a camel-cased object property to a screaming-snake-cased SQL column name.
|
||||
|
||||
@example
|
||||
```
|
||||
import {ScreamingSnakeCase} from 'type-fest';
|
||||
|
||||
const someVariable: ScreamingSnakeCase<'fooBar'> = 'FOO_BAR';
|
||||
```
|
||||
|
||||
@category Template Literals
|
||||
*/
|
||||
export type ScreamingSnakeCase<Value> = Value extends string
|
||||
? IsScreamingSnakeCase<Value> extends true
|
||||
? Value
|
||||
: Uppercase<SnakeCase<Value>>
|
||||
: Value;
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
if (!require("./is-implemented")()) {
|
||||
Object.defineProperty(String, "fromCodePoint", {
|
||||
value: require("./shim"),
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dematerialize.js","sourceRoot":"","sources":["../../../../src/internal/operators/dematerialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAkDhE,MAAM,UAAU,aAAa;IAC3B,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,UAAC,YAAY,IAAK,OAAA,mBAAmB,CAAC,YAAY,EAAE,UAAU,CAAC,EAA7C,CAA6C,CAAC,CAAC,CAAC;IAC1H,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"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","2":"C K L G M N O"},C:{"1":"u f H xB yB","2":"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 EC FC"},D:{"1":"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":"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"},E:{"2":"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":"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 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":"0 1 2 3 4 5 F B C G M N O w g x y z PC QC RC SC qB AC TC rB"},G:{"2":"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:{"2":"oC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"2":"H"},N:{"2":"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:{"2":"AD BD"}},B:5,C:"Web MIDI API"};
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "error-ex",
|
||||
"description": "Easy error subclassing and stack customization",
|
||||
"version": "1.3.2",
|
||||
"maintainers": [
|
||||
"Josh Junon <i.am.qix@gmail.com> (github.com/qix-)",
|
||||
"Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)"
|
||||
],
|
||||
"keywords": [
|
||||
"error",
|
||||
"errors",
|
||||
"extend",
|
||||
"extending",
|
||||
"extension",
|
||||
"subclass",
|
||||
"stack",
|
||||
"custom"
|
||||
],
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"pretest": "xo",
|
||||
"test": "mocha --compilers coffee:coffee-script/register"
|
||||
},
|
||||
"xo": {
|
||||
"rules": {
|
||||
"operator-linebreak": [
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"repository": "qix-/node-error-ex",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"devDependencies": {
|
||||
"coffee-script": "^1.9.3",
|
||||
"coveralls": "^2.11.2",
|
||||
"istanbul": "^0.3.17",
|
||||
"mocha": "^2.2.5",
|
||||
"should": "^7.0.1",
|
||||
"xo": "^0.7.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-arrayish": "^0.2.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
var resolveException = require("../lib/resolve-exception")
|
||||
, is = require("./is");
|
||||
|
||||
module.exports = function (value /*, options*/) {
|
||||
if (is(value)) return value;
|
||||
var options = arguments[1];
|
||||
var errorMessage =
|
||||
options && options.name ? "Expected a map for %n, received %v" : "%v is not a map";
|
||||
return resolveException(value, errorMessage, options);
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function () {
|
||||
var log2 = Math.log2;
|
||||
if (typeof log2 !== "function") return false;
|
||||
return log2(3).toFixed(15) === "1.584962500721156";
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
import assertString from './util/assertString';
|
||||
export var fullWidth = /[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;
|
||||
export default function isFullWidth(str) {
|
||||
assertString(str);
|
||||
return fullWidth.test(str);
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformer = void 0;
|
||||
const postcss_1 = __importDefault(require("postcss"));
|
||||
async function process({ options: { plugins = [], parser, syntax } = {}, content, filename, sourceMap, }) {
|
||||
const { css, map, messages } = await postcss_1.default(plugins).process(content, {
|
||||
from: filename,
|
||||
map: { prev: sourceMap, inline: false },
|
||||
parser,
|
||||
syntax,
|
||||
});
|
||||
const dependencies = messages.reduce((acc, msg) => {
|
||||
// istanbul ignore if
|
||||
if (msg.type !== 'dependency')
|
||||
return acc;
|
||||
acc.push(msg.file);
|
||||
return acc;
|
||||
}, []);
|
||||
return { code: css, map, dependencies };
|
||||
}
|
||||
async function getConfigFromFile(options) {
|
||||
try {
|
||||
/** If not, look for a postcss config file */
|
||||
const { default: postcssLoadConfig } = await Promise.resolve().then(() => __importStar(require(`postcss-load-config`)));
|
||||
const loadedConfig = await postcssLoadConfig(options, options === null || options === void 0 ? void 0 : options.configFilePath);
|
||||
return {
|
||||
error: null,
|
||||
config: {
|
||||
plugins: loadedConfig.plugins,
|
||||
// `postcss-load-config` puts all other props in a `options` object
|
||||
...loadedConfig.options,
|
||||
},
|
||||
};
|
||||
}
|
||||
catch (e) {
|
||||
return {
|
||||
config: null,
|
||||
error: e,
|
||||
};
|
||||
}
|
||||
}
|
||||
/** Adapted from https://github.com/TehShrike/svelte-preprocess-postcss */
|
||||
const transformer = async ({ content, filename, options = {}, map, }) => {
|
||||
let fileConfig;
|
||||
if (!options.plugins) {
|
||||
fileConfig = await getConfigFromFile(options);
|
||||
options = { ...options, ...fileConfig.config };
|
||||
}
|
||||
if (options.plugins || options.syntax || options.parser) {
|
||||
return process({ options, content, filename, sourceMap: map });
|
||||
}
|
||||
if (fileConfig.error !== null) {
|
||||
console.error(`[svelte-preprocess] PostCSS configuration was not passed or is invalid. If you expect to load it from a file make sure to install "postcss-load-config" and try again.\n\n${fileConfig.error}`);
|
||||
}
|
||||
return { code: content, map, dependencies: [] };
|
||||
};
|
||||
exports.transformer = transformer;
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,26 @@
|
||||
Copyright (c) 2013, Dominic Tarr
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
2. 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.
|
||||
|
||||
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 THE COPYRIGHT OWNER OR CONTRIBUTORS 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.
|
||||
|
||||
The views and conclusions contained in the software and documentation are those
|
||||
of the authors and should not be interpreted as representing official policies,
|
||||
either expressed or implied, of the FreeBSD Project.
|
||||
@@ -0,0 +1,39 @@
|
||||
var baseMerge = require('./_baseMerge'),
|
||||
createAssigner = require('./_createAssigner');
|
||||
|
||||
/**
|
||||
* This method is like `_.merge` except that it accepts `customizer` which
|
||||
* is invoked to produce the merged values of the destination and source
|
||||
* properties. If `customizer` returns `undefined`, merging is handled by the
|
||||
* method instead. The `customizer` is invoked with six arguments:
|
||||
* (objValue, srcValue, key, object, source, stack).
|
||||
*
|
||||
* **Note:** This method mutates `object`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Object
|
||||
* @param {Object} object The destination object.
|
||||
* @param {...Object} sources The source objects.
|
||||
* @param {Function} customizer The function to customize assigned values.
|
||||
* @returns {Object} Returns `object`.
|
||||
* @example
|
||||
*
|
||||
* function customizer(objValue, srcValue) {
|
||||
* if (_.isArray(objValue)) {
|
||||
* return objValue.concat(srcValue);
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* var object = { 'a': [1], 'b': [2] };
|
||||
* var other = { 'a': [3], 'b': [4] };
|
||||
*
|
||||
* _.mergeWith(object, other, customizer);
|
||||
* // => { 'a': [1, 3], 'b': [2, 4] }
|
||||
*/
|
||||
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
|
||||
baseMerge(object, source, srcIndex, customizer);
|
||||
});
|
||||
|
||||
module.exports = mergeWith;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
import { EnsureFunction, EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure';
|
||||
|
||||
declare function ensureConstructor(value: any, options?: EnsureBaseOptions): EnsureFunction | object;
|
||||
declare function ensureConstructor(value: any, options?: EnsureBaseOptions & EnsureIsOptional): EnsureFunction | object | null;
|
||||
declare function ensureConstructor(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault<EnsureFunction | object>): EnsureFunction | object;
|
||||
|
||||
export default ensureConstructor;
|
||||
@@ -0,0 +1,33 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $DateUTC = GetIntrinsic('%Date.UTC%');
|
||||
|
||||
var $isFinite = require('../helpers/isFinite');
|
||||
|
||||
var DateFromTime = require('./DateFromTime');
|
||||
var Day = require('./Day');
|
||||
var floor = require('./floor');
|
||||
var modulo = require('./modulo');
|
||||
var MonthFromTime = require('./MonthFromTime');
|
||||
var ToInteger = require('./ToInteger');
|
||||
var YearFromTime = require('./YearFromTime');
|
||||
|
||||
// https://262.ecma-international.org/5.1/#sec-15.9.1.12
|
||||
|
||||
module.exports = function MakeDay(year, month, date) {
|
||||
if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) {
|
||||
return NaN;
|
||||
}
|
||||
var y = ToInteger(year);
|
||||
var m = ToInteger(month);
|
||||
var dt = ToInteger(date);
|
||||
var ym = y + floor(m / 12);
|
||||
var mn = modulo(m, 12);
|
||||
var t = $DateUTC(ym, mn, 1);
|
||||
if (YearFromTime(t) !== ym || MonthFromTime(t) !== mn || DateFromTime(t) !== 1) {
|
||||
return NaN;
|
||||
}
|
||||
return Day(t) + dt - 1;
|
||||
};
|
||||
@@ -0,0 +1,47 @@
|
||||
# is-arguments <sup>[![Version Badge][2]][1]</sup>
|
||||
|
||||
[![github actions][actions-image]][actions-url]
|
||||
[![coverage][codecov-image]][codecov-url]
|
||||
[![dependency status][5]][6]
|
||||
[![dev dependency status][7]][8]
|
||||
[![License][license-image]][license-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
[![npm badge][11]][1]
|
||||
|
||||
Is this an arguments object? It's a harder question than you think.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var isArguments = require('is-arguments');
|
||||
var assert = require('assert');
|
||||
|
||||
assert.equal(isArguments({}), false);
|
||||
assert.equal(isArguments([]), false);
|
||||
(function () {
|
||||
assert.equal(isArguments(arguments), true);
|
||||
}())
|
||||
```
|
||||
|
||||
## Caveats
|
||||
If you have modified an actual `arguments` object by giving it a `Symbol.toStringTag` property, then this package will return `false`.
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[1]: https://npmjs.org/package/is-arguments
|
||||
[2]: https://versionbadg.es/inspect-js/is-arguments.svg
|
||||
[5]: https://david-dm.org/inspect-js/is-arguments.svg
|
||||
[6]: https://david-dm.org/inspect-js/is-arguments
|
||||
[7]: https://david-dm.org/inspect-js/is-arguments/dev-status.svg
|
||||
[8]: https://david-dm.org/inspect-js/is-arguments#info=devDependencies
|
||||
[11]: https://nodei.co/npm/is-arguments.png?downloads=true&stars=true
|
||||
[license-image]: https://img.shields.io/npm/l/is-arguments.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: https://img.shields.io/npm/dm/is-arguments.svg
|
||||
[downloads-url]: https://npm-stat.com/charts.html?package=is-arguments
|
||||
[codecov-image]: https://codecov.io/gh/inspect-js/is-arguments/branch/main/graphs/badge.svg
|
||||
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-arguments/
|
||||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-arguments
|
||||
[actions-url]: https://github.com/inspect-js/is-arguments/actions
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "camelcase",
|
||||
"version": "7.0.1",
|
||||
"description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/camelcase",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"types": "./index.d.ts",
|
||||
"engines": {
|
||||
"node": ">=14.16"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"camelcase",
|
||||
"camel-case",
|
||||
"camel",
|
||||
"case",
|
||||
"dash",
|
||||
"hyphen",
|
||||
"dot",
|
||||
"underscore",
|
||||
"separator",
|
||||
"string",
|
||||
"text",
|
||||
"convert",
|
||||
"pascalcase",
|
||||
"pascal-case"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^4.3.0",
|
||||
"tsd": "^0.20.0",
|
||||
"xo": "^0.49.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* A specialized version of `_.forEachRight` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array} Returns `array`.
|
||||
*/
|
||||
function arrayEachRight(array, iteratee) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
|
||||
while (length--) {
|
||||
if (iteratee(array[length], length, array) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
module.exports = arrayEachRight;
|
||||
@@ -0,0 +1,30 @@
|
||||
import Component from '../Component';
|
||||
import Node from './shared/Node';
|
||||
import Element from './Element';
|
||||
import Text from './Text';
|
||||
import Expression from './shared/Expression';
|
||||
import TemplateScope from './shared/TemplateScope';
|
||||
import { TemplateNode } from '../../interfaces';
|
||||
export default class Attribute extends Node {
|
||||
type: 'Attribute' | 'Spread';
|
||||
start: number;
|
||||
end: number;
|
||||
scope: TemplateScope;
|
||||
component: Component;
|
||||
parent: Element;
|
||||
name: string;
|
||||
is_spread: boolean;
|
||||
is_true: boolean;
|
||||
is_static: boolean;
|
||||
expression?: Expression;
|
||||
chunks: Array<Text | Expression>;
|
||||
dependencies: Set<string>;
|
||||
constructor(component: Component, parent: Node, scope: TemplateScope, info: TemplateNode);
|
||||
get_dependencies(): string[];
|
||||
get_value(block: any): import("estree").Property | import("estree").CatchClause | import("estree").ClassDeclaration | import("estree").ClassExpression | import("estree").ClassBody | import("estree").ArrayExpression | import("estree").ArrowFunctionExpression | import("estree").AssignmentExpression | import("estree").AwaitExpression | import("estree").BinaryExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").ChainExpression | import("estree").ConditionalExpression | import("estree").FunctionExpression | import("estree").Identifier | import("estree").ImportExpression | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").BigIntLiteral | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").MetaProperty | import("estree").ObjectExpression | import("estree").SequenceExpression | import("estree").TaggedTemplateExpression | import("estree").TemplateLiteral | import("estree").ThisExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").YieldExpression | import("estree").FunctionDeclaration | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").PrivateIdentifier | import("estree").Program | import("estree").PropertyDefinition | import("estree").SpreadElement | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").StaticBlock | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").Super | import("estree").SwitchCase | import("estree").TemplateElement | import("estree").VariableDeclarator | {
|
||||
type: string;
|
||||
value: string;
|
||||
};
|
||||
get_static_value(): string | true;
|
||||
should_cache(): boolean;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
var baseInRange = require('./_baseInRange'),
|
||||
toFinite = require('./toFinite'),
|
||||
toNumber = require('./toNumber');
|
||||
|
||||
/**
|
||||
* Checks if `n` is between `start` and up to, but not including, `end`. If
|
||||
* `end` is not specified, it's set to `start` with `start` then set to `0`.
|
||||
* If `start` is greater than `end` the params are swapped to support
|
||||
* negative ranges.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.3.0
|
||||
* @category Number
|
||||
* @param {number} number The number to check.
|
||||
* @param {number} [start=0] The start of the range.
|
||||
* @param {number} end The end of the range.
|
||||
* @returns {boolean} Returns `true` if `number` is in the range, else `false`.
|
||||
* @see _.range, _.rangeRight
|
||||
* @example
|
||||
*
|
||||
* _.inRange(3, 2, 4);
|
||||
* // => true
|
||||
*
|
||||
* _.inRange(4, 8);
|
||||
* // => true
|
||||
*
|
||||
* _.inRange(4, 2);
|
||||
* // => false
|
||||
*
|
||||
* _.inRange(2, 2);
|
||||
* // => false
|
||||
*
|
||||
* _.inRange(1.2, 2);
|
||||
* // => true
|
||||
*
|
||||
* _.inRange(5.2, 4);
|
||||
* // => false
|
||||
*
|
||||
* _.inRange(-3, -2, -6);
|
||||
* // => true
|
||||
*/
|
||||
function inRange(number, start, end) {
|
||||
start = toFinite(start);
|
||||
if (end === undefined) {
|
||||
end = start;
|
||||
start = 0;
|
||||
} else {
|
||||
end = toFinite(end);
|
||||
}
|
||||
number = toNumber(number);
|
||||
return baseInRange(number, start, end);
|
||||
}
|
||||
|
||||
module.exports = inRange;
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "js-xlsx",
|
||||
"homepage": "https://github.com/SheetJS/js-xlsx",
|
||||
"main": ["xlsx.js"],
|
||||
"ignore": [
|
||||
"bin",
|
||||
"bits",
|
||||
"misc",
|
||||
"**/.*"
|
||||
],
|
||||
"keywords": [
|
||||
"excel",
|
||||
"xls",
|
||||
"xml",
|
||||
"xlsx",
|
||||
"xlsm",
|
||||
"xlsb",
|
||||
"ods",
|
||||
"js-xls",
|
||||
"js-xlsx"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.dematerialize = void 0;
|
||||
var Notification_1 = require("../Notification");
|
||||
var lift_1 = require("../util/lift");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
function dematerialize() {
|
||||
return lift_1.operate(function (source, subscriber) {
|
||||
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (notification) { return Notification_1.observeNotification(notification, subscriber); }));
|
||||
});
|
||||
}
|
||||
exports.dematerialize = dematerialize;
|
||||
//# sourceMappingURL=dematerialize.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"ieee754","version":"1.2.1","files":{"README.md":{"checkedAt":1678883671269,"integrity":"sha512-dJ+o6WXzDQU2lwq364W7j+YIyNnCcayoCwzASCO9Kw+wEp8ouaor/oefqiS0feeYpcckh/KmJeg7/npqcWB+nA==","mode":420,"size":1651},"LICENSE":{"checkedAt":1678883671269,"integrity":"sha512-pGD4llPOz3J7bgVXzP8YhULGTGMfUjdnxXTRJ9GK7YpCgJyYvmT8z9dlhe2WRyJd+QEmO9YVWlEfUu3KU1nQow==","mode":420,"size":1465},"index.js":{"checkedAt":1678883671269,"integrity":"sha512-BNSSlQMyfxNIqd2tHkjpQjvrbm+tNf7VCtsJXWctFEPpBjGHnr3wKRDUF5Ru2+GcovkLWKuwtLGC3k1nt7Pl+Q==","mode":420,"size":2154},"package.json":{"checkedAt":1678883671269,"integrity":"sha512-NE1/IKLIFUDyrXeiURlyvj3sddwfphVwkdnt4bEnPhfK+sPzVIX9IvnJT+xvI17fpzH1haC8l6tUnpvEhLCkVw==","mode":420,"size":1194},"index.d.ts":{"checkedAt":1678883671270,"integrity":"sha512-7voCplgxsziB6ecFWU/CsDNC2qAtBV9eOltyaKGgikOlhoy+hb+xUE65KLVrbXmwVkZxAhO5I7OSxm8cArkETg==","mode":420,"size":332}}}
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
if (!require("./is-implemented")()) {
|
||||
Object.defineProperty(Array.prototype, "slice", {
|
||||
value: require("./shim"),
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F CC","292":"A B"},B:{"1":"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","2":"C K L G M N O"},C:{"1":"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","2":"DC tB EC FC","164":"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"},D:{"1":"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":"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"},E:{"1":"F A B C K L G LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E HC zB IC JC KC"},F:{"1":"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":"0 1 2 3 4 5 6 7 8 9 F B C G M N O w g x y z PC QC RC SC qB AC TC rB"},G:{"1":"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":"E zB UC BC VC WC XC YC"},H:{"2":"oC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"1":"vC"},P:{"1":"g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","2":"I"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"BD","164":"AD"}},B:5,C:":placeholder-shown CSS pseudo-class"};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var trimStart = require('../');
|
||||
var test = require('tape');
|
||||
|
||||
var runTests = require('./tests');
|
||||
|
||||
test('as a function', function (t) {
|
||||
t.test('bad array/this value', function (st) {
|
||||
st['throws'](function () { trimStart(undefined, 'a'); }, TypeError, 'undefined is not an object');
|
||||
st['throws'](function () { trimStart(null, 'a'); }, TypeError, 'null is not an object');
|
||||
st.end();
|
||||
});
|
||||
|
||||
runTests(trimStart, t);
|
||||
|
||||
t.end();
|
||||
});
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
'use strict';
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "registry-url",
|
||||
"version": "6.0.1",
|
||||
"description": "Get the set npm registry URL",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/registry-url",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"npm",
|
||||
"conf",
|
||||
"config",
|
||||
"npmconf",
|
||||
"registry",
|
||||
"url",
|
||||
"uri",
|
||||
"scope"
|
||||
],
|
||||
"dependencies": {
|
||||
"rc": "1.2.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^3.15.0",
|
||||
"tsd": "^0.14.0",
|
||||
"xo": "^0.38.2"
|
||||
},
|
||||
"ava": {
|
||||
"serial": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
const compareBuild = require('./compare-build')
|
||||
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
|
||||
module.exports = sort
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
var resolveException = require("../lib/resolve-exception")
|
||||
, coerce = require("./coerce");
|
||||
|
||||
module.exports = function (value/*, options*/) {
|
||||
var coerced = coerce(value);
|
||||
if (coerced !== null) return coerced;
|
||||
return resolveException(value, "%v is not a finite number", arguments[1]);
|
||||
};
|
||||
Reference in New Issue
Block a user