new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"p q r s D t","2":"C K L H M N O 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"},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 DC EC","322":"n o p q r s D t xB yB"},D:{"1":"p q r s D t xB yB FC","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 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","194":"l m n o"},E:{"1":"3B 4B 5B sB 6B 7B 8B NC","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"},F:{"1":"a b c d","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 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 OC PC QC RC qB 9B SC rB"},G:{"1":"3B 4B 5B sB 6B 7B 8B","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"},H:{"2":"nC"},I:{"1":"D","2":"tB I oC pC qC rC AC sC tC"},J:{"2":"E A"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"uC"},P:{"2":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"2":"1B"},R:{"2":"8C"},S:{"2":"9C"}},B:5,C:":has() CSS relational pseudo-class"};
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
@@ -0,0 +1 @@
|
||||
{"name":"boxen","version":"5.1.2","files":{"license":{"checkedAt":1678887829613,"integrity":"sha512-0fM2/ycrxrltyaBKfQ748Ck23VlPUUBgNAR47ldf4B1V/HoXTfWBSk+vcshGKwEpmOynu4mOP5o+hyBfuRNa8g==","mode":420,"size":1117},"package.json":{"checkedAt":1678887830214,"integrity":"sha512-rf5lc7TULx+wNygfd6OY9mHwiXJh6jC5fxige0E5oLvEo4jd/UfrkBx1srk6KRxuaTblAQWOsHfZN9DUT4G1sA==","mode":420,"size":908},"index.js":{"checkedAt":1678887830214,"integrity":"sha512-CTpkNa0CrhYQMRVkozJd2VDKSuCwR9QyZA/pU/xUAyeBvKZF3p17SBTZeQH+qkhioSRKKh1eaxkFeRL2C9kAlQ==","mode":420,"size":7995},"readme.md":{"checkedAt":1678887830219,"integrity":"sha512-Igy9qpjX21MI9WyHrxIlZjF3JruRtW6uuBfOTSsACLfKb632XQqSK2i2xzlZaGa8pJAKcmamay3Yc8h9OjaWgg==","mode":420,"size":4666},"index.d.ts":{"checkedAt":1678887830220,"integrity":"sha512-bXFMtPGC5UoFYN/Jv8+5xZ6BNJF9Hv6JIrnRSOerForgYf8l3UCA/btkcoF9sOD1oIsaDZ4DPdXjZU9nfyH3Hg==","mode":420,"size":3728}}}
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/scheduler/async';
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"first.js","sources":["../../../src/internal/operators/first.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAuE5C,MAAM,UAAU,KAAK,CACnB,SAAgF,EAChF,YAAgB;IAEhB,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAC3C,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAChE,IAAI,CAAC,CAAC,CAAC,EACP,eAAe,CAAC,CAAC,CAAC,cAAc,CAAQ,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CAC7F,CAAC;AACJ,CAAC"}
|
||||
@@ -0,0 +1,70 @@
|
||||
const { EOL } = require('os');
|
||||
const test = require('ava');
|
||||
const mockStdIo = require('mock-stdio');
|
||||
const stripAnsi = require('strip-ansi');
|
||||
const { format, truncateLines, parseGitUrl, parseVersion } = require('../lib/util');
|
||||
|
||||
test('format', t => {
|
||||
t.is(format('release v${version}', { version: '1.0.0' }), 'release v1.0.0');
|
||||
t.is(format('release v${version} (${name})', { version: '1.0.0', name: 'foo' }), 'release v1.0.0 (foo)');
|
||||
t.is(format('release v${version} (${name})', { version: '1.0.0', name: 'foo' }), 'release v1.0.0 (foo)');
|
||||
});
|
||||
|
||||
test('format (throw)', t => {
|
||||
mockStdIo.start();
|
||||
t.throws(() => format('release v${foo}', { version: '1.0.0' }), { message: /foo is not defined/ });
|
||||
const { stdout, stderr } = mockStdIo.end();
|
||||
t.is(stdout, '');
|
||||
t.regex(
|
||||
stripAnsi(stderr),
|
||||
/ERROR Unable to render template with context:\s+release v\${foo}\s+{"version":"1\.0\.0"}\s+ERROR ReferenceError: foo is not defined/
|
||||
);
|
||||
});
|
||||
|
||||
test('truncateLines', t => {
|
||||
const input = `1${EOL}2${EOL}3${EOL}4${EOL}5${EOL}6`;
|
||||
t.is(truncateLines(input), input);
|
||||
t.is(truncateLines(input, 3), `1${EOL}2${EOL}3${EOL}...and 3 more`);
|
||||
t.is(truncateLines(input, 1, '...'), `1...`);
|
||||
});
|
||||
|
||||
test('parseGitUrl', t => {
|
||||
t.deepEqual(parseGitUrl('https://github.com/webpro/release-it.git'), {
|
||||
host: 'github.com',
|
||||
owner: 'webpro',
|
||||
project: 'release-it',
|
||||
protocol: 'https',
|
||||
remote: 'https://github.com/webpro/release-it.git',
|
||||
repository: 'webpro/release-it'
|
||||
});
|
||||
|
||||
t.deepEqual(parseGitUrl('git@gitlab.com:org/sub-group/repo-in-sub-group.git'), {
|
||||
host: 'gitlab.com',
|
||||
owner: 'org/sub-group',
|
||||
project: 'repo-in-sub-group',
|
||||
protocol: 'ssh',
|
||||
remote: 'git@gitlab.com:org/sub-group/repo-in-sub-group.git',
|
||||
repository: 'org/sub-group/repo-in-sub-group'
|
||||
});
|
||||
|
||||
t.deepEqual(parseGitUrl('/Users/john/doe/owner/project'), {
|
||||
host: '',
|
||||
owner: 'owner',
|
||||
project: 'project',
|
||||
protocol: 'file',
|
||||
remote: '/Users/john/doe/owner/project',
|
||||
repository: 'owner/project'
|
||||
});
|
||||
});
|
||||
|
||||
test('parseVersion', t => {
|
||||
t.deepEqual(parseVersion(), { version: undefined, isPreRelease: false, preReleaseId: null });
|
||||
t.deepEqual(parseVersion(0), { version: '0.0.0', isPreRelease: false, preReleaseId: null });
|
||||
t.deepEqual(parseVersion(1), { version: '1.0.0', isPreRelease: false, preReleaseId: null });
|
||||
t.deepEqual(parseVersion('1'), { version: '1.0.0', isPreRelease: false, preReleaseId: null });
|
||||
t.deepEqual(parseVersion('1.0'), { version: '1.0.0', isPreRelease: false, preReleaseId: null });
|
||||
t.deepEqual(parseVersion('1.0.0'), { version: '1.0.0', isPreRelease: false, preReleaseId: null });
|
||||
t.deepEqual(parseVersion('1.0.0-0'), { version: '1.0.0-0', isPreRelease: true, preReleaseId: null });
|
||||
t.deepEqual(parseVersion('1.0.0-next.1'), { version: '1.0.0-next.1', isPreRelease: true, preReleaseId: 'next' });
|
||||
t.deepEqual(parseVersion('21.04.1'), { version: '21.04.1', isPreRelease: false, preReleaseId: null });
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/operator/share");
|
||||
//# sourceMappingURL=share.js.map
|
||||
@@ -0,0 +1,44 @@
|
||||
import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
|
||||
/**
|
||||
* Emits the most recently emitted value from the source Observable within
|
||||
* periodic time intervals.
|
||||
*
|
||||
* <span class="informal">Samples the source Observable at periodic time
|
||||
* intervals, emitting what it samples.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* `sampleTime` periodically looks at the source Observable and emits whichever
|
||||
* value it has most recently emitted since the previous sampling, unless the
|
||||
* source has not emitted anything since the previous sampling. The sampling
|
||||
* happens periodically in time every `period` milliseconds (or the time unit
|
||||
* defined by the optional `scheduler` argument). The sampling starts as soon as
|
||||
* the output Observable is subscribed.
|
||||
*
|
||||
* ## Example
|
||||
* Every second, emit the most recent click at most once
|
||||
* ```ts
|
||||
* import { fromEvent } from 'rxjs';
|
||||
* import { sampleTime } from 'rxjs/operators';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const result = clicks.pipe(sampleTime(1000));
|
||||
* result.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* @see {@link auditTime}
|
||||
* @see {@link debounceTime}
|
||||
* @see {@link delay}
|
||||
* @see {@link sample}
|
||||
* @see {@link throttleTime}
|
||||
*
|
||||
* @param {number} period The sampling period expressed in milliseconds or the
|
||||
* time unit determined internally by the optional `scheduler`.
|
||||
* @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for
|
||||
* managing the timers that handle the sampling.
|
||||
* @return {Observable<T>} An Observable that emits the results of sampling the
|
||||
* values emitted by the source Observable at the specified time interval.
|
||||
* @method sampleTime
|
||||
* @owner Observable
|
||||
*/
|
||||
export declare function sampleTime<T>(period: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PairsObservable.js","sources":["../src/observable/PairsObservable.ts"],"names":[],"mappings":";;;;;AAAA,4DAAuD"}
|
||||
@@ -0,0 +1,109 @@
|
||||
import { Operator } from '../Operator';
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { Observable } from '../Observable';
|
||||
import { Subject } from '../Subject';
|
||||
import { Subscription } from '../Subscription';
|
||||
|
||||
import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
|
||||
import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';
|
||||
|
||||
/**
|
||||
* Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable
|
||||
* calls `error`, this method will emit the Throwable that caused the error to the Observable returned from `notifier`.
|
||||
* If that Observable calls `complete` or `error` then this method will call `complete` or `error` on the child
|
||||
* subscription. Otherwise this method will resubscribe to the source Observable.
|
||||
*
|
||||
* 
|
||||
*
|
||||
* @param {function(errors: Observable): Observable} notifier - Receives an Observable of notifications with which a
|
||||
* user can `complete` or `error`, aborting the retry.
|
||||
* @return {Observable} The source Observable modified with retry logic.
|
||||
* @method retryWhen
|
||||
* @owner Observable
|
||||
*/
|
||||
export function retryWhen<T>(notifier: (errors: Observable<any>) => Observable<any>): MonoTypeOperatorFunction<T> {
|
||||
return (source: Observable<T>) => source.lift(new RetryWhenOperator(notifier, source));
|
||||
}
|
||||
|
||||
class RetryWhenOperator<T> implements Operator<T, T> {
|
||||
constructor(protected notifier: (errors: Observable<any>) => Observable<any>,
|
||||
protected source: Observable<T>) {
|
||||
}
|
||||
|
||||
call(subscriber: Subscriber<T>, source: any): TeardownLogic {
|
||||
return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
class RetryWhenSubscriber<T, R> extends SimpleOuterSubscriber<T, R> {
|
||||
|
||||
private errors?: Subject<any>;
|
||||
private retries?: Observable<any>;
|
||||
private retriesSubscription?: Subscription;
|
||||
|
||||
constructor(destination: Subscriber<R>,
|
||||
private notifier: (errors: Observable<any>) => Observable<any>,
|
||||
private source: Observable<T>) {
|
||||
super(destination);
|
||||
}
|
||||
|
||||
error(err: any) {
|
||||
if (!this.isStopped) {
|
||||
|
||||
let errors = this.errors;
|
||||
let retries: any = this.retries;
|
||||
let retriesSubscription = this.retriesSubscription;
|
||||
|
||||
if (!retries) {
|
||||
errors = new Subject();
|
||||
try {
|
||||
const { notifier } = this;
|
||||
retries = notifier(errors);
|
||||
} catch (e) {
|
||||
return super.error(e);
|
||||
}
|
||||
retriesSubscription = innerSubscribe(retries, new SimpleInnerSubscriber(this));
|
||||
} else {
|
||||
this.errors = undefined;
|
||||
this.retriesSubscription = undefined;
|
||||
}
|
||||
|
||||
this._unsubscribeAndRecycle();
|
||||
|
||||
this.errors = errors;
|
||||
this.retries = retries;
|
||||
this.retriesSubscription = retriesSubscription;
|
||||
|
||||
errors!.next(err);
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated This is an internal implementation detail, do not use. */
|
||||
_unsubscribe() {
|
||||
const { errors, retriesSubscription } = this;
|
||||
if (errors) {
|
||||
errors.unsubscribe();
|
||||
this.errors = undefined;
|
||||
}
|
||||
if (retriesSubscription) {
|
||||
retriesSubscription.unsubscribe();
|
||||
this.retriesSubscription = undefined;
|
||||
}
|
||||
this.retries = undefined;
|
||||
}
|
||||
|
||||
notifyNext(): void {
|
||||
const { _unsubscribe } = this;
|
||||
|
||||
this._unsubscribe = null!;
|
||||
this._unsubscribeAndRecycle();
|
||||
this._unsubscribe = _unsubscribe;
|
||||
|
||||
this.source.subscribe(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
// Bootstraps yargs for ESM:
|
||||
import esmPlatformShim from './lib/platform-shims/esm.mjs';
|
||||
import {YargsWithShim} from './build/lib/yargs-factory.js';
|
||||
|
||||
const Yargs = YargsWithShim(esmPlatformShim);
|
||||
export default Yargs;
|
||||
@@ -0,0 +1,79 @@
|
||||
'use strict';
|
||||
const errors = require('./errors');
|
||||
const asStream = require('./as-stream');
|
||||
const asPromise = require('./as-promise');
|
||||
const normalizeArguments = require('./normalize-arguments');
|
||||
const merge = require('./merge');
|
||||
const deepFreeze = require('./utils/deep-freeze');
|
||||
|
||||
const getPromiseOrStream = options => options.stream ? asStream(options) : asPromise(options);
|
||||
|
||||
const aliases = [
|
||||
'get',
|
||||
'post',
|
||||
'put',
|
||||
'patch',
|
||||
'head',
|
||||
'delete'
|
||||
];
|
||||
|
||||
const create = defaults => {
|
||||
defaults = merge({}, defaults);
|
||||
normalizeArguments.preNormalize(defaults.options);
|
||||
|
||||
if (!defaults.handler) {
|
||||
// This can't be getPromiseOrStream, because when merging
|
||||
// the chain would stop at this point and no further handlers would be called.
|
||||
defaults.handler = (options, next) => next(options);
|
||||
}
|
||||
|
||||
function got(url, options) {
|
||||
try {
|
||||
return defaults.handler(normalizeArguments(url, options, defaults), getPromiseOrStream);
|
||||
} catch (error) {
|
||||
if (options && options.stream) {
|
||||
throw error;
|
||||
} else {
|
||||
return Promise.reject(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
got.create = create;
|
||||
got.extend = options => {
|
||||
let mutableDefaults;
|
||||
if (options && Reflect.has(options, 'mutableDefaults')) {
|
||||
mutableDefaults = options.mutableDefaults;
|
||||
delete options.mutableDefaults;
|
||||
} else {
|
||||
mutableDefaults = defaults.mutableDefaults;
|
||||
}
|
||||
|
||||
return create({
|
||||
options: merge.options(defaults.options, options),
|
||||
handler: defaults.handler,
|
||||
mutableDefaults
|
||||
});
|
||||
};
|
||||
|
||||
got.mergeInstances = (...args) => create(merge.instances(args));
|
||||
|
||||
got.stream = (url, options) => got(url, {...options, stream: true});
|
||||
|
||||
for (const method of aliases) {
|
||||
got[method] = (url, options) => got(url, {...options, method});
|
||||
got.stream[method] = (url, options) => got.stream(url, {...options, method});
|
||||
}
|
||||
|
||||
Object.assign(got, {...errors, mergeOptions: merge.options});
|
||||
Object.defineProperty(got, 'defaults', {
|
||||
value: defaults.mutableDefaults ? defaults : deepFreeze(defaults),
|
||||
writable: defaults.mutableDefaults,
|
||||
configurable: defaults.mutableDefaults,
|
||||
enumerable: true
|
||||
});
|
||||
|
||||
return got;
|
||||
};
|
||||
|
||||
module.exports = create;
|
||||
@@ -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.02198,"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.01099,"53":0,"54":0,"55":0,"56":0,"57":0.03297,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.01099,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.02198,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0.0055,"89":0.0055,"90":0.01649,"91":0.01099,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0.0055,"101":0.0055,"102":0.02198,"103":0.0055,"104":0.0055,"105":0.01099,"106":0.01099,"107":0.02198,"108":0.59346,"109":0.32421,"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.01099,"27":0,"28":0,"29":0,"30":0.0055,"31":0,"32":0,"33":0,"34":0.06045,"35":0,"36":0,"37":0,"38":0.12089,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0.01099,"49":0.03847,"50":0,"51":0,"52":0,"53":0.03297,"54":0,"55":0.01649,"56":0.0055,"57":0.0055,"58":0,"59":0,"60":0.0055,"61":0.02748,"62":0.0055,"63":0.01099,"64":0,"65":0.0055,"66":0,"67":0.01649,"68":0.0055,"69":0.01099,"70":0.01099,"71":0.0055,"72":0.01099,"73":0.0055,"74":0.01649,"75":0.02198,"76":0.0055,"77":0.0055,"78":0.02198,"79":0.52203,"80":0.02198,"81":0.02198,"83":0.07144,"84":0.02198,"85":0.01649,"86":0.04946,"87":0.09891,"88":0.01099,"89":0.01649,"90":0.01099,"91":0.03297,"92":0.08792,"93":0.0055,"94":0.08792,"95":0.02748,"96":0.04396,"97":0.07693,"98":0.04946,"99":0.06594,"100":0.06045,"101":0.04396,"102":0.05495,"103":0.2253,"104":0.07693,"105":0.12639,"106":0.14287,"107":0.3297,"108":7.98973,"109":6.58851,"110":0.01099,"111":0.0055,"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.01649,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0.02198,"37":0,"38":0,"39":0,"40":0.0055,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0.06594,"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.0055,"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.03847,"94":0.10441,"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.0055,"13":0,"14":0,"15":0,"16":0,"17":0.0055,"18":0.01649,"79":0,"80":0,"81":0,"83":0.0055,"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.0055,"103":0.0055,"104":0.0055,"105":0.0055,"106":0.01099,"107":0.04946,"108":1.57157,"109":1.35177},E:{"4":0,"5":0,"6":0,"7":0,"8":0.0055,"9":0,"10":0,"11":0,"12":0.0055,"13":0.04396,"14":0.15936,"15":0.04396,_:"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.0055,"12.1":0.03297,"13.1":0.12089,"14.1":0.34619,"15.1":0.04946,"15.2-15.3":0.05495,"15.4":0.19233,"15.5":0.31322,"15.6":1.89578,"16.0":0.10441,"16.1":0.40114,"16.2":0.78029,"16.3":0.06594},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00319,"5.0-5.1":0.02234,"6.0-6.1":0.01915,"7.0-7.1":0.05425,"8.1-8.4":0.04149,"9.0-9.2":0.02234,"9.3":0.32871,"10.0-10.2":0.00638,"10.3":0.19787,"11.0-11.2":0.03511,"11.3-11.4":0.03511,"12.0-12.1":0.05106,"12.2-12.5":0.99252,"13.0-13.1":0.03511,"13.2":0.01277,"13.3":0.07659,"13.4-13.7":0.19787,"14.0-14.4":0.667,"14.5-14.8":1.32123,"15.0-15.1":0.38616,"15.2-15.3":0.47552,"15.4":0.84572,"15.5":1.02763,"15.6":5.02005,"16.0":2.91693,"16.1":9.15928,"16.2":5.64237,"16.3":0.40531},P:{"4":1.22573,"5.0-5.4":0.06451,"6.2-6.4":0.01075,"7.2-7.4":0.03226,"8.2":0.01075,"9.2":0.04301,"10.1":0,"11.1-11.2":0.03226,"12.0":0.01075,"13.0":0.08602,"14.0":0.04301,"15.0":0.03226,"16.0":0.05376,"17.0":0.15053,"18.0":0.18278,"19.0":4.7954},I:{"0":0,"3":0,"4":0.01726,"2.1":0,"2.2":0,"2.3":0,"4.1":0.02014,"4.2-4.3":0.01151,"4.4":0,"4.4.3-4.4.4":0.08055},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.03266,"9":0.16332,"10":0,"11":0.39198,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.21624},Q:{"13.1":0.0901},O:{"0":0.36491},H:{"0":0.0981},L:{"0":30.66206},S:{"2.5":0}};
|
||||
@@ -0,0 +1 @@
|
||||
export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
||||
@@ -0,0 +1,125 @@
|
||||
# locate-path [](https://travis-ci.com/github/sindresorhus/locate-path)
|
||||
|
||||
> Get the first path that exists on disk of multiple paths
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install locate-path
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Here we find the first file that exists on disk, in array order.
|
||||
|
||||
```js
|
||||
const locatePath = require('locate-path');
|
||||
|
||||
const files = [
|
||||
'unicorn.png',
|
||||
'rainbow.png', // Only this one actually exists on disk
|
||||
'pony.png'
|
||||
];
|
||||
|
||||
(async () => {
|
||||
console(await locatePath(files));
|
||||
//=> 'rainbow'
|
||||
})();
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### locatePath(paths, options?)
|
||||
|
||||
Returns a `Promise<string>` for the first path that exists or `undefined` if none exists.
|
||||
|
||||
#### paths
|
||||
|
||||
Type: `Iterable<string>`
|
||||
|
||||
Paths to check.
|
||||
|
||||
#### options
|
||||
|
||||
Type: `object`
|
||||
|
||||
##### concurrency
|
||||
|
||||
Type: `number`\
|
||||
Default: `Infinity`\
|
||||
Minimum: `1`
|
||||
|
||||
Number of concurrently pending promises.
|
||||
|
||||
##### preserveOrder
|
||||
|
||||
Type: `boolean`\
|
||||
Default: `true`
|
||||
|
||||
Preserve `paths` order when searching.
|
||||
|
||||
Disable this to improve performance if you don't care about the order.
|
||||
|
||||
##### cwd
|
||||
|
||||
Type: `string`\
|
||||
Default: `process.cwd()`
|
||||
|
||||
Current working directory.
|
||||
|
||||
##### type
|
||||
|
||||
Type: `string`\
|
||||
Default: `'file'`\
|
||||
Values: `'file' | 'directory'`
|
||||
|
||||
The type of paths that can match.
|
||||
|
||||
##### allowSymlinks
|
||||
|
||||
Type: `boolean`\
|
||||
Default: `true`
|
||||
|
||||
Allow symbolic links to match if they point to the chosen path type.
|
||||
|
||||
### locatePath.sync(paths, options?)
|
||||
|
||||
Returns the first path that exists or `undefined` if none exists.
|
||||
|
||||
#### paths
|
||||
|
||||
Type: `Iterable<string>`
|
||||
|
||||
Paths to check.
|
||||
|
||||
#### options
|
||||
|
||||
Type: `object`
|
||||
|
||||
##### cwd
|
||||
|
||||
Same as above.
|
||||
|
||||
##### type
|
||||
|
||||
Same as above.
|
||||
|
||||
##### allowSymlinks
|
||||
|
||||
Same as above.
|
||||
|
||||
## Related
|
||||
|
||||
- [path-exists](https://github.com/sindresorhus/path-exists) - Check if a path exists
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-locate-path?utm_source=npm-locate-path&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
||||
</b>
|
||||
<br>
|
||||
<sub>
|
||||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||
</sub>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concat.js","sources":["../../src/add/observable/concat.ts"],"names":[],"mappings":";;AAAA,6CAA2C"}
|
||||
@@ -0,0 +1,67 @@
|
||||
# http-error.js
|
||||
|
||||
> Error class for Octokit request errors
|
||||
|
||||
[](https://www.npmjs.com/package/@octokit/request-error)
|
||||
[](https://github.com/octokit/request-error.js/actions?query=workflow%3ATest)
|
||||
|
||||
## Usage
|
||||
|
||||
<table>
|
||||
<tbody valign=top align=left>
|
||||
<tr><th>
|
||||
Browsers
|
||||
</th><td width=100%>
|
||||
Load <code>@octokit/request-error</code> directly from <a href="https://cdn.skypack.dev">cdn.skypack.dev</a>
|
||||
|
||||
```html
|
||||
<script type="module">
|
||||
import { RequestError } from "https://cdn.skypack.dev/@octokit/request-error";
|
||||
</script>
|
||||
```
|
||||
|
||||
</td></tr>
|
||||
<tr><th>
|
||||
Node
|
||||
</th><td>
|
||||
|
||||
Install with <code>npm install @octokit/request-error</code>
|
||||
|
||||
```js
|
||||
const { RequestError } = require("@octokit/request-error");
|
||||
// or: import { RequestError } from "@octokit/request-error";
|
||||
```
|
||||
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
```js
|
||||
const error = new RequestError("Oops", 500, {
|
||||
headers: {
|
||||
"x-github-request-id": "1:2:3:4",
|
||||
}, // response headers
|
||||
request: {
|
||||
method: "POST",
|
||||
url: "https://api.github.com/foo",
|
||||
body: {
|
||||
bar: "baz",
|
||||
},
|
||||
headers: {
|
||||
authorization: "token secret123",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
error.message; // Oops
|
||||
error.status; // 500
|
||||
error.request.method; // POST
|
||||
error.request.url; // https://api.github.com/foo
|
||||
error.request.body; // { bar: 'baz' }
|
||||
error.request.headers; // { authorization: 'token [REDACTED]' }
|
||||
error.response; // { url, status, headers, data }
|
||||
```
|
||||
|
||||
## LICENSE
|
||||
|
||||
[MIT](LICENSE)
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"sampleTime.js","sources":["../src/operator/sampleTime.ts"],"names":[],"mappings":";;;;;AAAA,qDAAgD"}
|
||||
@@ -0,0 +1,25 @@
|
||||
// By @mathias, based on http://mths.be/axh
|
||||
Modernizr.addTest('details', function() {
|
||||
var doc = document,
|
||||
el = doc.createElement('details'),
|
||||
fake,
|
||||
root,
|
||||
diff;
|
||||
if (!('open' in el)) { // return early if possible; thanks @aFarkas!
|
||||
return false;
|
||||
}
|
||||
root = doc.body || (function() {
|
||||
var de = doc.documentElement;
|
||||
fake = true;
|
||||
return de.insertBefore(doc.createElement('body'), de.firstElementChild || de.firstChild);
|
||||
}());
|
||||
el.innerHTML = '<summary>a</summary>b';
|
||||
el.style.display = 'block';
|
||||
root.appendChild(el);
|
||||
diff = el.offsetHeight;
|
||||
el.open = true;
|
||||
diff = diff != el.offsetHeight;
|
||||
root.removeChild(el);
|
||||
fake && root.parentNode.removeChild(root);
|
||||
return diff;
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"G A B","2":"J E F BC"},B:{"1":"C K L H M N O","2":"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 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 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 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 e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d OC PC QC RC qB 9B SC rB"},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 e qB 9B rB"},L:{"2":"D"},M:{"2":"D"},N:{"1":"A B"},O:{"2":"uC"},P:{"2":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"2":"1B"},R:{"2":"8C"},S:{"2":"9C"}},B:6,C:"JPEG XR image format"};
|
||||
@@ -0,0 +1,95 @@
|
||||
import rng from './rng.js';
|
||||
import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID**
|
||||
//
|
||||
// Inspired by https://github.com/LiosK/UUID.js
|
||||
// and http://docs.python.org/library/uuid.html
|
||||
|
||||
let _nodeId;
|
||||
|
||||
let _clockseq; // Previous uuid creation time
|
||||
|
||||
|
||||
let _lastMSecs = 0;
|
||||
let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
|
||||
|
||||
function v1(options, buf, offset) {
|
||||
let i = buf && offset || 0;
|
||||
const b = buf || new Array(16);
|
||||
options = options || {};
|
||||
let node = options.node || _nodeId;
|
||||
let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
|
||||
// specified. We do this lazily to minimize issues related to insufficient
|
||||
// system entropy. See #189
|
||||
|
||||
if (node == null || clockseq == null) {
|
||||
const seedBytes = options.random || (options.rng || rng)();
|
||||
|
||||
if (node == null) {
|
||||
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
||||
node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
||||
}
|
||||
|
||||
if (clockseq == null) {
|
||||
// Per 4.2.2, randomize (14 bit) clockseq
|
||||
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
||||
}
|
||||
} // UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
||||
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
||||
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
||||
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
||||
|
||||
|
||||
let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
|
||||
// cycle to simulate higher resolution clock
|
||||
|
||||
let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
|
||||
|
||||
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
|
||||
|
||||
if (dt < 0 && options.clockseq === undefined) {
|
||||
clockseq = clockseq + 1 & 0x3fff;
|
||||
} // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
||||
// time interval
|
||||
|
||||
|
||||
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
||||
nsecs = 0;
|
||||
} // Per 4.2.1.2 Throw error if too many uuids are requested
|
||||
|
||||
|
||||
if (nsecs >= 10000) {
|
||||
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
||||
}
|
||||
|
||||
_lastMSecs = msecs;
|
||||
_lastNSecs = nsecs;
|
||||
_clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
||||
|
||||
msecs += 12219292800000; // `time_low`
|
||||
|
||||
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
||||
b[i++] = tl >>> 24 & 0xff;
|
||||
b[i++] = tl >>> 16 & 0xff;
|
||||
b[i++] = tl >>> 8 & 0xff;
|
||||
b[i++] = tl & 0xff; // `time_mid`
|
||||
|
||||
const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
||||
b[i++] = tmh >>> 8 & 0xff;
|
||||
b[i++] = tmh & 0xff; // `time_high_and_version`
|
||||
|
||||
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
||||
|
||||
b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
||||
|
||||
b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
|
||||
|
||||
b[i++] = clockseq & 0xff; // `node`
|
||||
|
||||
for (let n = 0; n < 6; ++n) {
|
||||
b[i + n] = node[n];
|
||||
}
|
||||
|
||||
return buf || stringify(b);
|
||||
}
|
||||
|
||||
export default v1;
|
||||
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/operator/windowToggle';
|
||||
Reference in New Issue
Block a user