new license file version [CI SKIP]
This commit is contained in:
@@ -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,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0.01202,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0.00601,"100":0,"101":0,"102":0.00601,"103":0,"104":0,"105":0,"106":0,"107":0.02404,"108":0.6611,"109":0.14424,"110":0,"111":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,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0.01202,"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.00601,"68":0,"69":0,"70":0,"71":0,"72":0.01202,"73":0.16227,"74":0,"75":0.14424,"76":0.08414,"77":0.04207,"78":0,"79":0,"80":0,"81":0,"83":0,"84":0.0601,"85":0,"86":0.00601,"87":0.00601,"88":0,"89":0,"90":0.00601,"91":0,"92":0,"93":0.15025,"94":0.07212,"95":0,"96":0,"97":0,"98":0,"99":0.00601,"100":0.01202,"101":0.00601,"102":0.01803,"103":0.61302,"104":0,"105":0,"106":0.07212,"107":0.14424,"108":11.14855,"109":8.42602,"110":0,"111":0,"112":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,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0.02404,"89":0,"90":0,"91":0,"92":0,"93":0.00601,"94":0,"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,"17":0,"18":0.00601,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0.00601,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0.00601,"100":0,"101":0.00601,"102":0,"103":0,"104":0,"105":0,"106":0.00601,"107":0.11419,"108":2.25375,"109":0.91953},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.00601,"12":0,"13":0.00601,"14":2.99298,"15":0,_:"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.00601,"13.1":0.43873,"14.1":0.32454,"15.1":0,"15.2-15.3":0.01202,"15.4":0,"15.5":0.12621,"15.6":0.21636,"16.0":0.01202,"16.1":0.13222,"16.2":3.22737,"16.3":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,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":1.81569,"10.0-10.2":0,"10.3":0.10653,"11.0-11.2":0,"11.3-11.4":0,"12.0-12.1":0.02367,"12.2-12.5":0.85458,"13.0-13.1":0.07102,"13.2":0.03551,"13.3":0.02367,"13.4-13.7":1.61447,"14.0-14.4":0.18938,"14.5-14.8":1.79201,"15.0-15.1":0.08285,"15.2-15.3":0.36692,"15.4":1.22387,"15.5":0.64153,"15.6":1.31856,"16.0":1.9956,"16.1":5.7335,"16.2":3.64558,"16.3":0.02367},P:{"4":0.06209,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.0207,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0,"12.0":0,"13.0":0,"14.0":0.01035,"15.0":0,"16.0":0.03104,"17.0":0.10348,"18.0":0,"19.0":2.64913},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.78908,"4.4":0,"4.4.3-4.4.4":0.08768},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.00601,"9":0,"10":0,"11":0,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.02394},Q:{"13.1":0},O:{"0":0.45486},H:{"0":0},L:{"0":38.63094},S:{"2.5":0}};
|
||||
@@ -0,0 +1,121 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TimeoutError = void 0;
|
||||
const net = require("net");
|
||||
const unhandle_1 = require("./unhandle");
|
||||
const reentry = Symbol('reentry');
|
||||
const noop = () => { };
|
||||
class TimeoutError extends Error {
|
||||
constructor(threshold, event) {
|
||||
super(`Timeout awaiting '${event}' for ${threshold}ms`);
|
||||
this.event = event;
|
||||
this.name = 'TimeoutError';
|
||||
this.code = 'ETIMEDOUT';
|
||||
}
|
||||
}
|
||||
exports.TimeoutError = TimeoutError;
|
||||
exports.default = (request, delays, options) => {
|
||||
if (reentry in request) {
|
||||
return noop;
|
||||
}
|
||||
request[reentry] = true;
|
||||
const cancelers = [];
|
||||
const { once, unhandleAll } = unhandle_1.default();
|
||||
const addTimeout = (delay, callback, event) => {
|
||||
var _a;
|
||||
const timeout = setTimeout(callback, delay, delay, event);
|
||||
(_a = timeout.unref) === null || _a === void 0 ? void 0 : _a.call(timeout);
|
||||
const cancel = () => {
|
||||
clearTimeout(timeout);
|
||||
};
|
||||
cancelers.push(cancel);
|
||||
return cancel;
|
||||
};
|
||||
const { host, hostname } = options;
|
||||
const timeoutHandler = (delay, event) => {
|
||||
request.destroy(new TimeoutError(delay, event));
|
||||
};
|
||||
const cancelTimeouts = () => {
|
||||
for (const cancel of cancelers) {
|
||||
cancel();
|
||||
}
|
||||
unhandleAll();
|
||||
};
|
||||
request.once('error', error => {
|
||||
cancelTimeouts();
|
||||
// Save original behavior
|
||||
/* istanbul ignore next */
|
||||
if (request.listenerCount('error') === 0) {
|
||||
throw error;
|
||||
}
|
||||
});
|
||||
request.once('close', cancelTimeouts);
|
||||
once(request, 'response', (response) => {
|
||||
once(response, 'end', cancelTimeouts);
|
||||
});
|
||||
if (typeof delays.request !== 'undefined') {
|
||||
addTimeout(delays.request, timeoutHandler, 'request');
|
||||
}
|
||||
if (typeof delays.socket !== 'undefined') {
|
||||
const socketTimeoutHandler = () => {
|
||||
timeoutHandler(delays.socket, 'socket');
|
||||
};
|
||||
request.setTimeout(delays.socket, socketTimeoutHandler);
|
||||
// `request.setTimeout(0)` causes a memory leak.
|
||||
// We can just remove the listener and forget about the timer - it's unreffed.
|
||||
// See https://github.com/sindresorhus/got/issues/690
|
||||
cancelers.push(() => {
|
||||
request.removeListener('timeout', socketTimeoutHandler);
|
||||
});
|
||||
}
|
||||
once(request, 'socket', (socket) => {
|
||||
var _a;
|
||||
const { socketPath } = request;
|
||||
/* istanbul ignore next: hard to test */
|
||||
if (socket.connecting) {
|
||||
const hasPath = Boolean(socketPath !== null && socketPath !== void 0 ? socketPath : net.isIP((_a = hostname !== null && hostname !== void 0 ? hostname : host) !== null && _a !== void 0 ? _a : '') !== 0);
|
||||
if (typeof delays.lookup !== 'undefined' && !hasPath && typeof socket.address().address === 'undefined') {
|
||||
const cancelTimeout = addTimeout(delays.lookup, timeoutHandler, 'lookup');
|
||||
once(socket, 'lookup', cancelTimeout);
|
||||
}
|
||||
if (typeof delays.connect !== 'undefined') {
|
||||
const timeConnect = () => addTimeout(delays.connect, timeoutHandler, 'connect');
|
||||
if (hasPath) {
|
||||
once(socket, 'connect', timeConnect());
|
||||
}
|
||||
else {
|
||||
once(socket, 'lookup', (error) => {
|
||||
if (error === null) {
|
||||
once(socket, 'connect', timeConnect());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if (typeof delays.secureConnect !== 'undefined' && options.protocol === 'https:') {
|
||||
once(socket, 'connect', () => {
|
||||
const cancelTimeout = addTimeout(delays.secureConnect, timeoutHandler, 'secureConnect');
|
||||
once(socket, 'secureConnect', cancelTimeout);
|
||||
});
|
||||
}
|
||||
}
|
||||
if (typeof delays.send !== 'undefined') {
|
||||
const timeRequest = () => addTimeout(delays.send, timeoutHandler, 'send');
|
||||
/* istanbul ignore next: hard to test */
|
||||
if (socket.connecting) {
|
||||
once(socket, 'connect', () => {
|
||||
once(request, 'upload-complete', timeRequest());
|
||||
});
|
||||
}
|
||||
else {
|
||||
once(request, 'upload-complete', timeRequest());
|
||||
}
|
||||
}
|
||||
});
|
||||
if (typeof delays.response !== 'undefined') {
|
||||
once(request, 'upload-complete', () => {
|
||||
const cancelTimeout = addTimeout(delays.response, timeoutHandler, 'response');
|
||||
once(request, 'response', cancelTimeout);
|
||||
});
|
||||
}
|
||||
return cancelTimeouts;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"skip.js","sources":["../src/operators/skip.ts"],"names":[],"mappings":";;;;;AAAA,gDAA2C"}
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"yargs-parser","version":"20.2.7","files":{"build/index.cjs":{"checkedAt":1678887830404,"integrity":"sha512-xuesb9z3UmZa1A3D8kT66AREDnQWuTY2U7gCGsAI64nEaKeR1f8YJ65U5mDAWzi+xf3V8FwGi9y2lGNROLKxHA==","mode":420,"size":41679},"browser.js":{"checkedAt":1678887829195,"integrity":"sha512-rhNCfaGOAHQijN6nrA4SJu7eMl3KbmUScRG3ukZJKjOFZZJpwdeeD4IvKkFa/LfDZS3XLxqV6ya64r4BmhhlUA==","mode":420,"size":1016},"build/lib/index.js":{"checkedAt":1678887830404,"integrity":"sha512-/wXUdcPRl+VB6eO8XYKBDOlK4veoiTsrlbH4A7dwoIza3iDWkrh8jgGJPGBh0cEq8+pmnpUAfyylqQ5ArhZhEA==","mode":420,"size":2023},"build/lib/string-utils.js":{"checkedAt":1678887830404,"integrity":"sha512-EwEedWQNv+eu0v8KpIeUe9qsuKgjn0P81LidqTsLCdKSZm/qHMlGo8QBvvVmziJH4DJy/2o7Te1ectMhZdh0yg==","mode":420,"size":2026},"build/lib/yargs-parser-types.js":{"checkedAt":1678887829276,"integrity":"sha512-TuHIj4w/TkzTTLbAAzm/nW0Db/St469J6HHMiWa4THKdi3VJKsxkE8mmZKwApXlYIjrBPEIp2oxi6+alPk94Pw==","mode":420,"size":11},"LICENSE.txt":{"checkedAt":1678887829236,"integrity":"sha512-EToPsaeTn1m/hKKaWONJhwqjvIWvra5CjWMax+yCWLrIN1/jFSLwPkhN68ViQwYDuut9KCVnGRQKJuxayn6RBA==","mode":420,"size":731},"build/lib/tokenize-arg-string.js":{"checkedAt":1678887830406,"integrity":"sha512-W36UMrWq5gBqGWadCctxNwucGU6p897cNHrs9H5DgKWvvnN7L2M44I3i5XMRkgSekGbV611wivjzKRRomYHlQw==","mode":420,"size":1004},"build/lib/yargs-parser.js":{"checkedAt":1678887830417,"integrity":"sha512-m73hlWswRyfjR9ykaKwvJEdEqB/T8f+OJv+xK28lm/tIhryd1oqFQOZ8wKXusGF6aoYYmlD/Zvy+aYvAUt16PA==","mode":420,"size":45910},"package.json":{"checkedAt":1678887830423,"integrity":"sha512-pmA5pNZQPPibxS/1/rDOr4Euqi1A7rvZG1OFWzCTh9+sKsR0crBjMSDHvW+8WJDdv2LwRCTLNY5zSrD/28Yelg==","mode":420,"size":2392},"CHANGELOG.md":{"checkedAt":1678887830430,"integrity":"sha512-THKxhOPefBNQDJCHaS4NFBRudnse0V9efYJaSPI3+YEbH7P/J/Ol1S5rpaGK3ogd4FJvJRU/s8ycxVV3yXXRqQ==","mode":420,"size":12840},"README.md":{"checkedAt":1678887830430,"integrity":"sha512-h8g6ldn7XeA3lQh9kBjHkKjIF01KJay0GfIxfJWgBgH81d/PZTvjY/Ca1Eayaduc/hJiyZZab/gjEFGq0TsQ7Q==","mode":420,"size":11914}}}
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/observable/fromPromise");
|
||||
//# sourceMappingURL=fromPromise.js.map
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/operator/combineLatest");
|
||||
//# sourceMappingURL=combineLatest.js.map
|
||||
@@ -0,0 +1,33 @@
|
||||
let Declaration = require('../declaration')
|
||||
|
||||
class OverscrollBehavior extends Declaration {
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
prefixed (prop, prefix) {
|
||||
return prefix + 'scroll-chaining'
|
||||
}
|
||||
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
normalize () {
|
||||
return 'overscroll-behavior'
|
||||
}
|
||||
|
||||
/**
|
||||
* Change value for IE
|
||||
*/
|
||||
set (decl, prefix) {
|
||||
if (decl.value === 'auto') {
|
||||
decl.value = 'chained'
|
||||
} else if (decl.value === 'none' || decl.value === 'contain') {
|
||||
decl.value = 'none'
|
||||
}
|
||||
return super.set(decl, prefix)
|
||||
}
|
||||
}
|
||||
|
||||
OverscrollBehavior.names = ['overscroll-behavior', 'scroll-chaining']
|
||||
|
||||
module.exports = OverscrollBehavior
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"merge.js","sources":["../src/operator/merge.ts"],"names":[],"mappings":";;;;;AAAA,gDAA2C"}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("rxjs-compat/operators/switchMap"));
|
||||
//# sourceMappingURL=switchMap.js.map
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "exit-on-epipe",
|
||||
"version": "1.0.1",
|
||||
"author": "sheetjs",
|
||||
"description": "Cleanly exit process on EPIPE",
|
||||
"keywords": [ "epipe", "pipe", "error", "exit" ],
|
||||
"main": "./exit-on-epipe",
|
||||
"dependencies": {
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha":"~2.5.3"
|
||||
},
|
||||
"repository": { "type":"git", "url":"git://github.com/SheetJS/node-exit-on-epipe.git" },
|
||||
"scripts": {
|
||||
"test": "make test"
|
||||
},
|
||||
"files": ["exit-on-epipe.js", "LICENSE", "README.md"],
|
||||
"bugs": { "url": "https://github.com/SheetJS/node-exit-on-epipe/issues" },
|
||||
"license": "Apache-2.0",
|
||||
"engines": { "node": ">=0.8" }
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"name": "shelljs",
|
||||
"version": "0.8.4",
|
||||
"description": "Portable Unix shell commands for Node.js",
|
||||
"keywords": [
|
||||
"shelljs",
|
||||
"bash",
|
||||
"unix",
|
||||
"shell",
|
||||
"makefile",
|
||||
"make",
|
||||
"jake",
|
||||
"synchronous"
|
||||
],
|
||||
"contributors": [
|
||||
"Nate Fischer <ntfschr@gmail.com> (https://github.com/nfischer)",
|
||||
"Brandon Freitag <freitagbr@gmail.com> (https://github.com/freitagbr)"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/shelljs/shelljs.git"
|
||||
},
|
||||
"license": "BSD-3-Clause",
|
||||
"homepage": "http://github.com/shelljs/shelljs",
|
||||
"main": "./shell.js",
|
||||
"files": [
|
||||
"commands.js",
|
||||
"global.js",
|
||||
"make.js",
|
||||
"plugin.js",
|
||||
"shell.js",
|
||||
"bin",
|
||||
"src"
|
||||
],
|
||||
"scripts": {
|
||||
"ci-or-install": "node scripts/ci-or-install",
|
||||
"posttest": "npm run lint",
|
||||
"test": "nyc --reporter=text --reporter=lcov ava test/*.js",
|
||||
"test-no-coverage": "ava test/*.js",
|
||||
"gendocs": "node scripts/generate-docs",
|
||||
"lint": "eslint .",
|
||||
"after-travis": "travis-check-changes",
|
||||
"changelog": "shelljs-changelog",
|
||||
"codecov": "codecov",
|
||||
"release:major": "shelljs-release major",
|
||||
"release:minor": "shelljs-release minor",
|
||||
"release:patch": "shelljs-release patch"
|
||||
},
|
||||
"bin": {
|
||||
"shjs": "./bin/shjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"glob": "^7.0.0",
|
||||
"interpret": "^1.0.0",
|
||||
"rechoir": "^0.6.2"
|
||||
},
|
||||
"ava": {
|
||||
"serial": true,
|
||||
"powerAssert": false
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^0.21.0",
|
||||
"chalk": "^1.1.3",
|
||||
"codecov": "^3.0.2",
|
||||
"coffee-script": "^1.10.0",
|
||||
"eslint": "^2.0.0",
|
||||
"eslint-config-airbnb-base": "^3.0.0",
|
||||
"eslint-plugin-import": "^1.11.1",
|
||||
"nyc": "^11.3.0",
|
||||
"shelljs-changelog": "^0.2.0",
|
||||
"shelljs-release": "^0.3.0",
|
||||
"shx": "^0.2.0",
|
||||
"travis-check-changes": "^0.2.0"
|
||||
},
|
||||
"optionalDependencies": {},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
const Deprecated = require('deprecated-obj');
|
||||
const deprecated = require('../config/deprecated.json');
|
||||
const Log = require('./log');
|
||||
|
||||
module.exports = (config, log = new Log()) => {
|
||||
const deprecations = new Deprecated(deprecated, config);
|
||||
const compliant = deprecations.getCompliant();
|
||||
const violations = deprecations.getViolations();
|
||||
if (Object.keys(violations).length > 0) {
|
||||
log.warn(`Deprecated configuration options found. Please migrate before the next major release.`);
|
||||
}
|
||||
for (const d in violations) {
|
||||
log.warn(
|
||||
`The "${d}" option is deprecated. ${
|
||||
violations[d] ? (/^[A-Z]/.test(violations[d]) ? violations[d] : `Please use "${violations[d]}" instead.`) : ''
|
||||
}`
|
||||
);
|
||||
}
|
||||
return compliant;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"finally.js","sources":["../src/operator/finally.ts"],"names":[],"mappings":";;;;;AAAA,kDAA6C"}
|
||||
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
const rc = require('rc');
|
||||
|
||||
const registryUrl = scope => {
|
||||
const result = rc('npm', {registry: 'https://registry.npmjs.org/'});
|
||||
const url = result[`${scope}:registry`] || result.config_registry || result.registry;
|
||||
return url.slice(-1) === '/' ? url : `${url}/`;
|
||||
};
|
||||
|
||||
module.exports = registryUrl;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = registryUrl;
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"name": "parse-path",
|
||||
"version": "4.0.4",
|
||||
"description": "Parse paths (local paths, urls: ssh/git/etc)",
|
||||
"main": "lib/index.js",
|
||||
"directories": {
|
||||
"example": "example",
|
||||
"test": "test"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/IonicaBizau/parse-path.git"
|
||||
},
|
||||
"keywords": [
|
||||
"parse",
|
||||
"path",
|
||||
"url",
|
||||
"node",
|
||||
"git",
|
||||
"advanced"
|
||||
],
|
||||
"author": "Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/IonicaBizau/parse-path/issues"
|
||||
},
|
||||
"homepage": "https://github.com/IonicaBizau/parse-path",
|
||||
"devDependencies": {
|
||||
"tester": "^1.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-ssh": "^1.3.0",
|
||||
"protocols": "^1.4.0",
|
||||
"qs": "^6.9.4",
|
||||
"query-string": "^6.13.8"
|
||||
},
|
||||
"files": [
|
||||
"bin/",
|
||||
"app/",
|
||||
"lib/",
|
||||
"dist/",
|
||||
"src/",
|
||||
"scripts/",
|
||||
"resources/",
|
||||
"menu/",
|
||||
"cli.js",
|
||||
"index.js",
|
||||
"bloggify.js",
|
||||
"bloggify.json",
|
||||
"bloggify/"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';
|
||||
export const defaultThrottleConfig = {
|
||||
leading: true,
|
||||
trailing: false
|
||||
};
|
||||
export function throttle(durationSelector, config = defaultThrottleConfig) {
|
||||
return (source) => source.lift(new ThrottleOperator(durationSelector, !!config.leading, !!config.trailing));
|
||||
}
|
||||
class ThrottleOperator {
|
||||
constructor(durationSelector, leading, trailing) {
|
||||
this.durationSelector = durationSelector;
|
||||
this.leading = leading;
|
||||
this.trailing = trailing;
|
||||
}
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new ThrottleSubscriber(subscriber, this.durationSelector, this.leading, this.trailing));
|
||||
}
|
||||
}
|
||||
class ThrottleSubscriber extends SimpleOuterSubscriber {
|
||||
constructor(destination, durationSelector, _leading, _trailing) {
|
||||
super(destination);
|
||||
this.destination = destination;
|
||||
this.durationSelector = durationSelector;
|
||||
this._leading = _leading;
|
||||
this._trailing = _trailing;
|
||||
this._hasValue = false;
|
||||
}
|
||||
_next(value) {
|
||||
this._hasValue = true;
|
||||
this._sendValue = value;
|
||||
if (!this._throttled) {
|
||||
if (this._leading) {
|
||||
this.send();
|
||||
}
|
||||
else {
|
||||
this.throttle(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
send() {
|
||||
const { _hasValue, _sendValue } = this;
|
||||
if (_hasValue) {
|
||||
this.destination.next(_sendValue);
|
||||
this.throttle(_sendValue);
|
||||
}
|
||||
this._hasValue = false;
|
||||
this._sendValue = undefined;
|
||||
}
|
||||
throttle(value) {
|
||||
const duration = this.tryDurationSelector(value);
|
||||
if (!!duration) {
|
||||
this.add(this._throttled = innerSubscribe(duration, new SimpleInnerSubscriber(this)));
|
||||
}
|
||||
}
|
||||
tryDurationSelector(value) {
|
||||
try {
|
||||
return this.durationSelector(value);
|
||||
}
|
||||
catch (err) {
|
||||
this.destination.error(err);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
throttlingDone() {
|
||||
const { _throttled, _trailing } = this;
|
||||
if (_throttled) {
|
||||
_throttled.unsubscribe();
|
||||
}
|
||||
this._throttled = undefined;
|
||||
if (_trailing) {
|
||||
this.send();
|
||||
}
|
||||
}
|
||||
notifyNext() {
|
||||
this.throttlingDone();
|
||||
}
|
||||
notifyComplete() {
|
||||
this.throttlingDone();
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=throttle.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iterator.js","sources":["../src/symbol/iterator.ts"],"names":[],"mappings":";;;;;AAAA,iDAA4C"}
|
||||
@@ -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.03399,"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.00486,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00486,"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,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0.03399,"108":0.46123,"109":0.335,"110":0,"111":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,"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.00486,"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.00486,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0.04855,"76":0.02913,"77":0,"78":0,"79":0.80593,"80":0,"81":0.00486,"83":0.04855,"84":0,"85":0,"86":0,"87":0.00971,"88":0.00486,"89":0,"90":0,"91":0,"92":0,"93":0.01457,"94":0,"95":0.01942,"96":0,"97":0,"98":0.00486,"99":0,"100":0.00971,"101":0,"102":0.00971,"103":0.06312,"104":0.01457,"105":0.00971,"106":0.08254,"107":0.15051,"108":6.10759,"109":4.70935,"110":0.01457,"111":0,"112":0.00486},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.00971,"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,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.06312,"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.03884,"94":0.06312,"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,"17":0,"18":0,"79":0,"80":0,"81":0,"83":0,"84":0.00971,"85":0,"86":0,"87":0,"88":0,"89":0.00486,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0.00486,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0.00486,"104":0,"105":0,"106":0.01457,"107":0.41753,"108":1.64585,"109":1.69925},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.03884,"15":0.00486,_:"0","3.1":0,"3.2":0,"5.1":0.00486,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.00971,"13.1":1.07296,"14.1":0.32529,"15.1":0.00486,"15.2-15.3":0.01457,"15.4":0.01457,"15.5":0.12623,"15.6":0.7234,"16.0":0.10196,"16.1":0.24275,"16.2":0.5826,"16.3":0.03884},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00764,"6.0-6.1":0,"7.0-7.1":0.00255,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.08403,"10.0-10.2":0,"10.3":0.02801,"11.0-11.2":0.03056,"11.3-11.4":0.08148,"12.0-12.1":0.00255,"12.2-12.5":0.42778,"13.0-13.1":0,"13.2":0,"13.3":0.01273,"13.4-13.7":0.06875,"14.0-14.4":0.04838,"14.5-14.8":0.48635,"15.0-15.1":0.05347,"15.2-15.3":0.10949,"15.4":0.14259,"15.5":1.20187,"15.6":3.46047,"16.0":2.78824,"16.1":7.67466,"16.2":6.81654,"16.3":0.39468},P:{"4":0.0971,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.14026,"8.2":0,"9.2":0.03237,"10.1":0,"11.1-11.2":0.01079,"12.0":0,"13.0":0.02158,"14.0":0.01079,"15.0":0.01079,"16.0":0.03237,"17.0":0.03237,"18.0":0.08631,"19.0":2.41677},I:{"0":0,"3":0,"4":0.06227,"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.08981},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0.00486,"11":0.01942,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},S:{"2.5":0},R:{_:"0"},M:{"0":0.27783},Q:{"13.1":0},O:{"0":0.07203},H:{"0":1.23722},L:{"0":47.8876}};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"2":"C K L H M N O","132":"P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t"},C:{"2":"0 1 2 3 4 5 6 7 8 9 CC tB I u J E F G A B C K L H M N O v w 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 e lB mB nB DC EC","322":"oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 I u J E F G A B C K L H M N O v w 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","66":"dB eB fB gB hB iB jB kB e lB mB nB oB pB","132":"P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB FC"},E:{"2":"I u J E F G A B C GC zB HC IC JC KC 0B qB rB","578":"K L H 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 G B C H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB OC PC QC RC qB 9B SC rB","66":"SB TB UB VB WB XB YB ZB aB bB cB dB","132":"eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d"},G:{"2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B"},H:{"2":"nC"},I:{"2":"tB I D oC pC qC rC AC sC tC"},J:{"2":"E A"},K:{"2":"A B C qB 9B rB","132":"e"},L:{"132":"D"},M:{"322":"D"},N:{"2":"A B"},O:{"2":"uC"},P:{"2":"I vC wC xC yC zC 0B 0C","132":"1C 2C 3C 4C sB 5C 6C 7C"},Q:{"2":"1B"},R:{"2":"8C"},S:{"2":"9C"}},B:4,C:"WebXR Device API"};
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"decode-uri-component","version":"0.2.2","files":{"license":{"checkedAt":1678887829789,"integrity":"sha512-kyQDNB4Z3ABhZX/18rJ7eE5M00juB2Y6/my9ZqaINXfbdZRFC8ZA5Sw/9IwW+aC+B/T5cmUB9ZGaxa4ks+c5tw==","mode":420,"size":1139},"index.js":{"checkedAt":1678887829789,"integrity":"sha512-I//55BWRcQmfyvcZ48yppOgFNq7oplP2ZJ3ooE4z/9Oa5EWTNmF+XtNdHQ9jN4CXlHrDidEr80KGKqZAgXosFQ==","mode":420,"size":2261},"readme.md":{"checkedAt":1678887829789,"integrity":"sha512-B5uoQAzGd7ilqvL4Gfw0IyLOQ8gMu0YvXoZm81Wu/n6o9Z8/aWbG1ldaydC5Maxipwst3aaZy0DX7Wp2rFzSew==","mode":420,"size":1995},"package.json":{"checkedAt":1678887829789,"integrity":"sha512-DiwPzhFSkA6sReB2P8+YmNsvkz4Jvoih1NHEL6ima36Sk+jtmHA34H6cy/pHJJC3KFi1Sgf0Ik/Y2r+a7KsX5w==","mode":420,"size":698}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"timeoutWith.js","sources":["../src/operator/timeoutWith.ts"],"names":[],"mappings":";;;;;AAAA,sDAAiD"}
|
||||
@@ -0,0 +1,42 @@
|
||||
let Declaration = require('../declaration')
|
||||
|
||||
class WritingMode extends Declaration {
|
||||
insert (decl, prefix, prefixes) {
|
||||
if (prefix === '-ms-') {
|
||||
let cloned = this.set(this.clone(decl), prefix)
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix)
|
||||
}
|
||||
let direction = 'ltr'
|
||||
|
||||
decl.parent.nodes.forEach(i => {
|
||||
if (i.prop === 'direction') {
|
||||
if (i.value === 'rtl' || i.value === 'ltr') direction = i.value
|
||||
}
|
||||
})
|
||||
|
||||
cloned.value = WritingMode.msValues[direction][decl.value] || decl.value
|
||||
return decl.parent.insertBefore(decl, cloned)
|
||||
}
|
||||
|
||||
return super.insert(decl, prefix, prefixes)
|
||||
}
|
||||
}
|
||||
|
||||
WritingMode.names = ['writing-mode']
|
||||
|
||||
WritingMode.msValues = {
|
||||
ltr: {
|
||||
'horizontal-tb': 'lr-tb',
|
||||
'vertical-rl': 'tb-rl',
|
||||
'vertical-lr': 'tb-lr'
|
||||
},
|
||||
rtl: {
|
||||
'horizontal-tb': 'rl-tb',
|
||||
'vertical-rl': 'bt-rl',
|
||||
'vertical-lr': 'bt-lr'
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = WritingMode
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concat.js","sources":["../src/operators/concat.ts"],"names":[],"mappings":";;;;;AAAA,kDAA6C"}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
Lowercase the keys of an object.
|
||||
|
||||
@returns A new object with the keys lowercased.
|
||||
|
||||
@example
|
||||
```
|
||||
import lowercaseKeys = require('lowercase-keys');
|
||||
|
||||
lowercaseKeys({FOO: true, bAr: false});
|
||||
//=> {foo: true, bar: false}
|
||||
```
|
||||
*/
|
||||
declare function lowercaseKeys<T extends unknown>(object: {[key: string]: T}): {[key: string]: T};
|
||||
|
||||
export = lowercaseKeys;
|
||||
@@ -0,0 +1,170 @@
|
||||
# globby
|
||||
|
||||
> User-friendly glob matching
|
||||
|
||||
Based on [`fast-glob`](https://github.com/mrmlnc/fast-glob) but adds a bunch of useful features.
|
||||
|
||||
## Features
|
||||
|
||||
- Promise API
|
||||
- Multiple patterns
|
||||
- Negated patterns: `['foo*', '!foobar']`
|
||||
- Expands directories: `foo` → `foo/**/*`
|
||||
- Supports `.gitignore`
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install globby
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
├── unicorn
|
||||
├── cake
|
||||
└── rainbow
|
||||
```
|
||||
|
||||
```js
|
||||
const globby = require('globby');
|
||||
|
||||
(async () => {
|
||||
const paths = await globby(['*', '!cake']);
|
||||
|
||||
console.log(paths);
|
||||
//=> ['unicorn', 'rainbow']
|
||||
})();
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
|
||||
|
||||
### globby(patterns, options?)
|
||||
|
||||
Returns a `Promise<string[]>` of matching paths.
|
||||
|
||||
#### patterns
|
||||
|
||||
Type: `string | string[]`
|
||||
|
||||
See supported `minimatch` [patterns](https://github.com/isaacs/minimatch#usage).
|
||||
|
||||
#### options
|
||||
|
||||
Type: `object`
|
||||
|
||||
See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones below.
|
||||
|
||||
##### expandDirectories
|
||||
|
||||
Type: `boolean | string[] | object`\
|
||||
Default: `true`
|
||||
|
||||
If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `object` with `files` and `extensions` like below:
|
||||
|
||||
```js
|
||||
const globby = require('globby');
|
||||
|
||||
(async () => {
|
||||
const paths = await globby('images', {
|
||||
expandDirectories: {
|
||||
files: ['cat', 'unicorn', '*.jpg'],
|
||||
extensions: ['png']
|
||||
}
|
||||
});
|
||||
|
||||
console.log(paths);
|
||||
//=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg']
|
||||
})();
|
||||
```
|
||||
|
||||
Note that if you set this option to `false`, you won't get back matched directories unless you set `onlyFiles: false`.
|
||||
|
||||
##### gitignore
|
||||
|
||||
Type: `boolean`\
|
||||
Default: `false`
|
||||
|
||||
Respect ignore patterns in `.gitignore` files that apply to the globbed files.
|
||||
|
||||
### globby.sync(patterns, options?)
|
||||
|
||||
Returns `string[]` of matching paths.
|
||||
|
||||
### globby.stream(patterns, options?)
|
||||
|
||||
Returns a [`stream.Readable`](https://nodejs.org/api/stream.html#stream_readable_streams) of matching paths.
|
||||
|
||||
Since Node.js 10, [readable streams are iterable](https://nodejs.org/api/stream.html#stream_readable_symbol_asynciterator), so you can loop over glob matches in a [`for await...of` loop](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of) like this:
|
||||
|
||||
```js
|
||||
const globby = require('globby');
|
||||
|
||||
(async () => {
|
||||
for await (const path of globby.stream('*.tmp')) {
|
||||
console.log(path);
|
||||
}
|
||||
})();
|
||||
```
|
||||
|
||||
### globby.generateGlobTasks(patterns, options?)
|
||||
|
||||
Returns an `object[]` in the format `{pattern: string, options: Object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
|
||||
|
||||
Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.
|
||||
|
||||
### globby.hasMagic(patterns, options?)
|
||||
|
||||
Returns a `boolean` of whether there are any special glob characters in the `patterns`.
|
||||
|
||||
Note that the options affect the results.
|
||||
|
||||
This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isdynamicpatternpattern-options).
|
||||
|
||||
### globby.gitignore(options?)
|
||||
|
||||
Returns a `Promise<(path: string) => boolean>` indicating whether a given path is ignored via a `.gitignore` file.
|
||||
|
||||
Takes `cwd?: string` and `ignore?: string[]` as options. `.gitignore` files matched by the ignore config are not used for the resulting filter function.
|
||||
|
||||
```js
|
||||
const {gitignore} = require('globby');
|
||||
|
||||
(async () => {
|
||||
const isIgnored = await gitignore();
|
||||
console.log(isIgnored('some/file'));
|
||||
})();
|
||||
```
|
||||
|
||||
### globby.gitignore.sync(options?)
|
||||
|
||||
Returns a `(path: string) => boolean` indicating whether a given path is ignored via a `.gitignore` file.
|
||||
|
||||
Takes the same options as `globby.gitignore`.
|
||||
|
||||
## Globbing patterns
|
||||
|
||||
Just a quick overview.
|
||||
|
||||
- `*` matches any number of characters, but not `/`
|
||||
- `?` matches a single character, but not `/`
|
||||
- `**` matches any number of characters, including `/`, as long as it's the only thing in a path part
|
||||
- `{}` allows for a comma-separated list of "or" expressions
|
||||
- `!` at the beginning of a pattern will negate the match
|
||||
|
||||
[Various patterns and expected matches.](https://github.com/sindresorhus/multimatch/blob/main/test/test.js)
|
||||
|
||||
## globby for enterprise
|
||||
|
||||
Available as part of the Tidelift Subscription.
|
||||
|
||||
The maintainers of globby and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-globby?utm_source=npm-globby&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
||||
|
||||
## Related
|
||||
|
||||
- [multimatch](https://github.com/sindresorhus/multimatch) - Match against a list instead of the filesystem
|
||||
- [matcher](https://github.com/sindresorhus/matcher) - Simple wildcard matching
|
||||
- [del](https://github.com/sindresorhus/del) - Delete files and directories
|
||||
- [make-dir](https://github.com/sindresorhus/make-dir) - Make a directory and its parents if needed
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"do.js","sources":["../src/operator/do.ts"],"names":[],"mappings":";;;;;AAAA,6CAAwC"}
|
||||
@@ -0,0 +1,229 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
### [8.3.2](https://github.com/uuidjs/uuid/compare/v8.3.1...v8.3.2) (2020-12-08)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- lazy load getRandomValues ([#537](https://github.com/uuidjs/uuid/issues/537)) ([16c8f6d](https://github.com/uuidjs/uuid/commit/16c8f6df2f6b09b4d6235602d6a591188320a82e)), closes [#536](https://github.com/uuidjs/uuid/issues/536)
|
||||
|
||||
### [8.3.1](https://github.com/uuidjs/uuid/compare/v8.3.0...v8.3.1) (2020-10-04)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- support expo>=39.0.0 ([#515](https://github.com/uuidjs/uuid/issues/515)) ([c65a0f3](https://github.com/uuidjs/uuid/commit/c65a0f3fa73b901959d638d1e3591dfacdbed867)), closes [#375](https://github.com/uuidjs/uuid/issues/375)
|
||||
|
||||
## [8.3.0](https://github.com/uuidjs/uuid/compare/v8.2.0...v8.3.0) (2020-07-27)
|
||||
|
||||
### Features
|
||||
|
||||
- add parse/stringify/validate/version/NIL APIs ([#479](https://github.com/uuidjs/uuid/issues/479)) ([0e6c10b](https://github.com/uuidjs/uuid/commit/0e6c10ba1bf9517796ff23c052fc0468eedfd5f4)), closes [#475](https://github.com/uuidjs/uuid/issues/475) [#478](https://github.com/uuidjs/uuid/issues/478) [#480](https://github.com/uuidjs/uuid/issues/480) [#481](https://github.com/uuidjs/uuid/issues/481) [#180](https://github.com/uuidjs/uuid/issues/180)
|
||||
|
||||
## [8.2.0](https://github.com/uuidjs/uuid/compare/v8.1.0...v8.2.0) (2020-06-23)
|
||||
|
||||
### Features
|
||||
|
||||
- improve performance of v1 string representation ([#453](https://github.com/uuidjs/uuid/issues/453)) ([0ee0b67](https://github.com/uuidjs/uuid/commit/0ee0b67c37846529c66089880414d29f3ae132d5))
|
||||
- remove deprecated v4 string parameter ([#454](https://github.com/uuidjs/uuid/issues/454)) ([88ce3ca](https://github.com/uuidjs/uuid/commit/88ce3ca0ba046f60856de62c7ce03f7ba98ba46c)), closes [#437](https://github.com/uuidjs/uuid/issues/437)
|
||||
- support jspm ([#473](https://github.com/uuidjs/uuid/issues/473)) ([e9f2587](https://github.com/uuidjs/uuid/commit/e9f2587a92575cac31bc1d4ae944e17c09756659))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- prepare package exports for webpack 5 ([#468](https://github.com/uuidjs/uuid/issues/468)) ([8d6e6a5](https://github.com/uuidjs/uuid/commit/8d6e6a5f8965ca9575eb4d92e99a43435f4a58a8))
|
||||
|
||||
## [8.1.0](https://github.com/uuidjs/uuid/compare/v8.0.0...v8.1.0) (2020-05-20)
|
||||
|
||||
### Features
|
||||
|
||||
- improve v4 performance by reusing random number array ([#435](https://github.com/uuidjs/uuid/issues/435)) ([bf4af0d](https://github.com/uuidjs/uuid/commit/bf4af0d711b4d2ed03d1f74fd12ad0baa87dc79d))
|
||||
- optimize V8 performance of bytesToUuid ([#434](https://github.com/uuidjs/uuid/issues/434)) ([e156415](https://github.com/uuidjs/uuid/commit/e156415448ec1af2351fa0b6660cfb22581971f2))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- export package.json required by react-native and bundlers ([#449](https://github.com/uuidjs/uuid/issues/449)) ([be1c8fe](https://github.com/uuidjs/uuid/commit/be1c8fe9a3206c358e0059b52fafd7213aa48a52)), closes [ai/nanoevents#44](https://github.com/ai/nanoevents/issues/44#issuecomment-602010343) [#444](https://github.com/uuidjs/uuid/issues/444)
|
||||
|
||||
## [8.0.0](https://github.com/uuidjs/uuid/compare/v7.0.3...v8.0.0) (2020-04-29)
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
- For native ECMAScript Module (ESM) usage in Node.js only named exports are exposed, there is no more default export.
|
||||
|
||||
```diff
|
||||
-import uuid from 'uuid';
|
||||
-console.log(uuid.v4()); // -> 'cd6c3b08-0adc-4f4b-a6ef-36087a1c9869'
|
||||
+import { v4 as uuidv4 } from 'uuid';
|
||||
+uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
|
||||
```
|
||||
|
||||
- Deep requiring specific algorithms of this library like `require('uuid/v4')`, which has been deprecated in `uuid@7`, is no longer supported.
|
||||
|
||||
Instead use the named exports that this module exports.
|
||||
|
||||
For ECMAScript Modules (ESM):
|
||||
|
||||
```diff
|
||||
-import uuidv4 from 'uuid/v4';
|
||||
+import { v4 as uuidv4 } from 'uuid';
|
||||
uuidv4();
|
||||
```
|
||||
|
||||
For CommonJS:
|
||||
|
||||
```diff
|
||||
-const uuidv4 = require('uuid/v4');
|
||||
+const { v4: uuidv4 } = require('uuid');
|
||||
uuidv4();
|
||||
```
|
||||
|
||||
### Features
|
||||
|
||||
- native Node.js ES Modules (wrapper approach) ([#423](https://github.com/uuidjs/uuid/issues/423)) ([2d9f590](https://github.com/uuidjs/uuid/commit/2d9f590ad9701d692625c07ed62f0a0f91227991)), closes [#245](https://github.com/uuidjs/uuid/issues/245) [#419](https://github.com/uuidjs/uuid/issues/419) [#342](https://github.com/uuidjs/uuid/issues/342)
|
||||
- remove deep requires ([#426](https://github.com/uuidjs/uuid/issues/426)) ([daf72b8](https://github.com/uuidjs/uuid/commit/daf72b84ceb20272a81bb5fbddb05dd95922cbba))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- add CommonJS syntax example to README quickstart section ([#417](https://github.com/uuidjs/uuid/issues/417)) ([e0ec840](https://github.com/uuidjs/uuid/commit/e0ec8402c7ad44b7ef0453036c612f5db513fda0))
|
||||
|
||||
### [7.0.3](https://github.com/uuidjs/uuid/compare/v7.0.2...v7.0.3) (2020-03-31)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- make deep require deprecation warning work in browsers ([#409](https://github.com/uuidjs/uuid/issues/409)) ([4b71107](https://github.com/uuidjs/uuid/commit/4b71107d8c0d2ef56861ede6403fc9dc35a1e6bf)), closes [#408](https://github.com/uuidjs/uuid/issues/408)
|
||||
|
||||
### [7.0.2](https://github.com/uuidjs/uuid/compare/v7.0.1...v7.0.2) (2020-03-04)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- make access to msCrypto consistent ([#393](https://github.com/uuidjs/uuid/issues/393)) ([8bf2a20](https://github.com/uuidjs/uuid/commit/8bf2a20f3565df743da7215eebdbada9d2df118c))
|
||||
- simplify link in deprecation warning ([#391](https://github.com/uuidjs/uuid/issues/391)) ([bb2c8e4](https://github.com/uuidjs/uuid/commit/bb2c8e4e9f4c5f9c1eaaf3ea59710c633cd90cb7))
|
||||
- update links to match content in readme ([#386](https://github.com/uuidjs/uuid/issues/386)) ([44f2f86](https://github.com/uuidjs/uuid/commit/44f2f86e9d2bbf14ee5f0f00f72a3db1292666d4))
|
||||
|
||||
### [7.0.1](https://github.com/uuidjs/uuid/compare/v7.0.0...v7.0.1) (2020-02-25)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- clean up esm builds for node and browser ([#383](https://github.com/uuidjs/uuid/issues/383)) ([59e6a49](https://github.com/uuidjs/uuid/commit/59e6a49e7ce7b3e8fb0f3ee52b9daae72af467dc))
|
||||
- provide browser versions independent from module system ([#380](https://github.com/uuidjs/uuid/issues/380)) ([4344a22](https://github.com/uuidjs/uuid/commit/4344a22e7aed33be8627eeaaf05360f256a21753)), closes [#378](https://github.com/uuidjs/uuid/issues/378)
|
||||
|
||||
## [7.0.0](https://github.com/uuidjs/uuid/compare/v3.4.0...v7.0.0) (2020-02-24)
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
- The default export, which used to be the v4() method but which was already discouraged in v3.x of this library, has been removed.
|
||||
- Explicitly note that deep imports of the different uuid version functions are deprecated and no longer encouraged and that ECMAScript module named imports should be used instead. Emit a deprecation warning for people who deep-require the different algorithm variants.
|
||||
- Remove builtin support for insecure random number generators in the browser. Users who want that will have to supply their own random number generator function.
|
||||
- Remove support for generating v3 and v5 UUIDs in Node.js<4.x
|
||||
- Convert code base to ECMAScript Modules (ESM) and release CommonJS build for node and ESM build for browser bundlers.
|
||||
|
||||
### Features
|
||||
|
||||
- add UMD build to npm package ([#357](https://github.com/uuidjs/uuid/issues/357)) ([4e75adf](https://github.com/uuidjs/uuid/commit/4e75adf435196f28e3fbbe0185d654b5ded7ca2c)), closes [#345](https://github.com/uuidjs/uuid/issues/345)
|
||||
- add various es module and CommonJS examples ([b238510](https://github.com/uuidjs/uuid/commit/b238510bf352463521f74bab175a3af9b7a42555))
|
||||
- ensure that docs are up-to-date in CI ([ee5e77d](https://github.com/uuidjs/uuid/commit/ee5e77db547474f5a8f23d6c857a6d399209986b))
|
||||
- hybrid CommonJS & ECMAScript modules build ([a3f078f](https://github.com/uuidjs/uuid/commit/a3f078faa0baff69ab41aed08e041f8f9c8993d0))
|
||||
- remove insecure fallback random number generator ([3a5842b](https://github.com/uuidjs/uuid/commit/3a5842b141a6e5de0ae338f391661e6b84b167c9)), closes [#173](https://github.com/uuidjs/uuid/issues/173)
|
||||
- remove support for pre Node.js v4 Buffer API ([#356](https://github.com/uuidjs/uuid/issues/356)) ([b59b5c5](https://github.com/uuidjs/uuid/commit/b59b5c5ecad271c5453f1a156f011671f6d35627))
|
||||
- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([c37a518](https://github.com/uuidjs/uuid/commit/c37a518e367ac4b6d0aa62dba1bc6ce9e85020f7)), closes [#338](https://github.com/uuidjs/uuid/issues/338)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- add deep-require proxies for local testing and adjust tests ([#365](https://github.com/uuidjs/uuid/issues/365)) ([7fedc79](https://github.com/uuidjs/uuid/commit/7fedc79ac8fda4bfd1c566c7f05ef4ac13b2db48))
|
||||
- add note about removal of default export ([#372](https://github.com/uuidjs/uuid/issues/372)) ([12749b7](https://github.com/uuidjs/uuid/commit/12749b700eb49db8a9759fd306d8be05dbfbd58c)), closes [#370](https://github.com/uuidjs/uuid/issues/370)
|
||||
- deprecated deep requiring of the different algorithm versions ([#361](https://github.com/uuidjs/uuid/issues/361)) ([c0bdf15](https://github.com/uuidjs/uuid/commit/c0bdf15e417639b1aeb0b247b2fb11f7a0a26b23))
|
||||
|
||||
## [3.4.0](https://github.com/uuidjs/uuid/compare/v3.3.3...v3.4.0) (2020-01-16)
|
||||
|
||||
### Features
|
||||
|
||||
- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([e2d7314](https://github.com/uuidjs/uuid/commit/e2d7314)), closes [#338](https://github.com/uuidjs/uuid/issues/338)
|
||||
|
||||
## [3.3.3](https://github.com/uuidjs/uuid/compare/v3.3.2...v3.3.3) (2019-08-19)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- no longer run ci tests on node v4
|
||||
- upgrade dependencies
|
||||
|
||||
## [3.3.2](https://github.com/uuidjs/uuid/compare/v3.3.1...v3.3.2) (2018-06-28)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- typo ([305d877](https://github.com/uuidjs/uuid/commit/305d877))
|
||||
|
||||
## [3.3.1](https://github.com/uuidjs/uuid/compare/v3.3.0...v3.3.1) (2018-06-28)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- fix [#284](https://github.com/uuidjs/uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/uuidjs/uuid/commit/f2a60f2))
|
||||
|
||||
# [3.3.0](https://github.com/uuidjs/uuid/compare/v3.2.1...v3.3.0) (2018-06-22)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- assignment to readonly property to allow running in strict mode ([#270](https://github.com/uuidjs/uuid/issues/270)) ([d062fdc](https://github.com/uuidjs/uuid/commit/d062fdc))
|
||||
- fix [#229](https://github.com/uuidjs/uuid/issues/229) ([c9684d4](https://github.com/uuidjs/uuid/commit/c9684d4))
|
||||
- Get correct version of IE11 crypto ([#274](https://github.com/uuidjs/uuid/issues/274)) ([153d331](https://github.com/uuidjs/uuid/commit/153d331))
|
||||
- mem issue when generating uuid ([#267](https://github.com/uuidjs/uuid/issues/267)) ([c47702c](https://github.com/uuidjs/uuid/commit/c47702c))
|
||||
|
||||
### Features
|
||||
|
||||
- enforce Conventional Commit style commit messages ([#282](https://github.com/uuidjs/uuid/issues/282)) ([cc9a182](https://github.com/uuidjs/uuid/commit/cc9a182))
|
||||
|
||||
## [3.2.1](https://github.com/uuidjs/uuid/compare/v3.2.0...v3.2.1) (2018-01-16)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b))
|
||||
|
||||
# [3.2.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.2.0) (2018-01-16)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- remove mistakenly added typescript dependency, rollback version (standard-version will auto-increment) ([09fa824](https://github.com/uuidjs/uuid/commit/09fa824))
|
||||
- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b))
|
||||
|
||||
### Features
|
||||
|
||||
- Add v3 Support ([#217](https://github.com/uuidjs/uuid/issues/217)) ([d94f726](https://github.com/uuidjs/uuid/commit/d94f726))
|
||||
|
||||
# [3.1.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.0.1) (2017-06-17)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- (fix) Add .npmignore file to exclude test/ and other non-essential files from packing. (#183)
|
||||
- Fix typo (#178)
|
||||
- Simple typo fix (#165)
|
||||
|
||||
### Features
|
||||
|
||||
- v5 support in CLI (#197)
|
||||
- V5 support (#188)
|
||||
|
||||
# 3.0.1 (2016-11-28)
|
||||
|
||||
- split uuid versions into separate files
|
||||
|
||||
# 3.0.0 (2016-11-17)
|
||||
|
||||
- remove .parse and .unparse
|
||||
|
||||
# 2.0.0
|
||||
|
||||
- Removed uuid.BufferClass
|
||||
|
||||
# 1.4.0
|
||||
|
||||
- Improved module context detection
|
||||
- Removed public RNG functions
|
||||
|
||||
# 1.3.2
|
||||
|
||||
- Improve tests and handling of v1() options (Issue #24)
|
||||
- Expose RNG option to allow for perf testing with different generators
|
||||
|
||||
# 1.3.0
|
||||
|
||||
- Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)!
|
||||
- Support for node.js crypto API
|
||||
- De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"switchMap.js","sources":["../src/operators/switchMap.ts"],"names":[],"mappings":";;;;;AAAA,qDAAgD"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"2":"C K L H M N O","1025":"P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t"},C:{"2":"0 1 2 3 4 5 6 7 8 9 CC tB I u J E F G A B C K L H M N O v w 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 e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB DC EC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB","194":"LB MB NB OB PB QB RB SB","706":"TB UB VB","1025":"WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB FC"},E:{"2":"I u J E F G A B C K L H GC zB HC IC JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 G B C H M N O v w x y z AB BB OC PC QC RC qB 9B SC rB","450":"CB DB EB FB","706":"GB HB IB","1025":"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 e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d"},G:{"2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B"},H:{"2":"nC"},I:{"2":"tB I oC pC qC rC AC sC tC","1025":"D"},J:{"2":"E A"},K:{"2":"A B C qB 9B rB","1025":"e"},L:{"1025":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1025":"uC"},P:{"1":"wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C","2":"I vC"},Q:{"2":"1B"},R:{"1025":"8C"},S:{"2":"9C"}},B:7,C:"Web Bluetooth"};
|
||||
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/operator/debounceTime';
|
||||
Reference in New Issue
Block a user