new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
||||
|
||||
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.
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"2":"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":"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:{"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 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":"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","33":"F"},F:{"2":"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":"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","33":"ZC aC"},H:{"2":"oC"},I:{"2":"tB I f pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"2":"A B C h qB AC rB"},L:{"2":"H"},M:{"2":"H"},N:{"2":"A B"},O:{"2":"vC"},P:{"2":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"2":"1B"},R:{"2":"9C"},S:{"2":"AD BD"}},B:5,C:"CSS filter() function"};
|
||||
@@ -0,0 +1,73 @@
|
||||
'use strict'
|
||||
|
||||
import { notStrictEqual, strictEqual } from 'assert'
|
||||
import cliui from 'cliui'
|
||||
import escalade from 'escalade/sync'
|
||||
import { inspect } from 'util'
|
||||
import { readFileSync } from 'fs'
|
||||
import { fileURLToPath } from 'url';
|
||||
import Parser from 'yargs-parser'
|
||||
import { basename, dirname, extname, relative, resolve } from 'path'
|
||||
import { getProcessArgvBin } from '../../build/lib/utils/process-argv.js'
|
||||
import { YError } from '../../build/lib/yerror.js'
|
||||
import y18n from 'y18n'
|
||||
|
||||
const REQUIRE_ERROR = 'require is not supported by ESM'
|
||||
const REQUIRE_DIRECTORY_ERROR = 'loading a directory of commands is not supported yet for ESM'
|
||||
|
||||
let __dirname;
|
||||
try {
|
||||
__dirname = fileURLToPath(import.meta.url);
|
||||
} catch (e) {
|
||||
__dirname = process.cwd();
|
||||
}
|
||||
const mainFilename = __dirname.substring(0, __dirname.lastIndexOf('node_modules'));
|
||||
|
||||
export default {
|
||||
assert: {
|
||||
notStrictEqual,
|
||||
strictEqual
|
||||
},
|
||||
cliui,
|
||||
findUp: escalade,
|
||||
getEnv: (key) => {
|
||||
return process.env[key]
|
||||
},
|
||||
inspect,
|
||||
getCallerFile: () => {
|
||||
throw new YError(REQUIRE_DIRECTORY_ERROR)
|
||||
},
|
||||
getProcessArgvBin,
|
||||
mainFilename: mainFilename || process.cwd(),
|
||||
Parser,
|
||||
path: {
|
||||
basename,
|
||||
dirname,
|
||||
extname,
|
||||
relative,
|
||||
resolve
|
||||
},
|
||||
process: {
|
||||
argv: () => process.argv,
|
||||
cwd: process.cwd,
|
||||
emitWarning: (warning, type) => process.emitWarning(warning, type),
|
||||
execPath: () => process.execPath,
|
||||
exit: process.exit,
|
||||
nextTick: process.nextTick,
|
||||
stdColumns: typeof process.stdout.columns !== 'undefined' ? process.stdout.columns : null
|
||||
},
|
||||
readFileSync,
|
||||
require: () => {
|
||||
throw new YError(REQUIRE_ERROR)
|
||||
},
|
||||
requireDirectory: () => {
|
||||
throw new YError(REQUIRE_DIRECTORY_ERROR)
|
||||
},
|
||||
stringWidth: (str) => {
|
||||
return [...str].length
|
||||
},
|
||||
y18n: y18n({
|
||||
directory: resolve(__dirname, '../../../locales'),
|
||||
updateFiles: false
|
||||
})
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.js","names":[],"sources":["../src/types.ts"],"sourcesContent":["import { Loader, LoaderSync, Options, OptionsSync } from './index';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type Config = any;\n\nexport type CosmiconfigResult = {\n config: Config;\n filepath: string;\n isEmpty?: boolean;\n} | null;\n\nexport interface InternalOptions {\n usePackagePropInConfigFiles?: boolean;\n metaConfigFilePath: string | null;\n}\n\n// These are the user options with defaults applied, plus internal options possibly inferred from meta config\nexport interface ExplorerOptions extends Required<Options>, InternalOptions {}\nexport interface ExplorerOptionsSync\n extends Required<OptionsSync>,\n InternalOptions {}\n\nexport type Cache = Map<string, CosmiconfigResult>;\n\n// An object value represents a config object.\n// null represents that the loader did not find anything relevant.\n// undefined represents that the loader found something relevant\n// but it was empty.\nexport type LoadedFileContent = Config | null | undefined;\n\nexport interface Loaders {\n [key: string]: Loader;\n}\n\nexport interface LoadersSync {\n [key: string]: LoaderSync;\n}\n"],"mappings":""}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/common/constants.ts"],"names":[],"mappings":";;;AAIA,MAAM,eAAe,GAAG,KAAK,CAAC;AA4M5B,0CAAe;AAxMjB,kBAAkB;AAClB,MAAM,MAAM,GAAG;IACb,mBAAmB,EAAE,wFAAwF;IAC7G,+BAA+B,EAAE,oGAAoG;IACrI,wBAAwB,EAAE,8FAA8F;IACxH,oCAAoC,EAAE,2CAA2C;IACjF,uCAAuC,EAAE,uFAAuF;IAChI,8BAA8B,EAAE,4CAA4C;IAC5E,gCAAgC,EAAE,8EAA8E;IAChH,sCAAsC,EAAE,2DAA2D;IACnG,wCAAwC,EAAE,oDAAoD;IAC9F,0CAA0C,EAAE,kKAAkK;IAC9M,gBAAgB,EAAE,mBAAmB;IACrC,YAAY,EAAE,eAAe;IAC7B,uBAAuB,EAAE,4BAA4B;IACrD,aAAa,EAAE,qDAAqD;IACpE,8BAA8B,EAAE,4CAA4C;IAC5E,6BAA6B,EAAE,kCAAkC;IACjE,uCAAuC,EAAE,6CAA6C;IACtF,0CAA0C,EAAE,iDAAiD;IAC7F,qCAAqC,EAAE,oDAAoD;IAC3F,yCAAyC,EAAE,mEAAmE;IAC9G,+CAA+C,EAAE,6EAA6E;IAC9H,4CAA4C,EAAE,yEAAyE;IACvH,0BAA0B,EAAE,8BAA8B;IAC1D,2BAA2B,EAAE,kDAAkD;IAC/E,mCAAmC,EAAE,kCAAkC;IACvE,uCAAuC,EAAE,sDAAsD;IAC/F,0CAA0C,EAAE,iDAAiD;CAC9F,CAAC;AA4KA,wBAAM;AA1KR,MAAM,2BAA2B,GAAG;IAClC,8BAA8B,EAAE,CAAC;IACjC,oCAAoC,EAAE,CAAC;IACvC,gDAAgD;IAChD,oBAAoB,EAAE,CAAC;IACvB,kBAAkB,EAAE,EAAE;IACtB,kBAAkB,EAAE,EAAE;IACtB,sBAAsB,EAAE,CAAC,cAAsB,EAAE,EAAE,CAAC,cAAc,GAAG,CAAC;IACtE,gDAAgD;IAChD,cAAc,EAAE,CAAC,EAAE,2BAA2B;CAC/C,CAAC;AAgLA,kEAA2B;AA5K7B,IAAK,YAIJ;AAJD,WAAK,YAAY;IACf,qDAAc,CAAA;IACd,+CAAW,CAAA;IACX,yDAAgB,CAAA;AAClB,CAAC,EAJI,YAAY,KAAZ,YAAY,QAIhB;AA0JC,oCAAY;AAxJd,IAAK,cAKJ;AALD,WAAK,cAAc;IACjB,0DAAc,CAAA;IACd,wDAAa,CAAA;IACb,4DAAe,CAAA;IACf,sEAAoB,CAAA;AACtB,CAAC,EALI,cAAc,KAAd,cAAc,QAKlB;AAoJC,wCAAc;AAlJhB,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,+CAAa,CAAA;IACb,+CAAa,CAAA;IACb,mDAAe,CAAA;AACjB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AA+IC,gCAAU;AA7IZ,MAAM,wBAAwB,GAAG,IAAI,CAAC;AA0JpC,4DAAwB;AAzJ1B,MAAM,sBAAsB,GAAG,IAAI,CAAC;AA0JlC,wDAAsB;AAxJxB,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAyJrC,8DAAyB;AAvJ3B,IAAK,cAUJ;AAVD,WAAK,cAAc;IACjB,yDAAc,CAAA;IACd,yDAAc,CAAA;IACd,+DAAiB,CAAA;IACjB,+EAAyB,CAAA;IACzB,yEAAsB,CAAA;IACtB,6EAAwB,CAAA;IACxB,+DAAiB,CAAA;IACjB,iFAA0B,CAAA;IAC1B,iFAA0B,CAAA;AAC5B,CAAC,EAVI,cAAc,KAAd,cAAc,QAUlB;AAgIC,wCAAc;AA9HhB,IAAK,cAIJ;AAJD,WAAK,cAAc;IACjB,mDAAW,CAAA;IACX,2DAAe,CAAA;IACf,mDAAW,CAAA;AACb,CAAC,EAJI,cAAc,KAAd,cAAc,QAIlB;AAyHC,wCAAc;AAvHhB,IAAK,gBAcJ;AAdD,WAAK,gBAAgB;IACnB,6DAAW,CAAA;IACX,mEAAc,CAAA;IACd,iEAAa,CAAA;IACb,uFAAwB,CAAA;IACxB,+GAAoC,CAAA;IACpC,mFAAsB,CAAA;IACtB,2GAAkC,CAAA;IAClC,mFAAsB,CAAA;IACtB,yFAAyB,CAAA;IACzB,iGAA6B,CAAA;IAC7B,sEAAgB,CAAA;IAChB,wEAAiB,CAAA;IACjB,0DAAU,CAAA;AACZ,CAAC,EAdI,gBAAgB,KAAhB,gBAAgB,QAcpB;AA2GC,4CAAgB"}
|
||||
@@ -0,0 +1,53 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
||||
|
||||
var SLOT = require('internal-slot');
|
||||
|
||||
// https://262.ecma-international.org/7.0/#sec-completion-record-specification-type
|
||||
|
||||
var CompletionRecord = function CompletionRecord(type, value) {
|
||||
if (!(this instanceof CompletionRecord)) {
|
||||
return new CompletionRecord(type, value);
|
||||
}
|
||||
if (type !== 'normal' && type !== 'break' && type !== 'continue' && type !== 'return' && type !== 'throw') {
|
||||
throw new $SyntaxError('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');
|
||||
}
|
||||
SLOT.set(this, '[[Type]]', type);
|
||||
SLOT.set(this, '[[Value]]', value);
|
||||
// [[Target]] slot?
|
||||
};
|
||||
|
||||
CompletionRecord.prototype.type = function Type() {
|
||||
return SLOT.get(this, '[[Type]]');
|
||||
};
|
||||
|
||||
CompletionRecord.prototype.value = function Value() {
|
||||
return SLOT.get(this, '[[Value]]');
|
||||
};
|
||||
|
||||
CompletionRecord.prototype['?'] = function ReturnIfAbrupt() {
|
||||
var type = SLOT.get(this, '[[Type]]');
|
||||
var value = SLOT.get(this, '[[Value]]');
|
||||
|
||||
if (type === 'normal') {
|
||||
return value;
|
||||
}
|
||||
if (type === 'throw') {
|
||||
throw value;
|
||||
}
|
||||
throw new $SyntaxError('Completion Record is not of type "normal" or "throw": other types not supported');
|
||||
};
|
||||
|
||||
CompletionRecord.prototype['!'] = function assert() {
|
||||
var type = SLOT.get(this, '[[Type]]');
|
||||
|
||||
if (type !== 'normal') {
|
||||
throw new $SyntaxError('Assertion failed: Completion Record is not of type "normal"');
|
||||
}
|
||||
return SLOT.get(this, '[[Value]]');
|
||||
};
|
||||
|
||||
module.exports = CompletionRecord;
|
||||
@@ -0,0 +1,46 @@
|
||||
declare const emptyObjectSymbol: unique symbol;
|
||||
|
||||
/**
|
||||
Represents a strictly empty plain object, the `{}` value.
|
||||
|
||||
When you annotate something as the type `{}`, it can be anything except `null` and `undefined`. This means that you cannot use `{}` to represent an empty plain object ([read more](https://stackoverflow.com/questions/47339869/typescript-empty-object-and-any-difference/52193484#52193484)).
|
||||
|
||||
@example
|
||||
```
|
||||
import type {EmptyObject} from 'type-fest';
|
||||
|
||||
// The following illustrates the problem with `{}`.
|
||||
const foo1: {} = {}; // Pass
|
||||
const foo2: {} = []; // Pass
|
||||
const foo3: {} = 42; // Pass
|
||||
const foo4: {} = {a: 1}; // Pass
|
||||
|
||||
// With `EmptyObject` only the first case is valid.
|
||||
const bar1: EmptyObject = {}; // Pass
|
||||
const bar2: EmptyObject = 42; // Fail
|
||||
const bar3: EmptyObject = []; // Fail
|
||||
const bar4: EmptyObject = {a: 1}; // Fail
|
||||
```
|
||||
|
||||
Unfortunately, `Record<string, never>`, `Record<keyof any, never>` and `Record<never, never>` do not work. See {@link https://github.com/sindresorhus/type-fest/issues/395 #395}.
|
||||
|
||||
@category Object
|
||||
*/
|
||||
export type EmptyObject = {[emptyObjectSymbol]?: never};
|
||||
|
||||
/**
|
||||
Returns a `boolean` for whether the type is strictly equal to an empty plain object, the `{}` value.
|
||||
|
||||
@example
|
||||
```
|
||||
import type {IsEmptyObject} from 'type-fest';
|
||||
|
||||
type Pass = IsEmptyObject<{}>; //=> true
|
||||
type Fail = IsEmptyObject<[]>; //=> false
|
||||
type Fail = IsEmptyObject<null>; //=> false
|
||||
```
|
||||
|
||||
@see EmptyObject
|
||||
@category Object
|
||||
*/
|
||||
export type IsEmptyObject<T> = T extends EmptyObject ? true : false;
|
||||
@@ -0,0 +1,44 @@
|
||||
import { GMT, Weekday } from './index';
|
||||
/**
|
||||
* Only the first parameter is mandatory. Either the second, the third, or both
|
||||
* may be left out.
|
||||
*
|
||||
* If only one parameter is present, the function yeilds a true value on the
|
||||
* weekday that the parameter represents. If the string "GMT" is specified as
|
||||
* a second parameter, times are taken to be in GMT, otherwise in local timezone.
|
||||
*
|
||||
* If both wd1 and wd1 are defined, the condition is true if the current weekday
|
||||
* is in between those two weekdays. Bounds are inclusive. If the "GMT" parameter
|
||||
* is specified, times are taken to be in GMT, otherwise the local timezone is
|
||||
* used.
|
||||
*
|
||||
* Valid "weekday strings" are:
|
||||
*
|
||||
* SUN MON TUE WED THU FRI SAT
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* ``` js
|
||||
* weekdayRange("MON", "FRI")
|
||||
* true Monday trhough Friday (local timezone).
|
||||
*
|
||||
* weekdayRange("MON", "FRI", "GMT")
|
||||
* same as above, but GMT timezone.
|
||||
*
|
||||
* weekdayRange("SAT")
|
||||
* true on Saturdays local time.
|
||||
*
|
||||
* weekdayRange("SAT", "GMT")
|
||||
* true on Saturdays GMT time.
|
||||
*
|
||||
* weekdayRange("FRI", "MON")
|
||||
* true Friday through Monday (note, order does matter!).
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* @param {String} wd1 one of the weekday strings.
|
||||
* @param {String} wd2 one of the weekday strings.
|
||||
* @param {String} gmt is either the string: GMT or is left out.
|
||||
* @return {Boolean}
|
||||
*/
|
||||
export default function weekdayRange(wd1: Weekday, wd2?: Weekday | GMT, gmt?: GMT): boolean;
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('bindKey', require('../bindKey'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
if (!require("./is-implemented")()) {
|
||||
Object.defineProperty(Array, "of", {
|
||||
value: require("./shim"),
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
@@ -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/unbox-primitive
|
||||
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']
|
||||
@@ -0,0 +1,2 @@
|
||||
if(typeof cptable === 'undefined') cptable = {};
|
||||
cptable[10006] = (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{|}~Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ<CE90>", 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 }; })();
|
||||
@@ -0,0 +1,43 @@
|
||||
"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;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tagInfo_1 = require("../modules/tagInfo");
|
||||
const utils_1 = require("../modules/utils");
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
/** Adapted from https://github.com/TehShrike/svelte-preprocess-postcss */
|
||||
exports.default = (options) => ({
|
||||
async style(svelteFile) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/postcss')));
|
||||
let { content, filename, attributes, dependencies } = await tagInfo_1.getTagInfo(svelteFile);
|
||||
content = prepareContent_1.prepareContent({ options, content });
|
||||
/** If manually passed a plugins array, use it as the postcss config */
|
||||
const transformed = await transformer({
|
||||
content,
|
||||
filename,
|
||||
attributes,
|
||||
options,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: utils_1.concat(dependencies, transformed.dependencies),
|
||||
};
|
||||
},
|
||||
});
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"isScheduler.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,CAE9D"}
|
||||
@@ -0,0 +1,10 @@
|
||||
import Node from './shared/Node';
|
||||
import Component from '../Component';
|
||||
import TemplateScope from './shared/TemplateScope';
|
||||
import { TemplateNode } from '../../interfaces';
|
||||
export default class Head extends Node {
|
||||
type: 'Head';
|
||||
children: any[];
|
||||
id: string;
|
||||
constructor(component: Component, parent: Node, scope: TemplateScope, info: TemplateNode);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ToRawFixed.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/NumberFormat/ToRawFixed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAC,MAAM,iBAAiB,CAAA;AAGrD;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,qBAAqB,CAyCvB"}
|
||||
@@ -0,0 +1,27 @@
|
||||
if (typeof Object.create === 'function') {
|
||||
// implementation from standard node.js 'util' module
|
||||
module.exports = function inherits(ctor, superCtor) {
|
||||
if (superCtor) {
|
||||
ctor.super_ = superCtor
|
||||
ctor.prototype = Object.create(superCtor.prototype, {
|
||||
constructor: {
|
||||
value: ctor,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
})
|
||||
}
|
||||
};
|
||||
} else {
|
||||
// old school shim for old browsers
|
||||
module.exports = function inherits(ctor, superCtor) {
|
||||
if (superCtor) {
|
||||
ctor.super_ = superCtor
|
||||
var TempCtor = function () {}
|
||||
TempCtor.prototype = superCtor.prototype
|
||||
ctor.prototype = new TempCtor()
|
||||
ctor.prototype.constructor = ctor
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.namedTypes = void 0;
|
||||
var namedTypes;
|
||||
(function (namedTypes) {
|
||||
})(namedTypes = exports.namedTypes || (exports.namedTypes = {}));
|
||||
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Feross Aboukhadijeh, and other contributors.
|
||||
|
||||
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.
|
||||
@@ -0,0 +1,4 @@
|
||||
import { SchedulerLike, ReadableStreamLike } from '../types';
|
||||
import { Observable } from '../Observable';
|
||||
export declare function scheduleReadableStreamLike<T>(input: ReadableStreamLike<T>, scheduler: SchedulerLike): Observable<T>;
|
||||
//# sourceMappingURL=scheduleReadableStreamLike.d.ts.map
|
||||
@@ -0,0 +1,35 @@
|
||||
import {Primitive} from './primitive';
|
||||
|
||||
/**
|
||||
Allows creating a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union.
|
||||
|
||||
Currently, when a union type of a primitive type is combined with literal types, TypeScript loses all information about the combined literals. Thus, when such type is used in an IDE with autocompletion, no suggestions are made for the declared literals.
|
||||
|
||||
This type is a workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). It will be removed as soon as it's not needed anymore.
|
||||
|
||||
@example
|
||||
```
|
||||
import {LiteralUnion} from 'type-fest';
|
||||
|
||||
// Before
|
||||
|
||||
type Pet = 'dog' | 'cat' | string;
|
||||
|
||||
const pet: Pet = '';
|
||||
// Start typing in your TypeScript-enabled IDE.
|
||||
// You **will not** get auto-completion for `dog` and `cat` literals.
|
||||
|
||||
// After
|
||||
|
||||
type Pet2 = LiteralUnion<'dog' | 'cat', string>;
|
||||
|
||||
const pet: Pet2 = '';
|
||||
// You **will** get auto-completion for `dog` and `cat` literals.
|
||||
```
|
||||
|
||||
@category Utilities
|
||||
*/
|
||||
export type LiteralUnion<
|
||||
LiteralType,
|
||||
BaseType extends Primitive
|
||||
> = LiteralType | (BaseType & {_?: never});
|
||||
@@ -0,0 +1,16 @@
|
||||
// Various utilties exposed to plugins
|
||||
|
||||
require('./shell'); // Create the ShellJS instance (mandatory)
|
||||
|
||||
var common = require('./src/common');
|
||||
|
||||
var exportedAttributes = [
|
||||
'error', // For signaling errors from within commands
|
||||
'parseOptions', // For custom option parsing
|
||||
'readFromPipe', // For commands with the .canReceivePipe attribute
|
||||
'register', // For registering plugins
|
||||
];
|
||||
|
||||
exportedAttributes.forEach(function (attr) {
|
||||
exports[attr] = common[attr];
|
||||
});
|
||||
@@ -0,0 +1,16 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## v1.0.0 - 2021-08-17
|
||||
|
||||
### Commits
|
||||
|
||||
- Initial commit: pulled from es-abstract [`6e34a05`](https://github.com/inspect-js/get-symbol-description/commit/6e34a05ef10ce8620078cf4cecbe276c1fc1ae77)
|
||||
- Initial commit [`3862092`](https://github.com/inspect-js/get-symbol-description/commit/3862092248d8ffa071ec90ec39d73e8be14ba6f1)
|
||||
- [meta] do not publish github action workflow files [`9d1e2b9`](https://github.com/inspect-js/get-symbol-description/commit/9d1e2b94dd97664da5d0666985a3695c23f45865)
|
||||
- npm init [`5051b32`](https://github.com/inspect-js/get-symbol-description/commit/5051b3221829f364c44b4d5e9a0c35aab3247f6a)
|
||||
- Only apps should have lockfiles [`b866d1c`](https://github.com/inspect-js/get-symbol-description/commit/b866d1c4b4029277618d968cfb3cbe00f012d1a7)
|
||||
@@ -0,0 +1,3 @@
|
||||
import type Settings from '../settings';
|
||||
import type { Stats } from '../types';
|
||||
export declare function read(path: string, settings: Settings): Stats;
|
||||
@@ -0,0 +1,11 @@
|
||||
export declare type Locale = string;
|
||||
export interface LocaleData<T> {
|
||||
data: T;
|
||||
locale: Locale;
|
||||
}
|
||||
export interface LookupMatcherResult {
|
||||
locale: string;
|
||||
extension?: string;
|
||||
nu?: string;
|
||||
}
|
||||
//# sourceMappingURL=core.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/timeout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAUvH,MAAM,WAAW,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO;IACpG;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;IAEtC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO;IACzC,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjB,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,QAAQ,CAAC,SAAS,EAAE,CAAC,GAAG,IAAI,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,CAAE,SAAQ,KAAK;IACnE;;;;;;OAMG;IACH,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,KAAK,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC9E;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,EAAE,gBAQ1B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,EACxE,MAAM,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG;IAAE,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAA;CAAE,GACxE,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEhH;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAEhG;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"}
|
||||
@@ -0,0 +1,25 @@
|
||||
(MIT License)
|
||||
|
||||
Copyright (c) 2013 [Ramesh Nair](http://www.hiddentao.com/)
|
||||
|
||||
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.
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
var a = require.async('a');
|
||||
var b = require.async('b');
|
||||
var c = require.async('c');
|
||||
var abc = a.b(c);
|
||||
|
||||
var EventEmitter = require.async('events').EventEmitter;
|
||||
|
||||
var x = require.async('doom')(5,6,7);
|
||||
x(8,9);
|
||||
c.load('notthis');
|
||||
var y = require.async('y') * 100;
|
||||
|
||||
var EventEmitter2 = require.async('events2').EventEmitter();
|
||||
|
||||
@@ -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,"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,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0.00604,"71":0.01208,"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.00604,"89":0,"90":0.00604,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0.00604,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0.08455,"103":0,"104":0,"105":0.01812,"106":0,"107":0.01812,"108":0.02416,"109":2.32502,"110":0.54351,"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,"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.18117,"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.04227,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0.01208,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0.05435,"64":0,"65":0.00604,"66":0,"67":0,"68":0.00604,"69":0,"70":0.00604,"71":0,"72":0,"73":0,"74":0,"75":0.01208,"76":0.02416,"77":0,"78":0,"79":0.00604,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0.09059,"90":0,"91":0,"92":0.00604,"93":0.00604,"94":0.00604,"95":0,"96":0.03623,"97":0.00604,"98":0,"99":0,"100":0.01812,"101":0.00604,"102":0,"103":0.70052,"104":0.01208,"105":0.11474,"106":0.00604,"107":0,"108":0.39857,"109":11.63715,"110":6.94485,"111":0,"112":0.01812,"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,"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,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0.04831,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.00604,"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,"94":0.09662,"95":0.02416,"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,"13":0,"14":0,"15":0,"16":0.01208,"17":0,"18":0.15701,"79":0,"80":0,"81":0,"83":0,"84":0.00604,"85":0,"86":0.01208,"87":0,"88":0,"89":0.00604,"90":0.00604,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0.00604,"98":0.01208,"99":0,"100":0.02416,"101":0.01812,"102":0,"103":0,"104":0.00604,"105":0,"106":0,"107":0.04227,"108":0.07851,"109":3.7623,"110":4.80704},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.03623,"15":0.00604,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.05435,"13.1":0.05435,"14.1":0.05435,"15.1":0.00604,"15.2-15.3":0,"15.4":0.06643,"15.5":0.02416,"15.6":0.15701,"16.0":0,"16.1":0.03623,"16.2":0.1389,"16.3":0.1087,"16.4":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0.03538,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.00884,"11.0-11.2":0,"11.3-11.4":0.04422,"12.0-12.1":0.00884,"12.2-12.5":0.10466,"13.0-13.1":0,"13.2":0.00884,"13.3":0.09582,"13.4-13.7":0.08697,"14.0-14.4":0.27124,"14.5-14.8":0.54985,"15.0-15.1":0.2963,"15.2-15.3":0.17395,"15.4":2.02546,"15.5":0.79456,"15.6":0.70759,"16.0":1.22206,"16.1":2.71388,"16.2":3.54382,"16.3":1.22206,"16.4":0},P:{"4":0,"20":0.66143,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.11368,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0.09301,"12.0":0,"13.0":0,"14.0":0.09301,"15.0":0,"16.0":0.01033,"17.0":0.02067,"18.0":0.19636,"19.0":0.84745},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":1.47352},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.01208,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":0.305},H:{"0":0.18},L:{"0":46.87594},R:{_:"0"},M:{"0":0.13864},Q:{"13.1":0}};
|
||||
@@ -0,0 +1,34 @@
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
function isObject(o) {
|
||||
return Object.prototype.toString.call(o) === '[object Object]';
|
||||
}
|
||||
|
||||
function isPlainObject(o) {
|
||||
var ctor,prot;
|
||||
|
||||
if (isObject(o) === false) return false;
|
||||
|
||||
// If has modified constructor
|
||||
ctor = o.constructor;
|
||||
if (ctor === undefined) return true;
|
||||
|
||||
// If has modified prototype
|
||||
prot = ctor.prototype;
|
||||
if (isObject(prot) === false) return false;
|
||||
|
||||
// If constructor does not have an Object-specific method
|
||||
if (prot.hasOwnProperty('isPrototypeOf') === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Most likely a plain Object
|
||||
return true;
|
||||
}
|
||||
|
||||
export { isPlainObject };
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function () {
|
||||
if (typeof Promise !== "function") return false;
|
||||
if (typeof Promise.prototype.finally !== "function") return false;
|
||||
return true;
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
var toString = {}.toString;
|
||||
|
||||
module.exports = Array.isArray || function (arr) {
|
||||
return toString.call(arr) == '[object Array]';
|
||||
};
|
||||
@@ -0,0 +1,173 @@
|
||||
import { ReplaySubject } from '../ReplaySubject';
|
||||
import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
|
||||
import { share } from './share';
|
||||
|
||||
export interface ShareReplayConfig {
|
||||
bufferSize?: number;
|
||||
windowTime?: number;
|
||||
refCount: boolean;
|
||||
scheduler?: SchedulerLike;
|
||||
}
|
||||
|
||||
export function shareReplay<T>(config: ShareReplayConfig): MonoTypeOperatorFunction<T>;
|
||||
export function shareReplay<T>(bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;
|
||||
|
||||
/**
|
||||
* Share source and replay specified number of emissions on subscription.
|
||||
*
|
||||
* This operator is a specialization of `replay` that connects to a source observable
|
||||
* and multicasts through a `ReplaySubject` constructed with the specified arguments.
|
||||
* A successfully completed source will stay cached in the `shareReplay`ed observable forever,
|
||||
* but an errored source can be retried.
|
||||
*
|
||||
* ## Why use `shareReplay`?
|
||||
*
|
||||
* You generally want to use `shareReplay` when you have side-effects or taxing computations
|
||||
* that you do not wish to be executed amongst multiple subscribers.
|
||||
* It may also be valuable in situations where you know you will have late subscribers to
|
||||
* a stream that need access to previously emitted values.
|
||||
* This ability to replay values on subscription is what differentiates {@link share} and `shareReplay`.
|
||||
*
|
||||
* ## Reference counting
|
||||
*
|
||||
* By default `shareReplay` will use `refCount` of false, meaning that it will _not_ unsubscribe the
|
||||
* source when the reference counter drops to zero, i.e. the inner `ReplaySubject` will _not_ be unsubscribed
|
||||
* (and potentially run for ever).
|
||||
* This is the default as it is expected that `shareReplay` is often used to keep around expensive to setup
|
||||
* observables which we want to keep running instead of having to do the expensive setup again.
|
||||
*
|
||||
* As of RXJS version 6.4.0 a new overload signature was added to allow for manual control over what
|
||||
* happens when the operators internal reference counter drops to zero.
|
||||
* If `refCount` is true, the source will be unsubscribed from once the reference count drops to zero, i.e.
|
||||
* the inner `ReplaySubject` will be unsubscribed. All new subscribers will receive value emissions from a
|
||||
* new `ReplaySubject` which in turn will cause a new subscription to the source observable.
|
||||
*
|
||||
* ## Examples
|
||||
*
|
||||
* Example with a third subscriber coming late to the party
|
||||
*
|
||||
* ```ts
|
||||
* import { interval, take, shareReplay } from 'rxjs';
|
||||
*
|
||||
* const shared$ = interval(2000).pipe(
|
||||
* take(6),
|
||||
* shareReplay(3)
|
||||
* );
|
||||
*
|
||||
* shared$.subscribe(x => console.log('sub A: ', x));
|
||||
* shared$.subscribe(y => console.log('sub B: ', y));
|
||||
*
|
||||
* setTimeout(() => {
|
||||
* shared$.subscribe(y => console.log('sub C: ', y));
|
||||
* }, 11000);
|
||||
*
|
||||
* // Logs:
|
||||
* // (after ~2000 ms)
|
||||
* // sub A: 0
|
||||
* // sub B: 0
|
||||
* // (after ~4000 ms)
|
||||
* // sub A: 1
|
||||
* // sub B: 1
|
||||
* // (after ~6000 ms)
|
||||
* // sub A: 2
|
||||
* // sub B: 2
|
||||
* // (after ~8000 ms)
|
||||
* // sub A: 3
|
||||
* // sub B: 3
|
||||
* // (after ~10000 ms)
|
||||
* // sub A: 4
|
||||
* // sub B: 4
|
||||
* // (after ~11000 ms, sub C gets the last 3 values)
|
||||
* // sub C: 2
|
||||
* // sub C: 3
|
||||
* // sub C: 4
|
||||
* // (after ~12000 ms)
|
||||
* // sub A: 5
|
||||
* // sub B: 5
|
||||
* // sub C: 5
|
||||
* ```
|
||||
*
|
||||
* Example for `refCount` usage
|
||||
*
|
||||
* ```ts
|
||||
* import { Observable, tap, interval, shareReplay, take } from 'rxjs';
|
||||
*
|
||||
* const log = <T>(name: string, source: Observable<T>) => source.pipe(
|
||||
* tap({
|
||||
* subscribe: () => console.log(`${ name }: subscribed`),
|
||||
* next: value => console.log(`${ name }: ${ value }`),
|
||||
* complete: () => console.log(`${ name }: completed`),
|
||||
* finalize: () => console.log(`${ name }: unsubscribed`)
|
||||
* })
|
||||
* );
|
||||
*
|
||||
* const obs$ = log('source', interval(1000));
|
||||
*
|
||||
* const shared$ = log('shared', obs$.pipe(
|
||||
* shareReplay({ bufferSize: 1, refCount: true }),
|
||||
* take(2)
|
||||
* ));
|
||||
*
|
||||
* shared$.subscribe(x => console.log('sub A: ', x));
|
||||
* shared$.subscribe(y => console.log('sub B: ', y));
|
||||
*
|
||||
* // PRINTS:
|
||||
* // shared: subscribed <-- reference count = 1
|
||||
* // source: subscribed
|
||||
* // shared: subscribed <-- reference count = 2
|
||||
* // source: 0
|
||||
* // shared: 0
|
||||
* // sub A: 0
|
||||
* // shared: 0
|
||||
* // sub B: 0
|
||||
* // source: 1
|
||||
* // shared: 1
|
||||
* // sub A: 1
|
||||
* // shared: completed <-- take(2) completes the subscription for sub A
|
||||
* // shared: unsubscribed <-- reference count = 1
|
||||
* // shared: 1
|
||||
* // sub B: 1
|
||||
* // shared: completed <-- take(2) completes the subscription for sub B
|
||||
* // shared: unsubscribed <-- reference count = 0
|
||||
* // source: unsubscribed <-- replaySubject unsubscribes from source observable because the reference count dropped to 0 and refCount is true
|
||||
*
|
||||
* // In case of refCount being false, the unsubscribe is never called on the source and the source would keep on emitting, even if no subscribers
|
||||
* // are listening.
|
||||
* // source: 2
|
||||
* // source: 3
|
||||
* // source: 4
|
||||
* // ...
|
||||
* ```
|
||||
*
|
||||
* @see {@link publish}
|
||||
* @see {@link share}
|
||||
* @see {@link publishReplay}
|
||||
*
|
||||
* @param configOrBufferSize Maximum element count of the replay buffer or {@link ShareReplayConfig configuration}
|
||||
* object.
|
||||
* @param windowTime Maximum time length of the replay buffer in milliseconds.
|
||||
* @param scheduler Scheduler where connected observers within the selector function
|
||||
* will be invoked on.
|
||||
* @return A function that returns an Observable sequence that contains the
|
||||
* elements of a sequence produced by multicasting the source sequence within a
|
||||
* selector function.
|
||||
*/
|
||||
export function shareReplay<T>(
|
||||
configOrBufferSize?: ShareReplayConfig | number,
|
||||
windowTime?: number,
|
||||
scheduler?: SchedulerLike
|
||||
): MonoTypeOperatorFunction<T> {
|
||||
let bufferSize: number;
|
||||
let refCount = false;
|
||||
if (configOrBufferSize && typeof configOrBufferSize === 'object') {
|
||||
({ bufferSize = Infinity, windowTime = Infinity, refCount = false, scheduler } = configOrBufferSize);
|
||||
} else {
|
||||
bufferSize = (configOrBufferSize ?? Infinity) as number;
|
||||
}
|
||||
return share<T>({
|
||||
connector: () => new ReplaySubject(bufferSize, windowTime, scheduler),
|
||||
resetOnError: true,
|
||||
resetOnComplete: false,
|
||||
resetOnRefCountZero: refCount,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "detect-indent",
|
||||
"version": "6.1.0",
|
||||
"description": "Detect the indentation of code",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/detect-indent",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"indent",
|
||||
"indentation",
|
||||
"detect",
|
||||
"infer",
|
||||
"identify",
|
||||
"code",
|
||||
"string",
|
||||
"text",
|
||||
"source",
|
||||
"space",
|
||||
"tab"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"xo": {
|
||||
"ignores": [
|
||||
"fixture"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v1.2.8](https://github.com/es-shims/String.prototype.trim/compare/v1.2.7...v1.2.8) - 2022-11-07
|
||||
|
||||
## [v1.2.7](https://github.com/es-shims/String.prototype.trim/compare/v1.2.6...v1.2.7) - 2022-11-07
|
||||
|
||||
### Commits
|
||||
|
||||
- [meta] use `npmignore` to autogenerate an npmignore file [`3e6de84`](https://github.com/es-shims/String.prototype.trim/commit/3e6de84f959c1ecc44e894aa1a64a8eb5007f3f5)
|
||||
- [actions] update rebase action to use reusable workflow [`b725a04`](https://github.com/es-shims/String.prototype.trim/commit/b725a0499b832e69dfe5121bb643464a659ba8ff)
|
||||
- [Deps] update `es-abstract` [`b707a17`](https://github.com/es-shims/String.prototype.trim/commit/b707a1747363f361665c50eda5eb952a86755e8c)
|
||||
- [Dev Deps] update `aud`, `tape` [`5295419`](https://github.com/es-shims/String.prototype.trim/commit/5295419b0bbaf8035696ef3a24a8625ee743ec7f)
|
||||
|
||||
## [v1.2.6](https://github.com/es-shims/String.prototype.trim/compare/v1.2.5...v1.2.6) - 2022-04-24
|
||||
|
||||
### Commits
|
||||
|
||||
- [actions] reuse common workflows [`dbfc093`](https://github.com/es-shims/String.prototype.trim/commit/dbfc0932e7b2fad166245599310a1d84a1be0882)
|
||||
- [Fix] as of unicode v6, the mongolian vowel separator is no longer whitespace [`56bbb86`](https://github.com/es-shims/String.prototype.trim/commit/56bbb86b8e514a16fc47e095b8c1014e12a2e92a)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `safe-publish-latest`, `tape` [`7fa437e`](https://github.com/es-shims/String.prototype.trim/commit/7fa437e4c3d25798d979294a121f93cb4346ba04)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `functions-have-names`, `tape` [`716a060`](https://github.com/es-shims/String.prototype.trim/commit/716a06080dbca68ec8e3b2e0e18c0a333ed28594)
|
||||
- [actions] update codecov uploader [`9a39958`](https://github.com/es-shims/String.prototype.trim/commit/9a39958a13e20d6b9f01f9fce71dd37cc03da52e)
|
||||
- [Fix] ensure main entry point properly checks the receiver in ES3 engines [`24220c4`](https://github.com/es-shims/String.prototype.trim/commit/24220c49dcb7055b5b94eb52c4d610428e19d3e4)
|
||||
- [Deps] update `define-properties`, `es-abstract` [`c6008ea`](https://github.com/es-shims/String.prototype.trim/commit/c6008ea9007741755710b70ae05003cb71a7d1bd)
|
||||
|
||||
## [v1.2.5](https://github.com/es-shims/String.prototype.trim/compare/v1.2.4...v1.2.5) - 2021-10-03
|
||||
|
||||
### Commits
|
||||
|
||||
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`37d5a61`](https://github.com/es-shims/String.prototype.trim/commit/37d5a61c95a26c079b30e2d9d2ffdb70f36ca9cf)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `auto-changelog`, `tape` [`4c4a85e`](https://github.com/es-shims/String.prototype.trim/commit/4c4a85e5f521ae9811ac1205af933e3845b5a24e)
|
||||
- [readme] add github actions/codecov badges [`9980eee`](https://github.com/es-shims/String.prototype.trim/commit/9980eee58866b08218ff3257a3af2aa9e29774fc)
|
||||
- [Deps] update `es-abstract` [`6c1da80`](https://github.com/es-shims/String.prototype.trim/commit/6c1da806270fd909a76fc43e3dfe91be46058382)
|
||||
- [readme] remove defunct testling badge [`8d282d1`](https://github.com/es-shims/String.prototype.trim/commit/8d282d1becd5f8d3ffe0e6e1dbfa2ddf29071670)
|
||||
- [Dev Deps] update `eslint`, `tape` [`8856c26`](https://github.com/es-shims/String.prototype.trim/commit/8856c2663b5495cafb930e009f68e2d22958cac0)
|
||||
- [actions] update workflows [`62cd341`](https://github.com/es-shims/String.prototype.trim/commit/62cd3412aaeee13c0d2cfe7f9bd33297e7279989)
|
||||
- [meta] use `prepublishOnly` script for npm 7+ [`abd99c4`](https://github.com/es-shims/String.prototype.trim/commit/abd99c4a9838847efb3db7ddf579fb4bda8f6030)
|
||||
- [Deps] update `es-abstract` [`802cb7b`](https://github.com/es-shims/String.prototype.trim/commit/802cb7b69b3a0c9a9b9642d641f0af490bd9dde7)
|
||||
|
||||
## [v1.2.4](https://github.com/es-shims/String.prototype.trim/compare/v1.2.3...v1.2.4) - 2021-02-21
|
||||
|
||||
### Commits
|
||||
|
||||
- [meta] do not publish github action workflow files [`936161b`](https://github.com/es-shims/String.prototype.trim/commit/936161bf43c83e09bc39c4d472d313c8f64e3fe3)
|
||||
- [readme] remove travis badge [`9a28c39`](https://github.com/es-shims/String.prototype.trim/commit/9a28c3943b51a2cc87694c954205249122256d92)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `has-strict-mode`, `tape` [`7b4be8d`](https://github.com/es-shims/String.prototype.trim/commit/7b4be8d12365feb5b42658902cf18316508a0c62)
|
||||
- [Tests] increase coverage [`31b8735`](https://github.com/es-shims/String.prototype.trim/commit/31b87354f55f24501ca8b2f02477cb692a70457c)
|
||||
- [actions] update workflows [`eda6ab7`](https://github.com/es-shims/String.prototype.trim/commit/eda6ab73fea52b49b74653e96ac81d5372599dc8)
|
||||
- [Deps] update `call-bind`, `es-abstract` [`083f88f`](https://github.com/es-shims/String.prototype.trim/commit/083f88f5342144f337f1f82874cb8cd6f27f2262)
|
||||
|
||||
## [v1.2.3](https://github.com/es-shims/String.prototype.trim/compare/v1.2.2...v1.2.3) - 2020-11-21
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] migrate tests to Github Actions [`6768c8d`](https://github.com/es-shims/String.prototype.trim/commit/6768c8d5569a6fcc841436b98a19ddf6b63c7de4)
|
||||
- [Tests] run `nyc` on all tests [`2fd5baa`](https://github.com/es-shims/String.prototype.trim/commit/2fd5baa7239a4d449338e0333e2dc4573597962e)
|
||||
- [Deps] update `es-abstract`; use `call-bind` where applicable [`e4e8c6e`](https://github.com/es-shims/String.prototype.trim/commit/e4e8c6ede423ee8c384564092f624f980097bb28)
|
||||
- [Dev Deps] update `eslint`, `aud`, `auto-changelog` [`a21c1d5`](https://github.com/es-shims/String.prototype.trim/commit/a21c1d5c87ec9b1b5107b0a1faf138993951081c)
|
||||
|
||||
## [v1.2.2](https://github.com/es-shims/String.prototype.trim/compare/v1.2.1...v1.2.2) - 2020-09-15
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] use `nyc` for coverage` [`0884270`](https://github.com/es-shims/String.prototype.trim/commit/0884270b26f7e6f7602d9f355dc3b4d5cd12d97e)
|
||||
- [Tests] add implementation tests [`475c480`](https://github.com/es-shims/String.prototype.trim/commit/475c4804224a11bb6fba6d1407b59f7aab2c5d4e)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`d70d913`](https://github.com/es-shims/String.prototype.trim/commit/d70d9136bc76499ecee1997068b7f3d1ba0f94e8)
|
||||
- [actions] add "Allow Edits" workflow [`6e6be23`](https://github.com/es-shims/String.prototype.trim/commit/6e6be23aa679e02836e1f3e65bd09dd30c3fd2ae)
|
||||
- [Refactor] use `RequireObjectCoercible` instead of `CheckObjectCoercible` [`5bfaf17`](https://github.com/es-shims/String.prototype.trim/commit/5bfaf1731edd5fcd01ec07f75717eebdf4992e4c)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `functions-have-names`; add `safe-publish-latest` [`65be600`](https://github.com/es-shims/String.prototype.trim/commit/65be600028222127c1faaeacea810bc042f35f70)
|
||||
- [Deps] update `es-abstract`, remove `function-bind` [`5f4d1ec`](https://github.com/es-shims/String.prototype.trim/commit/5f4d1ec8f2c13a4b4fde171ca2029e1ec4057b2b)
|
||||
- [Refactor] switch from 2019 to 2020 AOs [`4c2d5d2`](https://github.com/es-shims/String.prototype.trim/commit/4c2d5d23f63731958007d856767f5a2f9c779c15)
|
||||
- [Dev Deps] update `auto-changelog`, `tape` [`c7fc9e2`](https://github.com/es-shims/String.prototype.trim/commit/c7fc9e22b09d24a9aa9e68358d4a5ba10e25ff04)
|
||||
- [Dev Deps] update `auto-changelog`; add `aud` [`e1dec36`](https://github.com/es-shims/String.prototype.trim/commit/e1dec364391ea5d7dc8339d2da279fdc511cdbe9)
|
||||
- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`35826c2`](https://github.com/es-shims/String.prototype.trim/commit/35826c21b140a3c1431bd20c3443da23888b92bc)
|
||||
- [Deps] update `es-abstract` [`54095ef`](https://github.com/es-shims/String.prototype.trim/commit/54095ef76d193c8595516977e98343f8db754e2d)
|
||||
- [Deps] update `es-abstract` [`486dd9c`](https://github.com/es-shims/String.prototype.trim/commit/486dd9c68c5843a9f50cde55749d34edb9702616)
|
||||
|
||||
## [v1.2.1](https://github.com/es-shims/String.prototype.trim/compare/v1.2.0...v1.2.1) - 2019-12-16
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] use shared travis-ci configs [`52f7e64`](https://github.com/es-shims/String.prototype.trim/commit/52f7e643f128e04ed0139c1cb3da7b7907ea639f)
|
||||
- [meta] add `auto-changelog` [`6284c06`](https://github.com/es-shims/String.prototype.trim/commit/6284c061c8f4de4314a43e8600ff879164ab162c)
|
||||
- [meta] remove unused Makefile and associated utilities [`8c781cd`](https://github.com/es-shims/String.prototype.trim/commit/8c781cd4bad87f7bf31dae256ef0f1c19cec2113)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `functions-have-names` [`c54b481`](https://github.com/es-shims/String.prototype.trim/commit/c54b481743611e736315c10885cfc861d306e64a)
|
||||
- [Refactor] use split-up `es-abstract` (57% bundle size decrease) [`b0378c9`](https://github.com/es-shims/String.prototype.trim/commit/b0378c99988846b0a8edf3fcfd08f30dd632f5a9)
|
||||
- [actions] add automatic rebasing / merge commit blocking [`bffe893`](https://github.com/es-shims/String.prototype.trim/commit/bffe893990837250f8a3c4714bd52675251af5c7)
|
||||
- [meta] add `funding` field [`0559449`](https://github.com/es-shims/String.prototype.trim/commit/05594490366fad2d8e4bd435937fbd81169d965a)
|
||||
- [Deps] update `es-abstract` [`c44d307`](https://github.com/es-shims/String.prototype.trim/commit/c44d307a50bb1fc53811b49d9203cd794ed1bae4)
|
||||
|
||||
## [v1.2.0](https://github.com/es-shims/String.prototype.trim/compare/v1.1.2...v1.2.0) - 2019-07-24
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] up to `node` `v12.6`, `v11.15`, `v10.16`, `v9.11`, `v8.16`, `v7.10`, `v6.17`, `4.9`; use `nvm install-latest-npm` [`b857148`](https://github.com/es-shims/String.prototype.trim/commit/b857148644d305f720b2dd9bf691b7dc2930f91d)
|
||||
- [Tests] remove `jscs` [`ad1dea7`](https://github.com/es-shims/String.prototype.trim/commit/ad1dea7f6114de79d637e82cdfaf1aa5499bd358)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `replace`, `semver`, `tape` [`fcbc11d`](https://github.com/es-shims/String.prototype.trim/commit/fcbc11d4af9be65f4f7eb4aec20498c7a33a004f)
|
||||
- [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config` [`06a4ffa`](https://github.com/es-shims/String.prototype.trim/commit/06a4ffa3078d4ab65418e878d3ef7b03277e8a1f)
|
||||
- [Dev Deps] update `jscs`, `nsp`, `eslint`, `@es-shims/api` [`3554fb1`](https://github.com/es-shims/String.prototype.trim/commit/3554fb1fe722004080000b0767f7f89676a3d73a)
|
||||
- [Dev Deps] update `nsp`, `eslint`, `@ljharb/eslint-config` [`804b2f2`](https://github.com/es-shims/String.prototype.trim/commit/804b2f244c257b32cb2473eb1a829ce97dc6a0a5)
|
||||
- [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `semver`, `@ljharb/eslint-config` [`6a69408`](https://github.com/es-shims/String.prototype.trim/commit/6a694081cdd9aa9296ea181e4d2b4c6fe656bb16)
|
||||
- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config` [`e89adee`](https://github.com/es-shims/String.prototype.trim/commit/e89adeefcbd6fb59563e62d230b8036d65a8bf69)
|
||||
- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config` [`1280e56`](https://github.com/es-shims/String.prototype.trim/commit/1280e5629deb4554c7077d0e452399c03c06f7b1)
|
||||
- [New] add `auto` entry point [`bb00b15`](https://github.com/es-shims/String.prototype.trim/commit/bb00b1551d2774e216b5d316b552d08a7f0619d4)
|
||||
- [Tests] fix tests for the mongolian vowel separator [`a35f627`](https://github.com/es-shims/String.prototype.trim/commit/a35f6275ec7b4d6b47136a007fd07566e037cac8)
|
||||
- [Tests] up to `node` `v5.9`, `v4.4` [`b541b9b`](https://github.com/es-shims/String.prototype.trim/commit/b541b9b46873be859aea6c5b1e7f6f54323ea139)
|
||||
- [Dev Deps] update `jscs`, `nsp`, `eslint` [`b52022d`](https://github.com/es-shims/String.prototype.trim/commit/b52022d809922914827c34bcf2c1f81b68bde092)
|
||||
- [Tests] use pretest/posttest for linting/security [`39f5684`](https://github.com/es-shims/String.prototype.trim/commit/39f56844f30f630ab5497f38153b8f0646ed1d96)
|
||||
- [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops [`8c358c2`](https://github.com/es-shims/String.prototype.trim/commit/8c358c22ee57bd5e7b437fb707230399ea7c42aa)
|
||||
- [Tests] up to `node` `v6.2` [`2ac7e1f`](https://github.com/es-shims/String.prototype.trim/commit/2ac7e1f90088bb0c96986006539ffebb6b2a6eda)
|
||||
- Only apps should have lockfiles [`cb15ed5`](https://github.com/es-shims/String.prototype.trim/commit/cb15ed57fbf3ba3f2d7f24af957e8ff41421dd81)
|
||||
- [Deps] update `define-properties`, `es-abstract`, `function-bind` [`5e0371a`](https://github.com/es-shims/String.prototype.trim/commit/5e0371af5c7b8fee49a0e7d1bcc26fcf41743779)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api` [`37bae7f`](https://github.com/es-shims/String.prototype.trim/commit/37bae7f8f4952b376036d924673b9e885da022f8)
|
||||
- [Tests] on `node` `v5.6`, `v4.3` [`33017cf`](https://github.com/es-shims/String.prototype.trim/commit/33017cf0d3aade480c357ee8aedaca7bc5a75092)
|
||||
- [Tests] allow coverage to fail [`0d7b1e3`](https://github.com/es-shims/String.prototype.trim/commit/0d7b1e365484f8c33247b60e2a07748dc2183d40)
|
||||
- [Tests] use `functions-have-names` [`3e68777`](https://github.com/es-shims/String.prototype.trim/commit/3e687776f6a45e3a6d129705aad3bb4863758114)
|
||||
- [Tests] on `node` `v5.12` [`32ea49d`](https://github.com/es-shims/String.prototype.trim/commit/32ea49d7572b3f981d036ea060e3ed3559ad78ef)
|
||||
- [Deps] update `es-abstract` [`15f7f24`](https://github.com/es-shims/String.prototype.trim/commit/15f7f249619b7aab941c6c8156cb81ed57c39b7e)
|
||||
- [Tests] on `node` `v5.10` [`080c50f`](https://github.com/es-shims/String.prototype.trim/commit/080c50fc617de7ac024d443d4a9b76ba295bd744)
|
||||
- [Deps] update `function-bind` [`532480e`](https://github.com/es-shims/String.prototype.trim/commit/532480e07ad7bf22da64d401ede35928d21ff558)
|
||||
|
||||
## [v1.1.2](https://github.com/es-shims/String.prototype.trim/compare/v1.1.1...v1.1.2) - 2016-02-06
|
||||
|
||||
### Commits
|
||||
|
||||
- [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `semver`, `@ljharb/eslint-config` [`df94d07`](https://github.com/es-shims/String.prototype.trim/commit/df94d07e12ca1e52739353f534a3d89e0a860a70)
|
||||
- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`ef78d89`](https://github.com/es-shims/String.prototype.trim/commit/ef78d89148efe8d371fb828923dd149163e2c5c6)
|
||||
- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config` [`b746516`](https://github.com/es-shims/String.prototype.trim/commit/b7465166a48828367bedaa2d42a30a5e148dcaae)
|
||||
- package.json: use object form of "authors", add "contributors" [`a799df1`](https://github.com/es-shims/String.prototype.trim/commit/a799df17322ae526d5c8732c75bd5bcc3d1f649f)
|
||||
- [Tests] up to `node` `v5.5`, don’t allow `0.8` to fail [`7fea308`](https://github.com/es-shims/String.prototype.trim/commit/7fea3082424fbeb25f2cb88884a999326ca428f2)
|
||||
- [Dev Deps] update `jscs`, `nsp`, `eslint`, `semver`, `@ljharb/eslint-config` [`d14c7c1`](https://github.com/es-shims/String.prototype.trim/commit/d14c7c1850fb8e3a9f1d153bd818ed3beacdbadc)
|
||||
- [Tests] up to `io.js` `v3.3`, `node` `v4.1` [`2903359`](https://github.com/es-shims/String.prototype.trim/commit/29033591ca3e65977e2746537c94b7e2e8b65ecc)
|
||||
- [Tests] fix npm upgrades for older nodes [`0a6cbfa`](https://github.com/es-shims/String.prototype.trim/commit/0a6cbfa0ac506703ed554f6dc8bbde7ac1977cd4)
|
||||
- [Deps] update `define-properties`, `es-abstract` [`39ccb08`](https://github.com/es-shims/String.prototype.trim/commit/39ccb0881762d762934ef2cb3c0459c65b3abf72)
|
||||
- [Deps] update `es-abstract` [`c40e4fb`](https://github.com/es-shims/String.prototype.trim/commit/c40e4fb229e1a6a3e3c6818fc680ca380f2d866c)
|
||||
- Use the polyfill, not the implementation, as the default export. [`0fe847e`](https://github.com/es-shims/String.prototype.trim/commit/0fe847e901871f1a8f33a66be2cd518bf8dcd0e1)
|
||||
- [Tests] on `node` `v4.2` [`589743c`](https://github.com/es-shims/String.prototype.trim/commit/589743c0f8b1432a79cfed4b29187e6a9760a87b)
|
||||
- [Deps] update `es-abstract` [`85bad8e`](https://github.com/es-shims/String.prototype.trim/commit/85bad8e217969a6e1eb7679a1bb06d6f075bd557)
|
||||
- added assert [`aa81ac5`](https://github.com/es-shims/String.prototype.trim/commit/aa81ac55540a9e53a58ce0d1f5266ff36d403b3a)
|
||||
|
||||
## [v1.1.1](https://github.com/es-shims/String.prototype.trim/compare/v1.1.0...v1.1.1) - 2015-08-16
|
||||
|
||||
### Commits
|
||||
|
||||
- [Docs] remove "if" around `.shim` call in example [`b9ce088`](https://github.com/es-shims/String.prototype.trim/commit/b9ce08875f7252a85928e426db9b533cc5ee007a)
|
||||
|
||||
## [v1.1.0](https://github.com/es-shims/String.prototype.trim/compare/v1.0.0...v1.1.0) - 2015-08-16
|
||||
|
||||
### Commits
|
||||
|
||||
- Implement the [es-shim API](es-shims/api). [`5812703`](https://github.com/es-shims/String.prototype.trim/commit/581270337926462f9babf83772bcab71bc48bf8f)
|
||||
- Move implementation to `implementation.js` [`e455b2a`](https://github.com/es-shims/String.prototype.trim/commit/e455b2af0e360358f02e54b556e698a971fc31f4)
|
||||
- Fix `make release` [`efd2071`](https://github.com/es-shims/String.prototype.trim/commit/efd20711e9a226ad25e2b1e5ad7bbe85ef832d69)
|
||||
- [Dev Deps] update `jscs` [`6c2fa95`](https://github.com/es-shims/String.prototype.trim/commit/6c2fa957538f139767de540693910cf1f49c8d3a)
|
||||
- [Deps] update `es-abstract` [`de4cd87`](https://github.com/es-shims/String.prototype.trim/commit/de4cd876239d550f3c35e1db55a973cbb03c9b77)
|
||||
- [Dev Deps] update `tape` [`2d07fe1`](https://github.com/es-shims/String.prototype.trim/commit/2d07fe19ff136467e1edbca91cfea6caac1b06d8)
|
||||
- [Dev Deps] update `tape` [`e697efe`](https://github.com/es-shims/String.prototype.trim/commit/e697efe943cab07639d62649424c72e4f44f2469)
|
||||
- Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG. [`6065103`](https://github.com/es-shims/String.prototype.trim/commit/6065103baa10f56b904f44693d5ba6b23ee6ba57)
|
||||
|
||||
## v1.0.0 - 2015-08-08
|
||||
|
||||
### Commits
|
||||
|
||||
- Dotfiles / Makefile [`b7f0e52`](https://github.com/es-shims/String.prototype.trim/commit/b7f0e526ea73136e00595d768faaba83a41da7ee)
|
||||
- Tests [`4d61441`](https://github.com/es-shims/String.prototype.trim/commit/4d61441de9dcf2278dcd118077d4541843a47534)
|
||||
- package.json [`2a2e0f2`](https://github.com/es-shims/String.prototype.trim/commit/2a2e0f2949dd30095eda20e1796483ea21dd7b38)
|
||||
- Initial commit [`51aa18f`](https://github.com/es-shims/String.prototype.trim/commit/51aa18f299f8d340034670af0311c5981c89f713)
|
||||
- Read me [`5681192`](https://github.com/es-shims/String.prototype.trim/commit/56811925aed1dd06a2cfa654b3f246b6a897a33c)
|
||||
- Implementation [`87f08c5`](https://github.com/es-shims/String.prototype.trim/commit/87f08c565f7be56c2826386aa4a4e683a00d8871)
|
||||
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
var iteratorSymbol = require("es6-symbol").iterator
|
||||
, isValue = require("../object/is-value")
|
||||
, isArrayLike = require("../object/is-array-like");
|
||||
|
||||
module.exports = function (value) {
|
||||
if (!isValue(value)) return false;
|
||||
if (typeof value[iteratorSymbol] === "function") return true;
|
||||
return isArrayLike(value);
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('thru', require('../thru'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,11 @@
|
||||
export type RequestError = {
|
||||
name: string;
|
||||
status: number;
|
||||
documentation_url: string;
|
||||
errors?: Array<{
|
||||
resource: string;
|
||||
code: string;
|
||||
field: string;
|
||||
message?: string;
|
||||
}>;
|
||||
};
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
* Copyright 2009-2011 Mozilla Foundation and contributors
|
||||
* Licensed under the New BSD license. See LICENSE.txt or:
|
||||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator;
|
||||
exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer;
|
||||
exports.SourceNode = require('./lib/source-node').SourceNode;
|
||||
@@ -0,0 +1,213 @@
|
||||
import { EOL } from 'node:os';
|
||||
import _ from 'lodash';
|
||||
import { execa } from 'execa';
|
||||
import matcher from 'wildcard-match';
|
||||
import { format, e } from '../../util.js';
|
||||
import GitBase from '../GitBase.js';
|
||||
import prompts from './prompts.js';
|
||||
|
||||
const noop = Promise.resolve();
|
||||
const invalidPushRepoRe = /^\S+@/;
|
||||
const options = { write: false };
|
||||
const fixArgs = args => (args ? (typeof args === 'string' ? args.split(' ') : args) : []);
|
||||
|
||||
const docs = 'https://git.io/release-it-git';
|
||||
|
||||
const isGitRepo = () =>
|
||||
execa('git', ['rev-parse', '--git-dir']).then(
|
||||
() => true,
|
||||
() => false
|
||||
);
|
||||
|
||||
class Git extends GitBase {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
this.registerPrompts(prompts);
|
||||
}
|
||||
|
||||
static async isEnabled(options) {
|
||||
return options !== false && (await isGitRepo());
|
||||
}
|
||||
|
||||
async init() {
|
||||
if (this.options.requireBranch && !(await this.isRequiredBranch(this.options.requireBranch))) {
|
||||
throw e(`Must be on branch ${this.options.requireBranch}`, docs);
|
||||
}
|
||||
if (this.options.requireCleanWorkingDir && !(await this.isWorkingDirClean())) {
|
||||
throw e(`Working dir must be clean.${EOL}Please stage and commit your changes.`, docs);
|
||||
}
|
||||
|
||||
await super.init();
|
||||
|
||||
const remoteUrl = this.getContext('remoteUrl');
|
||||
if (this.options.push && !remoteUrl) {
|
||||
throw e(`Could not get remote Git url.${EOL}Please add a remote repository.`, docs);
|
||||
}
|
||||
if (this.options.requireUpstream && !(await this.hasUpstreamBranch())) {
|
||||
throw e(`No upstream configured for current branch.${EOL}Please set an upstream branch.`, docs);
|
||||
}
|
||||
if (this.options.requireCommits && (await this.getCommitsSinceLatestTag(this.options.commitsPath)) === 0) {
|
||||
throw e(`There are no commits since the latest tag.`, docs, this.options.requireCommitsFail);
|
||||
}
|
||||
}
|
||||
|
||||
rollback() {
|
||||
this.log.info('Rolling back changes...');
|
||||
const { tagName } = this.config.getContext();
|
||||
const { isCommitted, isTagged } = this.getContext();
|
||||
if (isTagged) {
|
||||
this.exec(`git tag --delete ${tagName}`);
|
||||
}
|
||||
this.exec(`git reset --hard HEAD${isCommitted ? '~1' : ''}`);
|
||||
}
|
||||
|
||||
enableRollback() {
|
||||
this.rollbackOnce = _.once(this.rollback.bind(this));
|
||||
process.on('SIGINT', this.rollbackOnce);
|
||||
process.on('exit', this.rollbackOnce);
|
||||
}
|
||||
|
||||
disableRollback() {
|
||||
if (this.rollbackOnce) {
|
||||
process.removeListener('SIGINT', this.rollbackOnce);
|
||||
process.removeListener('exit', this.rollbackOnce);
|
||||
}
|
||||
}
|
||||
|
||||
async beforeRelease() {
|
||||
if (this.options.commit) {
|
||||
if (this.options.requireCleanWorkingDir) {
|
||||
this.enableRollback();
|
||||
}
|
||||
const changeSet = await this.status();
|
||||
this.log.preview({ title: 'changeset', text: changeSet });
|
||||
await this.stageDir();
|
||||
}
|
||||
}
|
||||
|
||||
async release() {
|
||||
const { commit, tag, push } = this.options;
|
||||
await this.step({ enabled: commit, task: () => this.commit(), label: 'Git commit', prompt: 'commit' });
|
||||
await this.step({ enabled: tag, task: () => this.tag(), label: 'Git tag', prompt: 'tag' });
|
||||
return !!(await this.step({ enabled: push, task: () => this.push(), label: 'Git push', prompt: 'push' }));
|
||||
}
|
||||
|
||||
async isRequiredBranch() {
|
||||
const branch = await this.getBranchName();
|
||||
const requiredBranches = _.castArray(this.options.requireBranch);
|
||||
return matcher(requiredBranches)(branch);
|
||||
}
|
||||
|
||||
async hasUpstreamBranch() {
|
||||
const ref = await this.exec('git symbolic-ref HEAD', { options });
|
||||
const branch = await this.exec(`git for-each-ref --format="%(upstream:short)" ${ref}`, { options }).catch(
|
||||
() => null
|
||||
);
|
||||
return Boolean(branch);
|
||||
}
|
||||
|
||||
tagExists(tag) {
|
||||
return this.exec(`git show-ref --tags --quiet --verify -- refs/tags/${tag}`, { options }).then(
|
||||
() => true,
|
||||
() => false
|
||||
);
|
||||
}
|
||||
|
||||
isWorkingDirClean() {
|
||||
return this.exec('git diff --quiet HEAD', { options }).then(
|
||||
() => true,
|
||||
() => false
|
||||
);
|
||||
}
|
||||
|
||||
async getCommitsSinceLatestTag(commitsPath = '') {
|
||||
const latestTagName = await this.getLatestTagName();
|
||||
const ref = latestTagName ? `${latestTagName}..HEAD` : 'HEAD';
|
||||
return this.exec(`git rev-list ${ref} --count ${commitsPath}`, { options }).then(Number);
|
||||
}
|
||||
|
||||
async getUpstreamArgs(pushRepo) {
|
||||
if (pushRepo && !this.isRemoteName(pushRepo)) {
|
||||
// Use (only) `pushRepo` if it's configured and looks like a url
|
||||
return [pushRepo];
|
||||
} else if (!(await this.hasUpstreamBranch())) {
|
||||
// Start tracking upstream branch (`pushRepo` is a name if set)
|
||||
return ['--set-upstream', pushRepo || 'origin', await this.getBranchName()];
|
||||
} else if (pushRepo && !invalidPushRepoRe.test(pushRepo)) {
|
||||
return [pushRepo];
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
stage(file) {
|
||||
if (!file || !file.length) return noop;
|
||||
const files = _.castArray(file);
|
||||
return this.exec(['git', 'add', ...files]).catch(err => {
|
||||
this.log.warn(`Could not stage ${files}`);
|
||||
this.debug(err);
|
||||
});
|
||||
}
|
||||
|
||||
stageDir({ baseDir = '.' } = {}) {
|
||||
const { addUntrackedFiles } = this.options;
|
||||
return this.exec(['git', 'add', baseDir, addUntrackedFiles ? '--all' : '--update']);
|
||||
}
|
||||
|
||||
reset(file) {
|
||||
const files = _.castArray(file);
|
||||
return this.exec(['git', 'checkout', 'HEAD', '--', ...files]).catch(err => {
|
||||
this.log.warn(`Could not reset ${files}`);
|
||||
this.debug(err);
|
||||
});
|
||||
}
|
||||
|
||||
status() {
|
||||
return this.exec('git status --short --untracked-files=no', { options }).catch(() => null);
|
||||
}
|
||||
|
||||
commit({ message = this.options.commitMessage, args = this.options.commitArgs } = {}) {
|
||||
const msg = format(message, this.config.getContext());
|
||||
const commitMessageArgs = msg ? ['--message', msg] : [];
|
||||
return this.exec(['git', 'commit', ...commitMessageArgs, ...fixArgs(args)]).then(
|
||||
() => this.setContext({ isCommitted: true }),
|
||||
err => {
|
||||
this.debug(err);
|
||||
if (/nothing (added )?to commit/.test(err) || /nichts zu committen/.test(err)) {
|
||||
this.log.warn('No changes to commit. The latest commit will be tagged.');
|
||||
} else {
|
||||
throw new Error(err);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
tag({ name, annotation = this.options.tagAnnotation, args = this.options.tagArgs } = {}) {
|
||||
const message = format(annotation, this.config.getContext());
|
||||
const tagName = name || this.config.getContext('tagName');
|
||||
return this.exec(['git', 'tag', '--annotate', '--message', message, ...fixArgs(args), tagName])
|
||||
.then(() => this.setContext({ isTagged: true }))
|
||||
.catch(err => {
|
||||
const { latestTag, tagName } = this.config.getContext();
|
||||
if (/tag '.+' already exists/.test(err) && latestTag === tagName) {
|
||||
this.log.warn(`Tag "${tagName}" already exists`);
|
||||
} else {
|
||||
throw err;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async push({ args = this.options.pushArgs } = {}) {
|
||||
const { pushRepo } = this.options;
|
||||
const upstreamArgs = await this.getUpstreamArgs(pushRepo);
|
||||
const push = await this.exec(['git', 'push', ...fixArgs(args), ...upstreamArgs]);
|
||||
this.disableRollback();
|
||||
return push;
|
||||
}
|
||||
|
||||
afterRelease() {
|
||||
this.disableRollback();
|
||||
}
|
||||
}
|
||||
|
||||
export default Git;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ajax.d.ts","sourceRoot":"","sources":["../../../../src/internal/ajax/ajax.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAiD,MAAM,SAAS,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAErD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9C;;;;;;;OAOG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnF;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEhG;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAE/F;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEjG;;;;;;;OAOG;IACH,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtF;;;;;;;;OAQG;IACH,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;CAC1E;AAkCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiGG;AACH,eAAO,MAAM,IAAI,EAAE,kBAmBf,CAAC;AAQL,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAuPzE"}
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"is-symbol","version":"1.0.4","files":{".editorconfig":{"checkedAt":1678883671537,"integrity":"sha512-p35O0lNr5b8Aha4N1dns/Zy3+rV1ZLx6ffSVcrlURzE+W3zbryu0BkQ6tiGeSgp248nP94ZxUa8iBmtp1ocZng==","mode":420,"size":276},".eslintignore":{"checkedAt":1678883671537,"integrity":"sha512-VLhEcqup3IHXtZJPt07ZYoA9JNRjy1jhU/NU41Yw4E8mEyea/z+6bw5hL3lhCO09pji9E0BH2Q3aDXdc3i9zBg==","mode":420,"size":10},".nycrc":{"checkedAt":1678883669555,"integrity":"sha512-2vm1RFz8Ajl/OYrfoCWPJIm3Bpnf7Gyn5bha/lZx/cq+We3uMy9xj15XeP6x4wF3jf/pO7KMHAkU9mllm605xg==","mode":420,"size":139},"LICENSE":{"checkedAt":1678883671601,"integrity":"sha512-CWRd82wre8E2D9wfNTwrOCxhLsdU7obtQTc4poEGt1uTk93MEI2QW01sXILetqMRgoYp4EIKQZNHNCQrALOFjw==","mode":420,"size":1082},".eslintrc":{"checkedAt":1678883671615,"integrity":"sha512-Eed3A4OGl+z7qcnbCLc6TNXZB+I62v6g2u1M5Ry1t8mhILoyhtfSGtYEaq6KtawexAtLpawPKkG3t9ivkA0RkA==","mode":420,"size":151},"test/index.js":{"checkedAt":1678883671615,"integrity":"sha512-4IQwU1OACKbuHRPKIEryy8ySsx/vmJ3YOpcC6ziBy0q1SHHNs+bhxKzu3jeTtBEdsHVlbpDvTa+4um6rjia+gw==","mode":420,"size":2587},"index.js":{"checkedAt":1678883671615,"integrity":"sha512-a8ckUyn7wzR8KWijN5pP3WoCmrnSEHwcLHsx2rUJKcrGfE4PsUKrMQ0v2PYeE3p81gwsOhWCFscfCQRVC9Srmw==","mode":420,"size":767},"package.json":{"checkedAt":1678883671615,"integrity":"sha512-D2mU3HCPWqQF7n3gcrosuZ9Uv/5fF3Yv1d+5yS/YuB9c6BMzVlqvxVcExYRHiObvvw7JROr/5lUBD7TTHYXXrQ==","mode":420,"size":1878},"README.md":{"checkedAt":1678883671619,"integrity":"sha512-HUTtf8uVkUwryzfyJxXOrqkUUGsl5OKvNZ337d/KULVUeD+mJElQRemEhVr43Yt6EYCWrzYA53CBooYTCAsShQ==","mode":420,"size":1684},"CHANGELOG.md":{"checkedAt":1678883671619,"integrity":"sha512-fkqqiSTzkOQUbY2sT5fKTTBHynYksqIVNBlQtDFzpXphYn45SBbsHhjgE8jalNeLTMTOTQZqp9JBjC6S7KOyDQ==","mode":420,"size":12877},".github/FUNDING.yml":{"checkedAt":1678883671619,"integrity":"sha512-QzTanu+ENNildm1w6PGXHma2NzJu+Vu5Mvp+STrNPzDkdxXeeM8PJ2nVL7A2T1rtw5us5Tkb3NEFNqaO4THWIw==","mode":420,"size":580}}}
|
||||
@@ -0,0 +1,7 @@
|
||||
// Instead of using any - or another less-than-ideal type - to workaround a
|
||||
// TypeScript problem or bug, create a type alias and use that instead.
|
||||
// Wherever possible, use a TypeScript issue number in the type - something
|
||||
// like TS_18757 - or use a descriptive name and leave a detailed comment
|
||||
// alongside the type alias.
|
||||
|
||||
export {}
|
||||
@@ -0,0 +1,5 @@
|
||||
import shelljs from 'shelljs';
|
||||
import nock from 'nock';
|
||||
|
||||
shelljs.config.silent = true;
|
||||
nock.disableNetConnect();
|
||||
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
var global = require("ext/global-this")
|
||||
, validTypes = { object: true, symbol: true };
|
||||
|
||||
module.exports = function () {
|
||||
var Symbol = global.Symbol;
|
||||
var symbol;
|
||||
if (typeof Symbol !== "function") return false;
|
||||
symbol = Symbol("test symbol");
|
||||
try { String(symbol); }
|
||||
catch (e) { return false; }
|
||||
|
||||
// Return 'true' also for polyfills
|
||||
if (!validTypes[typeof Symbol.iterator]) return false;
|
||||
if (!validTypes[typeof Symbol.toPrimitive]) return false;
|
||||
if (!validTypes[typeof Symbol.toStringTag]) return false;
|
||||
|
||||
return true;
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
let Declaration = require('../declaration')
|
||||
|
||||
class UserSelect extends Declaration {
|
||||
/**
|
||||
* Change prefixed value for IE
|
||||
*/
|
||||
set(decl, prefix) {
|
||||
if (prefix === '-ms-' && decl.value === 'contain') {
|
||||
decl.value = 'element'
|
||||
}
|
||||
return super.set(decl, prefix)
|
||||
}
|
||||
|
||||
/**
|
||||
* Avoid prefixing all in IE
|
||||
*/
|
||||
insert(decl, prefix, prefixes) {
|
||||
if (decl.value === 'all' && prefix === '-ms-') {
|
||||
return undefined
|
||||
} else {
|
||||
return super.insert(decl, prefix, prefixes)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
UserSelect.names = ['user-select']
|
||||
|
||||
module.exports = UserSelect
|
||||
Reference in New Issue
Block a user