new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/operator/concatAll");
|
||||
//# sourceMappingURL=concatAll.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"cli-width","version":"3.0.0","files":{"LICENSE":{"checkedAt":1678887830111,"integrity":"sha512-fFK4YSkcYd4SxyxrowezrFqymzyIHxDLfeSDo8XkMKnQoEI9Vh757PeCTq/VHNCwoQo5ZqGc9xQDHOjC8G6Ksw==","mode":420,"size":759},"index.js":{"checkedAt":1678887830111,"integrity":"sha512-MERKn6csttQHn1lS6h5bXTjtL2uvZtdow4ss2mA6dP4z6MPGp8kCBtsv7sXcl3qY7PxHHvUyORL51qYvK0Ol9Q==","mode":420,"size":907},".nyc_output/00ef1b3d-3687-482b-8d03-de2f76b58f54.json":{"checkedAt":1678887830111,"integrity":"sha512-WqZntKxCHdo03s+8G8JPrWf/2WfsVE20q+id/N3nwNgMtCct3CLOO2Zc7AMAkMwc/12cp4YyOmPONNEg4Y3NXA==","mode":420,"size":4857},".nyc_output/processinfo/00ef1b3d-3687-482b-8d03-de2f76b58f54.json":{"checkedAt":1678887830111,"integrity":"sha512-GZ1uJ06MAAW6MzblbEK3+s0cA95SWn/2sVRLc9t60yCz13YjGZu+TQWXMoYXM+Nmbw8eh7S2/lINBgy2RVG33g==","mode":420,"size":449},"package.json":{"checkedAt":1678887830111,"integrity":"sha512-xx/lzlcmFHHGd5j9KVf0EG5i3jzmrUVnLVbgXhN1kMnuour3qD+AUVJe+/0E/QV4xmbMXG63I+af8ZuSU5UxDg==","mode":420,"size":867},"CHANGELOG.md":{"checkedAt":1678887830111,"integrity":"sha512-Ejpfdckonz6tjyB5SDKB3+ve4zQou9XtcubjeHbyLP4IIDAfJJA5EtT0o8lrtARqTYlfxxtNrztWac22ZozCag==","mode":420,"size":1521},".nyc_output/processinfo/index.json":{"checkedAt":1678887830111,"integrity":"sha512-WHPcs3IXvQ1Id3IcASiRlUTyY2vIbWlkKO8OpD8x+lpLZqYzXxFxjapJu/ED243M7+Kdo9yxG6HcQHxqi9Ij1Q==","mode":420,"size":196},"README.md":{"checkedAt":1678887830118,"integrity":"sha512-zA6GdU8DUxYe77NtIF0+tGYHQKB6gIqupJZ0Oz5GsyAhR+0jBSM96mr7b+Xro9qrAqiK7yFbtP0qbm2o7NDfcg==","mode":420,"size":1846},".travis.yml":{"checkedAt":1678887830118,"integrity":"sha512-lmqx0gHRHu7v0TDZHoWaWD/WnMdi/F9aZTnMps0/GtO5Jnivp7M/w1BKwJkr8gF9mFGte29KI8UiCkdbLn4ZFQ==","mode":420,"size":92}}}
|
||||
@@ -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/util/errorObject"));
|
||||
//# sourceMappingURL=errorObject.js.map
|
||||
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CancelError = exports.ParseError = void 0;
|
||||
const core_1 = require("../core");
|
||||
/**
|
||||
An error to be thrown when server response code is 2xx, and parsing body fails.
|
||||
Includes a `response` property.
|
||||
*/
|
||||
class ParseError extends core_1.RequestError {
|
||||
constructor(error, response) {
|
||||
const { options } = response.request;
|
||||
super(`${error.message} in "${options.url.toString()}"`, error, response.request);
|
||||
this.name = 'ParseError';
|
||||
}
|
||||
}
|
||||
exports.ParseError = ParseError;
|
||||
/**
|
||||
An error to be thrown when the request is aborted with `.cancel()`.
|
||||
*/
|
||||
class CancelError extends core_1.RequestError {
|
||||
constructor(request) {
|
||||
super('Promise was canceled', {}, request);
|
||||
this.name = 'CancelError';
|
||||
}
|
||||
get isCanceled() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
exports.CancelError = CancelError;
|
||||
__exportStar(require("../core"), exports);
|
||||
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/operator/startWith';
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "expect",
|
||||
"homepage": "https://github.com/LearnBoost/expect.js",
|
||||
"version": "0.3.1",
|
||||
"_release": "0.3.1",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "0.3.1",
|
||||
"commit": "68ce6a98a5008ec0a11298e026ee00ad0142f118"
|
||||
},
|
||||
"_source": "https://github.com/LearnBoost/expect.js.git",
|
||||
"_target": "~0.3.1",
|
||||
"_originalSource": "expect"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["../src/fetch/index.ts"],"names":[],"mappings":";;AAAA,0DAA6D;AAApD,4BAAA,SAAS,CAAA"}
|
||||
@@ -0,0 +1 @@
|
||||
export const VERSION = "2.21.3";
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"single.js","sources":["../../../src/internal/operators/single.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAkDhD,MAAM,UAAU,MAAM,CAAI,SAAuE;IAC/F,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AACvF,CAAC;AAED,MAAM,cAAc;IAClB,YAAoB,SAAuE,EACvE,MAAsB;QADtB,cAAS,GAAT,SAAS,CAA8D;QACvE,WAAM,GAAN,MAAM,CAAgB;IAC1C,CAAC;IAED,IAAI,CAAC,UAAyB,EAAE,MAAW;QACzC,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACzF,CAAC;CACF;AAOD,MAAM,gBAAoB,SAAQ,UAAa;IAK7C,YAAY,WAAwB,EAChB,SAAuE,EACvE,MAAsB;QACxC,KAAK,CAAC,WAAW,CAAC,CAAC;QAFD,cAAS,GAAT,SAAS,CAA8D;QACvE,WAAM,GAAN,MAAM,CAAgB;QANlC,cAAS,GAAY,KAAK,CAAC;QAE3B,UAAK,GAAW,CAAC,CAAC;IAM1B,CAAC;IAEO,gBAAgB,CAAC,KAAQ;QAC/B,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;SACnE;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YACtB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;SAC1B;IACH,CAAC;IAES,KAAK,CAAC,KAAQ;QACtB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;QAE3B,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;SAC5B;aAAM;YACL,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;SAC9B;IACH,CAAC;IAEO,OAAO,CAAC,KAAQ,EAAE,KAAa;QACrC,IAAI;YACF,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;gBAC7C,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;aAC9B;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC7B;IACH,CAAC;IAES,SAAS;QACjB,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QAErC,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YAClB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAChE,WAAW,CAAC,QAAQ,EAAE,CAAC;SACxB;aAAM;YACL,WAAW,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,CAAC;SACnC;IACH,CAAC;CACF"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"sample.js","sources":["../src/operators/sample.ts"],"names":[],"mappings":";;;;;AAAA,kDAA6C"}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"author": "Felix Geisendörfer <felix@debuggable.com> (http://debuggable.com/)",
|
||||
"name": "form-data",
|
||||
"description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.",
|
||||
"version": "4.0.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/form-data/form-data.git"
|
||||
},
|
||||
"main": "./lib/form_data",
|
||||
"browser": "./lib/browser",
|
||||
"typings": "./index.d.ts",
|
||||
"scripts": {
|
||||
"pretest": "rimraf coverage test/tmp",
|
||||
"test": "istanbul cover test/run.js",
|
||||
"posttest": "istanbul report lcov text",
|
||||
"lint": "eslint lib/*.js test/*.js test/integration/*.js",
|
||||
"report": "istanbul report lcov text",
|
||||
"ci-lint": "is-node-modern 8 && npm run lint || is-node-not-modern 8",
|
||||
"ci-test": "npm run test && npm run browser && npm run report",
|
||||
"predebug": "rimraf coverage test/tmp",
|
||||
"debug": "verbose=1 ./test/run.js",
|
||||
"browser": "browserify -t browserify-istanbul test/run-browser.js | obake --coverage",
|
||||
"check": "istanbul check-coverage coverage/coverage*.json",
|
||||
"files": "pkgfiles --sort=name",
|
||||
"get-version": "node -e \"console.log(require('./package.json').version)\"",
|
||||
"update-readme": "sed -i.bak 's/\\/master\\.svg/\\/v'$(npm --silent run get-version)'.svg/g' README.md",
|
||||
"restore-readme": "mv README.md.bak README.md",
|
||||
"prepublish": "in-publish && npm run update-readme || not-in-publish",
|
||||
"postpublish": "npm run restore-readme"
|
||||
},
|
||||
"pre-commit": [
|
||||
"lint",
|
||||
"ci-test",
|
||||
"check"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"dependencies": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.8",
|
||||
"mime-types": "^2.1.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^12.0.10",
|
||||
"browserify": "^13.1.1",
|
||||
"browserify-istanbul": "^2.0.0",
|
||||
"coveralls": "^3.0.4",
|
||||
"cross-spawn": "^6.0.5",
|
||||
"eslint": "^6.0.1",
|
||||
"fake": "^0.2.2",
|
||||
"far": "^0.0.7",
|
||||
"formidable": "^1.0.17",
|
||||
"in-publish": "^2.0.0",
|
||||
"is-node-modern": "^1.0.0",
|
||||
"istanbul": "^0.4.5",
|
||||
"obake": "^0.1.2",
|
||||
"puppeteer": "^1.19.0",
|
||||
"pkgfiles": "^2.3.0",
|
||||
"pre-commit": "^1.1.3",
|
||||
"request": "^2.88.0",
|
||||
"rimraf": "^2.7.1",
|
||||
"tape": "^4.6.2",
|
||||
"typescript": "^3.5.2"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { async } from '../scheduler/async';
|
||||
export function debounceTime(dueTime, scheduler = async) {
|
||||
return (source) => source.lift(new DebounceTimeOperator(dueTime, scheduler));
|
||||
}
|
||||
class DebounceTimeOperator {
|
||||
constructor(dueTime, scheduler) {
|
||||
this.dueTime = dueTime;
|
||||
this.scheduler = scheduler;
|
||||
}
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));
|
||||
}
|
||||
}
|
||||
class DebounceTimeSubscriber extends Subscriber {
|
||||
constructor(destination, dueTime, scheduler) {
|
||||
super(destination);
|
||||
this.dueTime = dueTime;
|
||||
this.scheduler = scheduler;
|
||||
this.debouncedSubscription = null;
|
||||
this.lastValue = null;
|
||||
this.hasValue = false;
|
||||
}
|
||||
_next(value) {
|
||||
this.clearDebounce();
|
||||
this.lastValue = value;
|
||||
this.hasValue = true;
|
||||
this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));
|
||||
}
|
||||
_complete() {
|
||||
this.debouncedNext();
|
||||
this.destination.complete();
|
||||
}
|
||||
debouncedNext() {
|
||||
this.clearDebounce();
|
||||
if (this.hasValue) {
|
||||
const { lastValue } = this;
|
||||
this.lastValue = null;
|
||||
this.hasValue = false;
|
||||
this.destination.next(lastValue);
|
||||
}
|
||||
}
|
||||
clearDebounce() {
|
||||
const debouncedSubscription = this.debouncedSubscription;
|
||||
if (debouncedSubscription !== null) {
|
||||
this.remove(debouncedSubscription);
|
||||
debouncedSubscription.unsubscribe();
|
||||
this.debouncedSubscription = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
function dispatchNext(subscriber) {
|
||||
subscriber.debouncedNext();
|
||||
}
|
||||
//# sourceMappingURL=debounceTime.js.map
|
||||
@@ -0,0 +1,51 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { Operator } from '../Operator';
|
||||
import { ObservableInput, ObservedValueOf } from '../types';
|
||||
import { Subscriber } from '../Subscriber';
|
||||
/** @deprecated resultSelector is no longer supported, pipe to map instead */
|
||||
export declare function zip<O1 extends ObservableInput<any>, R>(v1: O1, resultSelector: (v1: ObservedValueOf<O1>) => R): Observable<R>;
|
||||
/** @deprecated resultSelector is no longer supported, pipe to map instead */
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>, R>(v1: O1, v2: O2, resultSelector: (v1: ObservedValueOf<O1>, v2: ObservedValueOf<O2>) => R): Observable<R>;
|
||||
/** @deprecated resultSelector is no longer supported, pipe to map instead */
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>, O3 extends ObservableInput<any>, R>(v1: O1, v2: O2, v3: O3, resultSelector: (v1: ObservedValueOf<O1>, v2: ObservedValueOf<O2>, v3: ObservedValueOf<O3>) => R): Observable<R>;
|
||||
/** @deprecated resultSelector is no longer supported, pipe to map instead */
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>, O3 extends ObservableInput<any>, O4 extends ObservableInput<any>, R>(v1: O1, v2: O2, v3: O3, v4: O4, resultSelector: (v1: ObservedValueOf<O1>, v2: ObservedValueOf<O2>, v3: ObservedValueOf<O3>, v4: ObservedValueOf<O4>) => R): Observable<R>;
|
||||
/** @deprecated resultSelector is no longer supported, pipe to map instead */
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>, O3 extends ObservableInput<any>, O4 extends ObservableInput<any>, O5 extends ObservableInput<any>, R>(v1: O1, v2: O2, v3: O3, v4: O4, v5: O5, resultSelector: (v1: ObservedValueOf<O1>, v2: ObservedValueOf<O2>, v3: ObservedValueOf<O3>, v4: ObservedValueOf<O4>, v5: ObservedValueOf<O5>) => R): Observable<R>;
|
||||
/** @deprecated resultSelector is no longer supported, pipe to map instead */
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>, O3 extends ObservableInput<any>, O4 extends ObservableInput<any>, O5 extends ObservableInput<any>, O6 extends ObservableInput<any>, R>(v1: O1, v2: O2, v3: O3, v4: O4, v5: O5, v6: O6, resultSelector: (v1: ObservedValueOf<O1>, v2: ObservedValueOf<O2>, v3: ObservedValueOf<O3>, v4: ObservedValueOf<O4>, v5: ObservedValueOf<O5>, v6: ObservedValueOf<O6>) => R): Observable<R>;
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>>(v1: O1, v2: O2): Observable<[ObservedValueOf<O1>, ObservedValueOf<O2>]>;
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>, O3 extends ObservableInput<any>>(v1: O1, v2: O2, v3: O3): Observable<[ObservedValueOf<O1>, ObservedValueOf<O2>, ObservedValueOf<O3>]>;
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>, O3 extends ObservableInput<any>, O4 extends ObservableInput<any>>(v1: O1, v2: O2, v3: O3, v4: O4): Observable<[ObservedValueOf<O1>, ObservedValueOf<O2>, ObservedValueOf<O3>, ObservedValueOf<O4>]>;
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>, O3 extends ObservableInput<any>, O4 extends ObservableInput<any>, O5 extends ObservableInput<any>>(v1: O1, v2: O2, v3: O3, v4: O4, v5: O5): Observable<[ObservedValueOf<O1>, ObservedValueOf<O2>, ObservedValueOf<O3>, ObservedValueOf<O4>, ObservedValueOf<O5>]>;
|
||||
export declare function zip<O1 extends ObservableInput<any>, O2 extends ObservableInput<any>, O3 extends ObservableInput<any>, O4 extends ObservableInput<any>, O5 extends ObservableInput<any>, O6 extends ObservableInput<any>>(v1: O1, v2: O2, v3: O3, v4: O4, v5: O5, v6: O6): Observable<[ObservedValueOf<O1>, ObservedValueOf<O2>, ObservedValueOf<O3>, ObservedValueOf<O4>, ObservedValueOf<O5>, ObservedValueOf<O6>]>;
|
||||
export declare function zip<O extends ObservableInput<any>>(array: O[]): Observable<ObservedValueOf<O>[]>;
|
||||
export declare function zip<R>(array: ObservableInput<any>[]): Observable<R>;
|
||||
/** @deprecated resultSelector is no longer supported, pipe to map instead */
|
||||
export declare function zip<O extends ObservableInput<any>, R>(array: O[], resultSelector: (...values: ObservedValueOf<O>[]) => R): Observable<R>;
|
||||
/** @deprecated resultSelector is no longer supported, pipe to map instead */
|
||||
export declare function zip<R>(array: ObservableInput<any>[], resultSelector: (...values: any[]) => R): Observable<R>;
|
||||
export declare function zip<O extends ObservableInput<any>>(...observables: O[]): Observable<ObservedValueOf<O>[]>;
|
||||
export declare function zip<O extends ObservableInput<any>, R>(...observables: Array<O | ((...values: ObservedValueOf<O>[]) => R)>): Observable<R>;
|
||||
export declare function zip<R>(...observables: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): Observable<R>;
|
||||
export declare class ZipOperator<T, R> implements Operator<T, R> {
|
||||
resultSelector?: (...values: Array<any>) => R;
|
||||
constructor(resultSelector?: (...values: Array<any>) => R);
|
||||
call(subscriber: Subscriber<R>, source: any): any;
|
||||
}
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export declare class ZipSubscriber<T, R> extends Subscriber<T> {
|
||||
private resultSelector?;
|
||||
private iterators;
|
||||
private active;
|
||||
constructor(destination: Subscriber<R>, resultSelector?: (...values: Array<any>) => R, values?: any);
|
||||
protected _next(value: any): void;
|
||||
protected _complete(): void;
|
||||
notifyInactive(): void;
|
||||
checkIterators(): void;
|
||||
protected _tryresultSelector(args: any[]): void;
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import { Subject } from '../Subject';
|
||||
import { OuterSubscriber } from '../OuterSubscriber';
|
||||
import { subscribeToResult } from '../util/subscribeToResult';
|
||||
export function windowWhen(closingSelector) {
|
||||
return function windowWhenOperatorFunction(source) {
|
||||
return source.lift(new WindowOperator(closingSelector));
|
||||
};
|
||||
}
|
||||
class WindowOperator {
|
||||
constructor(closingSelector) {
|
||||
this.closingSelector = closingSelector;
|
||||
}
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new WindowSubscriber(subscriber, this.closingSelector));
|
||||
}
|
||||
}
|
||||
class WindowSubscriber extends OuterSubscriber {
|
||||
constructor(destination, closingSelector) {
|
||||
super(destination);
|
||||
this.destination = destination;
|
||||
this.closingSelector = closingSelector;
|
||||
this.openWindow();
|
||||
}
|
||||
notifyNext(_outerValue, _innerValue, _outerIndex, _innerIndex, innerSub) {
|
||||
this.openWindow(innerSub);
|
||||
}
|
||||
notifyError(error) {
|
||||
this._error(error);
|
||||
}
|
||||
notifyComplete(innerSub) {
|
||||
this.openWindow(innerSub);
|
||||
}
|
||||
_next(value) {
|
||||
this.window.next(value);
|
||||
}
|
||||
_error(err) {
|
||||
this.window.error(err);
|
||||
this.destination.error(err);
|
||||
this.unsubscribeClosingNotification();
|
||||
}
|
||||
_complete() {
|
||||
this.window.complete();
|
||||
this.destination.complete();
|
||||
this.unsubscribeClosingNotification();
|
||||
}
|
||||
unsubscribeClosingNotification() {
|
||||
if (this.closingNotification) {
|
||||
this.closingNotification.unsubscribe();
|
||||
}
|
||||
}
|
||||
openWindow(innerSub = null) {
|
||||
if (innerSub) {
|
||||
this.remove(innerSub);
|
||||
innerSub.unsubscribe();
|
||||
}
|
||||
const prevWindow = this.window;
|
||||
if (prevWindow) {
|
||||
prevWindow.complete();
|
||||
}
|
||||
const window = this.window = new Subject();
|
||||
this.destination.next(window);
|
||||
let closingNotifier;
|
||||
try {
|
||||
const { closingSelector } = this;
|
||||
closingNotifier = closingSelector();
|
||||
}
|
||||
catch (e) {
|
||||
this.destination.error(e);
|
||||
this.window.error(e);
|
||||
return;
|
||||
}
|
||||
this.add(this.closingNotification = subscribeToResult(this, closingNotifier));
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=windowWhen.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
import { Notification } from '../Notification';
|
||||
export interface TestMessage {
|
||||
frame: number;
|
||||
notification: Notification<any>;
|
||||
isGhost?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "normalize-url",
|
||||
"version": "4.5.1",
|
||||
"description": "Normalize a URL",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/normalize-url",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && nyc ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"normalize",
|
||||
"url",
|
||||
"uri",
|
||||
"address",
|
||||
"string",
|
||||
"normalization",
|
||||
"normalisation",
|
||||
"query",
|
||||
"querystring",
|
||||
"simplify",
|
||||
"strip",
|
||||
"trim",
|
||||
"canonical"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^2.4.0",
|
||||
"coveralls": "^3.0.6",
|
||||
"nyc": "^14.1.1",
|
||||
"tsd": "^0.8.0",
|
||||
"xo": "^0.24.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user