Compare commits
	
		
			6 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 46db68ab22 | |||
| dc9d7f22a2 | |||
| f917018fd9 | |||
| 7b420c430d | |||
| 00359d25c1 | |||
| d8a3063735 | 
| @@ -0,0 +1,29 @@ | ||||
| import {  concat as concatStatic } from '../observable/concat'; | ||||
| import { Observable } from '../Observable'; | ||||
| import { ObservableInput, OperatorFunction, MonoTypeOperatorFunction, SchedulerLike } from '../types'; | ||||
|  | ||||
| /* tslint:disable:max-line-length */ | ||||
| /** @deprecated Deprecated in favor of static concat. */ | ||||
| export function concat<T>(scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>; | ||||
| /** @deprecated Deprecated in favor of static concat. */ | ||||
| export function concat<T, T2>(v2: ObservableInput<T2>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2>; | ||||
| /** @deprecated Deprecated in favor of static concat. */ | ||||
| export function concat<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3>; | ||||
| /** @deprecated Deprecated in favor of static concat. */ | ||||
| export function concat<T, T2, T3, T4>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4>; | ||||
| /** @deprecated Deprecated in favor of static concat. */ | ||||
| export function concat<T, T2, T3, T4, T5>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5>; | ||||
| /** @deprecated Deprecated in favor of static concat. */ | ||||
| export function concat<T, T2, T3, T4, T5, T6>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5 | T6>; | ||||
| /** @deprecated Deprecated in favor of static concat. */ | ||||
| export function concat<T>(...observables: Array<ObservableInput<T> | SchedulerLike>): MonoTypeOperatorFunction<T>; | ||||
| /** @deprecated Deprecated in favor of static concat. */ | ||||
| export function concat<T, R>(...observables: Array<ObservableInput<any> | SchedulerLike>): OperatorFunction<T, R>; | ||||
| /* tslint:enable:max-line-length */ | ||||
|  | ||||
| /** | ||||
|  * @deprecated Deprecated in favor of static {@link concat}. | ||||
|  */ | ||||
| export function concat<T, R>(...observables: Array<ObservableInput<any> | SchedulerLike>): OperatorFunction<T, R> { | ||||
|   return (source: Observable<T>) => source.lift.call(concatStatic(source, ...observables)); | ||||
| } | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"map.js","sources":["../../src/add/operator/map.ts"],"names":[],"mappings":";;AAAA,wCAAsC"} | ||||
| @@ -0,0 +1,176 @@ | ||||
| declare class CancelErrorClass extends Error { | ||||
| 	readonly name: 'CancelError'; | ||||
| 	readonly isCanceled: true; | ||||
|  | ||||
| 	constructor(reason?: string); | ||||
| } | ||||
|  | ||||
| declare namespace PCancelable { | ||||
| 	/** | ||||
| 	Accepts a function that is called when the promise is canceled. | ||||
|  | ||||
| 	You're not required to call this function. You can call this function multiple times to add multiple cancel handlers. | ||||
| 	*/ | ||||
| 	interface OnCancelFunction { | ||||
| 		(cancelHandler: () => void): void; | ||||
| 		shouldReject: boolean; | ||||
| 	} | ||||
|  | ||||
| 	type CancelError = CancelErrorClass; | ||||
| } | ||||
|  | ||||
| declare class PCancelable<ValueType> extends Promise<ValueType> { | ||||
| 	/** | ||||
| 	Convenience method to make your promise-returning or async function cancelable. | ||||
|  | ||||
| 	@param fn - A promise-returning function. The function you specify will have `onCancel` appended to its parameters. | ||||
|  | ||||
| 	@example | ||||
| 	``` | ||||
| 	import PCancelable = require('p-cancelable'); | ||||
|  | ||||
| 	const fn = PCancelable.fn((input, onCancel) => { | ||||
| 		const job = new Job(); | ||||
|  | ||||
| 		onCancel(() => { | ||||
| 			job.cleanup(); | ||||
| 		}); | ||||
|  | ||||
| 		return job.start(); //=> Promise | ||||
| 	}); | ||||
|  | ||||
| 	const cancelablePromise = fn('input'); //=> PCancelable | ||||
|  | ||||
| 	// … | ||||
|  | ||||
| 	cancelablePromise.cancel(); | ||||
| 	``` | ||||
| 	*/ | ||||
| 	static fn<ReturnType>( | ||||
| 		userFn: (onCancel: PCancelable.OnCancelFunction) => PromiseLike<ReturnType> | ||||
| 	): () => PCancelable<ReturnType>; | ||||
| 	static fn<Agument1Type, ReturnType>( | ||||
| 		userFn: ( | ||||
| 			argument1: Agument1Type, | ||||
| 			onCancel: PCancelable.OnCancelFunction | ||||
| 		) => PromiseLike<ReturnType> | ||||
| 	): (argument1: Agument1Type) => PCancelable<ReturnType>; | ||||
| 	static fn<Agument1Type, Agument2Type, ReturnType>( | ||||
| 		userFn: ( | ||||
| 			argument1: Agument1Type, | ||||
| 			argument2: Agument2Type, | ||||
| 			onCancel: PCancelable.OnCancelFunction | ||||
| 		) => PromiseLike<ReturnType> | ||||
| 	): ( | ||||
| 		argument1: Agument1Type, | ||||
| 		argument2: Agument2Type | ||||
| 	) => PCancelable<ReturnType>; | ||||
| 	static fn<Agument1Type, Agument2Type, Agument3Type, ReturnType>( | ||||
| 		userFn: ( | ||||
| 			argument1: Agument1Type, | ||||
| 			argument2: Agument2Type, | ||||
| 			argument3: Agument3Type, | ||||
| 			onCancel: PCancelable.OnCancelFunction | ||||
| 		) => PromiseLike<ReturnType> | ||||
| 	): ( | ||||
| 		argument1: Agument1Type, | ||||
| 		argument2: Agument2Type, | ||||
| 		argument3: Agument3Type | ||||
| 	) => PCancelable<ReturnType>; | ||||
| 	static fn<Agument1Type, Agument2Type, Agument3Type, Agument4Type, ReturnType>( | ||||
| 		userFn: ( | ||||
| 			argument1: Agument1Type, | ||||
| 			argument2: Agument2Type, | ||||
| 			argument3: Agument3Type, | ||||
| 			argument4: Agument4Type, | ||||
| 			onCancel: PCancelable.OnCancelFunction | ||||
| 		) => PromiseLike<ReturnType> | ||||
| 	): ( | ||||
| 		argument1: Agument1Type, | ||||
| 		argument2: Agument2Type, | ||||
| 		argument3: Agument3Type, | ||||
| 		argument4: Agument4Type | ||||
| 	) => PCancelable<ReturnType>; | ||||
| 	static fn< | ||||
| 		Agument1Type, | ||||
| 		Agument2Type, | ||||
| 		Agument3Type, | ||||
| 		Agument4Type, | ||||
| 		Agument5Type, | ||||
| 		ReturnType | ||||
| 	>( | ||||
| 		userFn: ( | ||||
| 			argument1: Agument1Type, | ||||
| 			argument2: Agument2Type, | ||||
| 			argument3: Agument3Type, | ||||
| 			argument4: Agument4Type, | ||||
| 			argument5: Agument5Type, | ||||
| 			onCancel: PCancelable.OnCancelFunction | ||||
| 		) => PromiseLike<ReturnType> | ||||
| 	): ( | ||||
| 		argument1: Agument1Type, | ||||
| 		argument2: Agument2Type, | ||||
| 		argument3: Agument3Type, | ||||
| 		argument4: Agument4Type, | ||||
| 		argument5: Agument5Type | ||||
| 	) => PCancelable<ReturnType>; | ||||
| 	static fn<ReturnType>( | ||||
| 		userFn: (...arguments: unknown[]) => PromiseLike<ReturnType> | ||||
| 	): (...arguments: unknown[]) => PCancelable<ReturnType>; | ||||
|  | ||||
| 	/** | ||||
| 	Create a promise that can be canceled. | ||||
|  | ||||
| 	Can be constructed in the same was as a [`Promise` constructor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise), but with an appended `onCancel` parameter in `executor`. `PCancelable` is a subclass of `Promise`. | ||||
|  | ||||
| 	Cancelling will reject the promise with `CancelError`. To avoid that, set `onCancel.shouldReject` to `false`. | ||||
|  | ||||
| 	@example | ||||
| 	``` | ||||
| 	import PCancelable = require('p-cancelable'); | ||||
|  | ||||
| 	const cancelablePromise = new PCancelable((resolve, reject, onCancel) => { | ||||
| 		const job = new Job(); | ||||
|  | ||||
| 		onCancel.shouldReject = false; | ||||
| 		onCancel(() => { | ||||
| 			job.stop(); | ||||
| 		}); | ||||
|  | ||||
| 		job.on('finish', resolve); | ||||
| 	}); | ||||
|  | ||||
| 	cancelablePromise.cancel(); // Doesn't throw an error | ||||
| 	``` | ||||
| 	*/ | ||||
| 	constructor( | ||||
| 		executor: ( | ||||
| 			resolve: (value?: ValueType | PromiseLike<ValueType>) => void, | ||||
| 			reject: (reason?: unknown) => void, | ||||
| 			onCancel: PCancelable.OnCancelFunction | ||||
| 		) => void | ||||
| 	); | ||||
|  | ||||
| 	/** | ||||
| 	Whether the promise is canceled. | ||||
| 	*/ | ||||
| 	readonly isCanceled: boolean; | ||||
|  | ||||
| 	/** | ||||
| 	Cancel the promise and optionally provide a reason. | ||||
|  | ||||
| 	The cancellation is synchronous. Calling it after the promise has settled or multiple times does nothing. | ||||
|  | ||||
| 	@param reason - The cancellation reason to reject the promise with. | ||||
| 	*/ | ||||
| 	cancel: (reason?: string) => void; | ||||
|  | ||||
| 	/** | ||||
| 	Rejection reason when `.cancel()` is called. | ||||
|  | ||||
| 	It includes a `.isCanceled` property for convenience. | ||||
| 	*/ | ||||
| 	static CancelError: typeof CancelErrorClass; | ||||
| } | ||||
|  | ||||
| export = PCancelable; | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"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 p q r s D t"},C:{"1":"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 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","2":"CC tB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"I u J E"},E:{"1":"I u J E F G A B C K L H HC IC JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"GC zB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 QC RC qB 9B SC rB","2":"G OC PC"},G:{"1":"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:{"1":"tB I D qC rC AC sC tC","16":"oC pC"},J:{"1":"E A"},K:{"1":"B C e qB 9B rB","16":"A"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:6,C:"Wav audio format"}; | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0.06347,"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.00353,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0.00353,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0.00353,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00353,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0.00705,"89":0,"90":0,"91":0.00353,"92":0,"93":0,"94":0,"95":0.00353,"96":0.01058,"97":0.00353,"98":0,"99":0.00353,"100":0.00353,"101":0.00353,"102":0.00705,"103":0.00705,"104":0.00705,"105":0.00705,"106":0.01058,"107":0.02468,"108":0.69462,"109":0.36318,"110":0.01058,"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.00353,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.00353,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0.00353,"64":0,"65":0.00353,"66":0,"67":0,"68":0,"69":0.00705,"70":0.00353,"71":0.00705,"72":0.00353,"73":0.00353,"74":0.01058,"75":0.00353,"76":0.00353,"77":0.00353,"78":0.00353,"79":0.01058,"80":0.03879,"81":0.0141,"83":0.01058,"84":0.01058,"85":0.01058,"86":0.01058,"87":0.0141,"88":0.00705,"89":0.01058,"90":0.00353,"91":0.00705,"92":0.01058,"93":0.00353,"94":0.00705,"95":0.00705,"96":0.01058,"97":0.01058,"98":0.00705,"99":0.00705,"100":0.02821,"101":0.01058,"102":0.0141,"103":0.03526,"104":0.01763,"105":0.02116,"106":0.02821,"107":0.07757,"108":4.57675,"109":3.83981,"110":0.00353,"111":0,"112":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0.01058,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0.00353,"60":0.00353,"62":0,"63":0.00705,"64":0.00705,"65":0.00353,"66":0.00705,"67":0.00353,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.00705,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0.00353,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00353,"93":0.04231,"94":0.13046,"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.00353,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0.00353,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00353,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0.00353,"106":0.00353,"107":0.0141,"108":0.49364,"109":0.44075},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.00353,"14":0.0141,"15":0.00353,_:"0","3.1":0,"3.2":0,"5.1":0.02468,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.00353,"13.1":0.01763,"14.1":0.02821,"15.1":0.01058,"15.2-15.3":0.00705,"15.4":0.01058,"15.5":0.02468,"15.6":0.05642,"16.0":0.0141,"16.1":0.04231,"16.2":0.04584,"16.3":0.00353},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.0019,"6.0-6.1":0.00095,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01329,"10.0-10.2":0,"10.3":0.01234,"11.0-11.2":0.00475,"11.3-11.4":0.00285,"12.0-12.1":0.00949,"12.2-12.5":0.23538,"13.0-13.1":0.00854,"13.2":0.00759,"13.3":0.02942,"13.4-13.7":0.06074,"14.0-14.4":0.24393,"14.5-14.8":0.39009,"15.0-15.1":0.17464,"15.2-15.3":0.21355,"15.4":0.37016,"15.5":0.54765,"15.6":1.04594,"16.0":1.62206,"16.1":2.01784,"16.2":1.49108,"16.3":0.11484},P:{"4":0.1243,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.05179,"8.2":0,"9.2":0.01036,"10.1":0,"11.1-11.2":0.04143,"12.0":0.01036,"13.0":0.04143,"14.0":0.04143,"15.0":0.02072,"16.0":0.09323,"17.0":0.09323,"18.0":0.1243,"19.0":1.10835},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.03705},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.02116,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.24601},Q:{"13.1":0.00647},O:{"0":1.02937},H:{"0":0.86421},L:{"0":73.84974},S:{"2.5":0}}; | ||||
| @@ -0,0 +1,436 @@ | ||||
| // http://wiki.commonjs.org/wiki/Unit_Testing/1.0 | ||||
| // | ||||
| // THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8! | ||||
| // | ||||
| // Copyright (c) 2011 Jxck | ||||
| // | ||||
| // Originally from node.js (http://nodejs.org) | ||||
| // Copyright Joyent, Inc. | ||||
| // | ||||
| // Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
| // of this software and associated documentation files (the 'Software'), to | ||||
| // deal in the Software without restriction, including without limitation the | ||||
| // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||||
| // sell copies of the Software, and to permit persons to whom the Software is | ||||
| // furnished to do so, subject to the following conditions: | ||||
| // | ||||
| // The above copyright notice and this permission notice shall be included in | ||||
| // all copies or substantial portions of the Software. | ||||
| // | ||||
| // THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
| // AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN | ||||
| // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||||
| // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
|  | ||||
| (function(global) { | ||||
|  | ||||
| // Object.create compatible in IE | ||||
| var create = Object.create || function(p) { | ||||
|   if (!p) throw Error('no type'); | ||||
|   function f() {}; | ||||
|   f.prototype = p; | ||||
|   return new f(); | ||||
| }; | ||||
|  | ||||
| // UTILITY | ||||
| var util = { | ||||
|   inherits: function(ctor, superCtor) { | ||||
|     ctor.super_ = superCtor; | ||||
|     ctor.prototype = create(superCtor.prototype, { | ||||
|       constructor: { | ||||
|         value: ctor, | ||||
|         enumerable: false, | ||||
|         writable: true, | ||||
|         configurable: true | ||||
|       } | ||||
|     }); | ||||
|   }, | ||||
|   isArray: function(ar) { | ||||
|     return Array.isArray(ar); | ||||
|   }, | ||||
|   isBoolean: function(arg) { | ||||
|     return typeof arg === 'boolean'; | ||||
|   }, | ||||
|   isNull: function(arg) { | ||||
|     return arg === null; | ||||
|   }, | ||||
|   isNullOrUndefined: function(arg) { | ||||
|     return arg == null; | ||||
|   }, | ||||
|   isNumber: function(arg) { | ||||
|     return typeof arg === 'number'; | ||||
|   }, | ||||
|   isString: function(arg) { | ||||
|     return typeof arg === 'string'; | ||||
|   }, | ||||
|   isSymbol: function(arg) { | ||||
|     return typeof arg === 'symbol'; | ||||
|   }, | ||||
|   isUndefined: function(arg) { | ||||
|     return arg === void 0; | ||||
|   }, | ||||
|   isRegExp: function(re) { | ||||
|     return util.isObject(re) && util.objectToString(re) === '[object RegExp]'; | ||||
|   }, | ||||
|   isObject: function(arg) { | ||||
|     return typeof arg === 'object' && arg !== null; | ||||
|   }, | ||||
|   isDate: function(d) { | ||||
|     return util.isObject(d) && util.objectToString(d) === '[object Date]'; | ||||
|   }, | ||||
|   isError: function(e) { | ||||
|     return isObject(e) && | ||||
|       (objectToString(e) === '[object Error]' || e instanceof Error); | ||||
|   }, | ||||
|   isFunction: function(arg) { | ||||
|     return typeof arg === 'function'; | ||||
|   }, | ||||
|   isPrimitive: function(arg) { | ||||
|     return arg === null || | ||||
|       typeof arg === 'boolean' || | ||||
|       typeof arg === 'number' || | ||||
|       typeof arg === 'string' || | ||||
|       typeof arg === 'symbol' ||  // ES6 symbol | ||||
|       typeof arg === 'undefined'; | ||||
|   }, | ||||
|   objectToString: function(o) { | ||||
|     return Object.prototype.toString.call(o); | ||||
|   } | ||||
| }; | ||||
|  | ||||
| var pSlice = Array.prototype.slice; | ||||
|  | ||||
| // from https://github.com/substack/node-deep-equal | ||||
| var Object_keys = typeof Object.keys === 'function' | ||||
|     ? Object.keys | ||||
|     : function (obj) { | ||||
|         var keys = []; | ||||
|         for (var key in obj) keys.push(key); | ||||
|         return keys; | ||||
|     } | ||||
| ; | ||||
|  | ||||
| // 1. The assert module provides functions that throw | ||||
| // AssertionError's when particular conditions are not met. The | ||||
| // assert module must conform to the following interface. | ||||
|  | ||||
| var assert = ok; | ||||
|  | ||||
| global['assert'] = assert; | ||||
|  | ||||
| if (typeof module === 'object' && typeof module.exports === 'object') { | ||||
|   module.exports = assert; | ||||
| }; | ||||
|  | ||||
| // 2. The AssertionError is defined in assert. | ||||
| // new assert.AssertionError({ message: message, | ||||
| //                             actual: actual, | ||||
| //                             expected: expected }) | ||||
|  | ||||
| assert.AssertionError = function AssertionError(options) { | ||||
|   this.name = 'AssertionError'; | ||||
|   this.actual = options.actual; | ||||
|   this.expected = options.expected; | ||||
|   this.operator = options.operator; | ||||
|   if (options.message) { | ||||
|     this.message = options.message; | ||||
|     this.generatedMessage = false; | ||||
|   } else { | ||||
|     this.message = getMessage(this); | ||||
|     this.generatedMessage = true; | ||||
|   } | ||||
|   var stackStartFunction = options.stackStartFunction || fail; | ||||
|  | ||||
|   if (Error.captureStackTrace) { | ||||
|     Error.captureStackTrace(this, stackStartFunction); | ||||
|   } else { | ||||
|     // try to throw an error now, and from the stack property | ||||
|     // work out the line that called in to assert.js. | ||||
|     try { | ||||
|       this.stack = (new Error).stack.toString(); | ||||
|     } catch (e) {} | ||||
|   } | ||||
| }; | ||||
|  | ||||
| // assert.AssertionError instanceof Error | ||||
| util.inherits(assert.AssertionError, Error); | ||||
|  | ||||
| function replacer(key, value) { | ||||
|   if (util.isUndefined(value)) { | ||||
|     return '' + value; | ||||
|   } | ||||
|   if (util.isNumber(value) && (isNaN(value) || !isFinite(value))) { | ||||
|     return value.toString(); | ||||
|   } | ||||
|   if (util.isFunction(value) || util.isRegExp(value)) { | ||||
|     return value.toString(); | ||||
|   } | ||||
|   return value; | ||||
| } | ||||
|  | ||||
| function truncate(s, n) { | ||||
|   if (util.isString(s)) { | ||||
|     return s.length < n ? s : s.slice(0, n); | ||||
|   } else { | ||||
|     return s; | ||||
|   } | ||||
| } | ||||
|  | ||||
| function getMessage(self) { | ||||
|   return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' + | ||||
|          self.operator + ' ' + | ||||
|          truncate(JSON.stringify(self.expected, replacer), 128); | ||||
| } | ||||
|  | ||||
| // At present only the three keys mentioned above are used and | ||||
| // understood by the spec. Implementations or sub modules can pass | ||||
| // other keys to the AssertionError's constructor - they will be | ||||
| // ignored. | ||||
|  | ||||
| // 3. All of the following functions must throw an AssertionError | ||||
| // when a corresponding condition is not met, with a message that | ||||
| // may be undefined if not provided.  All assertion methods provide | ||||
| // both the actual and expected values to the assertion error for | ||||
| // display purposes. | ||||
|  | ||||
| function fail(actual, expected, message, operator, stackStartFunction) { | ||||
|   throw new assert.AssertionError({ | ||||
|     message: message, | ||||
|     actual: actual, | ||||
|     expected: expected, | ||||
|     operator: operator, | ||||
|     stackStartFunction: stackStartFunction | ||||
|   }); | ||||
| } | ||||
|  | ||||
| // EXTENSION! allows for well behaved errors defined elsewhere. | ||||
| assert.fail = fail; | ||||
|  | ||||
| // 4. Pure assertion tests whether a value is truthy, as determined | ||||
| // by !!guard. | ||||
| // assert.ok(guard, message_opt); | ||||
| // This statement is equivalent to assert.equal(true, !!guard, | ||||
| // message_opt);. To test strictly for the value true, use | ||||
| // assert.strictEqual(true, guard, message_opt);. | ||||
|  | ||||
| function ok(value, message) { | ||||
|   if (!value) fail(value, true, message, '==', assert.ok); | ||||
| } | ||||
| assert.ok = ok; | ||||
|  | ||||
| // 5. The equality assertion tests shallow, coercive equality with | ||||
| // ==. | ||||
| // assert.equal(actual, expected, message_opt); | ||||
|  | ||||
| assert.equal = function equal(actual, expected, message) { | ||||
|   if (actual != expected) fail(actual, expected, message, '==', assert.equal); | ||||
| }; | ||||
|  | ||||
| // 6. The non-equality assertion tests for whether two objects are not equal | ||||
| // with != assert.notEqual(actual, expected, message_opt); | ||||
|  | ||||
| assert.notEqual = function notEqual(actual, expected, message) { | ||||
|   if (actual == expected) { | ||||
|     fail(actual, expected, message, '!=', assert.notEqual); | ||||
|   } | ||||
| }; | ||||
|  | ||||
| // 7. The equivalence assertion tests a deep equality relation. | ||||
| // assert.deepEqual(actual, expected, message_opt); | ||||
|  | ||||
| assert.deepEqual = function deepEqual(actual, expected, message) { | ||||
|   if (!_deepEqual(actual, expected)) { | ||||
|     fail(actual, expected, message, 'deepEqual', assert.deepEqual); | ||||
|   } | ||||
| }; | ||||
|  | ||||
| function _deepEqual(actual, expected) { | ||||
|   // 7.1. All identical values are equivalent, as determined by ===. | ||||
|   if (actual === expected) { | ||||
|     return true; | ||||
|  | ||||
|   // } else if (util.isBuffer(actual) && util.isBuffer(expected)) { | ||||
|   //   if (actual.length != expected.length) return false; | ||||
|   // | ||||
|   //   for (var i = 0; i < actual.length; i++) { | ||||
|   //     if (actual[i] !== expected[i]) return false; | ||||
|   //   } | ||||
|   // | ||||
|   //   return true; | ||||
|  | ||||
|   // 7.2. If the expected value is a Date object, the actual value is | ||||
|   // equivalent if it is also a Date object that refers to the same time. | ||||
|   } else if (util.isDate(actual) && util.isDate(expected)) { | ||||
|     return actual.getTime() === expected.getTime(); | ||||
|  | ||||
|   // 7.3 If the expected value is a RegExp object, the actual value is | ||||
|   // equivalent if it is also a RegExp object with the same source and | ||||
|   // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`). | ||||
|   } else if (util.isRegExp(actual) && util.isRegExp(expected)) { | ||||
|     return actual.source === expected.source && | ||||
|            actual.global === expected.global && | ||||
|            actual.multiline === expected.multiline && | ||||
|            actual.lastIndex === expected.lastIndex && | ||||
|            actual.ignoreCase === expected.ignoreCase; | ||||
|  | ||||
|   // 7.4. Other pairs that do not both pass typeof value == 'object', | ||||
|   // equivalence is determined by ==. | ||||
|   } else if (!util.isObject(actual) && !util.isObject(expected)) { | ||||
|     return actual == expected; | ||||
|  | ||||
|   // 7.5 For all other Object pairs, including Array objects, equivalence is | ||||
|   // determined by having the same number of owned properties (as verified | ||||
|   // with Object.prototype.hasOwnProperty.call), the same set of keys | ||||
|   // (although not necessarily the same order), equivalent values for every | ||||
|   // corresponding key, and an identical 'prototype' property. Note: this | ||||
|   // accounts for both named and indexed properties on Arrays. | ||||
|   } else { | ||||
|     return objEquiv(actual, expected); | ||||
|   } | ||||
| } | ||||
|  | ||||
| function isArguments(object) { | ||||
|   return Object.prototype.toString.call(object) == '[object Arguments]'; | ||||
| } | ||||
|  | ||||
| function objEquiv(a, b) { | ||||
|   if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b)) | ||||
|     return false; | ||||
|   // an identical 'prototype' property. | ||||
|   if (a.prototype !== b.prototype) return false; | ||||
|   //~~~I've managed to break Object.keys through screwy arguments passing. | ||||
|   //   Converting to array solves the problem. | ||||
|   if (isArguments(a)) { | ||||
|     if (!isArguments(b)) { | ||||
|       return false; | ||||
|     } | ||||
|     a = pSlice.call(a); | ||||
|     b = pSlice.call(b); | ||||
|     return _deepEqual(a, b); | ||||
|   } | ||||
|   try { | ||||
|     var ka = Object_keys(a), | ||||
|         kb = Object_keys(b), | ||||
|         key, i; | ||||
|   } catch (e) {//happens when one is a string literal and the other isn't | ||||
|     return false; | ||||
|   } | ||||
|   // having the same number of owned properties (keys incorporates | ||||
|   // hasOwnProperty) | ||||
|   if (ka.length != kb.length) | ||||
|     return false; | ||||
|   //the same set of keys (although not necessarily the same order), | ||||
|   ka.sort(); | ||||
|   kb.sort(); | ||||
|   //~~~cheap key test | ||||
|   for (i = ka.length - 1; i >= 0; i--) { | ||||
|     if (ka[i] != kb[i]) | ||||
|       return false; | ||||
|   } | ||||
|   //equivalent values for every corresponding key, and | ||||
|   //~~~possibly expensive deep test | ||||
|   for (i = ka.length - 1; i >= 0; i--) { | ||||
|     key = ka[i]; | ||||
|     if (!_deepEqual(a[key], b[key])) return false; | ||||
|   } | ||||
|   return true; | ||||
| } | ||||
|  | ||||
| // 8. The non-equivalence assertion tests for any deep inequality. | ||||
| // assert.notDeepEqual(actual, expected, message_opt); | ||||
|  | ||||
| assert.notDeepEqual = function notDeepEqual(actual, expected, message) { | ||||
|   if (_deepEqual(actual, expected)) { | ||||
|     fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual); | ||||
|   } | ||||
| }; | ||||
|  | ||||
| // 9. The strict equality assertion tests strict equality, as determined by ===. | ||||
| // assert.strictEqual(actual, expected, message_opt); | ||||
|  | ||||
| assert.strictEqual = function strictEqual(actual, expected, message) { | ||||
|   if (actual !== expected) { | ||||
|     fail(actual, expected, message, '===', assert.strictEqual); | ||||
|   } | ||||
| }; | ||||
|  | ||||
| // 10. The strict non-equality assertion tests for strict inequality, as | ||||
| // determined by !==.  assert.notStrictEqual(actual, expected, message_opt); | ||||
|  | ||||
| assert.notStrictEqual = function notStrictEqual(actual, expected, message) { | ||||
|   if (actual === expected) { | ||||
|     fail(actual, expected, message, '!==', assert.notStrictEqual); | ||||
|   } | ||||
| }; | ||||
|  | ||||
| function expectedException(actual, expected) { | ||||
|   if (!actual || !expected) { | ||||
|     return false; | ||||
|   } | ||||
|  | ||||
|   if (Object.prototype.toString.call(expected) == '[object RegExp]') { | ||||
|     return expected.test(actual); | ||||
|   } else if (actual instanceof expected) { | ||||
|     return true; | ||||
|   } else if (expected.call({}, actual) === true) { | ||||
|     return true; | ||||
|   } | ||||
|  | ||||
|   return false; | ||||
| } | ||||
|  | ||||
| function _throws(shouldThrow, block, expected, message) { | ||||
|   var actual; | ||||
|  | ||||
|   if (util.isString(expected)) { | ||||
|     message = expected; | ||||
|     expected = null; | ||||
|   } | ||||
|  | ||||
|   try { | ||||
|     block(); | ||||
|   } catch (e) { | ||||
|     actual = e; | ||||
|   } | ||||
|  | ||||
|   message = (expected && expected.name ? ' (' + expected.name + ').' : '.') + | ||||
|             (message ? ' ' + message : '.'); | ||||
|  | ||||
|   if (shouldThrow && !actual) { | ||||
|     fail(actual, expected, 'Missing expected exception' + message); | ||||
|   } | ||||
|  | ||||
|   if (!shouldThrow && expectedException(actual, expected)) { | ||||
|     fail(actual, expected, 'Got unwanted exception' + message); | ||||
|   } | ||||
|  | ||||
|   if ((shouldThrow && actual && expected && | ||||
|       !expectedException(actual, expected)) || (!shouldThrow && actual)) { | ||||
|     throw actual; | ||||
|   } | ||||
| } | ||||
|  | ||||
| // 11. Expected to throw an error: | ||||
| // assert.throws(block, Error_opt, message_opt); | ||||
|  | ||||
| assert.throws = function(block, /*optional*/error, /*optional*/message) { | ||||
|   _throws.apply(this, [true].concat(pSlice.call(arguments))); | ||||
| }; | ||||
|  | ||||
| // EXTENSION! This is annoying to write outside this module. | ||||
| assert.doesNotThrow = function(block, /*optional*/message) { | ||||
|   _throws.apply(this, [false].concat(pSlice.call(arguments))); | ||||
| }; | ||||
|  | ||||
| assert.ifError = function(err) { if (err) {throw err;}}; | ||||
|  | ||||
| if (typeof define === 'function' && define.amd) { | ||||
|   define('assert', function () { | ||||
|     return assert; | ||||
|   }); | ||||
| } | ||||
|  | ||||
| })(this); | ||||
|  | ||||
| @@ -0,0 +1,206 @@ | ||||
| const path = require('path'); | ||||
| const test = require('ava'); | ||||
| const sh = require('shelljs'); | ||||
| const _ = require('lodash'); | ||||
| const sinon = require('sinon'); | ||||
| const Log = require('../lib/log'); | ||||
| const Spinner = require('../lib/spinner'); | ||||
| const Prompt = require('../lib/prompt'); | ||||
| const Config = require('../lib/config'); | ||||
| const runTasks = require('../lib/tasks'); | ||||
| const { mkTmpDir, gitAdd } = require('./util/helpers'); | ||||
| const ShellStub = require('./stub/shell'); | ||||
| const { interceptPublish: interceptGitLabPublish } = require('./stub/gitlab'); | ||||
| const { interceptCreate: interceptGitHubCreate } = require('./stub/github'); | ||||
|  | ||||
| const noop = Promise.resolve(); | ||||
|  | ||||
| const sandbox = sinon.createSandbox(); | ||||
|  | ||||
| const testConfig = { | ||||
|   ci: false, | ||||
|   config: false, | ||||
|   'disable-metrics': true | ||||
| }; | ||||
|  | ||||
| const log = sandbox.createStubInstance(Log); | ||||
| const spinner = sandbox.createStubInstance(Spinner); | ||||
| spinner.show.callsFake(({ enabled = true, task }) => (enabled ? task() : noop)); | ||||
|  | ||||
| const defaultInquirer = { | ||||
|   prompt: sandbox.stub().callsFake(([options]) => { | ||||
|     const answer = options.type === 'list' ? options.choices[0].value : options.name === 'version' ? '0.0.1' : true; | ||||
|     return { [options.name]: answer }; | ||||
|   }) | ||||
| }; | ||||
|  | ||||
| const getContainer = (options, inquirer = defaultInquirer) => { | ||||
|   const config = new Config(Object.assign({}, testConfig, options)); | ||||
|   const shell = new ShellStub({ container: { log, config } }); | ||||
|   const prompt = new Prompt({ container: { inquirer } }); | ||||
|   return { | ||||
|     log, | ||||
|     spinner, | ||||
|     config, | ||||
|     shell, | ||||
|     prompt | ||||
|   }; | ||||
| }; | ||||
|  | ||||
| const getHooks = plugins => { | ||||
|   const hooks = {}; | ||||
|   ['before', 'after'].forEach(prefix => { | ||||
|     plugins.forEach(ns => { | ||||
|       ['init', 'beforeBump', 'bump', 'beforeRelease', 'release', 'afterRelease'].forEach(lifecycle => { | ||||
|         hooks[`${prefix}:${lifecycle}`] = `echo ${prefix}:${lifecycle}`; | ||||
|         hooks[`${prefix}:${ns}:${lifecycle}`] = `echo ${prefix}:${ns}:${lifecycle}`; | ||||
|       }); | ||||
|     }); | ||||
|   }); | ||||
|   return hooks; | ||||
| }; | ||||
|  | ||||
| test.serial.beforeEach(t => { | ||||
|   const bare = mkTmpDir(); | ||||
|   const target = mkTmpDir(); | ||||
|   sh.pushd('-q', bare); | ||||
|   sh.exec(`git init --bare .`); | ||||
|   sh.exec(`git clone ${bare} ${target}`); | ||||
|   sh.pushd('-q', target); | ||||
|   gitAdd('line', 'file', 'Add file'); | ||||
|   t.context = { bare, target }; | ||||
| }); | ||||
|  | ||||
| test.serial.afterEach(() => { | ||||
|   sandbox.resetHistory(); | ||||
| }); | ||||
|  | ||||
| test.serial('should run tasks without throwing errors', async t => { | ||||
|   sh.mv('.git', 'foo'); | ||||
|   const { name, latestVersion, version } = await runTasks({}, getContainer()); | ||||
|   t.is(version, '0.0.1'); | ||||
|   t.true(log.obtrusive.firstCall.args[0].includes(`release ${name} (currently at ${latestVersion})`)); | ||||
|   t.regex(log.log.lastCall.args[0], /Done \(in [0-9]+s\.\)/); | ||||
| }); | ||||
|  | ||||
| test.serial('should not run hooks for disabled release-cycle methods', async t => { | ||||
|   const hooks = getHooks(['version', 'git', 'github', 'gitlab', 'npm']); | ||||
|  | ||||
|   const container = getContainer({ | ||||
|     hooks, | ||||
|     git: { push: false }, | ||||
|     github: { release: false }, | ||||
|     gitlab: { release: false }, | ||||
|     npm: { publish: false } | ||||
|   }); | ||||
|  | ||||
|   const exec = sandbox.spy(container.shell, 'execFormattedCommand'); | ||||
|  | ||||
|   await runTasks({}, container); | ||||
|  | ||||
|   const commands = _.flatten(exec.args).filter(arg => typeof arg === 'string' && arg.startsWith('echo')); | ||||
|  | ||||
|   t.true(commands.includes('echo before:init')); | ||||
|   t.true(commands.includes('echo after:afterRelease')); | ||||
|  | ||||
|   t.false(commands.includes('echo after:git:release')); | ||||
|   t.false(commands.includes('echo after:github:release')); | ||||
|   t.false(commands.includes('echo after:gitlab:release')); | ||||
|   t.false(commands.includes('echo after:npm:release')); | ||||
| }); | ||||
|  | ||||
| test.serial('should not run hooks for cancelled release-cycle methods', async t => { | ||||
|   const { target } = t.context; | ||||
|   const pkgName = path.basename(target); | ||||
|   gitAdd(`{"name":"${pkgName}","version":"1.0.0"}`, 'package.json', 'Add package.json'); | ||||
|   sh.exec('git tag 1.0.0'); | ||||
|  | ||||
|   const hooks = getHooks(['version', 'git', 'github', 'gitlab', 'npm']); | ||||
|   const inquirer = { prompt: sandbox.stub().callsFake(([options]) => ({ [options.name]: false })) }; | ||||
|  | ||||
|   const container = getContainer( | ||||
|     { | ||||
|       increment: 'minor', | ||||
|       hooks, | ||||
|       github: { release: true, skipChecks: true }, | ||||
|       gitlab: { release: true, skipChecks: true }, | ||||
|       npm: { publish: true, skipChecks: true } | ||||
|     }, | ||||
|     inquirer | ||||
|   ); | ||||
|  | ||||
|   const exec = sandbox.stub(container.shell, 'execFormattedCommand').callThrough(); | ||||
|   exec.withArgs('npm version 1.1.0 --no-git-tag-version').rejects(); | ||||
|  | ||||
|   await runTasks({}, container); | ||||
|  | ||||
|   const commands = _.flatten(exec.args).filter(arg => typeof arg === 'string' && arg.startsWith('echo')); | ||||
|  | ||||
|   t.true(commands.includes('echo before:init')); | ||||
|   t.true(commands.includes('echo after:afterRelease')); | ||||
|   t.true(commands.includes('echo after:git:bump')); | ||||
|  | ||||
|   t.false(commands.includes('echo after:npm:bump')); | ||||
|   t.false(commands.includes('echo after:git:release')); | ||||
|   t.false(commands.includes('echo after:github:release')); | ||||
|   t.false(commands.includes('echo after:gitlab:release')); | ||||
|   t.false(commands.includes('echo after:npm:release')); | ||||
|  | ||||
|   exec.restore(); | ||||
| }); | ||||
|  | ||||
| test.serial('should run "after:*:release" plugin hooks', async t => { | ||||
|   const { bare, target } = t.context; | ||||
|   const project = path.basename(bare); | ||||
|   const pkgName = path.basename(target); | ||||
|   const owner = path.basename(path.dirname(bare)); | ||||
|   gitAdd(`{"name":"${pkgName}","version":"1.0.0"}`, 'package.json', 'Add package.json'); | ||||
|   sh.exec('git tag 1.0.0'); | ||||
|   const sha = gitAdd('line', 'file', 'More file'); | ||||
|  | ||||
|   interceptGitHubCreate({ | ||||
|     owner, | ||||
|     project, | ||||
|     body: { tag_name: '1.1.0', name: 'Release 1.1.0', body: `* More file (${sha})` } | ||||
|   }); | ||||
|  | ||||
|   interceptGitLabPublish({ | ||||
|     owner, | ||||
|     project, | ||||
|     body: { | ||||
|       name: 'Release 1.1.0', | ||||
|       tag_name: '1.1.0', | ||||
|       description: `* More file (${sha})` | ||||
|     } | ||||
|   }); | ||||
|  | ||||
|   const hooks = getHooks(['version', 'git', 'github', 'gitlab', 'npm']); | ||||
|  | ||||
|   const container = getContainer({ | ||||
|     increment: 'minor', | ||||
|     hooks, | ||||
|     github: { release: true, pushRepo: `https://github.com/${owner}/${project}`, skipChecks: true }, | ||||
|     gitlab: { release: true, pushRepo: `https://gitlab.com/${owner}/${project}`, skipChecks: true }, | ||||
|     npm: { name: pkgName, skipChecks: true } | ||||
|   }); | ||||
|  | ||||
|   const exec = sandbox.spy(container.shell, 'execFormattedCommand'); | ||||
|  | ||||
|   await runTasks({}, container); | ||||
|  | ||||
|   const commands = _.flatten(exec.args).filter(arg => typeof arg === 'string' && arg.startsWith('echo')); | ||||
|  | ||||
|   t.true(commands.includes('echo after:git:bump')); | ||||
|   t.true(commands.includes('echo after:npm:bump')); | ||||
|   t.true(commands.includes('echo after:git:release')); | ||||
|   t.true(commands.includes('echo after:github:release')); | ||||
|   t.true(commands.includes('echo after:gitlab:release')); | ||||
|   t.true(commands.includes('echo after:npm:release')); | ||||
| }); | ||||
|  | ||||
| test.serial('should show only version prompt', async t => { | ||||
|   const config = { ci: false, 'only-version': true }; | ||||
|   await runTasks({}, getContainer(config)); | ||||
|   t.true(defaultInquirer.prompt.calledOnce); | ||||
|   t.is(defaultInquirer.prompt.firstCall.args[0][0].name, 'incrementList'); | ||||
| }); | ||||
| @@ -0,0 +1,7 @@ | ||||
| "use strict"; | ||||
| function __export(m) { | ||||
|     for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||||
| } | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| __export(require("rxjs-compat/operator/debounceTime")); | ||||
| //# sourceMappingURL=debounceTime.js.map | ||||
| @@ -0,0 +1 @@ | ||||
| import 'rxjs-compat/add/observable/dom/ajax'; | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={A:{A:{"2":"BC","8":"J E F G A","129":"B"},B:{"1":"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","129":"C K L H M N O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB 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","2":"CC tB DC EC","129":"I u J E F G A B C K L H M N O v w x y z"},D:{"1":"9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB 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","2":"I u J E","129":"0 1 2 3 4 5 6 7 8 F G A B C K L H M N O v w x y z"},E:{"1":"F G A B C K L H KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"I u GC zB","129":"J E HC IC JC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"G B OC PC QC RC qB 9B SC","129":"C H M N O rB"},G:{"1":"F XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B","2":"zB TC AC UC VC WC"},H:{"2":"nC"},I:{"1":"D","2":"tB I oC pC qC rC AC sC tC"},J:{"1":"A","2":"E"},K:{"1":"C e rB","2":"A B qB 9B"},L:{"1":"D"},M:{"1":"D"},N:{"8":"A","129":"B"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"129":"9C"}},B:6,C:"WebGL - 3D Canvas graphics"}; | ||||
| @@ -0,0 +1,7 @@ | ||||
| "use strict"; | ||||
| function __export(m) { | ||||
|     for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||||
| } | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| __export(require("rxjs-compat/operator/windowToggle")); | ||||
| //# sourceMappingURL=windowToggle.js.map | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"windowCount.js","sources":["../../src/add/operator/windowCount.ts"],"names":[],"mappings":";;AAAA,gDAA8C"} | ||||
| @@ -0,0 +1,4 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| require("rxjs-compat/add/observable/merge"); | ||||
| //# sourceMappingURL=merge.js.map | ||||
| @@ -0,0 +1,34 @@ | ||||
| var defer = require('./defer.js'); | ||||
|  | ||||
| // API | ||||
| module.exports = async; | ||||
|  | ||||
| /** | ||||
|  * Runs provided callback asynchronously | ||||
|  * even if callback itself is not | ||||
|  * | ||||
|  * @param   {function} callback - callback to invoke | ||||
|  * @returns {function} - augmented callback | ||||
|  */ | ||||
| function async(callback) | ||||
| { | ||||
|   var isAsync = false; | ||||
|  | ||||
|   // check if async happened | ||||
|   defer(function() { isAsync = true; }); | ||||
|  | ||||
|   return function async_callback(err, result) | ||||
|   { | ||||
|     if (isAsync) | ||||
|     { | ||||
|       callback(err, result); | ||||
|     } | ||||
|     else | ||||
|     { | ||||
|       defer(function nextTick_callback() | ||||
|       { | ||||
|         callback(err, result); | ||||
|       }); | ||||
|     } | ||||
|   }; | ||||
| } | ||||
| @@ -0,0 +1,7 @@ | ||||
| "use strict"; | ||||
| function __export(m) { | ||||
|     for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||||
| } | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| __export(require("rxjs-compat/operator/delay")); | ||||
| //# sourceMappingURL=delay.js.map | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={C:{"2":0,"3":0,"4":0.0053,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.0159,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.0106,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0.0106,"103":0,"104":0,"105":0,"106":0,"107":0.0106,"108":0.50341,"109":0.27025,"110":0,"111":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.0106,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0.0053,"66":0,"67":0,"68":0,"69":0,"70":0.0053,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0.0053,"77":0.0106,"78":0,"79":0.0106,"80":0.0159,"81":0.0053,"83":0.0053,"84":0.0053,"85":0.0106,"86":0.0159,"87":0.03709,"88":0.0053,"89":0.0053,"90":0,"91":0,"92":0.03179,"93":0.14837,"94":0.0106,"95":0.0053,"96":0.0053,"97":0.0053,"98":0.0106,"99":0.11128,"100":0.0265,"101":0.0053,"102":0.0053,"103":0.09538,"104":0.0159,"105":0.21196,"106":0.06889,"107":0.28085,"108":9.30504,"109":9.62828,"110":0,"111":0.0053,"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.0053,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0.0106,"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.0053,"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.43452,"94":0.40272,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0,"13":0,"14":0.0053,"15":0,"16":0,"17":0,"18":0.0053,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.0106,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0.0106,"105":0,"106":0.0053,"107":0.05299,"108":1.65329,"109":1.71158},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.0053,"14":0.07419,"15":0.0159,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.0159,"13.1":0.05299,"14.1":0.13777,"15.1":0.0212,"15.2-15.3":0.0265,"15.4":0.05829,"15.5":0.09008,"15.6":0.5299,"16.0":0.07949,"16.1":0.28615,"16.2":0.46631,"16.3":0.0265},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0.00503,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02765,"10.0-10.2":0.00503,"10.3":0.39722,"11.0-11.2":0,"11.3-11.4":0.00754,"12.0-12.1":0.0352,"12.2-12.5":0.35197,"13.0-13.1":0.00251,"13.2":0.00503,"13.3":0.01006,"13.4-13.7":0.03017,"14.0-14.4":0.28912,"14.5-14.8":0.55812,"15.0-15.1":0.10308,"15.2-15.3":0.1785,"15.4":0.29414,"15.5":0.64611,"15.6":2.63975,"16.0":4.28143,"16.1":8.38688,"16.2":5.42784,"16.3":0.4651},P:{"4":0.05145,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.02058,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0.01029,"12.0":0.01029,"13.0":0.01029,"14.0":0.01029,"15.0":0.05145,"16.0":0.02058,"17.0":0.02058,"18.0":0.07204,"19.0":2.55215},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.19889},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.06889,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.16924},Q:{"13.1":0},O:{"0":0.07052},H:{"0":0.20028},L:{"0":42.91639},S:{"2.5":0}}; | ||||
| @@ -0,0 +1,5 @@ | ||||
| export { default as compile } from './compile/index'; | ||||
| export { default as parse } from './parse/index'; | ||||
| export { default as preprocess } from './preprocess/index'; | ||||
| export { walk } from 'estree-walker'; | ||||
| export declare const VERSION = "__VERSION__"; | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"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 p q r s D t","2":"C"},C:{"1":"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","16":"CC","33":"0 1 2 3 4 5 6 7 8 9 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 DC EC"},D:{"1":"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","16":"I u J E F G A B C K L","132":"0 1 2 3 4 5 6 7 8 9 H M N O v w x y z AB BB"},E:{"1":"G A B C K L H KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","16":"GC zB","132":"I u J E F HC IC JC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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","16":"G B OC PC QC RC qB","132":"C H M N O v w x y 9B SC rB"},G:{"1":"YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B","16":"zB TC","132":"F AC UC VC WC XC"},H:{"2":"nC"},I:{"1":"D","16":"oC pC","132":"tB I qC rC AC sC tC"},J:{"1":"A","132":"E"},K:{"1":"e","2":"A B qB","132":"C 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"33":"9C"}},B:1,C:"CSS :read-only and :read-write selectors"}; | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"merge.js","sources":["../../../src/internal/observable/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAqHxC,MAAM,UAAU,KAAK,CAAO,GAAG,WAAiE;IAC/F,IAAI,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;IAC1C,IAAI,SAAS,GAAkB,IAAI,CAAC;IACnC,IAAI,IAAI,GAAQ,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACpD,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;QACrB,SAAS,GAAkB,WAAW,CAAC,GAAG,EAAE,CAAC;QAC7C,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,QAAQ,EAAE;YACrF,UAAU,GAAW,WAAW,CAAC,GAAG,EAAE,CAAC;SACxC;KACF;SAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QACnC,UAAU,GAAW,WAAW,CAAC,GAAG,EAAE,CAAC;KACxC;IAED,IAAI,SAAS,KAAK,IAAI,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,YAAY,UAAU,EAAE;QAC1F,OAAsB,WAAW,CAAC,CAAC,CAAC,CAAC;KACtC;IAED,OAAO,QAAQ,CAAI,UAAU,CAAC,CAAC,SAAS,CAAM,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;AACzE,CAAC"} | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={A:{A:{"1":"A B","2":"J E F G BC"},B:{"1":"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 p q r s D t"},C:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"CC tB I u J E DC EC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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","16":"I u J E F G A B C K L"},E:{"1":"J E F G A B C K L H IC JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"I u GC zB HC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 SC rB","2":"G OC PC","16":"B QC RC qB 9B"},G:{"1":"F 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","2":"zB TC AC UC"},H:{"2":"nC"},I:{"1":"D sC tC","2":"tB I oC pC qC rC AC"},J:{"1":"A","2":"E"},K:{"1":"C e 9B rB","2":"A","16":"B qB"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:5,C:"FileReaderSync"}; | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"range.js","sources":["../src/observable/range.ts"],"names":[],"mappings":";;;;;AAAA,kDAA6C"} | ||||
| @@ -0,0 +1,138 @@ | ||||
| # combined-stream | ||||
|  | ||||
| A stream that emits multiple other streams one after another. | ||||
|  | ||||
| **NB** Currently `combined-stream` works with streams version 1 only. There is ongoing effort to switch this library to streams version 2. Any help is welcome. :) Meanwhile you can explore other libraries that provide streams2 support with more or less compatibility with `combined-stream`. | ||||
|  | ||||
| - [combined-stream2](https://www.npmjs.com/package/combined-stream2): A drop-in streams2-compatible replacement for the combined-stream module. | ||||
|  | ||||
| - [multistream](https://www.npmjs.com/package/multistream): A stream that emits multiple other streams one after another. | ||||
|  | ||||
| ## Installation | ||||
|  | ||||
| ``` bash | ||||
| npm install combined-stream | ||||
| ``` | ||||
|  | ||||
| ## Usage | ||||
|  | ||||
| Here is a simple example that shows how you can use combined-stream to combine | ||||
| two files into one: | ||||
|  | ||||
| ``` javascript | ||||
| var CombinedStream = require('combined-stream'); | ||||
| var fs = require('fs'); | ||||
|  | ||||
| var combinedStream = CombinedStream.create(); | ||||
| combinedStream.append(fs.createReadStream('file1.txt')); | ||||
| combinedStream.append(fs.createReadStream('file2.txt')); | ||||
|  | ||||
| combinedStream.pipe(fs.createWriteStream('combined.txt')); | ||||
| ``` | ||||
|  | ||||
| While the example above works great, it will pause all source streams until | ||||
| they are needed. If you don't want that to happen, you can set `pauseStreams` | ||||
| to `false`: | ||||
|  | ||||
| ``` javascript | ||||
| var CombinedStream = require('combined-stream'); | ||||
| var fs = require('fs'); | ||||
|  | ||||
| var combinedStream = CombinedStream.create({pauseStreams: false}); | ||||
| combinedStream.append(fs.createReadStream('file1.txt')); | ||||
| combinedStream.append(fs.createReadStream('file2.txt')); | ||||
|  | ||||
| combinedStream.pipe(fs.createWriteStream('combined.txt')); | ||||
| ``` | ||||
|  | ||||
| However, what if you don't have all the source streams yet, or you don't want | ||||
| to allocate the resources (file descriptors, memory, etc.) for them right away? | ||||
| Well, in that case you can simply provide a callback that supplies the stream | ||||
| by calling a `next()` function: | ||||
|  | ||||
| ``` javascript | ||||
| var CombinedStream = require('combined-stream'); | ||||
| var fs = require('fs'); | ||||
|  | ||||
| var combinedStream = CombinedStream.create(); | ||||
| combinedStream.append(function(next) { | ||||
|   next(fs.createReadStream('file1.txt')); | ||||
| }); | ||||
| combinedStream.append(function(next) { | ||||
|   next(fs.createReadStream('file2.txt')); | ||||
| }); | ||||
|  | ||||
| combinedStream.pipe(fs.createWriteStream('combined.txt')); | ||||
| ``` | ||||
|  | ||||
| ## API | ||||
|  | ||||
| ### CombinedStream.create([options]) | ||||
|  | ||||
| Returns a new combined stream object. Available options are: | ||||
|  | ||||
| * `maxDataSize` | ||||
| * `pauseStreams` | ||||
|  | ||||
| The effect of those options is described below. | ||||
|  | ||||
| ### combinedStream.pauseStreams = `true` | ||||
|  | ||||
| Whether to apply back pressure to the underlaying streams. If set to `false`, | ||||
| the underlaying streams will never be paused. If set to `true`, the | ||||
| underlaying streams will be paused right after being appended, as well as when | ||||
| `delayedStream.pipe()` wants to throttle. | ||||
|  | ||||
| ### combinedStream.maxDataSize = `2 * 1024 * 1024` | ||||
|  | ||||
| The maximum amount of bytes (or characters) to buffer for all source streams. | ||||
| If this value is exceeded, `combinedStream` emits an `'error'` event. | ||||
|  | ||||
| ### combinedStream.dataSize = `0` | ||||
|  | ||||
| The amount of bytes (or characters) currently buffered by `combinedStream`. | ||||
|  | ||||
| ### combinedStream.append(stream) | ||||
|  | ||||
| Appends the given `stream` to the combinedStream object. If `pauseStreams` is | ||||
| set to `true, this stream will also be paused right away. | ||||
|  | ||||
| `streams` can also be a function that takes one parameter called `next`. `next` | ||||
| is a function that must be invoked in order to provide the `next` stream, see | ||||
| example above. | ||||
|  | ||||
| Regardless of how the `stream` is appended, combined-stream always attaches an | ||||
| `'error'` listener to it, so you don't have to do that manually. | ||||
|  | ||||
| Special case: `stream` can also be a String or Buffer. | ||||
|  | ||||
| ### combinedStream.write(data) | ||||
|  | ||||
| You should not call this, `combinedStream` takes care of piping the appended | ||||
| streams into itself for you. | ||||
|  | ||||
| ### combinedStream.resume() | ||||
|  | ||||
| Causes `combinedStream` to start drain the streams it manages. The function is | ||||
| idempotent, and also emits a `'resume'` event each time which usually goes to | ||||
| the stream that is currently being drained. | ||||
|  | ||||
| ### combinedStream.pause(); | ||||
|  | ||||
| If `combinedStream.pauseStreams` is set to `false`, this does nothing. | ||||
| Otherwise a `'pause'` event is emitted, this goes to the stream that is | ||||
| currently being drained, so you can use it to apply back pressure. | ||||
|  | ||||
| ### combinedStream.end(); | ||||
|  | ||||
| Sets `combinedStream.writable` to false, emits an `'end'` event, and removes | ||||
| all streams from the queue. | ||||
|  | ||||
| ### combinedStream.destroy(); | ||||
|  | ||||
| Same as `combinedStream.end()`, except it emits a `'close'` event instead of | ||||
| `'end'`. | ||||
|  | ||||
| ## License | ||||
|  | ||||
| combined-stream is licensed under the MIT license. | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={A:{A:{"1":"G A B","4":"J E F BC"},B:{"1":"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 p q r s D t"},C:{"1":"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:{"1":"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:{"1":"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:{"1":"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:{"1":"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:{"1":"nC"},I:{"1":"tB I D oC pC qC rC AC sC tC"},J:{"1":"E A"},K:{"1":"A B C e qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:2,C:"CSS3 Opacity"}; | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"pairwise.js","sources":["../src/operators/pairwise.ts"],"names":[],"mappings":";;;;;AAAA,oDAA+C"} | ||||
| @@ -0,0 +1,26 @@ | ||||
| import { AsyncAction } from './AsyncAction'; | ||||
| export class AnimationFrameAction extends AsyncAction { | ||||
|     constructor(scheduler, work) { | ||||
|         super(scheduler, work); | ||||
|         this.scheduler = scheduler; | ||||
|         this.work = work; | ||||
|     } | ||||
|     requestAsyncId(scheduler, id, delay = 0) { | ||||
|         if (delay !== null && delay > 0) { | ||||
|             return super.requestAsyncId(scheduler, id, delay); | ||||
|         } | ||||
|         scheduler.actions.push(this); | ||||
|         return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(() => scheduler.flush(null))); | ||||
|     } | ||||
|     recycleAsyncId(scheduler, id, delay = 0) { | ||||
|         if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) { | ||||
|             return super.recycleAsyncId(scheduler, id, delay); | ||||
|         } | ||||
|         if (scheduler.actions.length === 0) { | ||||
|             cancelAnimationFrame(id); | ||||
|             scheduler.scheduled = undefined; | ||||
|         } | ||||
|         return undefined; | ||||
|     } | ||||
| } | ||||
| //# sourceMappingURL=AnimationFrameAction.js.map | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"combineLatest.js","sources":["../../src/internal/observable/combineLatest.ts"],"names":[],"mappings":"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"} | ||||
| @@ -0,0 +1,146 @@ | ||||
| # Change Log | ||||
|  | ||||
| All notable changes will be documented in this file. | ||||
|  | ||||
| ## [4.2.2] - 2022-06-16 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Pin version of `rc` module to `1.2.8` to avoid malware in [compromised versions](https://github.com/advisories/GHSA-g2q5-5433-rhrf) (Espen Hovlandsdal) | ||||
|  | ||||
| ## [4.2.1] - 2020-11-10 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Exclude tests from published npm files (Garrit Franke) | ||||
|  | ||||
| ## [4.2.0] - 2020-07-13 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Add support for `NPM_CONFIG_USERCONFIG` environment variable (Ben Sorohan) | ||||
|  | ||||
| ## [4.1.0] - 2020-01-17 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Add support for legacy auth token on the registry url (Gustav Blomér) | ||||
|  | ||||
| ## [4.0.0] - 2019-06-17 | ||||
|  | ||||
| ### BREAKING | ||||
|  | ||||
| - Minimum node.js version requirement is now v6 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Upgraded dependencies (Espen Hovlandsdal) | ||||
|  | ||||
| ## [3.4.0] - 2019-03-20 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Enabled legacy auth token to be read from environment variable (Martin Flodin) | ||||
|  | ||||
| ## [3.3.2] - 2018-01-26 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Support password with ENV variable tokens (Nowell Strite) | ||||
|  | ||||
| ## [3.3.1] - 2017-05-02 | ||||
|  | ||||
| ### Fixes | ||||
|  | ||||
| - Auth legacy token is basic auth (Hutson Betts) | ||||
|  | ||||
| ## [3.3.0] - 2017-04-24 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Support legacy auth token config key (Zoltan Kochan) | ||||
| - Use safe-buffer module for backwards-compatible base64 encoding/decoding (Espen Hovlandsdal) | ||||
| - Change to standard.js coding style (Espen Hovlandsdal) | ||||
|  | ||||
| ## [3.2.0] - 2017-04-20 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Allow passing parsed npmrc from outside (Zoltan Kochan) | ||||
|  | ||||
| ## [3.1.2] - 2017-04-07 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Avoid infinite loop on invalid URL (Zoltan Kochan) | ||||
|  | ||||
| ## [3.1.1] - 2017-04-06 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Nerf-dart URLs even if recursive is set to false (Espen Hovlandsdal) | ||||
|  | ||||
| ## [3.1.0] - 2016-10-19 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Return the password and username for Basic authorization (Zoltan Kochan) | ||||
|  | ||||
| ## [3.0.1] - 2016-08-07 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Fix recursion bug (Lukas Eipert) | ||||
| - Implement alternative base64 encoding/decoding implementation for Node 6 (Lukas Eipert) | ||||
|  | ||||
| ## [3.0.0] - 2016-08-04 | ||||
|  | ||||
| ### Added | ||||
|  | ||||
| - Support for Basic Authentication (username/password) (Lukas Eipert) | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - The result format of the output changed from a simple string to an object which contains the token type | ||||
|  | ||||
| ```js | ||||
|   // before: returns 'tokenString' | ||||
|   // after: returns {token: 'tokenString', type: 'Bearer'} | ||||
|   getAuthToken() | ||||
| ``` | ||||
|  | ||||
| ## [2.1.1] - 2016-07-10 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Fix infinite loop when recursively resolving registry URLs on Windows (Espen Hovlandsdal) | ||||
|  | ||||
| ## [2.1.0] - 2016-07-07 | ||||
|  | ||||
| ### Added | ||||
|  | ||||
| - Add feature to find configured registry URL for a scope (Espen Hovlandsdal) | ||||
|  | ||||
| ## [2.0.0] - 2016-06-17 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Fix tokens defined by reference to environment variables (Dan MacTough) | ||||
|  | ||||
| ## [1.1.1] - 2016-04-26 | ||||
|  | ||||
| ### Changes | ||||
|  | ||||
| - Fix for registries with port number in URL (Ryan Day) | ||||
|  | ||||
| [1.1.1]: https://github.com/rexxars/registry-auth-token/compare/a5b4fe2f5ff982110eb8a813ba1b3b3c5d851af1...v1.1.1 | ||||
| [2.0.0]: https://github.com/rexxars/registry-auth-token/compare/v1.1.1...v2.0.0 | ||||
| [2.1.0]: https://github.com/rexxars/registry-auth-token/compare/v2.0.0...v2.1.0 | ||||
| [2.1.1]: https://github.com/rexxars/registry-auth-token/compare/v2.1.0...v2.1.1 | ||||
| [3.0.0]: https://github.com/rexxars/registry-auth-token/compare/v2.1.1...v3.0.0 | ||||
| [3.0.1]: https://github.com/rexxars/registry-auth-token/compare/v3.0.0...v3.0.1 | ||||
| [3.1.0]: https://github.com/rexxars/registry-auth-token/compare/v3.0.1...v3.1.0 | ||||
| [3.1.1]: https://github.com/rexxars/registry-auth-token/compare/v3.1.0...v3.1.1 | ||||
| [3.1.2]: https://github.com/rexxars/registry-auth-token/compare/v3.1.1...v3.1.2 | ||||
| [3.2.0]: https://github.com/rexxars/registry-auth-token/compare/v3.1.2...v3.2.0 | ||||
| [3.3.0]: https://github.com/rexxars/registry-auth-token/compare/v3.2.0...v3.3.0 | ||||
| @@ -0,0 +1 @@ | ||||
| export declare const VERSION = "5.6.3"; | ||||
| @@ -0,0 +1,18 @@ | ||||
| let _enable_super_gross_mode_that_will_cause_bad_things = false; | ||||
| export const config = { | ||||
|     Promise: undefined, | ||||
|     set useDeprecatedSynchronousErrorHandling(value) { | ||||
|         if (value) { | ||||
|             const error = new Error(); | ||||
|             console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack); | ||||
|         } | ||||
|         else if (_enable_super_gross_mode_that_will_cause_bad_things) { | ||||
|             console.log('RxJS: Back to a better error behavior. Thank you. <3'); | ||||
|         } | ||||
|         _enable_super_gross_mode_that_will_cause_bad_things = value; | ||||
|     }, | ||||
|     get useDeprecatedSynchronousErrorHandling() { | ||||
|         return _enable_super_gross_mode_that_will_cause_bad_things; | ||||
|     }, | ||||
| }; | ||||
| //# sourceMappingURL=config.js.map | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"windowCount.js","sources":["../src/operators/windowCount.ts"],"names":[],"mappings":";;;;;AAAA,uDAAkD"} | ||||
| @@ -0,0 +1,49 @@ | ||||
| /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ | ||||
| import * as tslib_1 from "tslib"; | ||||
| import { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe'; | ||||
| export function catchError(selector) { | ||||
|     return function catchErrorOperatorFunction(source) { | ||||
|         var operator = new CatchOperator(selector); | ||||
|         var caught = source.lift(operator); | ||||
|         return (operator.caught = caught); | ||||
|     }; | ||||
| } | ||||
| var CatchOperator = /*@__PURE__*/ (function () { | ||||
|     function CatchOperator(selector) { | ||||
|         this.selector = selector; | ||||
|     } | ||||
|     CatchOperator.prototype.call = function (subscriber, source) { | ||||
|         return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught)); | ||||
|     }; | ||||
|     return CatchOperator; | ||||
| }()); | ||||
| var CatchSubscriber = /*@__PURE__*/ (function (_super) { | ||||
|     tslib_1.__extends(CatchSubscriber, _super); | ||||
|     function CatchSubscriber(destination, selector, caught) { | ||||
|         var _this = _super.call(this, destination) || this; | ||||
|         _this.selector = selector; | ||||
|         _this.caught = caught; | ||||
|         return _this; | ||||
|     } | ||||
|     CatchSubscriber.prototype.error = function (err) { | ||||
|         if (!this.isStopped) { | ||||
|             var result = void 0; | ||||
|             try { | ||||
|                 result = this.selector(err, this.caught); | ||||
|             } | ||||
|             catch (err2) { | ||||
|                 _super.prototype.error.call(this, err2); | ||||
|                 return; | ||||
|             } | ||||
|             this._unsubscribeAndRecycle(); | ||||
|             var innerSubscriber = new SimpleInnerSubscriber(this); | ||||
|             this.add(innerSubscriber); | ||||
|             var innerSubscription = innerSubscribe(result, innerSubscriber); | ||||
|             if (innerSubscription !== innerSubscriber) { | ||||
|                 this.add(innerSubscription); | ||||
|             } | ||||
|         } | ||||
|     }; | ||||
|     return CatchSubscriber; | ||||
| }(SimpleOuterSubscriber)); | ||||
| //# sourceMappingURL=catchError.js.map | ||||
| @@ -0,0 +1,72 @@ | ||||
| # resolve-from [](https://travis-ci.org/sindresorhus/resolve-from) | ||||
|  | ||||
| > Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from a given path | ||||
|  | ||||
|  | ||||
| ## Install | ||||
|  | ||||
| ``` | ||||
| $ npm install resolve-from | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## Usage | ||||
|  | ||||
| ```js | ||||
| const resolveFrom = require('resolve-from'); | ||||
|  | ||||
| // There is a file at `./foo/bar.js` | ||||
|  | ||||
| resolveFrom('foo', './bar'); | ||||
| //=> '/Users/sindresorhus/dev/test/foo/bar.js' | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## API | ||||
|  | ||||
| ### resolveFrom(fromDirectory, moduleId) | ||||
|  | ||||
| Like `require()`, throws when the module can't be found. | ||||
|  | ||||
| ### resolveFrom.silent(fromDirectory, moduleId) | ||||
|  | ||||
| Returns `undefined` instead of throwing when the module can't be found. | ||||
|  | ||||
| #### fromDirectory | ||||
|  | ||||
| Type: `string` | ||||
|  | ||||
| Directory to resolve from. | ||||
|  | ||||
| #### moduleId | ||||
|  | ||||
| Type: `string` | ||||
|  | ||||
| What you would use in `require()`. | ||||
|  | ||||
|  | ||||
| ## Tip | ||||
|  | ||||
| Create a partial using a bound function if you want to resolve from the same `fromDirectory` multiple times: | ||||
|  | ||||
| ```js | ||||
| const resolveFromFoo = resolveFrom.bind(null, 'foo'); | ||||
|  | ||||
| resolveFromFoo('./bar'); | ||||
| resolveFromFoo('./baz'); | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## Related | ||||
|  | ||||
| - [resolve-cwd](https://github.com/sindresorhus/resolve-cwd) - Resolve the path of a module from the current working directory | ||||
| - [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path | ||||
| - [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory | ||||
| - [resolve-pkg](https://github.com/sindresorhus/resolve-pkg) - Resolve the path of a package regardless of it having an entry point | ||||
| - [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily | ||||
| - [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module | ||||
|  | ||||
|  | ||||
| ## License | ||||
|  | ||||
| MIT © [Sindre Sorhus](https://sindresorhus.com) | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"startWith.js","sources":["../../../src/internal/operators/startWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAiElD,MAAM,UAAU,SAAS,CAAO,GAAG,KAA+B;IAChE,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAkB,CAAC;IAC3D,IAAI,WAAW,CAAC,SAAS,CAAC,EAAE;QAE1B,KAAK,CAAC,GAAG,EAAE,CAAC;QACZ,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,KAAY,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;KAC3E;SAAM;QACL,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,KAAY,EAAE,MAAM,CAAC,CAAC;KAChE;AACH,CAAC"} | ||||
| @@ -0,0 +1,8 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| var WebSocketSubject_1 = require("./WebSocketSubject"); | ||||
| function webSocket(urlConfigOrSource) { | ||||
|     return new WebSocketSubject_1.WebSocketSubject(urlConfigOrSource); | ||||
| } | ||||
| exports.webSocket = webSocket; | ||||
| //# sourceMappingURL=webSocket.js.map | ||||
| @@ -0,0 +1,11 @@ | ||||
| import type { ConfigureOptions } from './types'; | ||||
| interface Formats { | ||||
|     number: Record<string, any>; | ||||
|     date: Record<string, any>; | ||||
|     time: Record<string, any>; | ||||
| } | ||||
| export declare const defaultFormats: Formats; | ||||
| export declare const defaultOptions: ConfigureOptions; | ||||
| export declare function getOptions(): ConfigureOptions; | ||||
| export declare function init(opts: ConfigureOptions): void; | ||||
| export {}; | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"windowToggle.js","sources":["../../../src/internal/operators/windowToggle.ts"],"names":[],"mappings":"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"} | ||||
| @@ -0,0 +1,4 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| require("rxjs-compat/add/operator/skip"); | ||||
| //# sourceMappingURL=skip.js.map | ||||
| @@ -0,0 +1,15 @@ | ||||
| import { URL, UrlWithStringQuery } from 'url'; | ||||
| export interface LegacyUrlOptions { | ||||
|     protocol: string; | ||||
|     hostname: string; | ||||
|     host: string; | ||||
|     hash: string | null; | ||||
|     search: string | null; | ||||
|     pathname: string; | ||||
|     href: string; | ||||
|     path: string; | ||||
|     port?: number; | ||||
|     auth?: string; | ||||
| } | ||||
| declare const _default: (url: URL | UrlWithStringQuery) => LegacyUrlOptions; | ||||
| export default _default; | ||||
| @@ -0,0 +1,37 @@ | ||||
| /** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */ | ||||
| import * as tslib_1 from "tslib"; | ||||
| import { innerSubscribe, SimpleInnerSubscriber, SimpleOuterSubscriber } from '../innerSubscribe'; | ||||
| export function takeUntil(notifier) { | ||||
|     return function (source) { return source.lift(new TakeUntilOperator(notifier)); }; | ||||
| } | ||||
| var TakeUntilOperator = /*@__PURE__*/ (function () { | ||||
|     function TakeUntilOperator(notifier) { | ||||
|         this.notifier = notifier; | ||||
|     } | ||||
|     TakeUntilOperator.prototype.call = function (subscriber, source) { | ||||
|         var takeUntilSubscriber = new TakeUntilSubscriber(subscriber); | ||||
|         var notifierSubscription = innerSubscribe(this.notifier, new SimpleInnerSubscriber(takeUntilSubscriber)); | ||||
|         if (notifierSubscription && !takeUntilSubscriber.seenValue) { | ||||
|             takeUntilSubscriber.add(notifierSubscription); | ||||
|             return source.subscribe(takeUntilSubscriber); | ||||
|         } | ||||
|         return takeUntilSubscriber; | ||||
|     }; | ||||
|     return TakeUntilOperator; | ||||
| }()); | ||||
| var TakeUntilSubscriber = /*@__PURE__*/ (function (_super) { | ||||
|     tslib_1.__extends(TakeUntilSubscriber, _super); | ||||
|     function TakeUntilSubscriber(destination) { | ||||
|         var _this = _super.call(this, destination) || this; | ||||
|         _this.seenValue = false; | ||||
|         return _this; | ||||
|     } | ||||
|     TakeUntilSubscriber.prototype.notifyNext = function () { | ||||
|         this.seenValue = true; | ||||
|         this.complete(); | ||||
|     }; | ||||
|     TakeUntilSubscriber.prototype.notifyComplete = function () { | ||||
|     }; | ||||
|     return TakeUntilSubscriber; | ||||
| }(SimpleOuterSubscriber)); | ||||
| //# sourceMappingURL=takeUntil.js.map | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"subscribeToObservable.js","sources":["../../src/internal/util/subscribeToObservable.ts"],"names":[],"mappings":";;AACA,mDAAuE;AAO1D,QAAA,qBAAqB,GAAG,UAAI,GAAQ,IAAK,OAAA,UAAC,UAAyB;IAC9E,IAAM,GAAG,GAAG,GAAG,CAAC,uBAAiB,CAAC,EAAE,CAAC;IACrC,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,UAAU,EAAE;QAEvC,MAAM,IAAI,SAAS,CAAC,gEAAgE,CAAC,CAAC;KACvF;SAAM;QACL,OAAO,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;KAClC;AACH,CAAC,EARqD,CAQrD,CAAC"} | ||||
| @@ -0,0 +1,78 @@ | ||||
| import { Observable } from '../Observable'; | ||||
| import { Subscriber } from '../Subscriber'; | ||||
| import { MonoTypeOperatorFunction } from '../types'; | ||||
| import { SimpleOuterSubscriber } from '../innerSubscribe'; | ||||
| /** | ||||
|  * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items. | ||||
|  * | ||||
|  * If a keySelector function is provided, then it will project each value from the source observable into a new value that it will | ||||
|  * check for equality with previously projected values. If a keySelector function is not provided, it will use each value from the | ||||
|  * source observable directly with an equality check against previous values. | ||||
|  * | ||||
|  * In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking. | ||||
|  * | ||||
|  * In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the | ||||
|  * hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct` | ||||
|  * use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so | ||||
|  * that the internal `Set` can be "flushed", basically clearing it of values. | ||||
|  * | ||||
|  * ## Examples | ||||
|  * A simple example with numbers | ||||
|  * ```ts | ||||
|  * import { of } from 'rxjs'; | ||||
|  * import { distinct } from 'rxjs/operators'; | ||||
|  * | ||||
|  * of(1, 1, 2, 2, 2, 1, 2, 3, 4, 3, 2, 1).pipe( | ||||
|  *     distinct(), | ||||
|  *   ) | ||||
|  *   .subscribe(x => console.log(x)); // 1, 2, 3, 4 | ||||
|  * ``` | ||||
|  * | ||||
|  * An example using a keySelector function | ||||
|  * ```typescript | ||||
|  * import { of } from 'rxjs'; | ||||
|  * import { distinct } from 'rxjs/operators'; | ||||
|  * | ||||
|  * interface Person { | ||||
|  *    age: number, | ||||
|  *    name: string | ||||
|  * } | ||||
|  * | ||||
|  * of<Person>( | ||||
|  *     { age: 4, name: 'Foo'}, | ||||
|  *     { age: 7, name: 'Bar'}, | ||||
|  *     { age: 5, name: 'Foo'}, | ||||
|  *   ).pipe( | ||||
|  *     distinct((p: Person) => p.name), | ||||
|  *   ) | ||||
|  *   .subscribe(x => console.log(x)); | ||||
|  * | ||||
|  * // displays: | ||||
|  * // { age: 4, name: 'Foo' } | ||||
|  * // { age: 7, name: 'Bar' } | ||||
|  * ``` | ||||
|  * @see {@link distinctUntilChanged} | ||||
|  * @see {@link distinctUntilKeyChanged} | ||||
|  * | ||||
|  * @param {function} [keySelector] Optional function to select which value you want to check as distinct. | ||||
|  * @param {Observable} [flushes] Optional Observable for flushing the internal HashSet of the operator. | ||||
|  * @return {Observable} An Observable that emits items from the source Observable with distinct values. | ||||
|  * @method distinct | ||||
|  * @owner Observable | ||||
|  */ | ||||
| export declare function distinct<T, K>(keySelector?: (value: T) => K, flushes?: Observable<any>): MonoTypeOperatorFunction<T>; | ||||
| /** | ||||
|  * We need this JSDoc comment for affecting ESDoc. | ||||
|  * @ignore | ||||
|  * @extends {Ignored} | ||||
|  */ | ||||
| export declare class DistinctSubscriber<T, K> extends SimpleOuterSubscriber<T, T> { | ||||
|     private keySelector?; | ||||
|     private values; | ||||
|     constructor(destination: Subscriber<T>, keySelector?: (value: T) => K, flushes?: Observable<any>); | ||||
|     notifyNext(): void; | ||||
|     notifyError(error: any): void; | ||||
|     protected _next(value: T): void; | ||||
|     private _useKeySelector; | ||||
|     private _finalizeNext; | ||||
| } | ||||
| @@ -0,0 +1 @@ | ||||
| export * from 'rxjs-compat/operator/let'; | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0.01456,"46":0,"47":0,"48":0.00971,"49":0,"50":0,"51":0,"52":0.10193,"53":0,"54":0,"55":0,"56":0.00485,"57":0,"58":0,"59":0,"60":0.00485,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.00971,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.08737,"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.10679,"92":0,"93":0,"94":0.01456,"95":0,"96":0,"97":0.00485,"98":0.01942,"99":0,"100":0.01456,"101":0.00485,"102":0.28639,"103":0.00485,"104":0,"105":0.00485,"106":0.00971,"107":0.04369,"108":1.99014,"109":1.13584,"110":0,"111":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.03398,"50":0,"51":0,"52":0,"53":0.00485,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0.00485,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0.00485,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0.00485,"72":0.00971,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00485,"79":0.01456,"80":0.00971,"81":0.02427,"83":0,"84":0,"85":0,"86":0,"87":0.00485,"88":0,"89":0,"90":0.00485,"91":0.00971,"92":0.00971,"93":0,"94":0.02912,"95":0,"96":0.11164,"97":0.03883,"98":0.03883,"99":0.02427,"100":0.00971,"101":0.00485,"102":0.00485,"103":0.04369,"104":0.00971,"105":0.02912,"106":0.04854,"107":0.27182,"108":5.62579,"109":4.6113,"110":0,"111":0,"112":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0.20387,"94":0.30095,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0,"13":0.00485,"14":0.00485,"15":0,"16":0,"17":0,"18":0.00971,"79":0,"80":0,"81":0,"83":0.00485,"84":0.00485,"85":0,"86":0,"87":0,"88":0.00485,"89":0.00485,"90":0,"91":0,"92":0.00485,"93":0,"94":0,"95":0,"96":0.00485,"97":0.00485,"98":0,"99":0,"100":0.00485,"101":0,"102":0,"103":0,"104":0.01456,"105":0.41259,"106":0.00485,"107":0.02912,"108":1.16496,"109":1.25233},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.01942,"14":0.0631,"15":0.00971,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0,"10.1":0.00485,"11.1":0,"12.1":0.02912,"13.1":0.05825,"14.1":0.18445,"15.1":0.03398,"15.2-15.3":0.13106,"15.4":0.02912,"15.5":0.09223,"15.6":0.69898,"16.0":0.11164,"16.1":0.40288,"16.2":0.49025,"16.3":0.03883},G:{"8":0.01277,"3.2":0.00255,"4.0-4.1":0,"4.2-4.3":0.00255,"5.0-5.1":0,"6.0-6.1":0.01788,"7.0-7.1":0.01788,"8.1-8.4":0.01788,"9.0-9.2":0.01788,"9.3":0.17367,"10.0-10.2":0.01022,"10.3":0.10982,"11.0-11.2":0.05874,"11.3-11.4":0.42906,"12.0-12.1":0.04597,"12.2-12.5":0.82237,"13.0-13.1":0.01532,"13.2":0,"13.3":0.37543,"13.4-13.7":0.07406,"14.0-14.4":0.1941,"14.5-14.8":0.65381,"15.0-15.1":0.34478,"15.2-15.3":0.26816,"15.4":0.61805,"15.5":0.66913,"15.6":3.01619,"16.0":3.25626,"16.1":7.03353,"16.2":4.901,"16.3":0.31158},P:{"4":0.07763,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.66538,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0.05545,"12.0":0.01109,"13.0":0.09981,"14.0":0.04436,"15.0":0.02218,"16.0":0.08872,"17.0":0.02218,"18.0":0.18852,"19.0":4.59113},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.01257,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.16335},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.01942,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.67413},Q:{"13.1":0.01029},O:{"0":0.02058},H:{"0":0.06333},L:{"0":43.26679},S:{"2.5":0}}; | ||||
| @@ -0,0 +1 @@ | ||||
| import 'rxjs-compat/add/observable/from'; | ||||
| @@ -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:{"1":"r s D t xB yB","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 DC EC"},D:{"1":"l m n o 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"},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":"W X Y Z 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 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:{"1":"D"},N:{"2":"A B"},O:{"2":"uC"},P:{"1":"7C","2":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C"},Q:{"2":"1B"},R:{"2":"8C"},S:{"2":"9C"}},B:5,C:"CSS font-palette"}; | ||||
| @@ -0,0 +1,58 @@ | ||||
| //TODO: handle reviver/dehydrate function like normal | ||||
| //and handle indentation, like normal. | ||||
| //if anyone needs this... please send pull request. | ||||
|  | ||||
| exports.stringify = function stringify (o) { | ||||
|   if('undefined' == typeof o) return o | ||||
|  | ||||
|   if(o && Buffer.isBuffer(o)) | ||||
|     return JSON.stringify(':base64:' + o.toString('base64')) | ||||
|  | ||||
|   if(o && o.toJSON) | ||||
|     o =  o.toJSON() | ||||
|  | ||||
|   if(o && 'object' === typeof o) { | ||||
|     var s = '' | ||||
|     var array = Array.isArray(o) | ||||
|     s = array ? '[' : '{' | ||||
|     var first = true | ||||
|  | ||||
|     for(var k in o) { | ||||
|       var ignore = 'function' == typeof o[k] || (!array && 'undefined' === typeof o[k]) | ||||
|       if(Object.hasOwnProperty.call(o, k) && !ignore) { | ||||
|         if(!first) | ||||
|           s += ',' | ||||
|         first = false | ||||
|         if (array) { | ||||
|           if(o[k] == undefined) | ||||
|             s += 'null' | ||||
|           else | ||||
|             s += stringify(o[k]) | ||||
|         } else if (o[k] !== void(0)) { | ||||
|           s += stringify(k) + ':' + stringify(o[k]) | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     s += array ? ']' : '}' | ||||
|  | ||||
|     return s | ||||
|   } else if ('string' === typeof o) { | ||||
|     return JSON.stringify(/^:/.test(o) ? ':' + o : o) | ||||
|   } else if ('undefined' === typeof o) { | ||||
|     return 'null'; | ||||
|   } else | ||||
|     return JSON.stringify(o) | ||||
| } | ||||
|  | ||||
| exports.parse = function (s) { | ||||
|   return JSON.parse(s, function (key, value) { | ||||
|     if('string' === typeof value) { | ||||
|       if(/^:base64:/.test(value)) | ||||
|         return new Buffer(value.substring(8), 'base64') | ||||
|       else | ||||
|         return /^:/.test(value) ? value.substring(1) : value  | ||||
|     } | ||||
|     return value | ||||
|   }) | ||||
| } | ||||
| @@ -0,0 +1,50 @@ | ||||
| import { MonoTypeOperatorFunction, SubscribableOrPromise } from '../types'; | ||||
| /** | ||||
|  * Emits a value from the source Observable only after a particular time span | ||||
|  * determined by another Observable has passed without another source emission. | ||||
|  * | ||||
|  * <span class="informal">It's like {@link debounceTime}, but the time span of | ||||
|  * emission silence is determined by a second Observable.</span> | ||||
|  * | ||||
|  *  | ||||
|  * | ||||
|  * `debounce` delays values emitted by the source Observable, but drops previous | ||||
|  * pending delayed emissions if a new value arrives on the source Observable. | ||||
|  * This operator keeps track of the most recent value from the source | ||||
|  * Observable, and spawns a duration Observable by calling the | ||||
|  * `durationSelector` function. The value is emitted only when the duration | ||||
|  * Observable emits a value or completes, and if no other value was emitted on | ||||
|  * the source Observable since the duration Observable was spawned. If a new | ||||
|  * value appears before the duration Observable emits, the previous value will | ||||
|  * be dropped and will not be emitted on the output Observable. | ||||
|  * | ||||
|  * Like {@link debounceTime}, this is a rate-limiting operator, and also a | ||||
|  * delay-like operator since output emissions do not necessarily occur at the | ||||
|  * same time as they did on the source Observable. | ||||
|  * | ||||
|  * ## Example | ||||
|  * Emit the most recent click after a burst of clicks | ||||
|  * ```ts | ||||
|  * import { fromEvent, interval } from 'rxjs'; | ||||
|  * import { debounce } from 'rxjs/operators'; | ||||
|  * | ||||
|  * const clicks = fromEvent(document, 'click'); | ||||
|  * const result = clicks.pipe(debounce(() => interval(1000))); | ||||
|  * result.subscribe(x => console.log(x)); | ||||
|  * ``` | ||||
|  * | ||||
|  * @see {@link audit} | ||||
|  * @see {@link debounceTime} | ||||
|  * @see {@link delayWhen} | ||||
|  * @see {@link throttle} | ||||
|  * | ||||
|  * @param {function(value: T): SubscribableOrPromise} durationSelector A function | ||||
|  * that receives a value from the source Observable, for computing the timeout | ||||
|  * duration for each source value, returned as an Observable or a Promise. | ||||
|  * @return {Observable} An Observable that delays the emissions of the source | ||||
|  * Observable by the specified duration Observable returned by | ||||
|  * `durationSelector`, and may drop some values if they occur too frequently. | ||||
|  * @method debounce | ||||
|  * @owner Observable | ||||
|  */ | ||||
| export declare function debounce<T>(durationSelector: (value: T) => SubscribableOrPromise<any>): MonoTypeOperatorFunction<T>; | ||||
| @@ -0,0 +1,18 @@ | ||||
| { | ||||
|   "name": "requirejs", | ||||
|   "version": "2.1.22", | ||||
|   "ignore": [], | ||||
|   "homepage": "http://requirejs.org", | ||||
|   "authors": [ | ||||
|     "jrburke.com" | ||||
|   ], | ||||
|   "description": "A file and module loader for JavaScript", | ||||
|   "main": "require.js", | ||||
|   "keywords": [ | ||||
|     "AMD" | ||||
|   ], | ||||
|   "license": [ | ||||
|     "BSD-3-Clause", | ||||
|     "MIT" | ||||
|   ] | ||||
| } | ||||
| @@ -0,0 +1,21 @@ | ||||
| import { Scheduler } from '../Scheduler'; | ||||
| import { SubscriptionLog } from './SubscriptionLog'; | ||||
|  | ||||
| export class SubscriptionLoggable { | ||||
|   public subscriptions: SubscriptionLog[] = []; | ||||
|   scheduler: Scheduler; | ||||
|  | ||||
|   logSubscribedFrame(): number { | ||||
|     this.subscriptions.push(new SubscriptionLog(this.scheduler.now())); | ||||
|     return this.subscriptions.length - 1; | ||||
|   } | ||||
|  | ||||
|   logUnsubscribedFrame(index: number) { | ||||
|     const subscriptionLogs = this.subscriptions; | ||||
|     const oldSubscriptionLog = subscriptionLogs[index]; | ||||
|     subscriptionLogs[index] = new SubscriptionLog( | ||||
|       oldSubscriptionLog.subscribedFrame, | ||||
|       this.scheduler.now() | ||||
|     ); | ||||
|   } | ||||
| } | ||||
| @@ -0,0 +1,4 @@ | ||||
| export function isObject(x) { | ||||
|     return x !== null && typeof x === 'object'; | ||||
| } | ||||
| //# sourceMappingURL=isObject.js.map | ||||
| @@ -0,0 +1,51 @@ | ||||
| { | ||||
|   "Commands:": "Commands:", | ||||
|   "Options:": "Options:", | ||||
|   "Examples:": "Examples:", | ||||
|   "boolean": "boolean", | ||||
|   "count": "count", | ||||
|   "string": "string", | ||||
|   "number": "number", | ||||
|   "array": "array", | ||||
|   "required": "required", | ||||
|   "default": "default", | ||||
|   "default:": "default:", | ||||
|   "choices:": "choices:", | ||||
|   "aliases:": "aliases:", | ||||
|   "generated-value": "generated-value", | ||||
|   "Not enough non-option arguments: got %s, need at least %s": { | ||||
|     "one": "Not enough non-option arguments: got %s, need at least %s", | ||||
|     "other": "Not enough non-option arguments: got %s, need at least %s" | ||||
|   }, | ||||
|   "Too many non-option arguments: got %s, maximum of %s": { | ||||
|     "one": "Too many non-option arguments: got %s, maximum of %s", | ||||
|     "other": "Too many non-option arguments: got %s, maximum of %s" | ||||
|   }, | ||||
|   "Missing argument value: %s": { | ||||
|     "one": "Missing argument value: %s", | ||||
|     "other": "Missing argument values: %s" | ||||
|   }, | ||||
|   "Missing required argument: %s": { | ||||
|     "one": "Missing required argument: %s", | ||||
|     "other": "Missing required arguments: %s" | ||||
|   }, | ||||
|   "Unknown argument: %s": { | ||||
|     "one": "Unknown argument: %s", | ||||
|     "other": "Unknown arguments: %s" | ||||
|   }, | ||||
|   "Invalid values:": "Invalid values:", | ||||
|   "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Given: %s, Choices: %s", | ||||
|   "Argument check failed: %s": "Argument check failed: %s", | ||||
|   "Implications failed:": "Missing dependent arguments:", | ||||
|   "Not enough arguments following: %s": "Not enough arguments following: %s", | ||||
|   "Invalid JSON config file: %s": "Invalid JSON config file: %s", | ||||
|   "Path to JSON config file": "Path to JSON config file", | ||||
|   "Show help": "Show help", | ||||
|   "Show version number": "Show version number", | ||||
|   "Did you mean %s?": "Did you mean %s?", | ||||
|   "Arguments %s and %s are mutually exclusive" : "Arguments %s and %s are mutually exclusive", | ||||
|   "Positionals:": "Positionals:", | ||||
|   "command": "command", | ||||
|   "deprecated": "deprecated", | ||||
|   "deprecated: %s": "deprecated: %s" | ||||
| } | ||||
| @@ -0,0 +1,28 @@ | ||||
| let Declaration = require('../declaration') | ||||
|  | ||||
| class GridColumnAlign extends Declaration { | ||||
|   /** | ||||
|    * Do not prefix flexbox values | ||||
|    */ | ||||
|   check (decl) { | ||||
|     return !decl.value.includes('flex-') && decl.value !== 'baseline' | ||||
|   } | ||||
|  | ||||
|   /** | ||||
|    * Change property name for IE | ||||
|    */ | ||||
|   prefixed (prop, prefix) { | ||||
|     return prefix + 'grid-column-align' | ||||
|   } | ||||
|  | ||||
|   /** | ||||
|    * Change IE property back | ||||
|    */ | ||||
|   normalize () { | ||||
|     return 'justify-self' | ||||
|   } | ||||
| } | ||||
|  | ||||
| GridColumnAlign.names = ['grid-column-align'] | ||||
|  | ||||
| module.exports = GridColumnAlign | ||||
| @@ -0,0 +1,15 @@ | ||||
| const UnsubscriptionErrorImpl = (() => { | ||||
|     function UnsubscriptionErrorImpl(errors) { | ||||
|         Error.call(this); | ||||
|         this.message = errors ? | ||||
|             `${errors.length} errors occurred during unsubscription: | ||||
| ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n  ')}` : ''; | ||||
|         this.name = 'UnsubscriptionError'; | ||||
|         this.errors = errors; | ||||
|         return this; | ||||
|     } | ||||
|     UnsubscriptionErrorImpl.prototype = Object.create(Error.prototype); | ||||
|     return UnsubscriptionErrorImpl; | ||||
| })(); | ||||
| export const UnsubscriptionError = UnsubscriptionErrorImpl; | ||||
| //# sourceMappingURL=UnsubscriptionError.js.map | ||||
| @@ -0,0 +1,68 @@ | ||||
| import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe'; | ||||
| export function debounce(durationSelector) { | ||||
|     return (source) => source.lift(new DebounceOperator(durationSelector)); | ||||
| } | ||||
| class DebounceOperator { | ||||
|     constructor(durationSelector) { | ||||
|         this.durationSelector = durationSelector; | ||||
|     } | ||||
|     call(subscriber, source) { | ||||
|         return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector)); | ||||
|     } | ||||
| } | ||||
| class DebounceSubscriber extends SimpleOuterSubscriber { | ||||
|     constructor(destination, durationSelector) { | ||||
|         super(destination); | ||||
|         this.durationSelector = durationSelector; | ||||
|         this.hasValue = false; | ||||
|     } | ||||
|     _next(value) { | ||||
|         try { | ||||
|             const result = this.durationSelector.call(this, value); | ||||
|             if (result) { | ||||
|                 this._tryNext(value, result); | ||||
|             } | ||||
|         } | ||||
|         catch (err) { | ||||
|             this.destination.error(err); | ||||
|         } | ||||
|     } | ||||
|     _complete() { | ||||
|         this.emitValue(); | ||||
|         this.destination.complete(); | ||||
|     } | ||||
|     _tryNext(value, duration) { | ||||
|         let subscription = this.durationSubscription; | ||||
|         this.value = value; | ||||
|         this.hasValue = true; | ||||
|         if (subscription) { | ||||
|             subscription.unsubscribe(); | ||||
|             this.remove(subscription); | ||||
|         } | ||||
|         subscription = innerSubscribe(duration, new SimpleInnerSubscriber(this)); | ||||
|         if (subscription && !subscription.closed) { | ||||
|             this.add(this.durationSubscription = subscription); | ||||
|         } | ||||
|     } | ||||
|     notifyNext() { | ||||
|         this.emitValue(); | ||||
|     } | ||||
|     notifyComplete() { | ||||
|         this.emitValue(); | ||||
|     } | ||||
|     emitValue() { | ||||
|         if (this.hasValue) { | ||||
|             const value = this.value; | ||||
|             const subscription = this.durationSubscription; | ||||
|             if (subscription) { | ||||
|                 this.durationSubscription = undefined; | ||||
|                 subscription.unsubscribe(); | ||||
|                 this.remove(subscription); | ||||
|             } | ||||
|             this.value = undefined; | ||||
|             this.hasValue = false; | ||||
|             super._next(value); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| //# sourceMappingURL=debounce.js.map | ||||
| @@ -0,0 +1,7 @@ | ||||
| "use strict"; | ||||
| function __export(m) { | ||||
|     for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||||
| } | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| __export(require("rxjs-compat/operator/window")); | ||||
| //# sourceMappingURL=window.js.map | ||||
| @@ -0,0 +1,258 @@ | ||||
| var common = require('../common'); | ||||
| var assert = common.assert; | ||||
| var fake = common.fake.create(); | ||||
| var retry = require(common.dir.lib + '/retry'); | ||||
|  | ||||
| (function testReset() { | ||||
|   var error = new Error('some error'); | ||||
|   var operation = retry.operation([1, 2, 3]); | ||||
|   var attempts = 0; | ||||
|  | ||||
|   var finalCallback = fake.callback('finalCallback'); | ||||
|   fake.expectAnytime(finalCallback); | ||||
|  | ||||
|   var expectedFinishes = 1; | ||||
|   var finishes         = 0; | ||||
|  | ||||
|   var fn = function() { | ||||
|     operation.attempt(function(currentAttempt) { | ||||
|       attempts++; | ||||
|       assert.equal(currentAttempt, attempts); | ||||
|       if (operation.retry(error)) { | ||||
|         return; | ||||
|       } | ||||
|  | ||||
|       finishes++ | ||||
|       assert.equal(expectedFinishes, finishes); | ||||
|       assert.strictEqual(attempts, 4); | ||||
|       assert.strictEqual(operation.attempts(), attempts); | ||||
|       assert.strictEqual(operation.mainError(), error); | ||||
|  | ||||
|       if (finishes < 2) { | ||||
|         attempts = 0; | ||||
|         expectedFinishes++; | ||||
|         operation.reset(); | ||||
|         fn() | ||||
|       } else { | ||||
|         finalCallback(); | ||||
|       } | ||||
|     }); | ||||
|   }; | ||||
|  | ||||
|   fn(); | ||||
| })(); | ||||
|  | ||||
| (function testErrors() { | ||||
|   var operation = retry.operation(); | ||||
|  | ||||
|   var error = new Error('some error'); | ||||
|   var error2 = new Error('some other error'); | ||||
|   operation._errors.push(error); | ||||
|   operation._errors.push(error2); | ||||
|  | ||||
|   assert.deepEqual(operation.errors(), [error, error2]); | ||||
| })(); | ||||
|  | ||||
| (function testMainErrorReturnsMostFrequentError() { | ||||
|   var operation = retry.operation(); | ||||
|   var error = new Error('some error'); | ||||
|   var error2 = new Error('some other error'); | ||||
|  | ||||
|   operation._errors.push(error); | ||||
|   operation._errors.push(error2); | ||||
|   operation._errors.push(error); | ||||
|  | ||||
|   assert.strictEqual(operation.mainError(), error); | ||||
| })(); | ||||
|  | ||||
| (function testMainErrorReturnsLastErrorOnEqualCount() { | ||||
|   var operation = retry.operation(); | ||||
|   var error = new Error('some error'); | ||||
|   var error2 = new Error('some other error'); | ||||
|  | ||||
|   operation._errors.push(error); | ||||
|   operation._errors.push(error2); | ||||
|  | ||||
|   assert.strictEqual(operation.mainError(), error2); | ||||
| })(); | ||||
|  | ||||
| (function testAttempt() { | ||||
|   var operation = retry.operation(); | ||||
|   var fn = new Function(); | ||||
|  | ||||
|   var timeoutOpts = { | ||||
|     timeout: 1, | ||||
|     cb: function() {} | ||||
|   }; | ||||
|   operation.attempt(fn, timeoutOpts); | ||||
|  | ||||
|   assert.strictEqual(fn, operation._fn); | ||||
|   assert.strictEqual(timeoutOpts.timeout, operation._operationTimeout); | ||||
|   assert.strictEqual(timeoutOpts.cb, operation._operationTimeoutCb); | ||||
| })(); | ||||
|  | ||||
| (function testRetry() { | ||||
|   var error = new Error('some error'); | ||||
|   var operation = retry.operation([1, 2, 3]); | ||||
|   var attempts = 0; | ||||
|  | ||||
|   var finalCallback = fake.callback('finalCallback'); | ||||
|   fake.expectAnytime(finalCallback); | ||||
|  | ||||
|   var fn = function() { | ||||
|     operation.attempt(function(currentAttempt) { | ||||
|       attempts++; | ||||
|       assert.equal(currentAttempt, attempts); | ||||
|       if (operation.retry(error)) { | ||||
|         return; | ||||
|       } | ||||
|  | ||||
|       assert.strictEqual(attempts, 4); | ||||
|       assert.strictEqual(operation.attempts(), attempts); | ||||
|       assert.strictEqual(operation.mainError(), error); | ||||
|       finalCallback(); | ||||
|     }); | ||||
|   }; | ||||
|  | ||||
|   fn(); | ||||
| })(); | ||||
|  | ||||
| (function testRetryForever() { | ||||
|   var error = new Error('some error'); | ||||
|   var operation = retry.operation({ retries: 3, forever: true }); | ||||
|   var attempts = 0; | ||||
|  | ||||
|   var finalCallback = fake.callback('finalCallback'); | ||||
|   fake.expectAnytime(finalCallback); | ||||
|  | ||||
|   var fn = function() { | ||||
|     operation.attempt(function(currentAttempt) { | ||||
|       attempts++; | ||||
|       assert.equal(currentAttempt, attempts); | ||||
|       if (attempts !== 6 && operation.retry(error)) { | ||||
|         return; | ||||
|       } | ||||
|  | ||||
|       assert.strictEqual(attempts, 6); | ||||
|       assert.strictEqual(operation.attempts(), attempts); | ||||
|       assert.strictEqual(operation.mainError(), error); | ||||
|       finalCallback(); | ||||
|     }); | ||||
|   }; | ||||
|  | ||||
|   fn(); | ||||
| })(); | ||||
|  | ||||
| (function testRetryForeverNoRetries() { | ||||
|   var error = new Error('some error'); | ||||
|   var delay = 50 | ||||
|   var operation = retry.operation({ | ||||
|     retries: null, | ||||
|     forever: true, | ||||
|     minTimeout: delay, | ||||
|     maxTimeout: delay | ||||
|   }); | ||||
|  | ||||
|   var attempts = 0; | ||||
|   var startTime = new Date().getTime(); | ||||
|  | ||||
|   var finalCallback = fake.callback('finalCallback'); | ||||
|   fake.expectAnytime(finalCallback); | ||||
|  | ||||
|   var fn = function() { | ||||
|     operation.attempt(function(currentAttempt) { | ||||
|       attempts++; | ||||
|       assert.equal(currentAttempt, attempts); | ||||
|       if (attempts !== 4 && operation.retry(error)) { | ||||
|         return; | ||||
|       } | ||||
|  | ||||
|       var endTime = new Date().getTime(); | ||||
|       var minTime = startTime + (delay * 3); | ||||
|       var maxTime = minTime + 20 // add a little headroom for code execution time | ||||
|       assert(endTime >= minTime) | ||||
|       assert(endTime < maxTime) | ||||
|       assert.strictEqual(attempts, 4); | ||||
|       assert.strictEqual(operation.attempts(), attempts); | ||||
|       assert.strictEqual(operation.mainError(), error); | ||||
|       finalCallback(); | ||||
|     }); | ||||
|   }; | ||||
|  | ||||
|   fn(); | ||||
| })(); | ||||
|  | ||||
| (function testStop() { | ||||
|   var error = new Error('some error'); | ||||
|   var operation = retry.operation([1, 2, 3]); | ||||
|   var attempts = 0; | ||||
|  | ||||
|   var finalCallback = fake.callback('finalCallback'); | ||||
|   fake.expectAnytime(finalCallback); | ||||
|  | ||||
|   var fn = function() { | ||||
|     operation.attempt(function(currentAttempt) { | ||||
|       attempts++; | ||||
|       assert.equal(currentAttempt, attempts); | ||||
|  | ||||
|       if (attempts === 2) { | ||||
|         operation.stop(); | ||||
|  | ||||
|         assert.strictEqual(attempts, 2); | ||||
|         assert.strictEqual(operation.attempts(), attempts); | ||||
|         assert.strictEqual(operation.mainError(), error); | ||||
|         finalCallback(); | ||||
|       } | ||||
|  | ||||
|       if (operation.retry(error)) { | ||||
|         return; | ||||
|       } | ||||
|     }); | ||||
|   }; | ||||
|  | ||||
|   fn(); | ||||
| })(); | ||||
|  | ||||
| (function testMaxRetryTime() { | ||||
|   var error = new Error('some error'); | ||||
|   var maxRetryTime = 30; | ||||
|   var operation = retry.operation({ | ||||
|       minTimeout: 1, | ||||
|       maxRetryTime: maxRetryTime | ||||
|   }); | ||||
|   var attempts = 0; | ||||
|  | ||||
|   var finalCallback = fake.callback('finalCallback'); | ||||
|   fake.expectAnytime(finalCallback); | ||||
|  | ||||
|   var longAsyncFunction = function (wait, callback){ | ||||
|     setTimeout(callback, wait); | ||||
|   }; | ||||
|  | ||||
|   var fn = function() { | ||||
|     var startTime = new Date().getTime(); | ||||
|     operation.attempt(function(currentAttempt) { | ||||
|       attempts++; | ||||
|       assert.equal(currentAttempt, attempts); | ||||
|  | ||||
|       if (attempts !== 2) { | ||||
|         if (operation.retry(error)) { | ||||
|             return; | ||||
|         } | ||||
|       } else { | ||||
|         var curTime = new Date().getTime(); | ||||
|         longAsyncFunction(maxRetryTime - (curTime - startTime - 1), function(){ | ||||
|           if (operation.retry(error)) { | ||||
|             assert.fail('timeout should be occurred'); | ||||
|             return; | ||||
|           } | ||||
|  | ||||
|           assert.strictEqual(operation.mainError(), error); | ||||
|           finalCallback(); | ||||
|         }); | ||||
|       } | ||||
|     }); | ||||
|   }; | ||||
|  | ||||
|   fn(); | ||||
| })(); | ||||
| @@ -0,0 +1,7 @@ | ||||
| "use strict"; | ||||
| function __export(m) { | ||||
|     for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||||
| } | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| __export(require("rxjs-compat/operators/partition")); | ||||
| //# sourceMappingURL=partition.js.map | ||||
| @@ -0,0 +1,86 @@ | ||||
| const semver = require('semver') | ||||
| const { fetchCommits } = require('./commits') | ||||
|  | ||||
| const MERGE_COMMIT_PATTERN = /^Merge (remote-tracking )?branch '.+'/ | ||||
| const COMMIT_MESSAGE_PATTERN = /\n+([\S\s]+)/ | ||||
|  | ||||
| const parseReleases = async (tags, options, onParsed) => { | ||||
|   return Promise.all(tags.map(async tag => { | ||||
|     const commits = await fetchCommits(tag.diff, options) | ||||
|     const merges = commits.filter(commit => commit.merge).map(commit => commit.merge) | ||||
|     const fixes = commits.filter(commit => commit.fixes).map(commit => ({ fixes: commit.fixes, commit })) | ||||
|     const emptyRelease = merges.length === 0 && fixes.length === 0 | ||||
|     const { message } = commits[0] || { message: null } | ||||
|     const breakingCount = commits.filter(c => c.breaking).length | ||||
|     const filteredCommits = commits | ||||
|       .filter(filterCommits(options, merges)) | ||||
|       .sort(sortCommits(options)) | ||||
|       .slice(0, getCommitLimit(options, emptyRelease, breakingCount)) | ||||
|  | ||||
|     if (onParsed) onParsed(tag) | ||||
|  | ||||
|     return { | ||||
|       ...tag, | ||||
|       summary: getSummary(message, options), | ||||
|       commits: filteredCommits, | ||||
|       merges, | ||||
|       fixes | ||||
|     } | ||||
|   })) | ||||
| } | ||||
|  | ||||
| const filterCommits = ({ ignoreCommitPattern }, merges) => commit => { | ||||
|   if (commit.fixes || commit.merge) { | ||||
|     // Filter out commits that already appear in fix or merge lists | ||||
|     return false | ||||
|   } | ||||
|   if (commit.breaking) { | ||||
|     return true | ||||
|   } | ||||
|   if (ignoreCommitPattern && new RegExp(ignoreCommitPattern).test(commit.subject)) { | ||||
|     return false | ||||
|   } | ||||
|   if (semver.valid(commit.subject)) { | ||||
|     // Filter out version commits | ||||
|     return false | ||||
|   } | ||||
|   if (MERGE_COMMIT_PATTERN.test(commit.subject)) { | ||||
|     // Filter out merge commits | ||||
|     return false | ||||
|   } | ||||
|   if (merges.findIndex(m => m.message === commit.subject) !== -1) { | ||||
|     // Filter out commits with the same message as an existing merge | ||||
|     return false | ||||
|   } | ||||
|   return true | ||||
| } | ||||
|  | ||||
| const sortCommits = ({ sortCommits }) => (a, b) => { | ||||
|   if (!a.breaking && b.breaking) return 1 | ||||
|   if (a.breaking && !b.breaking) return -1 | ||||
|   if (sortCommits === 'date') return new Date(a.date) - new Date(b.date) | ||||
|   if (sortCommits === 'date-desc') return new Date(b.date) - new Date(a.date) | ||||
|   return (b.insertions + b.deletions) - (a.insertions + a.deletions) | ||||
| } | ||||
|  | ||||
| const getCommitLimit = ({ commitLimit, backfillLimit }, emptyRelease, breakingCount) => { | ||||
|   if (commitLimit === false) { | ||||
|     return undefined // Return all commits | ||||
|   } | ||||
|   const limit = emptyRelease ? backfillLimit : commitLimit | ||||
|   return Math.max(breakingCount, limit) | ||||
| } | ||||
|  | ||||
| const getSummary = (message, { releaseSummary }) => { | ||||
|   if (!message || !releaseSummary) { | ||||
|     return null | ||||
|   } | ||||
|   if (COMMIT_MESSAGE_PATTERN.test(message)) { | ||||
|     return message.match(COMMIT_MESSAGE_PATTERN)[1] | ||||
|   } | ||||
|   return null | ||||
| } | ||||
|  | ||||
| module.exports = { | ||||
|   parseReleases | ||||
| } | ||||
| @@ -0,0 +1 @@ | ||||
| //# sourceMappingURL=TestMessage.js.map | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"windowCount.js","sources":["../src/operator/windowCount.ts"],"names":[],"mappings":";;;;;AAAA,sDAAiD"} | ||||
| @@ -0,0 +1,9 @@ | ||||
| import { not } from '../util/not'; | ||||
| import { filter } from './filter'; | ||||
| export function partition(predicate, thisArg) { | ||||
|     return (source) => [ | ||||
|         filter(predicate, thisArg)(source), | ||||
|         filter(not(predicate, thisArg))(source) | ||||
|     ]; | ||||
| } | ||||
| //# sourceMappingURL=partition.js.map | ||||
| @@ -0,0 +1,14 @@ | ||||
| // https://github.com/Modernizr/Modernizr/issues/572 | ||||
| // Similar to http://jsfiddle.net/FWeinb/etnYC/ | ||||
| Modernizr.addTest('cssvhunit', function() { | ||||
|     var bool; | ||||
|     Modernizr.testStyles("#modernizr { height: 50vh; }", function(elem, rule) {    | ||||
|         var height = parseInt(window.innerHeight/2,10), | ||||
|             compStyle = parseInt((window.getComputedStyle ? | ||||
|                       getComputedStyle(elem, null) : | ||||
|                       elem.currentStyle)["height"],10); | ||||
|          | ||||
|         bool= (compStyle == height); | ||||
|     }); | ||||
|     return bool; | ||||
| }); | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"delayWhen.js","sources":["../../../src/internal/operators/delayWhen.ts"],"names":[],"mappings":"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"} | ||||
| @@ -0,0 +1,38 @@ | ||||
| { | ||||
| 	"name": "array-union", | ||||
| 	"version": "2.1.0", | ||||
| 	"description": "Create an array of unique values, in order, from the input arrays", | ||||
| 	"license": "MIT", | ||||
| 	"repository": "sindresorhus/array-union", | ||||
| 	"author": { | ||||
| 		"name": "Sindre Sorhus", | ||||
| 		"email": "sindresorhus@gmail.com", | ||||
| 		"url": "sindresorhus.com" | ||||
| 	}, | ||||
| 	"engines": { | ||||
| 		"node": ">=8" | ||||
| 	}, | ||||
| 	"scripts": { | ||||
| 		"test": "xo && ava && tsd" | ||||
| 	}, | ||||
| 	"files": [ | ||||
| 		"index.js", | ||||
| 		"index.d.ts" | ||||
| 	], | ||||
| 	"keywords": [ | ||||
| 		"array", | ||||
| 		"set", | ||||
| 		"uniq", | ||||
| 		"unique", | ||||
| 		"duplicate", | ||||
| 		"remove", | ||||
| 		"union", | ||||
| 		"combine", | ||||
| 		"merge" | ||||
| 	], | ||||
| 	"devDependencies": { | ||||
| 		"ava": "^1.4.1", | ||||
| 		"tsd": "^0.7.2", | ||||
| 		"xo": "^0.24.0" | ||||
| 	} | ||||
| } | ||||
| @@ -0,0 +1 @@ | ||||
| import 'rxjs-compat/add/observable/range'; | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={A:{A:{"2":"J E F G A B BC"},B:{"2":"C K L H M N O","1025":"d f g h i j k l m n o p q r s D t","1537":"P Q R S T U V W X Y Z a b c"},C:{"2":"CC","932":"0 1 2 3 4 5 6 7 8 9 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 DC EC","2308":"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"},D:{"2":"I u J E F G A B C K L H M N O v w x","545":"0 1 2 3 4 5 6 7 8 9 y z AB BB CB DB EB FB GB HB IB JB KB LB","1025":"d f g h i j k l m n o p q r s D t xB yB FC","1537":"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"},E:{"1":"sB 6B 7B 8B NC","2":"I u J GC zB HC","516":"B C K L H qB rB 1B LC MC 2B 3B 4B 5B","548":"G A KC 0B","676":"E F IC JC"},F:{"2":"G B C OC PC QC RC qB 9B SC rB","513":"AB","545":"0 1 2 3 4 5 6 7 8 H M N O v w x y z","1537":"9 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"},G:{"1":"sB 6B 7B 8B","2":"zB TC AC UC VC","516":"kC lC mC 2B 3B 4B 5B","548":"YC ZC aC bC cC dC eC fC gC hC iC jC","676":"F WC XC"},H:{"2":"nC"},I:{"2":"tB I oC pC qC rC AC","545":"sC tC","1025":"D"},J:{"2":"E","545":"A"},K:{"2":"A B C qB 9B rB","1025":"e"},L:{"1025":"D"},M:{"2308":"D"},N:{"2":"A B"},O:{"1537":"uC"},P:{"545":"I","1025":"5C 6C 7C","1537":"vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB"},Q:{"1537":"1B"},R:{"1537":"8C"},S:{"932":"9C"}},B:5,C:"Intrinsic & Extrinsic Sizing"}; | ||||
| @@ -0,0 +1,44 @@ | ||||
| import { MonoTypeOperatorFunction } from '../types'; | ||||
| /** | ||||
|  * Emits only the last `count` values emitted by the source Observable. | ||||
|  * | ||||
|  * <span class="informal">Remembers the latest `count` values, then emits those | ||||
|  * only when the source completes.</span> | ||||
|  * | ||||
|  *  | ||||
|  * | ||||
|  * `takeLast` returns an Observable that emits at most the last `count` values | ||||
|  * emitted by the source Observable. If the source emits fewer than `count` | ||||
|  * values then all of its values are emitted. This operator must wait until the | ||||
|  * `complete` notification emission from the source in order to emit the `next` | ||||
|  * values on the output Observable, because otherwise it is impossible to know | ||||
|  * whether or not more values will be emitted on the source. For this reason, | ||||
|  * all values are emitted synchronously, followed by the complete notification. | ||||
|  * | ||||
|  * ## Example | ||||
|  * Take the last 3 values of an Observable with many values | ||||
|  * ```ts | ||||
|  * import { range } from 'rxjs'; | ||||
|  * import { takeLast } from 'rxjs/operators'; | ||||
|  * | ||||
|  * const many = range(1, 100); | ||||
|  * const lastThree = many.pipe(takeLast(3)); | ||||
|  * lastThree.subscribe(x => console.log(x)); | ||||
|  * ``` | ||||
|  * | ||||
|  * @see {@link take} | ||||
|  * @see {@link takeUntil} | ||||
|  * @see {@link takeWhile} | ||||
|  * @see {@link skip} | ||||
|  * | ||||
|  * @throws {ArgumentOutOfRangeError} When using `takeLast(i)`, it delivers an | ||||
|  * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`. | ||||
|  * | ||||
|  * @param {number} count The maximum number of values to emit from the end of | ||||
|  * the sequence of values emitted by the source Observable. | ||||
|  * @return {Observable<T>} An Observable that emits at most the last count | ||||
|  * values emitted by the source Observable. | ||||
|  * @method takeLast | ||||
|  * @owner Observable | ||||
|  */ | ||||
| export declare function takeLast<T>(count: number): MonoTypeOperatorFunction<T>; | ||||
| @@ -0,0 +1,3 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| //# sourceMappingURL=Observer.js.map | ||||
| @@ -0,0 +1,56 @@ | ||||
| "use strict"; | ||||
|  | ||||
| Object.defineProperty(exports, "__esModule", { | ||||
|   value: true | ||||
| }); | ||||
| exports.readFile = readFile; | ||||
| exports.readFileSync = readFileSync; | ||||
|  | ||||
| var _fs = _interopRequireDefault(require("fs")); | ||||
|  | ||||
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||||
|  | ||||
| async function fsReadFileAsync(pathname, encoding) { | ||||
|   return new Promise((resolve, reject) => { | ||||
|     _fs.default.readFile(pathname, encoding, (error, contents) => { | ||||
|       if (error) { | ||||
|         reject(error); | ||||
|         return; | ||||
|       } | ||||
|  | ||||
|       resolve(contents); | ||||
|     }); | ||||
|   }); | ||||
| } | ||||
|  | ||||
| async function readFile(filepath, options = {}) { | ||||
|   const throwNotFound = options.throwNotFound === true; | ||||
|  | ||||
|   try { | ||||
|     const content = await fsReadFileAsync(filepath, 'utf8'); | ||||
|     return content; | ||||
|   } catch (error) { | ||||
|     if (throwNotFound === false && error.code === 'ENOENT') { | ||||
|       return null; | ||||
|     } | ||||
|  | ||||
|     throw error; | ||||
|   } | ||||
| } | ||||
|  | ||||
| function readFileSync(filepath, options = {}) { | ||||
|   const throwNotFound = options.throwNotFound === true; | ||||
|  | ||||
|   try { | ||||
|     const content = _fs.default.readFileSync(filepath, 'utf8'); | ||||
|  | ||||
|     return content; | ||||
|   } catch (error) { | ||||
|     if (throwNotFound === false && error.code === 'ENOENT') { | ||||
|       return null; | ||||
|     } | ||||
|  | ||||
|     throw error; | ||||
|   } | ||||
| } | ||||
| //# sourceMappingURL=readFile.js.map | ||||
| @@ -0,0 +1,62 @@ | ||||
| import { Observable } from '../Observable'; | ||||
| import { isArray } from '../util/isArray'; | ||||
| import { isFunction } from '../util/isFunction'; | ||||
| import { map } from '../operators/map'; | ||||
| const toString = (() => Object.prototype.toString)(); | ||||
| export function fromEvent(target, eventName, options, resultSelector) { | ||||
|     if (isFunction(options)) { | ||||
|         resultSelector = options; | ||||
|         options = undefined; | ||||
|     } | ||||
|     if (resultSelector) { | ||||
|         return fromEvent(target, eventName, options).pipe(map(args => isArray(args) ? resultSelector(...args) : resultSelector(args))); | ||||
|     } | ||||
|     return new Observable(subscriber => { | ||||
|         function handler(e) { | ||||
|             if (arguments.length > 1) { | ||||
|                 subscriber.next(Array.prototype.slice.call(arguments)); | ||||
|             } | ||||
|             else { | ||||
|                 subscriber.next(e); | ||||
|             } | ||||
|         } | ||||
|         setupSubscription(target, eventName, handler, subscriber, options); | ||||
|     }); | ||||
| } | ||||
| function setupSubscription(sourceObj, eventName, handler, subscriber, options) { | ||||
|     let unsubscribe; | ||||
|     if (isEventTarget(sourceObj)) { | ||||
|         const source = sourceObj; | ||||
|         sourceObj.addEventListener(eventName, handler, options); | ||||
|         unsubscribe = () => source.removeEventListener(eventName, handler, options); | ||||
|     } | ||||
|     else if (isJQueryStyleEventEmitter(sourceObj)) { | ||||
|         const source = sourceObj; | ||||
|         sourceObj.on(eventName, handler); | ||||
|         unsubscribe = () => source.off(eventName, handler); | ||||
|     } | ||||
|     else if (isNodeStyleEventEmitter(sourceObj)) { | ||||
|         const source = sourceObj; | ||||
|         sourceObj.addListener(eventName, handler); | ||||
|         unsubscribe = () => source.removeListener(eventName, handler); | ||||
|     } | ||||
|     else if (sourceObj && sourceObj.length) { | ||||
|         for (let i = 0, len = sourceObj.length; i < len; i++) { | ||||
|             setupSubscription(sourceObj[i], eventName, handler, subscriber, options); | ||||
|         } | ||||
|     } | ||||
|     else { | ||||
|         throw new TypeError('Invalid event target'); | ||||
|     } | ||||
|     subscriber.add(unsubscribe); | ||||
| } | ||||
| function isNodeStyleEventEmitter(sourceObj) { | ||||
|     return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function'; | ||||
| } | ||||
| function isJQueryStyleEventEmitter(sourceObj) { | ||||
|     return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function'; | ||||
| } | ||||
| function isEventTarget(sourceObj) { | ||||
|     return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function'; | ||||
| } | ||||
| //# sourceMappingURL=fromEvent.js.map | ||||
| @@ -0,0 +1,55 @@ | ||||
| import { Subject } from '../Subject'; | ||||
| import { Subscriber } from '../Subscriber'; | ||||
| import { Subscription } from '../Subscription'; | ||||
| import { Scheduler } from '../Scheduler'; | ||||
| import { TestMessage } from './TestMessage'; | ||||
| import { SubscriptionLog } from './SubscriptionLog'; | ||||
| import { SubscriptionLoggable } from './SubscriptionLoggable'; | ||||
| import { applyMixins } from '../util/applyMixins'; | ||||
|  | ||||
| /** | ||||
|  * We need this JSDoc comment for affecting ESDoc. | ||||
|  * @ignore | ||||
|  * @extends {Ignored} | ||||
|  */ | ||||
| export class HotObservable<T> extends Subject<T> implements SubscriptionLoggable { | ||||
|   public subscriptions: SubscriptionLog[] = []; | ||||
|   scheduler: Scheduler; | ||||
|   logSubscribedFrame: () => number; | ||||
|   logUnsubscribedFrame: (index: number) => void; | ||||
|  | ||||
|   constructor(public messages: TestMessage[], | ||||
|               scheduler: Scheduler) { | ||||
|     super(); | ||||
|     this.scheduler = scheduler; | ||||
|   } | ||||
|  | ||||
|   /** @deprecated This is an internal implementation detail, do not use. */ | ||||
|   _subscribe(subscriber: Subscriber<any>): Subscription { | ||||
|     const subject: HotObservable<T> = this; | ||||
|     const index = subject.logSubscribedFrame(); | ||||
|     const subscription = new Subscription(); | ||||
|     subscription.add(new Subscription(() => { | ||||
|       subject.logUnsubscribedFrame(index); | ||||
|     })); | ||||
|     subscription.add(super._subscribe(subscriber)); | ||||
|     return subscription; | ||||
|   } | ||||
|  | ||||
|   setup() { | ||||
|     const subject = this; | ||||
|     const messagesLength = subject.messages.length; | ||||
|     /* tslint:disable:no-var-keyword */ | ||||
|     for (var i = 0; i < messagesLength; i++) { | ||||
|       (() => { | ||||
|         var message = subject.messages[i]; | ||||
|    /* tslint:enable */ | ||||
|         subject.scheduler.schedule( | ||||
|           () => { message.notification.observe(subject); }, | ||||
|           message.frame | ||||
|         ); | ||||
|       })(); | ||||
|     } | ||||
|   } | ||||
| } | ||||
| applyMixins(HotObservable, [SubscriptionLoggable]); | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -0,0 +1,49 @@ | ||||
| interface Style { | ||||
|   (string: string): string | ||||
| } | ||||
|  | ||||
| export const options: { | ||||
|   enabled: boolean | ||||
| } | ||||
|  | ||||
| export const reset: Style | ||||
| export const bold: Style | ||||
| export const dim: Style | ||||
| export const italic: Style | ||||
| export const underline: Style | ||||
| export const inverse: Style | ||||
| export const hidden: Style | ||||
| export const strikethrough: Style | ||||
| export const black: Style | ||||
| export const red: Style | ||||
| export const green: Style | ||||
| export const yellow: Style | ||||
| export const blue: Style | ||||
| export const magenta: Style | ||||
| export const cyan: Style | ||||
| export const white: Style | ||||
| export const gray: Style | ||||
| export const bgBlack: Style | ||||
| export const bgRed: Style | ||||
| export const bgGreen: Style | ||||
| export const bgYellow: Style | ||||
| export const bgBlue: Style | ||||
| export const bgMagenta: Style | ||||
| export const bgCyan: Style | ||||
| export const bgWhite: Style | ||||
| export const blackBright: Style | ||||
| export const redBright: Style | ||||
| export const greenBright: Style | ||||
| export const yellowBright: Style | ||||
| export const blueBright: Style | ||||
| export const magentaBright: Style | ||||
| export const cyanBright: Style | ||||
| export const whiteBright: Style | ||||
| export const bgBlackBright: Style | ||||
| export const bgRedBright: Style | ||||
| export const bgGreenBright: Style | ||||
| export const bgYellowBright: Style | ||||
| export const bgBlueBright: Style | ||||
| export const bgMagentaBright: Style | ||||
| export const bgCyanBright: Style | ||||
| export const bgWhiteBright: Style | ||||
| @@ -0,0 +1 @@ | ||||
| export * from 'rxjs-compat/operators/partition'; | ||||
| @@ -0,0 +1,44 @@ | ||||
| import { Observable } from '../Observable'; | ||||
| import { ObservableInput, SchedulerLike } from '../types'; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T>(v1: ObservableInput<T>, scheduler: SchedulerLike): Observable<T>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T>(v1: ObservableInput<T>, concurrent: number, scheduler: SchedulerLike): Observable<T>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2>(v1: ObservableInput<T>, v2: ObservableInput<T2>, scheduler: SchedulerLike): Observable<T | T2>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2>(v1: ObservableInput<T>, v2: ObservableInput<T2>, concurrent: number, scheduler: SchedulerLike): Observable<T | T2>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2, T3>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, scheduler: SchedulerLike): Observable<T | T2 | T3>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2, T3>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, concurrent: number, scheduler: SchedulerLike): Observable<T | T2 | T3>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2, T3, T4>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, scheduler: SchedulerLike): Observable<T | T2 | T3 | T4>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2, T3, T4>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, concurrent: number, scheduler: SchedulerLike): Observable<T | T2 | T3 | T4>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2, T3, T4, T5>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, scheduler: SchedulerLike): Observable<T | T2 | T3 | T4 | T5>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2, T3, T4, T5>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, concurrent: number, scheduler: SchedulerLike): Observable<T | T2 | T3 | T4 | T5>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2, T3, T4, T5, T6>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, scheduler: SchedulerLike): Observable<T | T2 | T3 | T4 | T5 | T6>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, T2, T3, T4, T5, T6>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, concurrent: number, scheduler: SchedulerLike): Observable<T | T2 | T3 | T4 | T5 | T6>; | ||||
| export declare function merge<T>(v1: ObservableInput<T>): Observable<T>; | ||||
| export declare function merge<T>(v1: ObservableInput<T>, concurrent?: number): Observable<T>; | ||||
| export declare function merge<T, T2>(v1: ObservableInput<T>, v2: ObservableInput<T2>): Observable<T | T2>; | ||||
| export declare function merge<T, T2>(v1: ObservableInput<T>, v2: ObservableInput<T2>, concurrent?: number): Observable<T | T2>; | ||||
| export declare function merge<T, T2, T3>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>): Observable<T | T2 | T3>; | ||||
| export declare function merge<T, T2, T3>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, concurrent?: number): Observable<T | T2 | T3>; | ||||
| export declare function merge<T, T2, T3, T4>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>): Observable<T | T2 | T3 | T4>; | ||||
| export declare function merge<T, T2, T3, T4>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, concurrent?: number): Observable<T | T2 | T3 | T4>; | ||||
| export declare function merge<T, T2, T3, T4, T5>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>): Observable<T | T2 | T3 | T4 | T5>; | ||||
| export declare function merge<T, T2, T3, T4, T5>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, concurrent?: number): Observable<T | T2 | T3 | T4 | T5>; | ||||
| export declare function merge<T, T2, T3, T4, T5, T6>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>): Observable<T | T2 | T3 | T4 | T5 | T6>; | ||||
| export declare function merge<T, T2, T3, T4, T5, T6>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, concurrent?: number): Observable<T | T2 | T3 | T4 | T5 | T6>; | ||||
| export declare function merge<T>(...observables: (ObservableInput<T> | number)[]): Observable<T>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T>(...observables: (ObservableInput<T> | SchedulerLike | number)[]): Observable<T>; | ||||
| export declare function merge<T, R>(...observables: (ObservableInput<any> | number)[]): Observable<R>; | ||||
| /** @deprecated use {@link scheduled} and {@link mergeAll} (e.g. `scheduled([ob1, ob2, ob3], scheduled).pipe(mergeAll())*/ | ||||
| export declare function merge<T, R>(...observables: (ObservableInput<any> | SchedulerLike | number)[]): Observable<R>; | ||||
| @@ -0,0 +1 @@ | ||||
| export * from 'rxjs-compat/symbol/rxSubscriber'; | ||||
| @@ -0,0 +1,12 @@ | ||||
| const ArgumentOutOfRangeErrorImpl = (() => { | ||||
|     function ArgumentOutOfRangeErrorImpl() { | ||||
|         Error.call(this); | ||||
|         this.message = 'argument out of range'; | ||||
|         this.name = 'ArgumentOutOfRangeError'; | ||||
|         return this; | ||||
|     } | ||||
|     ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype); | ||||
|     return ArgumentOutOfRangeErrorImpl; | ||||
| })(); | ||||
| export const ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl; | ||||
| //# sourceMappingURL=ArgumentOutOfRangeError.js.map | ||||
| @@ -0,0 +1,4 @@ | ||||
| import { OperatorFunction, SchedulerLike } from '../types'; | ||||
| export declare function bufferTime<T>(bufferTimeSpan: number, scheduler?: SchedulerLike): OperatorFunction<T, T[]>; | ||||
| export declare function bufferTime<T>(bufferTimeSpan: number, bufferCreationInterval: number | null | undefined, scheduler?: SchedulerLike): OperatorFunction<T, T[]>; | ||||
| export declare function bufferTime<T>(bufferTimeSpan: number, bufferCreationInterval: number | null | undefined, maxBufferSize: number, scheduler?: SchedulerLike): OperatorFunction<T, T[]>; | ||||
| @@ -0,0 +1 @@ | ||||
| module.exports={A:{A:{"1":"B","2":"J E F G A BC"},B:{"1":"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 p q r s D t"},C:{"1":"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:{"1":"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:{"1":"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:{"1":"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:{"1":"eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B","130":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC"},H:{"130":"nC"},I:{"1":"tB I D oC pC qC rC AC sC tC"},J:{"1":"E","130":"A"},K:{"1":"e","130":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"130":"A B"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:1,C:"PNG favicons"}; | ||||
| @@ -0,0 +1,53 @@ | ||||
| declare namespace pLocate { | ||||
| 	interface Options { | ||||
| 		/** | ||||
| 		Number of concurrently pending promises returned by `tester`. Minimum: `1`. | ||||
|  | ||||
| 		@default Infinity | ||||
| 		*/ | ||||
| 		readonly concurrency?: number; | ||||
|  | ||||
| 		/** | ||||
| 		Preserve `input` order when searching. | ||||
|  | ||||
| 		Disable this to improve performance if you don't care about the order. | ||||
|  | ||||
| 		@default true | ||||
| 		*/ | ||||
| 		readonly preserveOrder?: boolean; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| /** | ||||
| Get the first fulfilled promise that satisfies the provided testing function. | ||||
|  | ||||
| @param input - An iterable of promises/values to test. | ||||
| @param tester - This function will receive resolved values from `input` and is expected to return a `Promise<boolean>` or `boolean`. | ||||
| @returns A `Promise` that is fulfilled when `tester` resolves to `true` or the iterable is done, or rejects if any of the promises reject. The fulfilled value is the current iterable value or `undefined` if `tester` never resolved to `true`. | ||||
|  | ||||
| @example | ||||
| ``` | ||||
| import pathExists = require('path-exists'); | ||||
| import pLocate = require('p-locate'); | ||||
|  | ||||
| const files = [ | ||||
| 	'unicorn.png', | ||||
| 	'rainbow.png', // Only this one actually exists on disk | ||||
| 	'pony.png' | ||||
| ]; | ||||
|  | ||||
| (async () => { | ||||
| 	const foundPath = await pLocate(files, file => pathExists(file)); | ||||
|  | ||||
| 	console.log(foundPath); | ||||
| 	//=> 'rainbow' | ||||
| })(); | ||||
| ``` | ||||
| */ | ||||
| declare function pLocate<ValueType>( | ||||
| 	input: Iterable<PromiseLike<ValueType> | ValueType>, | ||||
| 	tester: (element: ValueType) => PromiseLike<boolean> | boolean, | ||||
| 	options?: pLocate.Options | ||||
| ): Promise<ValueType | undefined>; | ||||
|  | ||||
| export = pLocate; | ||||
| @@ -0,0 +1,18 @@ | ||||
| /** PURE_IMPORTS_START _Subscriber PURE_IMPORTS_END */ | ||||
| import { Subscriber } from '../Subscriber'; | ||||
| export function canReportError(observer) { | ||||
|     while (observer) { | ||||
|         var _a = observer, closed_1 = _a.closed, destination = _a.destination, isStopped = _a.isStopped; | ||||
|         if (closed_1 || isStopped) { | ||||
|             return false; | ||||
|         } | ||||
|         else if (destination && destination instanceof Subscriber) { | ||||
|             observer = destination; | ||||
|         } | ||||
|         else { | ||||
|             observer = null; | ||||
|         } | ||||
|     } | ||||
|     return true; | ||||
| } | ||||
| //# sourceMappingURL=canReportError.js.map | ||||
| @@ -0,0 +1,29 @@ | ||||
| var serialOrdered = require('../serialOrdered.js'); | ||||
|  | ||||
| // API | ||||
| module.exports = ReadableSerialOrdered; | ||||
| // expose sort helpers | ||||
| module.exports.ascending  = serialOrdered.ascending; | ||||
| module.exports.descending = serialOrdered.descending; | ||||
|  | ||||
| /** | ||||
|  * Streaming wrapper to `asynckit.serialOrdered` | ||||
|  * | ||||
|  * @param   {array|object} list - array or object (named list) to iterate over | ||||
|  * @param   {function} iterator - iterator to run | ||||
|  * @param   {function} sortMethod - custom sort function | ||||
|  * @param   {function} callback - invoked when all elements processed | ||||
|  * @returns {stream.Readable#} | ||||
|  */ | ||||
| function ReadableSerialOrdered(list, iterator, sortMethod, callback) | ||||
| { | ||||
|   if (!(this instanceof ReadableSerialOrdered)) | ||||
|   { | ||||
|     return new ReadableSerialOrdered(list, iterator, sortMethod, callback); | ||||
|   } | ||||
|  | ||||
|   // turn on object mode | ||||
|   ReadableSerialOrdered.super_.call(this, {objectMode: true}); | ||||
|  | ||||
|   this._start(serialOrdered, list, iterator, sortMethod, callback); | ||||
| } | ||||
| @@ -0,0 +1,78 @@ | ||||
| /** PURE_IMPORTS_START tslib,_Subscriber,_Subject PURE_IMPORTS_END */ | ||||
| import * as tslib_1 from "tslib"; | ||||
| import { Subscriber } from '../Subscriber'; | ||||
| import { Subject } from '../Subject'; | ||||
| export function windowCount(windowSize, startWindowEvery) { | ||||
|     if (startWindowEvery === void 0) { | ||||
|         startWindowEvery = 0; | ||||
|     } | ||||
|     return function windowCountOperatorFunction(source) { | ||||
|         return source.lift(new WindowCountOperator(windowSize, startWindowEvery)); | ||||
|     }; | ||||
| } | ||||
| var WindowCountOperator = /*@__PURE__*/ (function () { | ||||
|     function WindowCountOperator(windowSize, startWindowEvery) { | ||||
|         this.windowSize = windowSize; | ||||
|         this.startWindowEvery = startWindowEvery; | ||||
|     } | ||||
|     WindowCountOperator.prototype.call = function (subscriber, source) { | ||||
|         return source.subscribe(new WindowCountSubscriber(subscriber, this.windowSize, this.startWindowEvery)); | ||||
|     }; | ||||
|     return WindowCountOperator; | ||||
| }()); | ||||
| var WindowCountSubscriber = /*@__PURE__*/ (function (_super) { | ||||
|     tslib_1.__extends(WindowCountSubscriber, _super); | ||||
|     function WindowCountSubscriber(destination, windowSize, startWindowEvery) { | ||||
|         var _this = _super.call(this, destination) || this; | ||||
|         _this.destination = destination; | ||||
|         _this.windowSize = windowSize; | ||||
|         _this.startWindowEvery = startWindowEvery; | ||||
|         _this.windows = [new Subject()]; | ||||
|         _this.count = 0; | ||||
|         destination.next(_this.windows[0]); | ||||
|         return _this; | ||||
|     } | ||||
|     WindowCountSubscriber.prototype._next = function (value) { | ||||
|         var startWindowEvery = (this.startWindowEvery > 0) ? this.startWindowEvery : this.windowSize; | ||||
|         var destination = this.destination; | ||||
|         var windowSize = this.windowSize; | ||||
|         var windows = this.windows; | ||||
|         var len = windows.length; | ||||
|         for (var i = 0; i < len && !this.closed; i++) { | ||||
|             windows[i].next(value); | ||||
|         } | ||||
|         var c = this.count - windowSize + 1; | ||||
|         if (c >= 0 && c % startWindowEvery === 0 && !this.closed) { | ||||
|             windows.shift().complete(); | ||||
|         } | ||||
|         if (++this.count % startWindowEvery === 0 && !this.closed) { | ||||
|             var window_1 = new Subject(); | ||||
|             windows.push(window_1); | ||||
|             destination.next(window_1); | ||||
|         } | ||||
|     }; | ||||
|     WindowCountSubscriber.prototype._error = function (err) { | ||||
|         var windows = this.windows; | ||||
|         if (windows) { | ||||
|             while (windows.length > 0 && !this.closed) { | ||||
|                 windows.shift().error(err); | ||||
|             } | ||||
|         } | ||||
|         this.destination.error(err); | ||||
|     }; | ||||
|     WindowCountSubscriber.prototype._complete = function () { | ||||
|         var windows = this.windows; | ||||
|         if (windows) { | ||||
|             while (windows.length > 0 && !this.closed) { | ||||
|                 windows.shift().complete(); | ||||
|             } | ||||
|         } | ||||
|         this.destination.complete(); | ||||
|     }; | ||||
|     WindowCountSubscriber.prototype._unsubscribe = function () { | ||||
|         this.count = 0; | ||||
|         this.windows = null; | ||||
|     }; | ||||
|     return WindowCountSubscriber; | ||||
| }(Subscriber)); | ||||
| //# sourceMappingURL=windowCount.js.map | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"mapTo.js","sources":["../../../src/internal/operators/mapTo.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAoC3C,MAAM,UAAU,KAAK,CAAO,KAAQ;IAClC,OAAO,UAAC,MAAqB,IAAK,OAAA,MAAM,CAAC,IAAI,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC,EAArC,CAAqC,CAAC;AAC1E,CAAC;AAED;IAIE,uBAAY,KAAQ;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,4BAAI,GAAJ,UAAK,UAAyB,EAAE,MAAW;QACzC,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvE,CAAC;IACH,oBAAC;AAAD,CAAC,AAXD,IAWC;AAOD;IAAoC,2CAAa;IAI/C,yBAAY,WAA0B,EAAE,KAAQ;QAAhD,YACE,kBAAM,WAAW,CAAC,SAEnB;QADC,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACrB,CAAC;IAES,+BAAK,GAAf,UAAgB,CAAI;QAClB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IACH,sBAAC;AAAD,CAAC,AAZD,CAAoC,UAAU,GAY7C"} | ||||
| @@ -0,0 +1,64 @@ | ||||
| import { Observable } from '../Observable'; | ||||
| import { OperatorFunction, ObservedValueOf } from '../../internal/types'; | ||||
| import { mergeMap } from './mergeMap'; | ||||
| import { ObservableInput } from '../types'; | ||||
|  | ||||
| /* tslint:disable:max-line-length */ | ||||
| export function mergeMapTo<T, O extends ObservableInput<any>>(innerObservable: O, concurrent?: number): OperatorFunction<any, ObservedValueOf<O>>; | ||||
| /** @deprecated */ | ||||
| export function mergeMapTo<T, R, O extends ObservableInput<any>>(innerObservable: O, resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction<T, R>; | ||||
| /* tslint:enable:max-line-length */ | ||||
|  | ||||
| /** | ||||
|  * Projects each source value to the same Observable which is merged multiple | ||||
|  * times in the output Observable. | ||||
|  * | ||||
|  * <span class="informal">It's like {@link mergeMap}, but maps each value always | ||||
|  * to the same inner Observable.</span> | ||||
|  * | ||||
|  *  | ||||
|  * | ||||
|  * Maps each source value to the given Observable `innerObservable` regardless | ||||
|  * of the source value, and then merges those resulting Observables into one | ||||
|  * single Observable, which is the output Observable. | ||||
|  * | ||||
|  * ## Example | ||||
|  * For each click event, start an interval Observable ticking every 1 second | ||||
|  * ```ts | ||||
|  * import { fromEvent, interval } from 'rxjs'; | ||||
|  * import { mergeMapTo } from 'rxjs/operators'; | ||||
|  * | ||||
|  * const clicks = fromEvent(document, 'click'); | ||||
|  * const result = clicks.pipe(mergeMapTo(interval(1000))); | ||||
|  * result.subscribe(x => console.log(x)); | ||||
|  * ``` | ||||
|  * | ||||
|  * @see {@link concatMapTo} | ||||
|  * @see {@link merge} | ||||
|  * @see {@link mergeAll} | ||||
|  * @see {@link mergeMap} | ||||
|  * @see {@link mergeScan} | ||||
|  * @see {@link switchMapTo} | ||||
|  * | ||||
|  * @param {ObservableInput} innerObservable An Observable to replace each value from | ||||
|  * the source Observable. | ||||
|  * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input | ||||
|  * Observables being subscribed to concurrently. | ||||
|  * @return {Observable} An Observable that emits items from the given | ||||
|  * `innerObservable` | ||||
|  * @method mergeMapTo | ||||
|  * @owner Observable | ||||
|  */ | ||||
| export function mergeMapTo<T, R, O extends ObservableInput<any>>( | ||||
|   innerObservable: O, | ||||
|   resultSelector?: ((outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R) | number, | ||||
|   concurrent: number = Number.POSITIVE_INFINITY | ||||
| ): OperatorFunction<T, ObservedValueOf<O>|R> { | ||||
|   if (typeof resultSelector === 'function') { | ||||
|     return mergeMap(() => innerObservable, resultSelector, concurrent); | ||||
|   } | ||||
|   if (typeof resultSelector === 'number') { | ||||
|     concurrent = resultSelector; | ||||
|   } | ||||
|   return mergeMap(() => innerObservable, concurrent); | ||||
| } | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"AsapScheduler.js","sources":["../../../src/internal/scheduler/AsapScheduler.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;IAAmC,yCAAc;IAAjD;;IA2BA,CAAC;IA1BQ,6BAAK,GAAZ,UAAa,MAAyB;QAEpC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAEpB,IAAA,sBAAO,CAAS;QACvB,IAAI,KAAU,CAAC;QACf,IAAI,KAAK,GAAW,CAAC,CAAC,CAAC;QACvB,IAAI,KAAK,GAAW,OAAO,CAAC,MAAM,CAAC;QACnC,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAEnC,GAAG;YACD,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE;gBACtD,MAAM;aACP;SACF,QAAQ,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE;QAExD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAI,KAAK,EAAE;YACT,OAAO,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE;gBACpD,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AA3BD,CAAmC,cAAc,GA2BhD"} | ||||
| @@ -0,0 +1,11 @@ | ||||
| // by james a rosen. | ||||
| // https://github.com/Modernizr/Modernizr/issues/258 | ||||
|  | ||||
| Modernizr.addTest('createelement-attrs', function() { | ||||
|   try { | ||||
|     return document.createElement("<input name='test' />").getAttribute('name') == 'test'; | ||||
|   } catch(e) { | ||||
|     return false; | ||||
|   } | ||||
| }); | ||||
|  | ||||
| @@ -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 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:{"1":"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","257":"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","289":"tB DC EC","292":"CC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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","33":"I"},E:{"1":"u E F G A B C K L H JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","33":"I GC zB","129":"J HC IC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 QC RC qB 9B SC rB","2":"G OC PC"},G:{"1":"F 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","33":"zB"},H:{"2":"nC"},I:{"1":"tB I D pC qC rC AC sC tC","33":"oC"},J:{"1":"E A"},K:{"1":"B C e qB 9B rB","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"257":"9C"}},B:4,C:"CSS3 Border-radius (rounded corners)"}; | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"AjaxObservable.js","sources":["../../src/observable/dom/AjaxObservable.ts"],"names":[],"mappings":";;;;;AAAA,+DAA0D"} | ||||
| @@ -0,0 +1 @@ | ||||
| !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).uuidv4=e()}(this,(function(){"use strict";var t,e=new Uint8Array(16);function o(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}var n=/^(?:[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;function r(t){return"string"==typeof t&&n.test(t)}for(var i=[],u=0;u<256;++u)i.push((u+256).toString(16).substr(1));return function(t,e,n){var u=(t=t||{}).random||(t.rng||o)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,e){n=n||0;for(var f=0;f<16;++f)e[n+f]=u[f];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!r(o))throw TypeError("Stringified UUID is invalid");return o}(u)}})); | ||||
| @@ -0,0 +1,60 @@ | ||||
| # has-yarn [](https://travis-ci.org/sindresorhus/has-yarn) | ||||
|  | ||||
| > Check if a project is using [Yarn](https://yarnpkg.com) | ||||
|  | ||||
| Useful for tools that needs to know whether to use `yarn` or `npm` to install dependencies. | ||||
|  | ||||
| It checks if a `yarn.lock` file is present in the working directory. | ||||
|  | ||||
|  | ||||
| ## Install | ||||
|  | ||||
| ``` | ||||
| $ npm install has-yarn | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## Usage | ||||
|  | ||||
| ``` | ||||
| . | ||||
| ├── foo | ||||
| │   └── package.json | ||||
| └── bar | ||||
|     ├── package.json | ||||
|     └── yarn.lock | ||||
| ``` | ||||
|  | ||||
| ```js | ||||
| const hasYarn = require('has-yarn'); | ||||
|  | ||||
| hasYarn('foo'); | ||||
| //=> false | ||||
|  | ||||
| hasYarn('bar'); | ||||
| //=> true | ||||
| ``` | ||||
|  | ||||
|  | ||||
| ## API | ||||
|  | ||||
| ### hasYarn([cwd]) | ||||
|  | ||||
| Returns a `boolean` of whether the project uses Yarn. | ||||
|  | ||||
| #### cwd | ||||
|  | ||||
| Type: `string`<br> | ||||
| Default: `process.cwd()` | ||||
|  | ||||
| Current working directory. | ||||
|  | ||||
|  | ||||
| ## Related | ||||
|  | ||||
| - [has-yarn-cli](https://github.com/sindresorhus/has-yarn-cli) - CLI for this module | ||||
|  | ||||
|  | ||||
| ## License | ||||
|  | ||||
| MIT © [Sindre Sorhus](https://sindresorhus.com) | ||||
| @@ -0,0 +1 @@ | ||||
| import 'rxjs-compat/add/operator/partition'; | ||||
| @@ -0,0 +1,114 @@ | ||||
| import assertString from './util/assertString'; | ||||
| /** | ||||
|  * Reference: | ||||
|  * https://en.wikipedia.org/ -- Wikipedia | ||||
|  * https://docs.microsoft.com/en-us/microsoft-365/compliance/eu-passport-number -- EU Passport Number | ||||
|  * https://countrycode.org/ -- Country Codes | ||||
|  */ | ||||
|  | ||||
| var passportRegexByCountryCode = { | ||||
|   AM: /^[A-Z]{2}\d{7}$/, | ||||
|   // ARMENIA | ||||
|   AR: /^[A-Z]{3}\d{6}$/, | ||||
|   // ARGENTINA | ||||
|   AT: /^[A-Z]\d{7}$/, | ||||
|   // AUSTRIA | ||||
|   AU: /^[A-Z]\d{7}$/, | ||||
|   // AUSTRALIA | ||||
|   BE: /^[A-Z]{2}\d{6}$/, | ||||
|   // BELGIUM | ||||
|   BG: /^\d{9}$/, | ||||
|   // BULGARIA | ||||
|   BY: /^[A-Z]{2}\d{7}$/, | ||||
|   // BELARUS | ||||
|   CA: /^[A-Z]{2}\d{6}$/, | ||||
|   // CANADA | ||||
|   CH: /^[A-Z]\d{7}$/, | ||||
|   // SWITZERLAND | ||||
|   CN: /^[GE]\d{8}$/, | ||||
|   // CHINA [G=Ordinary, E=Electronic] followed by 8-digits | ||||
|   CY: /^[A-Z](\d{6}|\d{8})$/, | ||||
|   // CYPRUS | ||||
|   CZ: /^\d{8}$/, | ||||
|   // CZECH REPUBLIC | ||||
|   DE: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/, | ||||
|   // GERMANY | ||||
|   DK: /^\d{9}$/, | ||||
|   // DENMARK | ||||
|   DZ: /^\d{9}$/, | ||||
|   // ALGERIA | ||||
|   EE: /^([A-Z]\d{7}|[A-Z]{2}\d{7})$/, | ||||
|   // ESTONIA (K followed by 7-digits), e-passports have 2 UPPERCASE followed by 7 digits | ||||
|   ES: /^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/, | ||||
|   // SPAIN | ||||
|   FI: /^[A-Z]{2}\d{7}$/, | ||||
|   // FINLAND | ||||
|   FR: /^\d{2}[A-Z]{2}\d{5}$/, | ||||
|   // FRANCE | ||||
|   GB: /^\d{9}$/, | ||||
|   // UNITED KINGDOM | ||||
|   GR: /^[A-Z]{2}\d{7}$/, | ||||
|   // GREECE | ||||
|   HR: /^\d{9}$/, | ||||
|   // CROATIA | ||||
|   HU: /^[A-Z]{2}(\d{6}|\d{7})$/, | ||||
|   // HUNGARY | ||||
|   IE: /^[A-Z0-9]{2}\d{7}$/, | ||||
|   // IRELAND | ||||
|   IN: /^[A-Z]{1}-?\d{7}$/, | ||||
|   // INDIA | ||||
|   IS: /^(A)\d{7}$/, | ||||
|   // ICELAND | ||||
|   IT: /^[A-Z0-9]{2}\d{7}$/, | ||||
|   // ITALY | ||||
|   JP: /^[A-Z]{2}\d{7}$/, | ||||
|   // JAPAN | ||||
|   KR: /^[MS]\d{8}$/, | ||||
|   // SOUTH KOREA, REPUBLIC OF KOREA, [S=PS Passports, M=PM Passports] | ||||
|   LT: /^[A-Z0-9]{8}$/, | ||||
|   // LITHUANIA | ||||
|   LU: /^[A-Z0-9]{8}$/, | ||||
|   // LUXEMBURG | ||||
|   LV: /^[A-Z0-9]{2}\d{7}$/, | ||||
|   // LATVIA | ||||
|   MT: /^\d{7}$/, | ||||
|   // MALTA | ||||
|   NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/, | ||||
|   // NETHERLANDS | ||||
|   PO: /^[A-Z]{2}\d{7}$/, | ||||
|   // POLAND | ||||
|   PT: /^[A-Z]\d{6}$/, | ||||
|   // PORTUGAL | ||||
|   RO: /^\d{8,9}$/, | ||||
|   // ROMANIA | ||||
|   RU: /^\d{2}\d{2}\d{6}$/, | ||||
|   // RUSSIAN FEDERATION | ||||
|   SE: /^\d{8}$/, | ||||
|   // SWEDEN | ||||
|   SL: /^(P)[A-Z]\d{7}$/, | ||||
|   // SLOVANIA | ||||
|   SK: /^[0-9A-Z]\d{7}$/, | ||||
|   // SLOVAKIA | ||||
|   TR: /^[A-Z]\d{8}$/, | ||||
|   // TURKEY | ||||
|   UA: /^[A-Z]{2}\d{6}$/, | ||||
|   // UKRAINE | ||||
|   US: /^\d{9}$/ // UNITED STATES | ||||
|  | ||||
| }; | ||||
| /** | ||||
|  * Check if str is a valid passport number | ||||
|  * relative to provided ISO Country Code. | ||||
|  * | ||||
|  * @param {string} str | ||||
|  * @param {string} countryCode | ||||
|  * @return {boolean} | ||||
|  */ | ||||
|  | ||||
| export default function isPassportNumber(str, countryCode) { | ||||
|   assertString(str); | ||||
|   /** Remove All Whitespaces, Convert to UPPERCASE */ | ||||
|  | ||||
|   var normalizedStr = str.replace(/\s/g, '').toUpperCase(); | ||||
|   return countryCode.toUpperCase() in passportRegexByCountryCode && passportRegexByCountryCode[countryCode].test(normalizedStr); | ||||
| } | ||||
| @@ -0,0 +1,100 @@ | ||||
| var RetryOperation = require('./retry_operation'); | ||||
|  | ||||
| exports.operation = function(options) { | ||||
|   var timeouts = exports.timeouts(options); | ||||
|   return new RetryOperation(timeouts, { | ||||
|       forever: options && options.forever, | ||||
|       unref: options && options.unref, | ||||
|       maxRetryTime: options && options.maxRetryTime | ||||
|   }); | ||||
| }; | ||||
|  | ||||
| exports.timeouts = function(options) { | ||||
|   if (options instanceof Array) { | ||||
|     return [].concat(options); | ||||
|   } | ||||
|  | ||||
|   var opts = { | ||||
|     retries: 10, | ||||
|     factor: 2, | ||||
|     minTimeout: 1 * 1000, | ||||
|     maxTimeout: Infinity, | ||||
|     randomize: false | ||||
|   }; | ||||
|   for (var key in options) { | ||||
|     opts[key] = options[key]; | ||||
|   } | ||||
|  | ||||
|   if (opts.minTimeout > opts.maxTimeout) { | ||||
|     throw new Error('minTimeout is greater than maxTimeout'); | ||||
|   } | ||||
|  | ||||
|   var timeouts = []; | ||||
|   for (var i = 0; i < opts.retries; i++) { | ||||
|     timeouts.push(this.createTimeout(i, opts)); | ||||
|   } | ||||
|  | ||||
|   if (options && options.forever && !timeouts.length) { | ||||
|     timeouts.push(this.createTimeout(i, opts)); | ||||
|   } | ||||
|  | ||||
|   // sort the array numerically ascending | ||||
|   timeouts.sort(function(a,b) { | ||||
|     return a - b; | ||||
|   }); | ||||
|  | ||||
|   return timeouts; | ||||
| }; | ||||
|  | ||||
| exports.createTimeout = function(attempt, opts) { | ||||
|   var random = (opts.randomize) | ||||
|     ? (Math.random() + 1) | ||||
|     : 1; | ||||
|  | ||||
|   var timeout = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt)); | ||||
|   timeout = Math.min(timeout, opts.maxTimeout); | ||||
|  | ||||
|   return timeout; | ||||
| }; | ||||
|  | ||||
| exports.wrap = function(obj, options, methods) { | ||||
|   if (options instanceof Array) { | ||||
|     methods = options; | ||||
|     options = null; | ||||
|   } | ||||
|  | ||||
|   if (!methods) { | ||||
|     methods = []; | ||||
|     for (var key in obj) { | ||||
|       if (typeof obj[key] === 'function') { | ||||
|         methods.push(key); | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   for (var i = 0; i < methods.length; i++) { | ||||
|     var method   = methods[i]; | ||||
|     var original = obj[method]; | ||||
|  | ||||
|     obj[method] = function retryWrapper(original) { | ||||
|       var op       = exports.operation(options); | ||||
|       var args     = Array.prototype.slice.call(arguments, 1); | ||||
|       var callback = args.pop(); | ||||
|  | ||||
|       args.push(function(err) { | ||||
|         if (op.retry(err)) { | ||||
|           return; | ||||
|         } | ||||
|         if (err) { | ||||
|           arguments[0] = op.mainError(); | ||||
|         } | ||||
|         callback.apply(this, arguments); | ||||
|       }); | ||||
|  | ||||
|       op.attempt(function() { | ||||
|         original.apply(obj, args); | ||||
|       }); | ||||
|     }.bind(obj, original); | ||||
|     obj[method].options = options; | ||||
|   } | ||||
| }; | ||||
| @@ -0,0 +1 @@ | ||||
| export * from 'rxjs-compat/operators/timeoutWith'; | ||||
| @@ -0,0 +1,88 @@ | ||||
| import { PartialObserver } from './types'; | ||||
| import { Observable } from './Observable'; | ||||
| /** | ||||
|  * @deprecated NotificationKind is deprecated as const enums are not compatible with isolated modules. Use a string literal instead. | ||||
|  */ | ||||
| export declare enum NotificationKind { | ||||
|     NEXT = "N", | ||||
|     ERROR = "E", | ||||
|     COMPLETE = "C" | ||||
| } | ||||
| /** | ||||
|  * Represents a push-based event or value that an {@link Observable} can emit. | ||||
|  * This class is particularly useful for operators that manage notifications, | ||||
|  * like {@link materialize}, {@link dematerialize}, {@link observeOn}, and | ||||
|  * others. Besides wrapping the actual delivered value, it also annotates it | ||||
|  * with metadata of, for instance, what type of push message it is (`next`, | ||||
|  * `error`, or `complete`). | ||||
|  * | ||||
|  * @see {@link materialize} | ||||
|  * @see {@link dematerialize} | ||||
|  * @see {@link observeOn} | ||||
|  * | ||||
|  * @class Notification<T> | ||||
|  */ | ||||
| export declare class Notification<T> { | ||||
|     kind: 'N' | 'E' | 'C'; | ||||
|     value?: T; | ||||
|     error?: any; | ||||
|     hasValue: boolean; | ||||
|     constructor(kind: 'N' | 'E' | 'C', value?: T, error?: any); | ||||
|     /** | ||||
|      * Delivers to the given `observer` the value wrapped by this Notification. | ||||
|      * @param {Observer} observer | ||||
|      * @return | ||||
|      */ | ||||
|     observe(observer: PartialObserver<T>): any; | ||||
|     /** | ||||
|      * Given some {@link Observer} callbacks, deliver the value represented by the | ||||
|      * current Notification to the correctly corresponding callback. | ||||
|      * @param {function(value: T): void} next An Observer `next` callback. | ||||
|      * @param {function(err: any): void} [error] An Observer `error` callback. | ||||
|      * @param {function(): void} [complete] An Observer `complete` callback. | ||||
|      * @return {any} | ||||
|      */ | ||||
|     do(next: (value: T) => void, error?: (err: any) => void, complete?: () => void): any; | ||||
|     /** | ||||
|      * Takes an Observer or its individual callback functions, and calls `observe` | ||||
|      * or `do` methods accordingly. | ||||
|      * @param {Observer|function(value: T): void} nextOrObserver An Observer or | ||||
|      * the `next` callback. | ||||
|      * @param {function(err: any): void} [error] An Observer `error` callback. | ||||
|      * @param {function(): void} [complete] An Observer `complete` callback. | ||||
|      * @return {any} | ||||
|      */ | ||||
|     accept(nextOrObserver: PartialObserver<T> | ((value: T) => void), error?: (err: any) => void, complete?: () => void): any; | ||||
|     /** | ||||
|      * Returns a simple Observable that just delivers the notification represented | ||||
|      * by this Notification instance. | ||||
|      * @return {any} | ||||
|      */ | ||||
|     toObservable(): Observable<T>; | ||||
|     private static completeNotification; | ||||
|     private static undefinedValueNotification; | ||||
|     /** | ||||
|      * A shortcut to create a Notification instance of the type `next` from a | ||||
|      * given value. | ||||
|      * @param {T} value The `next` value. | ||||
|      * @return {Notification<T>} The "next" Notification representing the | ||||
|      * argument. | ||||
|      * @nocollapse | ||||
|      */ | ||||
|     static createNext<T>(value: T): Notification<T>; | ||||
|     /** | ||||
|      * A shortcut to create a Notification instance of the type `error` from a | ||||
|      * given error. | ||||
|      * @param {any} [err] The `error` error. | ||||
|      * @return {Notification<T>} The "error" Notification representing the | ||||
|      * argument. | ||||
|      * @nocollapse | ||||
|      */ | ||||
|     static createError<T>(err?: any): Notification<T>; | ||||
|     /** | ||||
|      * A shortcut to create a Notification instance of the type `complete`. | ||||
|      * @return {Notification<any>} The valueless "complete" Notification. | ||||
|      * @nocollapse | ||||
|      */ | ||||
|     static createComplete(): Notification<any>; | ||||
| } | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"zip.js","sources":["../src/operators/zip.ts"],"names":[],"mappings":";;;;;AAAA,+CAA0C"} | ||||
| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"fromEventPattern.js","sources":["../../../src/internal/observable/fromEventPattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAwIvC,MAAM,UAAU,gBAAgB,CAAI,UAA8C,EAC9C,aAAiE,EACjE,cAAsC;IAExE,IAAI,cAAc,EAAE;QAElB,OAAO,gBAAgB,CAAI,UAAU,EAAE,aAAa,CAAC,CAAC,IAAI,CACxD,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAC5E,CAAC;KACH;IAED,OAAO,IAAI,UAAU,CAAU,UAAU,CAAC,EAAE;QAC1C,MAAM,OAAO,GAAG,CAAC,GAAG,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAE1E,IAAI,QAAa,CAAC;QAClB,IAAI;YACF,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;SAChC;QAAC,OAAO,GAAG,EAAE;YACZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACtB,OAAO,SAAS,CAAC;SAClB;QAED,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;YAC9B,OAAO,SAAS,CAAC;SAClB;QAED,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAE;IACjD,CAAC,CAAC,CAAC;AACL,CAAC"} | ||||
| @@ -0,0 +1,38 @@ | ||||
| { | ||||
|     "root": true, | ||||
|  | ||||
|     "extends": "@ljharb", | ||||
|  | ||||
|     "ignorePatterns": [ | ||||
|         "dist/", | ||||
|     ], | ||||
|  | ||||
|     "rules": { | ||||
|         "complexity": 0, | ||||
|         "consistent-return": 1, | ||||
|         "func-name-matching": 0, | ||||
|         "id-length": [2, { "min": 1, "max": 25, "properties": "never" }], | ||||
|         "indent": [2, 4], | ||||
|         "max-lines-per-function": [2, { "max": 150 }], | ||||
|         "max-params": [2, 16], | ||||
|         "max-statements": [2, 53], | ||||
|         "multiline-comment-style": 0, | ||||
|         "no-continue": 1, | ||||
|         "no-magic-numbers": 0, | ||||
|         "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"], | ||||
|     }, | ||||
|  | ||||
|     "overrides": [ | ||||
|         { | ||||
|             "files": "test/**", | ||||
|             "rules": { | ||||
|                 "function-paren-newline": 0, | ||||
|                 "max-lines-per-function": 0, | ||||
|                 "max-statements": 0, | ||||
|                 "no-buffer-constructor": 0, | ||||
|                 "no-extend-native": 0, | ||||
|                 "no-throw-literal": 0, | ||||
|             }, | ||||
|         }, | ||||
|     ], | ||||
| } | ||||
| @@ -0,0 +1,746 @@ | ||||
| /** | ||||
|  * Options for compressing data into a DEFLATE format | ||||
|  */ | ||||
| export interface DeflateOptions { | ||||
|     /** | ||||
|      * The level of compression to use, ranging from 0-9. | ||||
|      * | ||||
|      * 0 will store the data without compression. | ||||
|      * 1 is fastest but compresses the worst, 9 is slowest but compresses the best. | ||||
|      * The default level is 6. | ||||
|      * | ||||
|      * Typically, binary data benefits much more from higher values than text data. | ||||
|      * In both cases, higher values usually take disproportionately longer than the reduction in final size that results. | ||||
|      * | ||||
|      * For example, a 1 MB text file could: | ||||
|      * - become 1.01 MB with level 0 in 1ms | ||||
|      * - become 400 kB with level 1 in 10ms | ||||
|      * - become 320 kB with level 9 in 100ms | ||||
|      */ | ||||
|     level?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; | ||||
|     /** | ||||
|      * The memory level to use, ranging from 0-12. Increasing this increases speed and compression ratio at the cost of memory. | ||||
|      * | ||||
|      * Note that this is exponential: while level 0 uses 4 kB, level 4 uses 64 kB, level 8 uses 1 MB, and level 12 uses 16 MB. | ||||
|      * It is recommended not to lower the value below 4, since that tends to hurt performance. | ||||
|      * In addition, values above 8 tend to help very little on most data and can even hurt performance. | ||||
|      * | ||||
|      * The default value is automatically determined based on the size of the input data. | ||||
|      */ | ||||
|     mem?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; | ||||
| } | ||||
| /** | ||||
|  * Options for compressing data into a GZIP format | ||||
|  */ | ||||
| export interface GzipOptions extends DeflateOptions { | ||||
|     /** | ||||
|      * When the file was last modified. Defaults to the current time. | ||||
|      * If you're using GZIP, set this to 0 to avoid revealing a modification date entirely. | ||||
|      */ | ||||
|     mtime?: Date | string | number; | ||||
|     /** | ||||
|      * The filename of the data. If the `gunzip` command is used to decompress the data, it will output a file | ||||
|      * with this name instead of the name of the compressed file. | ||||
|      */ | ||||
|     filename?: string; | ||||
| } | ||||
| /** | ||||
|  * Options for compressing data into a Zlib format | ||||
|  */ | ||||
| export interface ZlibOptions extends DeflateOptions { | ||||
| } | ||||
| /** | ||||
|  * Handler for data (de)compression streams | ||||
|  * @param data The data output from the stream processor | ||||
|  * @param final Whether this is the final block | ||||
|  */ | ||||
| export declare type FlateStreamHandler = (data: Uint8Array, final: boolean) => void; | ||||
| /** | ||||
|  * Handler for asynchronous data (de)compression streams | ||||
|  * @param err Any error that occurred | ||||
|  * @param data The data output from the stream processor | ||||
|  * @param final Whether this is the final block | ||||
|  */ | ||||
| export declare type AsyncFlateStreamHandler = (err: Error, data: Uint8Array, final: boolean) => void; | ||||
| /** | ||||
|  * Callback for asynchronous (de)compression methods | ||||
|  * @param err Any error that occurred | ||||
|  * @param data The resulting data. Only present if `err` is null | ||||
|  */ | ||||
| export declare type FlateCallback = (err: Error, data: Uint8Array) => void; | ||||
| interface AsyncOptions { | ||||
|     /** | ||||
|      * Whether or not to "consume" the source data. This will make the typed array/buffer you pass in | ||||
|      * unusable but will increase performance and reduce memory usage. | ||||
|      */ | ||||
|     consume?: boolean; | ||||
| } | ||||
| /** | ||||
|  * Options for compressing data asynchronously into a DEFLATE format | ||||
|  */ | ||||
| export interface AsyncDeflateOptions extends DeflateOptions, AsyncOptions { | ||||
| } | ||||
| /** | ||||
|  * Options for decompressing DEFLATE data asynchronously | ||||
|  */ | ||||
| export interface AsyncInflateOptions extends AsyncOptions { | ||||
|     /** | ||||
|      * The original size of the data. Currently, the asynchronous API disallows | ||||
|      * writing into a buffer you provide; the best you can do is provide the | ||||
|      * size in bytes and be given back a new typed array. | ||||
|      */ | ||||
|     size?: number; | ||||
| } | ||||
| /** | ||||
|  * Options for compressing data asynchronously into a GZIP format | ||||
|  */ | ||||
| export interface AsyncGzipOptions extends GzipOptions, AsyncOptions { | ||||
| } | ||||
| /** | ||||
|  * Options for decompressing GZIP data asynchronously | ||||
|  */ | ||||
| export interface AsyncGunzipOptions extends AsyncOptions { | ||||
| } | ||||
| /** | ||||
|  * Options for compressing data asynchronously into a Zlib format | ||||
|  */ | ||||
| export interface AsyncZlibOptions extends ZlibOptions, AsyncOptions { | ||||
| } | ||||
| /** | ||||
|  * Options for decompressing Zlib data asynchronously | ||||
|  */ | ||||
| export interface AsyncUnzlibOptions extends AsyncInflateOptions { | ||||
| } | ||||
| /** | ||||
|  * A terminable compression/decompression process | ||||
|  */ | ||||
| export interface AsyncTerminable { | ||||
|     /** | ||||
|      * Terminates the worker thread immediately. The callback will not be called. | ||||
|      */ | ||||
|     (): void; | ||||
| } | ||||
| /** | ||||
|  * Streaming DEFLATE compression | ||||
|  */ | ||||
| export declare class Deflate { | ||||
|     /** | ||||
|      * Creates a DEFLATE stream | ||||
|      * @param opts The compression options | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(opts: DeflateOptions, cb?: FlateStreamHandler); | ||||
|     constructor(cb?: FlateStreamHandler); | ||||
|     private o; | ||||
|     private d; | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: FlateStreamHandler; | ||||
|     private p; | ||||
|     /** | ||||
|      * Pushes a chunk to be deflated | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
| } | ||||
| /** | ||||
|  * Asynchronous streaming DEFLATE compression | ||||
|  */ | ||||
| export declare class AsyncDeflate { | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: AsyncFlateStreamHandler; | ||||
|     /** | ||||
|      * Creates an asynchronous DEFLATE stream | ||||
|      * @param opts The compression options | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(opts: DeflateOptions, cb?: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * Creates an asynchronous DEFLATE stream | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(cb?: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be deflated | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
|     /** | ||||
|      * A method to terminate the stream's internal worker. Subsequent calls to | ||||
|      * push() will silently fail. | ||||
|      */ | ||||
|     terminate: AsyncTerminable; | ||||
| } | ||||
| /** | ||||
|  * Asynchronously compresses data with DEFLATE without any wrapper | ||||
|  * @param data The data to compress | ||||
|  * @param opts The compression options | ||||
|  * @param cb The function to be called upon compression completion | ||||
|  * @returns A function that can be used to immediately terminate the compression | ||||
|  */ | ||||
| export declare function deflate(data: Uint8Array, opts: AsyncDeflateOptions, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Asynchronously compresses data with DEFLATE without any wrapper | ||||
|  * @param data The data to compress | ||||
|  * @param cb The function to be called upon compression completion | ||||
|  */ | ||||
| export declare function deflate(data: Uint8Array, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Compresses data with DEFLATE without any wrapper | ||||
|  * @param data The data to compress | ||||
|  * @param opts The compression options | ||||
|  * @returns The deflated version of the data | ||||
|  */ | ||||
| export declare function deflateSync(data: Uint8Array, opts?: DeflateOptions): Uint8Array; | ||||
| /** | ||||
|  * Streaming DEFLATE decompression | ||||
|  */ | ||||
| export declare class Inflate { | ||||
|     /** | ||||
|      * Creates an inflation stream | ||||
|      * @param cb The callback to call whenever data is inflated | ||||
|      */ | ||||
|     constructor(cb?: FlateStreamHandler); | ||||
|     private s; | ||||
|     private o; | ||||
|     private p; | ||||
|     private d; | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: FlateStreamHandler; | ||||
|     private e; | ||||
|     private c; | ||||
|     /** | ||||
|      * Pushes a chunk to be inflated | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the final chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
| } | ||||
| /** | ||||
|  * Asynchronous streaming DEFLATE decompression | ||||
|  */ | ||||
| export declare class AsyncInflate { | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: AsyncFlateStreamHandler; | ||||
|     /** | ||||
|      * Creates an asynchronous inflation stream | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(cb?: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be inflated | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
|     /** | ||||
|      * A method to terminate the stream's internal worker. Subsequent calls to | ||||
|      * push() will silently fail. | ||||
|      */ | ||||
|     terminate: AsyncTerminable; | ||||
| } | ||||
| /** | ||||
|  * Asynchronously expands DEFLATE data with no wrapper | ||||
|  * @param data The data to decompress | ||||
|  * @param opts The decompression options | ||||
|  * @param cb The function to be called upon decompression completion | ||||
|  * @returns A function that can be used to immediately terminate the decompression | ||||
|  */ | ||||
| export declare function inflate(data: Uint8Array, opts: AsyncInflateOptions, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Asynchronously expands DEFLATE data with no wrapper | ||||
|  * @param data The data to decompress | ||||
|  * @param cb The function to be called upon decompression completion | ||||
|  * @returns A function that can be used to immediately terminate the decompression | ||||
|  */ | ||||
| export declare function inflate(data: Uint8Array, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Expands DEFLATE data with no wrapper | ||||
|  * @param data The data to decompress | ||||
|  * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length. | ||||
|  * @returns The decompressed version of the data | ||||
|  */ | ||||
| export declare function inflateSync(data: Uint8Array, out?: Uint8Array): Uint8Array; | ||||
| /** | ||||
|  * Streaming GZIP compression | ||||
|  */ | ||||
| export declare class Gzip { | ||||
|     private c; | ||||
|     private l; | ||||
|     private v; | ||||
|     private o; | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: FlateStreamHandler; | ||||
|     /** | ||||
|      * Creates a GZIP stream | ||||
|      * @param opts The compression options | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(opts: GzipOptions, cb?: FlateStreamHandler); | ||||
|     /** | ||||
|      * Creates a GZIP stream | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(cb?: FlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be GZIPped | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
|     private p; | ||||
| } | ||||
| /** | ||||
|  * Asynchronous streaming GZIP compression | ||||
|  */ | ||||
| export declare class AsyncGzip { | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: AsyncFlateStreamHandler; | ||||
|     /** | ||||
|      * Creates an asynchronous GZIP stream | ||||
|      * @param opts The compression options | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(opts: GzipOptions, cb?: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * Creates an asynchronous GZIP stream | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(cb?: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be GZIPped | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
|     /** | ||||
|      * A method to terminate the stream's internal worker. Subsequent calls to | ||||
|      * push() will silently fail. | ||||
|      */ | ||||
|     terminate: AsyncTerminable; | ||||
| } | ||||
| /** | ||||
|  * Asynchronously compresses data with GZIP | ||||
|  * @param data The data to compress | ||||
|  * @param opts The compression options | ||||
|  * @param cb The function to be called upon compression completion | ||||
|  * @returns A function that can be used to immediately terminate the compression | ||||
|  */ | ||||
| export declare function gzip(data: Uint8Array, opts: AsyncGzipOptions, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Asynchronously compresses data with GZIP | ||||
|  * @param data The data to compress | ||||
|  * @param cb The function to be called upon compression completion | ||||
|  * @returns A function that can be used to immediately terminate the decompression | ||||
|  */ | ||||
| export declare function gzip(data: Uint8Array, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Compresses data with GZIP | ||||
|  * @param data The data to compress | ||||
|  * @param opts The compression options | ||||
|  * @returns The gzipped version of the data | ||||
|  */ | ||||
| export declare function gzipSync(data: Uint8Array, opts?: GzipOptions): Uint8Array; | ||||
| /** | ||||
|  * Streaming GZIP decompression | ||||
|  */ | ||||
| export declare class Gunzip { | ||||
|     private v; | ||||
|     private p; | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: FlateStreamHandler; | ||||
|     /** | ||||
|      * Creates a GUNZIP stream | ||||
|      * @param cb The callback to call whenever data is inflated | ||||
|      */ | ||||
|     constructor(cb?: FlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be GUNZIPped | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
| } | ||||
| /** | ||||
|  * Asynchronous streaming GZIP decompression | ||||
|  */ | ||||
| export declare class AsyncGunzip { | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: AsyncFlateStreamHandler; | ||||
|     /** | ||||
|      * Creates an asynchronous GUNZIP stream | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(cb: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be GUNZIPped | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
|     /** | ||||
|      * A method to terminate the stream's internal worker. Subsequent calls to | ||||
|      * push() will silently fail. | ||||
|      */ | ||||
|     terminate: AsyncTerminable; | ||||
| } | ||||
| /** | ||||
|  * Asynchronously expands GZIP data | ||||
|  * @param data The data to decompress | ||||
|  * @param opts The decompression options | ||||
|  * @param cb The function to be called upon decompression completion | ||||
|  * @returns A function that can be used to immediately terminate the decompression | ||||
|  */ | ||||
| export declare function gunzip(data: Uint8Array, opts: AsyncGunzipOptions, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Asynchronously expands GZIP data | ||||
|  * @param data The data to decompress | ||||
|  * @param cb The function to be called upon decompression completion | ||||
|  * @returns A function that can be used to immediately terminate the decompression | ||||
|  */ | ||||
| export declare function gunzip(data: Uint8Array, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Expands GZIP data | ||||
|  * @param data The data to decompress | ||||
|  * @param out Where to write the data. GZIP already encodes the output size, so providing this doesn't save memory. | ||||
|  * @returns The decompressed version of the data | ||||
|  */ | ||||
| export declare function gunzipSync(data: Uint8Array, out?: Uint8Array): Uint8Array; | ||||
| /** | ||||
|  * Streaming Zlib compression | ||||
|  */ | ||||
| export declare class Zlib { | ||||
|     private c; | ||||
|     private v; | ||||
|     private o; | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: FlateStreamHandler; | ||||
|     /** | ||||
|      * Creates a Zlib stream | ||||
|      * @param opts The compression options | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(opts: ZlibOptions, cb?: FlateStreamHandler); | ||||
|     /** | ||||
|      * Creates a Zlib stream | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(cb?: FlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be zlibbed | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
|     private p; | ||||
| } | ||||
| /** | ||||
|  * Asynchronous streaming Zlib compression | ||||
|  */ | ||||
| export declare class AsyncZlib { | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: AsyncFlateStreamHandler; | ||||
|     /** | ||||
|      * Creates an asynchronous DEFLATE stream | ||||
|      * @param opts The compression options | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(opts: ZlibOptions, cb?: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * Creates an asynchronous DEFLATE stream | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(cb?: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be deflated | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
|     /** | ||||
|      * A method to terminate the stream's internal worker. Subsequent calls to | ||||
|      * push() will silently fail. | ||||
|      */ | ||||
|     terminate: AsyncTerminable; | ||||
| } | ||||
| /** | ||||
|  * Asynchronously compresses data with Zlib | ||||
|  * @param data The data to compress | ||||
|  * @param opts The compression options | ||||
|  * @param cb The function to be called upon compression completion | ||||
|  */ | ||||
| export declare function zlib(data: Uint8Array, opts: AsyncZlibOptions, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Asynchronously compresses data with Zlib | ||||
|  * @param data The data to compress | ||||
|  * @param cb The function to be called upon compression completion | ||||
|  * @returns A function that can be used to immediately terminate the compression | ||||
|  */ | ||||
| export declare function zlib(data: Uint8Array, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Compress data with Zlib | ||||
|  * @param data The data to compress | ||||
|  * @param opts The compression options | ||||
|  * @returns The zlib-compressed version of the data | ||||
|  */ | ||||
| export declare function zlibSync(data: Uint8Array, opts?: ZlibOptions): Uint8Array; | ||||
| /** | ||||
|  * Streaming Zlib decompression | ||||
|  */ | ||||
| export declare class Unzlib { | ||||
|     private v; | ||||
|     private p; | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: FlateStreamHandler; | ||||
|     /** | ||||
|      * Creates a Zlib decompression stream | ||||
|      * @param cb The callback to call whenever data is inflated | ||||
|      */ | ||||
|     constructor(cb?: FlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be unzlibbed | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
| } | ||||
| /** | ||||
|  * Asynchronous streaming Zlib decompression | ||||
|  */ | ||||
| export declare class AsyncUnzlib { | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: AsyncFlateStreamHandler; | ||||
|     /** | ||||
|      * Creates an asynchronous Zlib decompression stream | ||||
|      * @param cb The callback to call whenever data is deflated | ||||
|      */ | ||||
|     constructor(cb?: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * Pushes a chunk to be decompressed from Zlib | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
|     /** | ||||
|      * A method to terminate the stream's internal worker. Subsequent calls to | ||||
|      * push() will silently fail. | ||||
|      */ | ||||
|     terminate: AsyncTerminable; | ||||
| } | ||||
| /** | ||||
|  * Asynchronously expands Zlib data | ||||
|  * @param data The data to decompress | ||||
|  * @param opts The decompression options | ||||
|  * @param cb The function to be called upon decompression completion | ||||
|  * @returns A function that can be used to immediately terminate the decompression | ||||
|  */ | ||||
| export declare function unzlib(data: Uint8Array, opts: AsyncGunzipOptions, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Asynchronously expands Zlib data | ||||
|  * @param data The data to decompress | ||||
|  * @param cb The function to be called upon decompression completion | ||||
|  * @returns A function that can be used to immediately terminate the decompression | ||||
|  */ | ||||
| export declare function unzlib(data: Uint8Array, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Expands Zlib data | ||||
|  * @param data The data to decompress | ||||
|  * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length. | ||||
|  * @returns The decompressed version of the data | ||||
|  */ | ||||
| export declare function unzlibSync(data: Uint8Array, out?: Uint8Array): Uint8Array; | ||||
| export { gzip as compress, AsyncGzip as AsyncCompress }; | ||||
| export { gzipSync as compressSync, Gzip as Compress }; | ||||
| /** | ||||
|  * Streaming GZIP, Zlib, or raw DEFLATE decompression | ||||
|  */ | ||||
| export declare class Decompress { | ||||
|     private G; | ||||
|     private I; | ||||
|     private Z; | ||||
|     /** | ||||
|      * Creates a decompression stream | ||||
|      * @param cb The callback to call whenever data is decompressed | ||||
|      */ | ||||
|     constructor(cb?: FlateStreamHandler); | ||||
|     private s; | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: FlateStreamHandler; | ||||
|     private p; | ||||
|     /** | ||||
|      * Pushes a chunk to be decompressed | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
| } | ||||
| /** | ||||
|  * Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression | ||||
|  */ | ||||
| export declare class AsyncDecompress { | ||||
|     private G; | ||||
|     private I; | ||||
|     private Z; | ||||
|     /** | ||||
|    * Creates an asynchronous decompression stream | ||||
|    * @param cb The callback to call whenever data is decompressed | ||||
|    */ | ||||
|     constructor(cb?: AsyncFlateStreamHandler); | ||||
|     /** | ||||
|      * The handler to call whenever data is available | ||||
|      */ | ||||
|     ondata: AsyncFlateStreamHandler; | ||||
|     /** | ||||
|      * Pushes a chunk to be decompressed | ||||
|      * @param chunk The chunk to push | ||||
|      * @param final Whether this is the last chunk | ||||
|      */ | ||||
|     push(chunk: Uint8Array, final?: boolean): void; | ||||
| } | ||||
| /** | ||||
|  * Asynchrononously expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format | ||||
|  * @param data The data to decompress | ||||
|  * @param opts The decompression options | ||||
|  * @param cb The function to be called upon decompression completion | ||||
|  * @returns A function that can be used to immediately terminate the decompression | ||||
|  */ | ||||
| export declare function decompress(data: Uint8Array, opts: AsyncInflateOptions, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Asynchrononously expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format | ||||
|  * @param data The data to decompress | ||||
|  * @param cb The function to be called upon decompression completion | ||||
|  * @returns A function that can be used to immediately terminate the decompression | ||||
|  */ | ||||
| export declare function decompress(data: Uint8Array, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format | ||||
|  * @param data The data to decompress | ||||
|  * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length. | ||||
|  * @returns The decompressed version of the data | ||||
|  */ | ||||
| export declare function decompressSync(data: Uint8Array, out?: Uint8Array): Uint8Array; | ||||
| /** | ||||
|  * Options for creating a ZIP archive | ||||
|  */ | ||||
| export interface ZipOptions extends DeflateOptions, Pick<GzipOptions, 'mtime'> { | ||||
| } | ||||
| /** | ||||
|  * Options for asynchronously creating a ZIP archive | ||||
|  */ | ||||
| export interface AsyncZipOptions extends AsyncDeflateOptions, Pick<AsyncGzipOptions, 'mtime'> { | ||||
| } | ||||
| /** | ||||
|  * Options for asynchronously expanding a ZIP archive | ||||
|  */ | ||||
| export interface AsyncUnzipOptions extends AsyncOptions { | ||||
| } | ||||
| /** | ||||
|  * A file that can be used to create a ZIP archive | ||||
|  */ | ||||
| export declare type ZippableFile = Uint8Array | [Uint8Array, ZipOptions]; | ||||
| /** | ||||
|  * A file that can be used to asynchronously create a ZIP archive | ||||
|  */ | ||||
| export declare type AsyncZippableFile = Uint8Array | [Uint8Array, AsyncZipOptions]; | ||||
| /** | ||||
|  * The complete directory structure of a ZIPpable archive | ||||
|  */ | ||||
| export interface Zippable extends Record<string, Zippable | ZippableFile> { | ||||
| } | ||||
| /** | ||||
|  * The complete directory structure of an asynchronously ZIPpable archive | ||||
|  */ | ||||
| export interface AsyncZippable extends Record<string, AsyncZippable | AsyncZippableFile> { | ||||
| } | ||||
| /** | ||||
|  * An unzipped archive. The full path of each file is used as the key, | ||||
|  * and the file is the value | ||||
|  */ | ||||
| export interface Unzipped extends Record<string, Uint8Array> { | ||||
| } | ||||
| /** | ||||
|  * Callback for asynchronous ZIP decompression | ||||
|  * @param err Any error that occurred | ||||
|  * @param data The decompressed ZIP archive | ||||
|  */ | ||||
| export declare type UnzipCallback = (err: Error, data: Unzipped) => void; | ||||
| /** | ||||
|  * Converts a string into a Uint8Array for use with compression/decompression methods | ||||
|  * @param str The string to encode | ||||
|  * @param latin1 Whether or not to interpret the data as Latin-1. This should | ||||
|  *               not need to be true unless decoding a binary string. | ||||
|  * @returns The string encoded in UTF-8/Latin-1 binary | ||||
|  */ | ||||
| export declare function strToU8(str: string, latin1?: boolean): Uint8Array; | ||||
| /** | ||||
|  * Converts a Uint8Array to a string | ||||
|  * @param dat The data to decode to string | ||||
|  * @param latin1 Whether or not to interpret the data as Latin-1. This should | ||||
|  *               not need to be true unless encoding to binary string. | ||||
|  * @returns The original UTF-8/Latin-1 string | ||||
|  */ | ||||
| export declare function strFromU8(dat: Uint8Array, latin1?: boolean): string; | ||||
| /** | ||||
|  * Asynchronously creates a ZIP file | ||||
|  * @param data The directory structure for the ZIP archive | ||||
|  * @param opts The main options, merged with per-file options | ||||
|  * @param cb The callback to call with the generated ZIP archive | ||||
|  * @returns A function that can be used to immediately terminate the compression | ||||
|  */ | ||||
| export declare function zip(data: AsyncZippable, opts: AsyncZipOptions, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Asynchronously creates a ZIP file | ||||
|  * @param data The directory structure for the ZIP archive | ||||
|  * @param cb The callback to call with the generated ZIP archive | ||||
|  * @returns A function that can be used to immediately terminate the compression | ||||
|  */ | ||||
| export declare function zip(data: AsyncZippable, cb: FlateCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Synchronously creates a ZIP file. Prefer using `zip` for better performance | ||||
|  * with more than one file. | ||||
|  * @param data The directory structure for the ZIP archive | ||||
|  * @param opts The main options, merged with per-file options | ||||
|  * @returns The generated ZIP archive | ||||
|  */ | ||||
| export declare function zipSync(data: Zippable, opts?: ZipOptions): Uint8Array; | ||||
| /** | ||||
|  * Asynchronously decompresses a ZIP archive | ||||
|  * @param data The raw compressed ZIP file | ||||
|  * @param cb The callback to call with the decompressed files | ||||
|  * @returns A function that can be used to immediately terminate the unzipping | ||||
|  */ | ||||
| export declare function unzip(data: Uint8Array, cb: UnzipCallback): AsyncTerminable; | ||||
| /** | ||||
|  * Synchronously decompresses a ZIP archive. Prefer using `unzip` for better | ||||
|  * performance with more than one file. | ||||
|  * @param data The raw compressed ZIP file | ||||
|  * @returns The decompressed files | ||||
|  */ | ||||
| export declare function unzipSync(data: Uint8Array): Unzipped; | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user