new license file version [CI SKIP]

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

View File

@@ -0,0 +1,54 @@
"use strict";
/**
* Module dependencies.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const netmask_1 = require("netmask");
const util_1 = require("./util");
/**
* True iff the IP address of the host matches the specified IP address pattern.
*
* Pattern and mask specification is done the same way as for SOCKS configuration.
*
* Examples:
*
* ``` js
* isInNet(host, "198.95.249.79", "255.255.255.255")
* // is true iff the IP address of host matches exactly 198.95.249.79.
*
* isInNet(host, "198.95.0.0", "255.255.0.0")
* // is true iff the IP address of the host matches 198.95.*.*.
* ```
*
* @param {String} host a DNS hostname, or IP address. If a hostname is passed,
* it will be resoved into an IP address by this function.
* @param {String} pattern an IP address pattern in the dot-separated format mask.
* @param {String} mask for the IP address pattern informing which parts of the
* IP address should be matched against. 0 means ignore, 255 means match.
* @return {Boolean}
*/
function isInNet(host, pattern, mask) {
return __awaiter(this, void 0, void 0, function* () {
const family = 4;
try {
const ip = yield (0, util_1.dnsLookup)(host, { family });
if (typeof ip === 'string') {
const netmask = new netmask_1.Netmask(pattern, mask);
return netmask.contains(ip);
}
}
catch (err) { }
return false;
});
}
exports.default = isInNet;
//# sourceMappingURL=isInNet.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;;AASA,OAAO,EAAC,OAAO,EAAE,cAAc,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EAAE,YAAY,GAAG,UAAU,GAAG,OAAO,CAAC;IAChE,UAAU,IAAI,KAAK,CAAC,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC;IACtD,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,CAAC;CAC9D;AAED,qBAAa,YAAa,SAAQ,KAAK;gBAC1B,KAAK,EAAE,KAAK;CAIxB;AACD,qBAAa,UAAW,SAAQ,KAAK;gBACxB,KAAK,EAAE,KAAK;CAIxB;AAED,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"switchAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4D5C,MAAM,UAAU,SAAS;IACvB,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC"}

View File

@@ -0,0 +1,41 @@
{
"name": "os-tmpdir",
"version": "1.0.2",
"description": "Node.js os.tmpdir() ponyfill",
"license": "MIT",
"repository": "sindresorhus/os-tmpdir",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"built-in",
"core",
"ponyfill",
"polyfill",
"shim",
"os",
"tmpdir",
"tempdir",
"tmp",
"temp",
"dir",
"directory",
"env",
"environment"
],
"devDependencies": {
"ava": "*",
"xo": "^0.16.0"
}
}

View File

@@ -0,0 +1,46 @@
{
"Commands:": "Comandi:",
"Options:": "Opzioni:",
"Examples:": "Esempi:",
"boolean": "booleano",
"count": "contatore",
"string": "stringa",
"number": "numero",
"array": "vettore",
"required": "richiesto",
"default": "predefinito",
"default:": "predefinito:",
"choices:": "scelte:",
"aliases:": "alias:",
"generated-value": "valore generato",
"Not enough non-option arguments: got %s, need at least %s": {
"one": "Numero insufficiente di argomenti non opzione: inseriti %s, richiesti almeno %s",
"other": "Numero insufficiente di argomenti non opzione: inseriti %s, richiesti almeno %s"
},
"Too many non-option arguments: got %s, maximum of %s": {
"one": "Troppi argomenti non opzione: inseriti %s, massimo possibile %s",
"other": "Troppi argomenti non opzione: inseriti %s, massimo possibile %s"
},
"Missing argument value: %s": {
"one": "Argomento mancante: %s",
"other": "Argomenti mancanti: %s"
},
"Missing required argument: %s": {
"one": "Argomento richiesto mancante: %s",
"other": "Argomenti richiesti mancanti: %s"
},
"Unknown argument: %s": {
"one": "Argomento sconosciuto: %s",
"other": "Argomenti sconosciuti: %s"
},
"Invalid values:": "Valori non validi:",
"Argument: %s, Given: %s, Choices: %s": "Argomento: %s, Richiesto: %s, Scelte: %s",
"Argument check failed: %s": "Controllo dell'argomento fallito: %s",
"Implications failed:": "Argomenti dipendenti mancanti:",
"Not enough arguments following: %s": "Argomenti insufficienti dopo: %s",
"Invalid JSON config file: %s": "File di configurazione JSON non valido: %s",
"Path to JSON config file": "Percorso del file di configurazione JSON",
"Show help": "Mostra la schermata di aiuto",
"Show version number": "Mostra il numero di versione",
"Did you mean %s?": "Intendi forse %s?"
}

View File

@@ -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","194":"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:{"1":"yB GC","2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB 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","194":"f H xB"},E:{"1":"OC","2":"I v J D E F A B C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B"},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 PC QC RC SC qB AC TC rB","194":"e"},G:{"2":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},H:{"2":"oC"},I:{"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 Nesting"};

View File

@@ -0,0 +1,43 @@
import { AsyncAction } from './AsyncAction';
import { AsapScheduler } from './AsapScheduler';
import { SchedulerAction } from '../types';
import { immediateProvider } from './immediateProvider';
import { TimerHandle } from './timerHandle';
export class AsapAction<T> extends AsyncAction<T> {
constructor(protected scheduler: AsapScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {
super(scheduler, work);
}
protected requestAsyncId(scheduler: AsapScheduler, id?: TimerHandle, delay: number = 0): TimerHandle {
// If delay is greater than 0, request as an async action.
if (delay !== null && delay > 0) {
return super.requestAsyncId(scheduler, id, delay);
}
// Push the action to the end of the scheduler queue.
scheduler.actions.push(this);
// If a microtask has already been scheduled, don't schedule another
// one. If a microtask hasn't been scheduled yet, schedule one now. Return
// the current scheduled microtask id.
return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));
}
protected recycleAsyncId(scheduler: AsapScheduler, id?: TimerHandle, delay: number = 0): TimerHandle | undefined {
// If delay exists and is greater than 0, or if the delay is null (the
// action wasn't rescheduled) but was originally scheduled as an async
// action, then recycle as an async action.
if (delay != null ? delay > 0 : this.delay > 0) {
return super.recycleAsyncId(scheduler, id, delay);
}
// If the scheduler queue has no remaining actions with the same async id,
// cancel the requested microtask and set the scheduled flag to undefined
// so the next AsapAction will request its own.
const { actions } = scheduler;
if (id != null && actions[actions.length - 1]?.id !== id) {
immediateProvider.clearImmediate(id);
scheduler._scheduled = undefined;
}
// Return undefined so the action knows to request a new async id if it's rescheduled.
return undefined;
}
}

View File

@@ -0,0 +1 @@
{"name":"netmask","version":"2.0.2","files":{"test/badnets.coffee":{"checkedAt":1678883672270,"integrity":"sha512-28+ozo2UzVfHdKO0vcCCIhaYpNiY+52h9z1LH5Q/AgIIkz3nLtdRhtag0EhLwZEGPvUu3g3CCwH01axHYgBDXg==","mode":420,"size":2079},"example/ipcalc.coffee":{"checkedAt":1678883672270,"integrity":"sha512-qefKzif+ZLzENeQs+JbYPPcLHvdKceGAubs7oaKz7YLIemS3975h2xDLlrdsO5jd12gaKaX8dQXDSWFCcoj9fQ==","mode":420,"size":442},"lib/netmask.coffee":{"checkedAt":1678883672270,"integrity":"sha512-L03pmw95XxVcX6vAZme9hm0D8oXnSLBO7dEReshYk7ItdTWDa3vOW2PGC2vHtHR8HZxytL23b7Xjlb5rkVLafQ==","mode":420,"size":5773},"test/netmasks.coffee":{"checkedAt":1678883672271,"integrity":"sha512-nnHhSt5CeJCVrc3ChV7+SoveQWeFWWwUcf2MD4u+nZ8+jsurKBxxX0PJOnafYzZvVMv5OM48V7fqZ6iJKEmAzw==","mode":420,"size":6608},"tests/netmask.js":{"checkedAt":1678883672271,"integrity":"sha512-ODp6AVt6kJpXBCSG8raulm78A/4tQsCZmTXxfD/3aXvWxINWG7u+8oiUBC+6pFCmASXXaNiskFiEQOD25MbDmw==","mode":420,"size":3475},"package.json":{"checkedAt":1678883672271,"integrity":"sha512-9zdBbkm+Bru5KTlP5XzE2AteBd7R9gvBz2ilPBynj1gTkp8bEgrGSpoeitwtwf8BTxOuY6/HQexUvBjWSwl2DA==","mode":420,"size":902},"CHANGELOG.md":{"checkedAt":1678883672271,"integrity":"sha512-h+xv/MvEca2FmT9g+oHomuNBTXd2lEAutQ03rp+ejEbzbGYp2xw2u6trXbtVd2zck5Vx8CxHzfiejr051pnWUg==","mode":420,"size":2308},"lib/netmask.js":{"checkedAt":1678883672271,"integrity":"sha512-m/IGyutQXhq/82arOtAd24Q6hswxv0m3GNca8oGAxFvzjkxFI+LXYk27AkLHJEr6wpdj14swSxWmTTQLy0gv3w==","mode":420,"size":5578},"CREDITS.md":{"checkedAt":1678883672274,"integrity":"sha512-1YK69ITlGHu8rokRgEzPkH2rNxrTd450XoeLaeQ2hVXmgB0nWfI3CEe7Rbre5b2D5YUjvd/MPD5vd8/kDsMbqQ==","mode":420,"size":1396},"README.md":{"checkedAt":1678883672274,"integrity":"sha512-pUkSmaVZTKCmZsJ50hSgb7bJ7VWsim8F/wvaZ2YXD57/bCmeTIG1S9HXBmKEyar+NIVQokXKP343yyfqhxBbtw==","mode":420,"size":3935}}}

View File

@@ -0,0 +1 @@
{"version":3,"file":"flatMap.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/flatMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,OAAO,iBAAW,CAAC"}

View File

@@ -0,0 +1,32 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.Action = void 0;
var Subscription_1 = require("../Subscription");
var Action = (function (_super) {
__extends(Action, _super);
function Action(scheduler, work) {
return _super.call(this) || this;
}
Action.prototype.schedule = function (state, delay) {
if (delay === void 0) { delay = 0; }
return this;
};
return Action;
}(Subscription_1.Subscription));
exports.Action = Action;
//# sourceMappingURL=Action.js.map

View File

@@ -0,0 +1,21 @@
const REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
const REGEX_IS_INSTALLATION = /^ghs_/;
const REGEX_IS_USER_TO_SERVER = /^ghu_/;
export async function auth(token) {
const isApp = token.split(/\./).length === 3;
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) ||
REGEX_IS_INSTALLATION.test(token);
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
const tokenType = isApp
? "app"
: isInstallation
? "installation"
: isUserToServer
? "user-to-server"
: "oauth";
return {
type: "token",
token: token,
tokenType,
};
}

View File

@@ -0,0 +1,5 @@
"use strict";
var error = require("../valid-error");
module.exports = function () { throw error(this); };

View File

@@ -0,0 +1 @@
{"name":"postcss-js","version":"4.0.1","files":{"LICENSE":{"checkedAt":1678883673219,"integrity":"sha512-plt46lmwcpyMiXabPHXlLn+QHJq66BCJLCsXaxESFP6xLqgchHXFJfqZT5mbHEKSfWTgQdevUxkkyNLo4f19yA==","mode":420,"size":1095},"async.js":{"checkedAt":1678883673219,"integrity":"sha512-Tk8O4SnDuliu0RyGWCjb2v139ePcUyKEj6ZSnn0nWHSoPIlT95xnuAAH9gqewvLs5asLwffHW6qS/dst0pyC3Q==","mode":420,"size":358},"index.js":{"checkedAt":1678883673219,"integrity":"sha512-xiXZlw3wZrX4U9tA5M02eQ4oWNcVcpPBO2yZLs2zmwOJVHCKbmb8aJ3pb1jtEW74fEY6EB2+HibG8xFcoz/+8Q==","mode":420,"size":193},"objectifier.js":{"checkedAt":1678883673219,"integrity":"sha512-wjXsD31iRte/EBYCY844HCWHVCPHJEewiIWomDCFtgIWLhzkGE+DaCbNn/9MzSKsNzY/myVIq6Wg71DDlHOTVQ==","mode":420,"size":2050},"process-result.js":{"checkedAt":1678883673219,"integrity":"sha512-HcsHmpwhFTLvjr+FpDeJEjUC0QGsDvd4FYwPWLYoODtvAfsO2XoFpXERdLeSzV53HZRFIz0GNZTTfQiZA+YxSA==","mode":420,"size":300},"parser.js":{"checkedAt":1678883673219,"integrity":"sha512-VMX6fLFLYdQ3Q/4L7NYAYbTtv8xExX7qhhwr2A0rUsJ0juMkNzKvWnizsvqg05avWdaHYk5l4T5npMAgg9lE/A==","mode":420,"size":2295},"sync.js":{"checkedAt":1678883673219,"integrity":"sha512-HJZ55g2vMON5BUjC0AWC//oZtniaarw9chSlQK7GwRtmPRrTjhSY552hWoL62HIucAoGk4gcddJLgrxAeppBHA==","mode":420,"size":325},"package.json":{"checkedAt":1678883673219,"integrity":"sha512-L5+0XLdzsxsY0WRzRS/nCTzkUaaCvwhJOrVlvLwkrvqb2HPXh7b89X/05xCBJaGbK9/okzT1t5/vOyCOhCcfkA==","mode":420,"size":917},"README.md":{"checkedAt":1678883673219,"integrity":"sha512-WR+cpEiAND0MQ6rID7/wmuaaIeFWNXVTiyBtbKWw8iHNXQ6H4Yd9NSPIIM+AAH/M24t0P7OR73KGOoBvXT/8BQ==","mode":420,"size":724},"index.mjs":{"checkedAt":1678883673219,"integrity":"sha512-9c9O/ya2IR7rz69PNyphY71c5BjtCZUpHBU/LPSMYBfPLLiXKJAHczwJd0IObh0ozat4F0g4xD4M377uE7zVgQ==","mode":420,"size":192}}}

View File

@@ -0,0 +1,30 @@
export type Formatter = (input: string | number | null | undefined) => string
export interface Colors {
isColorSupported: boolean
reset: Formatter
bold: Formatter
dim: Formatter
italic: Formatter
underline: Formatter
inverse: Formatter
hidden: Formatter
strikethrough: Formatter
black: Formatter
red: Formatter
green: Formatter
yellow: Formatter
blue: Formatter
magenta: Formatter
cyan: Formatter
white: Formatter
gray: Formatter
bgBlack: Formatter
bgRed: Formatter
bgGreen: Formatter
bgYellow: Formatter
bgBlue: Formatter
bgMagenta: Formatter
bgCyan: Formatter
bgWhite: Formatter
}

View File

@@ -0,0 +1,34 @@
{
"name": "lru-cache",
"description": "A cache object that deletes the least-recently-used items.",
"version": "6.0.0",
"author": "Isaac Z. Schlueter <i@izs.me>",
"keywords": [
"mru",
"lru",
"cache"
],
"scripts": {
"test": "tap",
"snap": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags"
},
"main": "index.js",
"repository": "git://github.com/isaacs/node-lru-cache.git",
"devDependencies": {
"benchmark": "^2.1.4",
"tap": "^14.10.7"
},
"license": "ISC",
"dependencies": {
"yallist": "^4.0.0"
},
"files": [
"index.js"
],
"engines": {
"node": ">=10"
}
}

View File

@@ -0,0 +1 @@
{"name":"https-proxy-agent","version":"5.0.1","files":{"dist/agent.js":{"checkedAt":1678883671994,"integrity":"sha512-T0YrjiN9M8l+dRlXO11N7pgEKiQguu8DOpQyvlVLUuXMAk+fzi6M9nJUj93Sk1QDBVu5Nf5hfaKu1SLr+OVxsw==","mode":420,"size":7841},"dist/index.js":{"checkedAt":1678883671994,"integrity":"sha512-MZiniOHynb4mkJ5utcs5+wvFAWvrPYlwEUDmo/SlpySuh6A/g/vVpviQZ/hOenoN+O0fTakj1fqz4GcNDoUSuA==","mode":420,"size":579},"dist/parse-proxy-response.js":{"checkedAt":1678883671994,"integrity":"sha512-48szwXJkCPxoxKzcjAL0jgRPD3ambK9PHdaTyfgm6fx1Ok4U6ogsca/m48uMX/pf7s1nTFSH0/PsTOW6uG0PDA==","mode":420,"size":2460},"package.json":{"checkedAt":1678883671994,"integrity":"sha512-WhIQUs2OLocVExaHZwz/q/EO6FgCi25eSmhs4qngW7P4WzNrpN1jjjzR6BE7cw031ePfiNWkxhSrXPF1yk08Rw==","mode":420,"size":1405},"dist/index.js.map":{"checkedAt":1678883671997,"integrity":"sha512-kI5URQxl7vUmWZ8rxn8MMrhhaLTLhZHaGLjMr+mDpWemGjI5S7kmAmcAYgFUyoaBfwIw4jaAZakeJS/XN7IsNA==","mode":420,"size":362},"dist/agent.js.map":{"checkedAt":1678883671997,"integrity":"sha512-TTrzDrHwwFwT7XmDM3KDak+XlOO2gy+b3THmTNjzo4hmRLRjLH5liVT7B5kNiSdiIA9d+EjJ73MUmXd3UY+kyQ==","mode":420,"size":4367},"dist/parse-proxy-response.js.map":{"checkedAt":1678883671997,"integrity":"sha512-HR4WidXew2q/kIdXoNHZ0ypH11gmXnuZzrjjJcUs2GyH1pDITZQYdqyhm0SypmxUBYJ4KRnk7F8RnPP1P0Dt+Q==","mode":420,"size":1904},"dist/agent.d.ts":{"checkedAt":1678883671997,"integrity":"sha512-S7FNGuWBZIRfcr85IOfBPiBNNa6w3/K1oa2GlFUU+np+v3WtWMKw9uS+1L7T9Qp/+tJYwFQSeGYqvfa3TdZYaw==","mode":420,"size":1126},"README.md":{"checkedAt":1678883671997,"integrity":"sha512-rj36Me8iANinNpc51Asg5svWfpRifI4JaD2LydgkmkgwpZjS5eyxQOf56Ad3Q2rMXfnu6Nv1gHr+BpxN71MAWA==","mode":420,"size":4761},"dist/index.d.ts":{"checkedAt":1678883672001,"integrity":"sha512-+0yesGvi8HWtFnRh2+TCIS096InKQkKRpD5AwL6VEpSUDfYCTUe+lZKYsUwrycE2Xa4PGswFUo9HQ/XOW0Zg+w==","mode":420,"size":970},"dist/parse-proxy-response.d.ts":{"checkedAt":1678883672001,"integrity":"sha512-gMLJVmtS7ihH+kwl7nhSkgaSpfc2I/xAlED+Y25V0V+65crCLnlYqNhrttx8K4Q8lNe5si7goV+JNdxEffzFEA==","mode":420,"size":233}}}

View File

@@ -0,0 +1,17 @@
/** Used to match wrap detail comments. */
var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
reSplitDetails = /,? & /;
/**
* Extracts wrapper details from the `source` body comment.
*
* @private
* @param {string} source The source to inspect.
* @returns {Array} Returns the wrapper details.
*/
function getWrapDetails(source) {
var match = source.match(reWrapDetails);
return match ? match[1].split(reSplitDetails) : [];
}
module.exports = getWrapDetails;

View File

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

View File

@@ -0,0 +1,19 @@
'use strict';
var HoursPerDay = 24;
var MinutesPerHour = 60;
var SecondsPerMinute = 60;
var msPerSecond = 1e3;
var msPerMinute = msPerSecond * SecondsPerMinute;
var msPerHour = msPerMinute * MinutesPerHour;
var msPerDay = 86400000;
module.exports = {
HoursPerDay: HoursPerDay,
MinutesPerHour: MinutesPerHour,
SecondsPerMinute: SecondsPerMinute,
msPerSecond: msPerSecond,
msPerMinute: msPerMinute,
msPerHour: msPerHour,
msPerDay: msPerDay
};

View File

@@ -0,0 +1,7 @@
import { PluginCreator } from 'postcss'
import type { Config } from './config.d'
declare const plugin: PluginCreator<string | Config | { config: string | Config }>
export { Config }
export default plugin

View File

@@ -0,0 +1,110 @@
### [5.1.2](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2) (2021-03-06)
### Bug Fixes
* eliminate ReDoS ([#36](https://github.com/gulpjs/glob-parent/issues/36)) ([f923116](https://github.com/gulpjs/glob-parent/commit/f9231168b0041fea3f8f954b3cceb56269fc6366))
### [5.1.1](https://github.com/gulpjs/glob-parent/compare/v5.1.0...v5.1.1) (2021-01-27)
### Bug Fixes
* unescape exclamation mark ([#26](https://github.com/gulpjs/glob-parent/issues/26)) ([a98874f](https://github.com/gulpjs/glob-parent/commit/a98874f1a59e407f4fb1beb0db4efa8392da60bb))
## [5.1.0](https://github.com/gulpjs/glob-parent/compare/v5.0.0...v5.1.0) (2021-01-27)
### Features
* add `flipBackslashes` option to disable auto conversion of slashes (closes [#24](https://github.com/gulpjs/glob-parent/issues/24)) ([#25](https://github.com/gulpjs/glob-parent/issues/25)) ([eecf91d](https://github.com/gulpjs/glob-parent/commit/eecf91d5e3834ed78aee39c4eaaae654d76b87b3))
## [5.0.0](https://github.com/gulpjs/glob-parent/compare/v4.0.0...v5.0.0) (2021-01-27)
### ⚠ BREAKING CHANGES
* Drop support for node <6 & bump dependencies
### Miscellaneous Chores
* Drop support for node <6 & bump dependencies ([896c0c0](https://github.com/gulpjs/glob-parent/commit/896c0c00b4e7362f60b96e7fc295ae929245255a))
## [4.0.0](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v4.0.0) (2021-01-27)
### ⚠ BREAKING CHANGES
* question marks are valid path characters on Windows so avoid flagging as a glob when alone
* Update is-glob dependency
### Features
* hoist regexps and strings for performance gains ([4a80667](https://github.com/gulpjs/glob-parent/commit/4a80667c69355c76a572a5892b0f133c8e1f457e))
* question marks are valid path characters on Windows so avoid flagging as a glob when alone ([2a551dd](https://github.com/gulpjs/glob-parent/commit/2a551dd0dc3235e78bf3c94843d4107072d17841))
* Update is-glob dependency ([e41fcd8](https://github.com/gulpjs/glob-parent/commit/e41fcd895d1f7bc617dba45c9d935a7949b9c281))
## [3.1.0](https://github.com/gulpjs/glob-parent/compare/v3.0.1...v3.1.0) (2021-01-27)
### Features
* allow basic win32 backslash use ([272afa5](https://github.com/gulpjs/glob-parent/commit/272afa5fd070fc0f796386a5993d4ee4a846988b))
* handle extglobs (parentheses) containing separators ([7db1bdb](https://github.com/gulpjs/glob-parent/commit/7db1bdb0756e55fd14619e8ce31aa31b17b117fd))
* new approach to braces/brackets handling ([8269bd8](https://github.com/gulpjs/glob-parent/commit/8269bd89290d99fac9395a354fb56fdcdb80f0be))
* pre-process braces/brackets sections ([9ef8a87](https://github.com/gulpjs/glob-parent/commit/9ef8a87f66b1a43d0591e7a8e4fc5a18415ee388))
* preserve escaped brace/bracket at end of string ([8cfb0ba](https://github.com/gulpjs/glob-parent/commit/8cfb0ba84202d51571340dcbaf61b79d16a26c76))
### Bug Fixes
* trailing escaped square brackets ([99ec9fe](https://github.com/gulpjs/glob-parent/commit/99ec9fecc60ee488ded20a94dd4f18b4f55c4ccf))
### [3.0.1](https://github.com/gulpjs/glob-parent/compare/v3.0.0...v3.0.1) (2021-01-27)
### Features
* use path-dirname ponyfill ([cdbea5f](https://github.com/gulpjs/glob-parent/commit/cdbea5f32a58a54e001a75ddd7c0fccd4776aacc))
### Bug Fixes
* unescape glob-escaped dirnames on output ([598c533](https://github.com/gulpjs/glob-parent/commit/598c533bdf49c1428bc063aa9b8db40c5a86b030))
## [3.0.0](https://github.com/gulpjs/glob-parent/compare/v2.0.0...v3.0.0) (2021-01-27)
### ⚠ BREAKING CHANGES
* update is-glob dependency
### Features
* update is-glob dependency ([5c5f8ef](https://github.com/gulpjs/glob-parent/commit/5c5f8efcee362a8e7638cf8220666acd8784f6bd))
## [2.0.0](https://github.com/gulpjs/glob-parent/compare/v1.3.0...v2.0.0) (2021-01-27)
### Features
* move up to dirname regardless of glob characters ([f97fb83](https://github.com/gulpjs/glob-parent/commit/f97fb83be2e0a9fc8d3b760e789d2ecadd6aa0c2))
## [1.3.0](https://github.com/gulpjs/glob-parent/compare/v1.2.0...v1.3.0) (2021-01-27)
## [1.2.0](https://github.com/gulpjs/glob-parent/compare/v1.1.0...v1.2.0) (2021-01-27)
### Reverts
* feat: make regex test strings smaller ([dc80fa9](https://github.com/gulpjs/glob-parent/commit/dc80fa9658dca20549cfeba44bbd37d5246fcce0))
## [1.1.0](https://github.com/gulpjs/glob-parent/compare/v1.0.0...v1.1.0) (2021-01-27)
### Features
* make regex test strings smaller ([cd83220](https://github.com/gulpjs/glob-parent/commit/cd832208638f45169f986d80fcf66e401f35d233))
## 1.0.0 (2021-01-27)

View File

@@ -0,0 +1,237 @@
import { assign } from './util';
import { diff, commitRoot } from './diff/index';
import options from './options';
import { Fragment } from './create-element';
import { inEvent } from './diff/props';
/**
* Base Component class. Provides `setState()` and `forceUpdate()`, which
* trigger rendering
* @param {object} props The initial component props
* @param {object} context The initial context from parent components'
* getChildContext
*/
export function Component(props, context) {
this.props = props;
this.context = context;
}
/**
* Update component state and schedule a re-render.
* @this {import('./internal').Component}
* @param {object | ((s: object, p: object) => object)} update A hash of state
* properties to update with new values or a function that given the current
* state and props returns a new partial state
* @param {() => void} [callback] A function to be called once component state is
* updated
*/
Component.prototype.setState = function(update, callback) {
// only clone state when copying to nextState the first time.
let s;
if (this._nextState != null && this._nextState !== this.state) {
s = this._nextState;
} else {
s = this._nextState = assign({}, this.state);
}
if (typeof update == 'function') {
// Some libraries like `immer` mark the current state as readonly,
// preventing us from mutating it, so we need to clone it. See #2716
update = update(assign({}, s), this.props);
}
if (update) {
assign(s, update);
}
// Skip update if updater function returned null
if (update == null) return;
if (this._vnode) {
if (callback) {
this._stateCallbacks.push(callback);
}
enqueueRender(this);
}
};
/**
* Immediately perform a synchronous re-render of the component
* @this {import('./internal').Component}
* @param {() => void} [callback] A function to be called after component is
* re-rendered
*/
Component.prototype.forceUpdate = function(callback) {
if (this._vnode) {
// Set render mode so that we can differentiate where the render request
// is coming from. We need this because forceUpdate should never call
// shouldComponentUpdate
this._force = true;
if (callback) this._renderCallbacks.push(callback);
enqueueRender(this);
}
};
/**
* Accepts `props` and `state`, and returns a new Virtual DOM tree to build.
* Virtual DOM is generally constructed via [JSX](http://jasonformat.com/wtf-is-jsx).
* @param {object} props Props (eg: JSX attributes) received from parent
* element/component
* @param {object} state The component's current state
* @param {object} context Context object, as returned by the nearest
* ancestor's `getChildContext()`
* @returns {import('./index').ComponentChildren | void}
*/
Component.prototype.render = Fragment;
/**
* @param {import('./internal').VNode} vnode
* @param {number | null} [childIndex]
*/
export function getDomSibling(vnode, childIndex) {
if (childIndex == null) {
// Use childIndex==null as a signal to resume the search from the vnode's sibling
return vnode._parent
? getDomSibling(vnode._parent, vnode._parent._children.indexOf(vnode) + 1)
: null;
}
let sibling;
for (; childIndex < vnode._children.length; childIndex++) {
sibling = vnode._children[childIndex];
if (sibling != null && sibling._dom != null) {
// Since updateParentDomPointers keeps _dom pointer correct,
// we can rely on _dom to tell us if this subtree contains a
// rendered DOM node, and what the first rendered DOM node is
return sibling._dom;
}
}
// If we get here, we have not found a DOM node in this vnode's children.
// We must resume from this vnode's sibling (in it's parent _children array)
// Only climb up and search the parent if we aren't searching through a DOM
// VNode (meaning we reached the DOM parent of the original vnode that began
// the search)
return typeof vnode.type == 'function' ? getDomSibling(vnode) : null;
}
/**
* Trigger in-place re-rendering of a component.
* @param {import('./internal').Component} component The component to rerender
*/
function renderComponent(component) {
let vnode = component._vnode,
oldDom = vnode._dom,
parentDom = component._parentDom;
if (parentDom) {
let commitQueue = [];
const oldVNode = assign({}, vnode);
oldVNode._original = vnode._original + 1;
diff(
parentDom,
vnode,
oldVNode,
component._globalContext,
parentDom.ownerSVGElement !== undefined,
vnode._hydrating != null ? [oldDom] : null,
commitQueue,
oldDom == null ? getDomSibling(vnode) : oldDom,
vnode._hydrating
);
commitRoot(commitQueue, vnode);
if (vnode._dom != oldDom) {
updateParentDomPointers(vnode);
}
}
}
/**
* @param {import('./internal').VNode} vnode
*/
function updateParentDomPointers(vnode) {
if ((vnode = vnode._parent) != null && vnode._component != null) {
vnode._dom = vnode._component.base = null;
for (let i = 0; i < vnode._children.length; i++) {
let child = vnode._children[i];
if (child != null && child._dom != null) {
vnode._dom = vnode._component.base = child._dom;
break;
}
}
return updateParentDomPointers(vnode);
}
}
/**
* The render queue
* @type {Array<import('./internal').Component>}
*/
let rerenderQueue = [];
/*
* The value of `Component.debounce` must asynchronously invoke the passed in callback. It is
* important that contributors to Preact can consistently reason about what calls to `setState`, etc.
* do, and when their effects will be applied. See the links below for some further reading on designing
* asynchronous APIs.
* * [Designing APIs for Asynchrony](https://blog.izs.me/2013/08/designing-apis-for-asynchrony)
* * [Callbacks synchronous and asynchronous](https://blog.ometer.com/2011/07/24/callbacks-synchronous-and-asynchronous/)
*/
let prevDebounce;
const microTick =
typeof Promise == 'function'
? Promise.prototype.then.bind(Promise.resolve())
: setTimeout;
function defer(cb) {
if (inEvent) {
setTimeout(cb);
} else {
microTick(cb);
}
}
/**
* Enqueue a rerender of a component
* @param {import('./internal').Component} c The component to rerender
*/
export function enqueueRender(c) {
if (
(!c._dirty &&
(c._dirty = true) &&
rerenderQueue.push(c) &&
!process._rerenderCount++) ||
prevDebounce !== options.debounceRendering
) {
prevDebounce = options.debounceRendering;
(prevDebounce || defer)(process);
}
}
/** Flush the render queue by rerendering all queued components */
function process() {
let c;
rerenderQueue.sort((a, b) => a._vnode._depth - b._vnode._depth);
// Don't update `renderCount` yet. Keep its value non-zero to prevent unnecessary
// process() calls from getting scheduled while `queue` is still being consumed.
while ((c = rerenderQueue.shift())) {
if (c._dirty) {
let renderQueueLength = rerenderQueue.length;
renderComponent(c);
if (rerenderQueue.length > renderQueueLength) {
// When i.e. rerendering a provider additional new items can be injected, we want to
// keep the order from top to bottom with those new items so we can handle them in a
// single pass
rerenderQueue.sort((a, b) => a._vnode._depth - b._vnode._depth);
}
}
}
process._rerenderCount = 0;
}
process._rerenderCount = 0;

View File

@@ -0,0 +1,54 @@
{
"name": "file-uri-to-path",
"version": "2.0.0",
"description": "Convert a file: URI to a file path",
"main": "dist/src/index",
"typings": "dist/src/index",
"files": [
"dist/src"
],
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc",
"postbuild": "cpy --parents src test '!**/*.ts' dist",
"test": "mocha --reporter spec dist/test/*.js",
"test-lint": "eslint src --ext .js,.ts",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "git://github.com/TooTallNate/file-uri-to-path.git"
},
"engines": {
"node": ">= 6"
},
"keywords": [
"file",
"uri",
"convert",
"path"
],
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/TooTallNate/file-uri-to-path/issues"
},
"homepage": "https://github.com/TooTallNate/file-uri-to-path",
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^10.5.3",
"@typescript-eslint/eslint-plugin": "1.6.0",
"@typescript-eslint/parser": "1.1.0",
"cpy-cli": "^2.0.0",
"eslint": "5.16.0",
"eslint-config-airbnb": "17.1.0",
"eslint-config-prettier": "4.1.0",
"eslint-import-resolver-typescript": "1.1.1",
"eslint-plugin-import": "2.16.0",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-react": "7.12.4",
"mocha": "^6.2.0",
"rimraf": "^3.0.0",
"typescript": "^3.5.3"
}
}

View File

@@ -0,0 +1,10 @@
'use strict';
var getInferredName;
try {
// eslint-disable-next-line no-new-func
getInferredName = Function('s', 'return { [s]() {} }[s].name;');
} catch (e) {}
var inferred = function () {};
module.exports = getInferredName && inferred.name === 'inferred' ? getInferredName : null;

View File

@@ -0,0 +1,81 @@
import assert from './_assert.js';
import { Hash, CHash, Input, toBytes } from './utils.js';
// HMAC (RFC 2104)
class HMAC<T extends Hash<T>> extends Hash<HMAC<T>> {
oHash: T;
iHash: T;
blockLen: number;
outputLen: number;
private finished = false;
private destroyed = false;
constructor(hash: CHash, _key: Input) {
super();
assert.hash(hash);
const key = toBytes(_key);
this.iHash = hash.create() as T;
if (typeof this.iHash.update !== 'function')
throw new TypeError('Expected instance of class which extends utils.Hash');
this.blockLen = this.iHash.blockLen;
this.outputLen = this.iHash.outputLen;
const blockLen = this.blockLen;
const pad = new Uint8Array(blockLen);
// blockLen can be bigger than outputLen
pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);
for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36;
this.iHash.update(pad);
// By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone
this.oHash = hash.create() as T;
// Undo internal XOR && apply outer XOR
for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36 ^ 0x5c;
this.oHash.update(pad);
pad.fill(0);
}
update(buf: Input) {
assert.exists(this);
this.iHash.update(buf);
return this;
}
digestInto(out: Uint8Array) {
assert.exists(this);
assert.bytes(out, this.outputLen);
this.finished = true;
this.iHash.digestInto(out);
this.oHash.update(out);
this.oHash.digestInto(out);
this.destroy();
}
digest() {
const out = new Uint8Array(this.oHash.outputLen);
this.digestInto(out);
return out;
}
_cloneInto(to?: HMAC<T>): HMAC<T> {
// Create new instance without calling constructor since key already in state and we don't know it.
to ||= Object.create(Object.getPrototypeOf(this), {});
const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
to = to as this;
to.finished = finished;
to.destroyed = destroyed;
to.blockLen = blockLen;
to.outputLen = outputLen;
to.oHash = oHash._cloneInto(to.oHash);
to.iHash = iHash._cloneInto(to.iHash);
return to;
}
destroy() {
this.destroyed = true;
this.oHash.destroy();
this.iHash.destroy();
}
}
/**
* HMAC: RFC2104 message authentication code.
* @param hash - function that would be used e.g. sha256
* @param key - message key
* @param message - message data
*/
export const hmac = (hash: CHash, key: Input, message: Input): Uint8Array =>
new HMAC<any>(hash, key).update(message).digest();
hmac.create = (hash: CHash, key: Input) => new HMAC<any>(hash, key);

View File

@@ -0,0 +1,33 @@
let Selector = require('../selector')
class Placeholder extends Selector {
/**
* Add old mozilla to possible prefixes
*/
possible() {
return super.possible().concat(['-moz- old', '-ms- old'])
}
/**
* Return different selectors depend on prefix
*/
prefixed(prefix) {
if (prefix === '-webkit-') {
return '::-webkit-input-placeholder'
}
if (prefix === '-ms-') {
return '::-ms-input-placeholder'
}
if (prefix === '-ms- old') {
return ':-ms-input-placeholder'
}
if (prefix === '-moz- old') {
return ':-moz-placeholder'
}
return `::${prefix}placeholder`
}
}
Placeholder.names = ['::placeholder']
module.exports = Placeholder

View File

@@ -0,0 +1,51 @@
# ieee754 [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
[travis-image]: https://img.shields.io/travis/feross/ieee754/master.svg
[travis-url]: https://travis-ci.org/feross/ieee754
[npm-image]: https://img.shields.io/npm/v/ieee754.svg
[npm-url]: https://npmjs.org/package/ieee754
[downloads-image]: https://img.shields.io/npm/dm/ieee754.svg
[downloads-url]: https://npmjs.org/package/ieee754
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[standard-url]: https://standardjs.com
[![saucelabs][saucelabs-image]][saucelabs-url]
[saucelabs-image]: https://saucelabs.com/browser-matrix/ieee754.svg
[saucelabs-url]: https://saucelabs.com/u/ieee754
### Read/write IEEE754 floating point numbers from/to a Buffer or array-like object.
## install
```
npm install ieee754
```
## methods
`var ieee754 = require('ieee754')`
The `ieee754` object has the following functions:
```
ieee754.read = function (buffer, offset, isLE, mLen, nBytes)
ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes)
```
The arguments mean the following:
- buffer = the buffer
- offset = offset into the buffer
- value = value to set (only for `write`)
- isLe = is little endian?
- mLen = mantissa length
- nBytes = number of bytes
## what is ieee754?
The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation. [Read more](http://en.wikipedia.org/wiki/IEEE_floating_point).
## license
BSD 3 Clause. Copyright (c) 2008, Fair Oaks Labs, Inc.

View File

@@ -0,0 +1,342 @@
import { Config } from '../../types'
type CSSDeclarationList = Record<string, string>
export type DefaultTheme = Config['theme'] & {
animation: Record<'none' | 'spin' | 'ping' | 'pulse' | 'bounce', string>
aria: Record<
| 'checked'
| 'disabled'
| 'expanded'
| 'hidden'
| 'pressed'
| 'readonly'
| 'required'
| 'selected',
string
>
aspectRatio: Record<'auto' | 'square' | 'video', string>
backgroundImage: Record<
| 'none'
| 'gradient-to-t'
| 'gradient-to-tr'
| 'gradient-to-r'
| 'gradient-to-br'
| 'gradient-to-b'
| 'gradient-to-bl'
| 'gradient-to-l'
| 'gradient-to-tl',
string
>
backgroundPosition: Record<
| 'bottom'
| 'center'
| 'left'
| 'left-bottom'
| 'left-top'
| 'right'
| 'right-bottom'
| 'right-top'
| 'top',
string
>
backgroundSize: Record<'auto' | 'cover' | 'contain', string>
blur: Record<'0' | 'none' | 'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | '3xl', string>
borderRadius: Record<
'none' | 'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full',
string
>
borderWidth: Record<'0' | '2' | '4' | '8' | 'DEFAULT', string>
boxShadow: Record<'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | 'inner' | 'none', string>
brightness: Record<
'0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150' | '200',
string
>
columns: Record<
| '1'
| '2'
| '3'
| '4'
| '5'
| '6'
| '7'
| '8'
| '9'
| '10'
| '11'
| '12'
| 'auto'
| '3xs'
| '2xs'
| 'xs'
| 'sm'
| 'md'
| 'lg'
| 'xl'
| '2xl'
| '3xl'
| '4xl'
| '5xl'
| '6xl'
| '7xl',
string
>
content: Record<'none', string>
contrast: Record<'0' | '50' | '75' | '100' | '125' | '150' | '200', string>
cursor: Record<
| 'auto'
| 'default'
| 'pointer'
| 'wait'
| 'text'
| 'move'
| 'help'
| 'not-allowed'
| 'none'
| 'context-menu'
| 'progress'
| 'cell'
| 'crosshair'
| 'vertical-text'
| 'alias'
| 'copy'
| 'no-drop'
| 'grab'
| 'grabbing'
| 'all-scroll'
| 'col-resize'
| 'row-resize'
| 'n-resize'
| 'e-resize'
| 's-resize'
| 'w-resize'
| 'ne-resize'
| 'nw-resize'
| 'se-resize'
| 'sw-resize'
| 'ew-resize'
| 'ns-resize'
| 'nesw-resize'
| 'nwse-resize'
| 'zoom-in'
| 'zoom-out',
string
>
dropShadow: Record<'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | 'none', string | string[]>
flex: Record<'1' | 'auto' | 'initial' | 'none', string>
flexGrow: Record<'0' | 'DEFAULT', string>
flexShrink: Record<'0' | 'DEFAULT', string>
fontFamily: Record<'sans' | 'serif' | 'mono', string[]>
fontSize: Record<
| 'xs'
| 'sm'
| 'base'
| 'lg'
| 'xl'
| '2xl'
| '3xl'
| '4xl'
| '5xl'
| '6xl'
| '7xl'
| '8xl'
| '9xl',
[string, { lineHeight: string }]
>
fontWeight: Record<
| 'thin'
| 'extralight'
| 'light'
| 'normal'
| 'medium'
| 'semibold'
| 'bold'
| 'extrabold'
| 'black',
string
>
grayscale: Record<'0' | 'DEFAULT', string>
gridAutoColumns: Record<'auto' | 'min' | 'max' | 'fr', string>
gridAutoRows: Record<'auto' | 'min' | 'max' | 'fr', string>
gridColumn: Record<
| 'auto'
| 'span-1'
| 'span-2'
| 'span-3'
| 'span-4'
| 'span-5'
| 'span-6'
| 'span-7'
| 'span-8'
| 'span-9'
| 'span-10'
| 'span-11'
| 'span-12'
| 'span-full',
string
>
gridColumnEnd: Record<
'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | 'auto',
string
>
gridColumnStart: Record<
'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | 'auto',
string
>
gridRow: Record<
'auto' | 'span-1' | 'span-2' | 'span-3' | 'span-4' | 'span-5' | 'span-6' | 'span-full',
string
>
gridRowEnd: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
gridRowStart: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
gridTemplateColumns: Record<
'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'none',
string
>
gridTemplateRows: Record<'1' | '2' | '3' | '4' | '5' | '6' | 'none', string>
hueRotate: Record<'0' | '15' | '30' | '60' | '90' | '180', string>
invert: Record<'0' | 'DEFAULT', string>
keyframes: Record<'spin' | 'ping' | 'pulse' | 'bounce', Record<string, CSSDeclarationList>>
letterSpacing: Record<'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest', string>
lineHeight: Record<
| '3'
| '4'
| '5'
| '6'
| '7'
| '8'
| '9'
| '10'
| 'none'
| 'tight'
| 'snug'
| 'normal'
| 'relaxed'
| 'loose',
string
>
listStyleType: Record<'none' | 'disc' | 'decimal', string>
minHeight: Record<'0' | 'full' | 'screen' | 'min' | 'max' | 'fit', string>
minWidth: Record<'0' | 'full' | 'min' | 'max' | 'fit', string>
objectPosition: Record<
| 'bottom'
| 'center'
| 'left'
| 'left-bottom'
| 'left-top'
| 'right'
| 'right-bottom'
| 'right-top'
| 'top',
string
>
opacity: Record<
| '0'
| '5'
| '10'
| '20'
| '25'
| '30'
| '40'
| '50'
| '60'
| '70'
| '75'
| '80'
| '90'
| '95'
| '100',
string
>
order: Record<
| '1'
| '2'
| '3'
| '4'
| '5'
| '6'
| '7'
| '8'
| '9'
| '10'
| '11'
| '12'
| 'first'
| 'last'
| 'none',
string
>
outlineOffset: Record<'0' | '1' | '2' | '4' | '8', string>
outlineWidth: Record<'0' | '1' | '2' | '4' | '8', string>
ringOffsetWidth: Record<'0' | '1' | '2' | '4' | '8', string>
ringWidth: Record<'0' | '1' | '2' | '4' | '8' | 'DEFAULT', string>
rotate: Record<'0' | '1' | '2' | '3' | '6' | '12' | '45' | '90' | '180', string>
saturate: Record<'0' | '50' | '100' | '150' | '200', string>
scale: Record<'0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150', string>
screens: Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', string>
sepia: Record<'0' | 'DEFAULT', string>
skew: Record<'0' | '1' | '2' | '3' | '6' | '12', string>
spacing: Record<
| '0'
| '1'
| '2'
| '3'
| '4'
| '5'
| '6'
| '7'
| '8'
| '9'
| '10'
| '11'
| '12'
| '14'
| '16'
| '20'
| '24'
| '28'
| '32'
| '36'
| '40'
| '44'
| '48'
| '52'
| '56'
| '60'
| '64'
| '72'
| '80'
| '96'
| 'px'
| '0.5'
| '1.5'
| '2.5'
| '3.5',
string
>
strokeWidth: Record<'0' | '1' | '2', string>
textDecorationThickness: Record<'0' | '1' | '2' | '4' | '8' | 'auto' | 'from-font', string>
textUnderlineOffset: Record<'0' | '1' | '2' | '4' | '8' | 'auto', string>
transformOrigin: Record<
| 'center'
| 'top'
| 'top-right'
| 'right'
| 'bottom-right'
| 'bottom'
| 'bottom-left'
| 'left'
| 'top-left',
string
>
transitionDelay: Record<'75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000', string>
transitionDuration: Record<
'75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000' | 'DEFAULT',
string
>
transitionProperty: Record<
'none' | 'all' | 'DEFAULT' | 'colors' | 'opacity' | 'shadow' | 'transform',
string
>
transitionTimingFunction: Record<'DEFAULT' | 'linear' | 'in' | 'out' | 'in-out', string>
willChange: Record<'auto' | 'scroll' | 'contents' | 'transform', string>
zIndex: Record<'0' | '10' | '20' | '30' | '40' | '50' | 'auto', string>
}

View File

@@ -0,0 +1 @@
module.exports={C:{"48":0.00295,"52":0.00295,"63":0.0059,"68":0.00295,"72":0.01476,"75":0.01771,"78":0.21845,"91":0.00295,"95":0.0059,"99":0.00295,"101":0.00886,"102":0.03838,"103":0.0059,"106":0.01181,"107":0.11808,"108":0.05314,"109":0.91807,"110":0.68191,"111":0.05018,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 64 65 66 67 69 70 71 73 74 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 96 97 98 100 104 105 112 3.5 3.6"},D:{"11":0.00295,"37":0.0059,"38":0.0059,"49":0.01771,"50":0.0059,"51":0.0059,"55":0.00295,"61":0.00295,"64":0.01181,"65":0.00886,"67":0.00886,"69":0.01476,"70":0.01181,"72":0.00295,"74":0.01181,"75":0.01181,"76":0.01181,"77":0.00886,"78":0.00886,"79":0.02066,"80":0.01181,"81":0.01181,"83":0.00886,"84":0.00886,"85":0.0059,"86":0.0059,"87":0.02066,"88":0.01476,"89":0.00886,"90":0.00886,"91":0.0059,"92":0.03838,"93":0.0059,"94":0.0059,"95":0.0059,"96":0.01181,"97":0.00886,"98":0.03247,"99":0.00886,"100":0.02657,"101":0.01181,"102":0.05609,"103":0.10332,"104":0.02657,"105":0.04723,"106":0.05018,"107":0.09151,"108":0.31882,"109":8.12686,"110":4.76748,"111":0.00295,"112":0.00886,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 39 40 41 42 43 44 45 46 47 48 52 53 54 56 57 58 59 60 62 63 66 68 71 73 113"},F:{"36":0.0059,"73":0.00295,"74":0.02066,"79":0.01181,"85":0.05314,"88":0.0059,"90":0.61106,"93":0.01771,"94":0.3749,"95":0.61992,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 75 76 77 78 80 81 82 83 84 86 87 89 91 92 9.5-9.6 10.5 10.6 11.1 11.5 11.6 12.1","10.0-10.1":0},B:{"12":0.03838,"13":0.01181,"14":0.01476,"15":0.03838,"16":0.01476,"17":0.02362,"18":0.13284,"84":0.04428,"85":0.00295,"89":0.01476,"90":0.02657,"92":0.0797,"99":0.00295,"100":0.0059,"102":0.00295,"103":0.01476,"104":0.01476,"105":0.01476,"106":0.02952,"107":0.05314,"108":0.16236,"109":1.6236,"110":1.58818,_:"79 80 81 83 86 87 88 91 93 94 95 96 97 98 101"},E:{"4":0,"13":0.00886,"14":0.01181,_:"0 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.2-15.3 16.4","5.1":0.01771,"12.1":0.00886,"13.1":0.02066,"14.1":0.01771,"15.1":0.00295,"15.4":0.0059,"15.5":0.01476,"15.6":0.05609,"16.0":0.00295,"16.1":0.02066,"16.2":0.05018,"16.3":0.04133},G:{"8":0.00088,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00058,"5.0-5.1":0.00146,"6.0-6.1":0.00146,"7.0-7.1":0.00088,"8.1-8.4":0,"9.0-9.2":0.00029,"9.3":0.09789,"10.0-10.2":0,"10.3":0.02221,"11.0-11.2":0.00146,"11.3-11.4":0.00351,"12.0-12.1":0.01052,"12.2-12.5":0.31384,"13.0-13.1":0.00497,"13.2":0.00409,"13.3":0.26212,"13.4-13.7":0.04266,"14.0-14.4":0.11543,"14.5-14.8":0.12711,"15.0-15.1":0.08007,"15.2-15.3":0.04149,"15.4":0.06224,"15.5":0.12478,"15.6":0.12711,"16.0":0.31267,"16.1":0.29718,"16.2":0.2814,"16.3":0.40092,"16.4":0.00205},P:{"4":0.4064,"20":0.16673,"5.0-5.4":0.01042,"6.2-6.4":0.01025,"7.2-7.4":0.21883,"8.2":0.02044,"9.2":0.01042,"10.1":0.0217,"11.1-11.2":0.03126,"12.0":0.02048,"13.0":0.02084,"14.0":0.06252,"15.0":0.02084,"16.0":0.08336,"17.0":0.07294,"18.0":0.10421,"19.0":0.75028},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00379,"4.2-4.3":0.00316,"4.4":0,"4.4.3-4.4.4":0.04237},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"10":0.00295,"11":0.05018,_:"6 7 8 9 5.5"},N:{"10":0.02102,"11":0.02035},S:{"2.5":0.17618,_:"3.0-3.1"},J:{"7":0,"10":0.04933},O:{"0":5.60941},H:{"0":7.71242},L:{"0":57.76598},R:{_:"0"},M:{"0":0.28188},Q:{"13.1":0.02114}};

View File

@@ -0,0 +1,10 @@
"use strict";
if (!require("./is-implemented")()) {
Object.defineProperty(Array.prototype, "map", {
value: require("./shim"),
configurable: true,
enumerable: false,
writable: true
});
}

View File

@@ -0,0 +1,19 @@
{
"root": true,
"extends": "@ljharb",
"rules": {
"id-length": [2, { "min": 1, "max": 35 }],
"max-params": [2, 4],
},
"overrides": [
{
"files": "test/**",
"rules": {
"max-lines-per-function": 0,
},
},
],
}

View File

@@ -0,0 +1,45 @@
var baseIteratee = require('./_baseIteratee'),
baseWhile = require('./_baseWhile');
/**
* Creates a slice of `array` excluding elements dropped from the end.
* Elements are dropped until `predicate` returns falsey. The predicate is
* invoked with three arguments: (value, index, array).
*
* @static
* @memberOf _
* @since 3.0.0
* @category Array
* @param {Array} array The array to query.
* @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
* var users = [
* { 'user': 'barney', 'active': true },
* { 'user': 'fred', 'active': false },
* { 'user': 'pebbles', 'active': false }
* ];
*
* _.dropRightWhile(users, function(o) { return !o.active; });
* // => objects for ['barney']
*
* // The `_.matches` iteratee shorthand.
* _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
* // => objects for ['barney', 'fred']
*
* // The `_.matchesProperty` iteratee shorthand.
* _.dropRightWhile(users, ['active', false]);
* // => objects for ['barney']
*
* // The `_.property` iteratee shorthand.
* _.dropRightWhile(users, 'active');
* // => objects for ['barney', 'fred', 'pebbles']
*/
function dropRightWhile(array, predicate) {
return (array && array.length)
? baseWhile(array, baseIteratee(predicate, 3), true, true)
: [];
}
module.exports = dropRightWhile;

View File

@@ -0,0 +1,6 @@
import { OperatorFunction, ObservableInput } from '../types';
export declare function combineLatestAll<T>(): OperatorFunction<ObservableInput<T>, T[]>;
export declare function combineLatestAll<T>(): OperatorFunction<any, T[]>;
export declare function combineLatestAll<T, R>(project: (...values: T[]) => R): OperatorFunction<ObservableInput<T>, R>;
export declare function combineLatestAll<R>(project: (...values: Array<any>) => R): OperatorFunction<any, R>;
//# sourceMappingURL=combineLatestAll.d.ts.map

View File

@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Returns true iff the domain of hostname matches.
*
* Examples:
*
* ``` js
* dnsDomainIs("www.netscape.com", ".netscape.com")
* // is true.
*
* dnsDomainIs("www", ".netscape.com")
* // is false.
*
* dnsDomainIs("www.mcom.com", ".netscape.com")
* // is false.
* ```
*
*
* @param {String} host is the hostname from the URL.
* @param {String} domain is the domain name to test the hostname against.
* @return {Boolean} true iff the domain of the hostname matches.
*/
function dnsDomainIs(host, domain) {
host = String(host);
domain = String(domain);
return host.substr(domain.length * -1) === domain;
}
exports.default = dnsDomainIs;
//# sourceMappingURL=dnsDomainIs.js.map

View File

@@ -0,0 +1,6 @@
{
"name": "web-streams-ponyfill-es6",
"main": "../../dist/ponyfill.es6",
"module": "../../dist/ponyfill.es6.mjs",
"types": "../../dist/types/polyfill.d.ts"
}

View File

@@ -0,0 +1,71 @@
{
"name": "@octokit/rest",
"description": "GitHub REST API client for Node.js",
"version": "19.0.7",
"license": "MIT",
"files": [
"dist-*/",
"bin/"
],
"source": "dist-src/index.js",
"types": "dist-types/index.d.ts",
"main": "dist-node/index.js",
"module": "dist-web/index.js",
"pika": true,
"sideEffects": false,
"keywords": [
"octokit",
"github",
"rest",
"api-client"
],
"contributors": [
{
"name": "Mike de Boer",
"email": "info@mikedeboer.nl"
},
{
"name": "Fabian Jakobs",
"email": "fabian@c9.io"
},
{
"name": "Joe Gallo",
"email": "joe@brassafrax.com"
},
{
"name": "Gregor Martynus",
"url": "https://github.com/gr2m"
}
],
"repository": "github:octokit/rest.js",
"dependencies": {
"@octokit/core": "^4.1.0",
"@octokit/plugin-paginate-rest": "^6.0.0",
"@octokit/plugin-request-log": "^1.0.4",
"@octokit/plugin-rest-endpoint-methods": "^7.0.0"
},
"devDependencies": {
"@octokit/auth": "^3.0.3",
"@octokit/fixtures-server": "^7.0.0",
"@octokit/request": "^6.0.0",
"@pika/pack": "^0.3.7",
"@pika/plugin-build-node": "^0.9.2",
"@pika/plugin-build-web": "^0.9.2",
"@pika/plugin-ts-standard-pkg": "^0.9.2",
"@types/jest": "^29.0.0",
"@types/node": "^18.0.0",
"fetch-mock": "^9.0.0",
"jest": "^29.0.0",
"prettier": "2.8.3",
"semantic-release": "^20.0.0",
"semantic-release-plugin-update-version-in-files": "^1.0.0",
"ts-jest": "^29.0.0",
"typescript": "^4.0.0"
},
"engines": {
"node": ">= 14"
},
"publishConfig": {
"access": "public"
}
}

View File

@@ -0,0 +1,6 @@
export type UpdateFixedDonation = {
amount: number;
id: number;
donor: number;
paidAmount?: number;
};

View File

@@ -0,0 +1,2 @@
export const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();
//# sourceMappingURL=observable.js.map

View File

@@ -0,0 +1 @@
{"name":"strip-final-newline","version":"3.0.0","files":{"license":{"checkedAt":1678883669302,"integrity":"sha512-0fM2/ycrxrltyaBKfQ748Ck23VlPUUBgNAR47ldf4B1V/HoXTfWBSk+vcshGKwEpmOynu4mOP5o+hyBfuRNa8g==","mode":420,"size":1117},"package.json":{"checkedAt":1678883670750,"integrity":"sha512-aZ9687sNqOnDQJ609M8C/2+oTMdfWSXwaRRUN80oQoMwF7oHWxWxwGr31N16Ihh64NdRgi+C4tD40TLGcBUfFg==","mode":420,"size":756},"readme.md":{"checkedAt":1678883670750,"integrity":"sha512-aBy/+MAxUaj+3hl27ggqNn75caFXyWYl2Tio4jh51UUEkMV3X6y2WyEVFKAqS7bGFe7YrCQ/hj/cC0zsMDHcMA==","mode":420,"size":1141},"index.js":{"checkedAt":1678883670750,"integrity":"sha512-SbiZKc7jMnuynj4Fj6e63rdmJbrRd60QqtP4AIRyKiS94dnJ7RJm0dO7f1iXzJ7HCjio/ZrZ+NzvY3vm5YX1pQ==","mode":420,"size":347}}}

View File

@@ -0,0 +1 @@
{"version":3,"file":"flatMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/flatMap.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAKzB,QAAA,OAAO,GAAG,mBAAQ,CAAC"}

View File

@@ -0,0 +1 @@
{"name":"color-name","version":"1.1.4","files":{"package.json":{"checkedAt":1678883669302,"integrity":"sha512-E5CrPeTNIaZAftwqMJpkT8PDNamUJUrubHLTZ6Rjn3l9RvJKSLw6MGXT6SAcRHV3ltLOSTOa1HvkQ7/GUOoaHw==","mode":438,"size":607},"index.js":{"checkedAt":1678883669302,"integrity":"sha512-nek+57RYqda5dmQCKQmtJafLicLP3Y7hmqLhJlZrenqTCyQUOip2+D2/8Z8aZ7CnHek+irJIcgwu4kM5boaUUQ==","mode":438,"size":4617},"LICENSE":{"checkedAt":1678883669302,"integrity":"sha512-/B1lNSwRTHWUyb7fW+QyujnUJv6vUL+PfFLTJ4EyPIS/yaaFMa77VYyX6+RucS4dNdhguh4aarSLSnm4lAklQA==","mode":438,"size":1085},"README.md":{"checkedAt":1678883669302,"integrity":"sha512-/hmGUPmp0gXgx/Ov5oGW6DAU3c4h4aLMa/bE1TkpZHPU7dCx5JFS9hoYM4/+919EWCaPtBhWzK+6pG/6xdx+Ng==","mode":438,"size":384}}}

View File

@@ -0,0 +1,173 @@
import test from 'ava';
import sinon from 'sinon';
import Version from '../lib/plugin/version/Version.js';
import { factory, runTasks } from './util/index.js';
test('isValidVersion', t => {
const v = factory(Version);
t.is(v.isValid('1.0.0'), true);
t.is(v.isValid(1.0), false);
});
test('isPreRelease', t => {
const v = factory(Version);
t.is(v.isPreRelease('1.0.0-beta.0'), true);
t.is(v.isPreRelease('1.0.0'), false);
});
test('should return the same version in both interactive and ci mode', async t => {
const v = factory(Version);
const options = { latestVersion: '2.0.0-beta.1', increment: null, preReleaseId: 'rc', isPreRelease: true };
const resultInteractiveMode = await v.getIncrementedVersion(options);
t.is(resultInteractiveMode, '2.0.0-rc.0');
const resultCiMode = v.getIncrementedVersionCI(options);
t.is(resultInteractiveMode, resultCiMode);
});
test('should increment latest version', t => {
const v = factory(Version);
const latestVersion = '1.0.0';
t.is(v.incrementVersion({ latestVersion, increment: false }), '1.0.0');
t.is(v.incrementVersion({ latestVersion, increment: 'foo' }), undefined);
t.is(v.incrementVersion({ latestVersion, increment: 'patsj' }), undefined);
t.is(v.incrementVersion({ latestVersion, increment: 'a.b.c' }), undefined);
t.is(v.incrementVersion({ latestVersion, increment: '0.9.0' }), undefined);
t.is(v.incrementVersion({ latestVersion, increment: '1.1.0' }), '1.1.0');
t.is(v.incrementVersion({ latestVersion, increment: 'major' }), '2.0.0');
t.is(v.incrementVersion({ latestVersion, increment: '2.0.0-beta.1' }), '2.0.0-beta.1');
});
test('should not increment latest version in interactive mode', t => {
const v = factory(Version, { options: { ci: false } });
const latestVersion = '1.0.0';
t.is(v.incrementVersion({ latestVersion, increment: null }), undefined);
t.is(v.incrementVersion({ latestVersion, increment: false }), '1.0.0');
});
test('should always set increment version in CI mode', t => {
const v = factory(Version, { options: { ci: true } });
const latestVersion = '1.0.0';
t.is(v.getIncrementedVersionCI({ latestVersion, increment: false }), '1.0.0');
t.is(v.getIncrementedVersionCI({ latestVersion, increment: null }), '1.0.1');
t.is(v.getIncrementedVersionCI({ latestVersion, increment: '1.1.0' }), '1.1.0');
t.is(v.getIncrementedVersionCI({ latestVersion, increment: 'major' }), '2.0.0');
});
test('should increment latest version (coerce)', t => {
const v = factory(Version);
t.is(v.incrementVersion({ increment: '1.2' }), '1.2.0');
t.is(v.incrementVersion({ increment: '1' }), '1.0.0');
t.is(v.incrementVersion({ increment: 'v1.2.0.0' }), '1.2.0');
});
test('should increment version (pre-release continuation)', t => {
const v = factory(Version);
t.is(v.incrementVersion({ latestVersion: '1.2.3-alpha.0', increment: 'prepatch' }), '1.2.4-0');
});
test('should increment version (prepatch)', t => {
const v = factory(Version);
t.is(v.incrementVersion({ latestVersion: '1.2.3', increment: 'prepatch', preReleaseId: 'alpha' }), '1.2.4-alpha.0');
});
test('should increment version (normalized)', t => {
const v = factory(Version);
t.is(
v.incrementVersion({ latestVersion: '1.2.3', increment: 'patch', preReleaseId: 'alpha', isPreRelease: true }),
'1.2.4-alpha.0'
);
});
test('should increment version (prepatch on prerelease version)', t => {
const v = factory(Version);
t.is(
v.incrementVersion({ latestVersion: '1.2.3-alpha.5', increment: 'prepatch', preReleaseId: 'next' }),
'1.2.4-next.0'
);
});
test('should increment version (normalized on prerelease version)', t => {
const v = factory(Version);
t.is(
v.incrementVersion({
latestVersion: '1.2.3-alpha.5',
increment: 'patch',
preReleaseId: 'next',
isPreRelease: true
}),
'1.2.4-next.0'
);
});
test('should increment version (prerelease)', t => {
const v = factory(Version);
t.is(v.incrementVersion({ latestVersion: '1.2.3', increment: 'prerelease', preReleaseId: 'alpha' }), '1.2.4-alpha.0');
});
test('should increment version (prerelease cont.)', t => {
const v = factory(Version);
t.is(v.incrementVersion({ latestVersion: '1.2.3-alpha.0', increment: 'prerelease' }), '1.2.3-alpha.1');
});
test('should increment version (preReleaseId continuation)', t => {
const v = factory(Version);
t.is(
v.incrementVersion({ latestVersion: '1.2.3-alpha.0', increment: 'prerelease', preReleaseId: 'alpha' }),
'1.2.3-alpha.1'
);
});
test('should increment version (prepatch/preReleaseId continuation)', t => {
const v = factory(Version);
const options = { latestVersion: '1.2.3-beta.0', increment: 'prerelease', preReleaseId: 'beta', isPreRelease: true };
t.is(v.incrementVersion(options), '1.2.3-beta.1');
});
test('should increment version (preReleaseId w/o preRelease)', t => {
const v = factory(Version);
t.is(v.incrementVersion({ latestVersion: '1.2.3-alpha.0', increment: 'patch', preReleaseId: 'alpha' }), '1.2.3');
});
test('should increment version (non-numeric prepatch continuation)', t => {
const v = factory(Version);
t.is(v.incrementVersion({ latestVersion: '1.2.3-alpha', increment: 'prerelease' }), '1.2.3-alpha.0');
});
test('should increment version (patch release after pre-release)', t => {
const v = factory(Version);
t.is(v.incrementVersion({ latestVersion: '1.2.3-alpha.1', increment: 'patch' }), '1.2.3');
});
test('should run tasks without errors', async t => {
const options = { version: { increment: 'minor' } };
const v = factory(Version, { options });
const getIncrement = sinon.spy(v, 'getIncrement');
const getIncrementedVersionCI = sinon.spy(v, 'getIncrementedVersionCI');
const incrementVersion = sinon.spy(v, 'incrementVersion');
await runTasks(v);
t.is(getIncrement.callCount, 1);
t.deepEqual(getIncrement.firstCall.args[0], { increment: 'minor' });
t.is(getIncrementedVersionCI.callCount, 1);
t.deepEqual(getIncrementedVersionCI.firstCall.args[0], {
latestVersion: '1.0.0',
increment: 'minor',
isPreRelease: false,
preReleaseId: null
});
t.is(await incrementVersion.firstCall.returnValue, '1.1.0');
t.is(incrementVersion.callCount, 1);
t.deepEqual(incrementVersion.firstCall.args[0], {
latestVersion: '1.0.0',
increment: 'minor',
isPreRelease: false,
preReleaseId: null
});
t.is(incrementVersion.firstCall.returnValue, '1.1.0');
const { latestVersion, version, isPreRelease, preReleaseId } = v.config.getContext();
t.is(latestVersion, '1.0.0');
t.is(version, '1.1.0');
t.is(isPreRelease, false);
t.is(preReleaseId, null);
});

View File

@@ -0,0 +1,11 @@
import { ReplaySubject } from '../ReplaySubject';
import { multicast } from './multicast';
import { isFunction } from '../util/isFunction';
export function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
if (selectorOrScheduler && !isFunction(selectorOrScheduler)) {
timestampProvider = selectorOrScheduler;
}
var selector = isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined;
return function (source) { return multicast(new ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); };
}
//# sourceMappingURL=publishReplay.js.map

View File

@@ -0,0 +1,189 @@
"use strict";
var conversions = {};
module.exports = conversions;
function sign(x) {
return x < 0 ? -1 : 1;
}
function evenRound(x) {
// Round x to the nearest integer, choosing the even integer if it lies halfway between two.
if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor)
return Math.floor(x);
} else {
return Math.round(x);
}
}
function createNumberConversion(bitLength, typeOpts) {
if (!typeOpts.unsigned) {
--bitLength;
}
const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength);
const upperBound = Math.pow(2, bitLength) - 1;
const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength);
const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1);
return function(V, opts) {
if (!opts) opts = {};
let x = +V;
if (opts.enforceRange) {
if (!Number.isFinite(x)) {
throw new TypeError("Argument is not a finite number");
}
x = sign(x) * Math.floor(Math.abs(x));
if (x < lowerBound || x > upperBound) {
throw new TypeError("Argument is not in byte range");
}
return x;
}
if (!isNaN(x) && opts.clamp) {
x = evenRound(x);
if (x < lowerBound) x = lowerBound;
if (x > upperBound) x = upperBound;
return x;
}
if (!Number.isFinite(x) || x === 0) {
return 0;
}
x = sign(x) * Math.floor(Math.abs(x));
x = x % moduloVal;
if (!typeOpts.unsigned && x >= moduloBound) {
return x - moduloVal;
} else if (typeOpts.unsigned) {
if (x < 0) {
x += moduloVal;
} else if (x === -0) { // don't return negative zero
return 0;
}
}
return x;
}
}
conversions["void"] = function () {
return undefined;
};
conversions["boolean"] = function (val) {
return !!val;
};
conversions["byte"] = createNumberConversion(8, { unsigned: false });
conversions["octet"] = createNumberConversion(8, { unsigned: true });
conversions["short"] = createNumberConversion(16, { unsigned: false });
conversions["unsigned short"] = createNumberConversion(16, { unsigned: true });
conversions["long"] = createNumberConversion(32, { unsigned: false });
conversions["unsigned long"] = createNumberConversion(32, { unsigned: true });
conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 });
conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 });
conversions["double"] = function (V) {
const x = +V;
if (!Number.isFinite(x)) {
throw new TypeError("Argument is not a finite floating-point value");
}
return x;
};
conversions["unrestricted double"] = function (V) {
const x = +V;
if (isNaN(x)) {
throw new TypeError("Argument is NaN");
}
return x;
};
// not quite valid, but good enough for JS
conversions["float"] = conversions["double"];
conversions["unrestricted float"] = conversions["unrestricted double"];
conversions["DOMString"] = function (V, opts) {
if (!opts) opts = {};
if (opts.treatNullAsEmptyString && V === null) {
return "";
}
return String(V);
};
conversions["ByteString"] = function (V, opts) {
const x = String(V);
let c = undefined;
for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) {
if (c > 255) {
throw new TypeError("Argument is not a valid bytestring");
}
}
return x;
};
conversions["USVString"] = function (V) {
const S = String(V);
const n = S.length;
const U = [];
for (let i = 0; i < n; ++i) {
const c = S.charCodeAt(i);
if (c < 0xD800 || c > 0xDFFF) {
U.push(String.fromCodePoint(c));
} else if (0xDC00 <= c && c <= 0xDFFF) {
U.push(String.fromCodePoint(0xFFFD));
} else {
if (i === n - 1) {
U.push(String.fromCodePoint(0xFFFD));
} else {
const d = S.charCodeAt(i + 1);
if (0xDC00 <= d && d <= 0xDFFF) {
const a = c & 0x3FF;
const b = d & 0x3FF;
U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b));
++i;
} else {
U.push(String.fromCodePoint(0xFFFD));
}
}
}
}
return U.join('');
};
conversions["Date"] = function (V, opts) {
if (!(V instanceof Date)) {
throw new TypeError("Argument is not a Date object");
}
if (isNaN(V)) {
return undefined;
}
return V;
};
conversions["RegExp"] = function (V, opts) {
if (!(V instanceof RegExp)) {
V = new RegExp(V);
}
return V;
};

View File

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

View File

@@ -0,0 +1,18 @@
/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/
'use strict';
module.exports = function(num) {
if (typeof num === 'number') {
return num - num === 0;
}
if (typeof num === 'string' && num.trim() !== '') {
return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
}
return false;
};

View File

@@ -0,0 +1,14 @@
var test = require('tap').test;
var detective = require('../');
var fs = require('fs');
var src = fs.readFileSync(__dirname + '/files/sparse-array.js');
test('sparse-array', function (t) {
//just check that this does not crash.
t.doesNotThrow(function () {
detective(src)
})
t.end();
});

View File

@@ -0,0 +1,4 @@
import { AsyncScheduler } from './AsyncScheduler';
export class QueueScheduler extends AsyncScheduler {
}