new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var Observable_1 = require("../Observable");
|
||||
var Subscription_1 = require("../Subscription");
|
||||
function schedulePromise(input, scheduler) {
|
||||
return new Observable_1.Observable(function (subscriber) {
|
||||
var sub = new Subscription_1.Subscription();
|
||||
sub.add(scheduler.schedule(function () { return input.then(function (value) {
|
||||
sub.add(scheduler.schedule(function () {
|
||||
subscriber.next(value);
|
||||
sub.add(scheduler.schedule(function () { return subscriber.complete(); }));
|
||||
}));
|
||||
}, function (err) {
|
||||
sub.add(scheduler.schedule(function () { return subscriber.error(err); }));
|
||||
}); }));
|
||||
return sub;
|
||||
});
|
||||
}
|
||||
exports.schedulePromise = schedulePromise;
|
||||
//# sourceMappingURL=schedulePromise.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"2":"C K L H M N O","258":"P Q R S T U","322":"V W","388":"X Y Z a b c d f g h i j k l m n o p q r s D t"},C:{"2":"0 1 2 3 4 5 6 7 8 9 CC tB I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e DC EC","258":"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":"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","258":"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","322":"V W","388":"X Y Z a b c d f g h i j k l m n o p q r s D t xB yB FC"},E:{"2":"I u J E F G A B GC zB HC IC JC KC 0B","258":"C K L H qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 G B C H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB OC PC QC RC qB 9B SC rB","258":"NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","322":"kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d"},G:{"2":"F zB TC AC UC VC WC XC YC ZC aC bC cC","258":"dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B"},H:{"2":"nC"},I:{"2":"tB I oC pC qC rC AC sC tC","258":"D"},J:{"2":"E A"},K:{"2":"A B C qB 9B rB","388":"e"},L:{"388":"D"},M:{"258":"D"},N:{"2":"A B"},O:{"2":"uC"},P:{"2":"I vC wC xC","258":"yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"258":"1B"},R:{"388":"8C"},S:{"2":"9C"}},B:5,C:"Permissions Policy"};
|
||||
@@ -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/retry"));
|
||||
//# sourceMappingURL=retry.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"skipLast.js","sources":["../src/operator/skipLast.ts"],"names":[],"mappings":";;;;;AAAA,mDAA8C"}
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operator/scan';
|
||||
@@ -0,0 +1 @@
|
||||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidNIL=n()}(this,(function(){"use strict";return"00000000-0000-0000-0000-000000000000"}));
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operators/expand';
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"publish.js","sources":["../src/operators/publish.ts"],"names":[],"mappings":";;;;;AAAA,mDAA8C"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"pluck.js","sources":["../../src/internal/operators/pluck.ts"],"names":[],"mappings":";;AACA,6BAA4B;AA6C5B,SAAgB,KAAK;IAAO,oBAAuB;SAAvB,UAAuB,EAAvB,qBAAuB,EAAvB,IAAuB;QAAvB,+BAAuB;;IACjD,IAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACjC,IAAI,MAAM,KAAK,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;KACxD;IACD,OAAO,UAAC,MAAqB,IAAK,OAAA,SAAG,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,MAAa,CAAC,EAA/C,CAA+C,CAAC;AACpF,CAAC;AAND,sBAMC;AAED,SAAS,OAAO,CAAC,KAAe,EAAE,MAAc;IAC9C,IAAM,MAAM,GAAG,UAAC,CAAS;QACvB,IAAI,WAAW,GAAG,CAAC,CAAC;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;YAC/B,IAAM,CAAC,GAAG,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,IAAI,CAAC,KAAK,KAAK,CAAC,EAAE;gBAChB,WAAW,GAAG,CAAC,CAAC;aACjB;iBAAM;gBACL,OAAO,SAAS,CAAC;aAClB;SACF;QACD,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { connectableObservableDescriptor } from '../observable/ConnectableObservable';
|
||||
export function multicast(subjectOrSubjectFactory, selector) {
|
||||
return function multicastOperatorFunction(source) {
|
||||
let subjectFactory;
|
||||
if (typeof subjectOrSubjectFactory === 'function') {
|
||||
subjectFactory = subjectOrSubjectFactory;
|
||||
}
|
||||
else {
|
||||
subjectFactory = function subjectFactory() {
|
||||
return subjectOrSubjectFactory;
|
||||
};
|
||||
}
|
||||
if (typeof selector === 'function') {
|
||||
return source.lift(new MulticastOperator(subjectFactory, selector));
|
||||
}
|
||||
const connectable = Object.create(source, connectableObservableDescriptor);
|
||||
connectable.source = source;
|
||||
connectable.subjectFactory = subjectFactory;
|
||||
return connectable;
|
||||
};
|
||||
}
|
||||
export class MulticastOperator {
|
||||
constructor(subjectFactory, selector) {
|
||||
this.subjectFactory = subjectFactory;
|
||||
this.selector = selector;
|
||||
}
|
||||
call(subscriber, source) {
|
||||
const { selector } = this;
|
||||
const subject = this.subjectFactory();
|
||||
const subscription = selector(subject).subscribe(subscriber);
|
||||
subscription.add(source.subscribe(subject));
|
||||
return subscription;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=multicast.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["import { Deprecation } from \"deprecation\";\nimport once from \"once\";\nconst logOnceCode = once((deprecation) => console.warn(deprecation));\nconst logOnceHeaders = once((deprecation) => console.warn(deprecation));\n/**\n * Error with extra properties to help with debugging\n */\nexport class RequestError extends Error {\n constructor(message, statusCode, options) {\n super(message);\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n this.name = \"HttpError\";\n this.status = statusCode;\n let headers;\n if (\"headers\" in options && typeof options.headers !== \"undefined\") {\n headers = options.headers;\n }\n if (\"response\" in options) {\n this.response = options.response;\n headers = options.response.headers;\n }\n // redact request credentials without mutating original request options\n const requestCopy = Object.assign({}, options.request);\n if (options.request.headers.authorization) {\n requestCopy.headers = Object.assign({}, options.request.headers, {\n authorization: options.request.headers.authorization.replace(/ .*$/, \" [REDACTED]\"),\n });\n }\n requestCopy.url = requestCopy.url\n // client_id & client_secret can be passed as URL query parameters to increase rate limit\n // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications\n .replace(/\\bclient_secret=\\w+/g, \"client_secret=[REDACTED]\")\n // OAuth tokens can be passed as URL query parameters, although it is not recommended\n // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header\n .replace(/\\baccess_token=\\w+/g, \"access_token=[REDACTED]\");\n this.request = requestCopy;\n // deprecations\n Object.defineProperty(this, \"code\", {\n get() {\n logOnceCode(new Deprecation(\"[@octokit/request-error] `error.code` is deprecated, use `error.status`.\"));\n return statusCode;\n },\n });\n Object.defineProperty(this, \"headers\", {\n get() {\n logOnceHeaders(new Deprecation(\"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.\"));\n return headers || {};\n },\n });\n }\n}\n"],"names":["logOnceCode","once","deprecation","console","warn","logOnceHeaders","RequestError","Error","constructor","message","statusCode","options","captureStackTrace","name","status","headers","response","requestCopy","Object","assign","request","authorization","replace","url","defineProperty","get","Deprecation"],"mappings":";;;;;;;;;AAEA,MAAMA,WAAW,GAAGC,IAAI,CAAEC,WAAD,IAAiBC,OAAO,CAACC,IAAR,CAAaF,WAAb,CAAlB,CAAxB;AACA,MAAMG,cAAc,GAAGJ,IAAI,CAAEC,WAAD,IAAiBC,OAAO,CAACC,IAAR,CAAaF,WAAb,CAAlB,CAA3B;AACA;AACA;AACA;;AACO,MAAMI,YAAN,SAA2BC,KAA3B,CAAiC;AACpCC,EAAAA,WAAW,CAACC,OAAD,EAAUC,UAAV,EAAsBC,OAAtB,EAA+B;AACtC,UAAMF,OAAN,EADsC;;AAGtC;;AACA,QAAIF,KAAK,CAACK,iBAAV,EAA6B;AACzBL,MAAAA,KAAK,CAACK,iBAAN,CAAwB,IAAxB,EAA8B,KAAKJ,WAAnC;AACH;;AACD,SAAKK,IAAL,GAAY,WAAZ;AACA,SAAKC,MAAL,GAAcJ,UAAd;AACA,QAAIK,OAAJ;;AACA,QAAI,aAAaJ,OAAb,IAAwB,OAAOA,OAAO,CAACI,OAAf,KAA2B,WAAvD,EAAoE;AAChEA,MAAAA,OAAO,GAAGJ,OAAO,CAACI,OAAlB;AACH;;AACD,QAAI,cAAcJ,OAAlB,EAA2B;AACvB,WAAKK,QAAL,GAAgBL,OAAO,CAACK,QAAxB;AACAD,MAAAA,OAAO,GAAGJ,OAAO,CAACK,QAAR,CAAiBD,OAA3B;AACH,KAhBqC;;;AAkBtC,UAAME,WAAW,GAAGC,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBR,OAAO,CAACS,OAA1B,CAApB;;AACA,QAAIT,OAAO,CAACS,OAAR,CAAgBL,OAAhB,CAAwBM,aAA5B,EAA2C;AACvCJ,MAAAA,WAAW,CAACF,OAAZ,GAAsBG,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBR,OAAO,CAACS,OAAR,CAAgBL,OAAlC,EAA2C;AAC7DM,QAAAA,aAAa,EAAEV,OAAO,CAACS,OAAR,CAAgBL,OAAhB,CAAwBM,aAAxB,CAAsCC,OAAtC,CAA8C,MAA9C,EAAsD,aAAtD;AAD8C,OAA3C,CAAtB;AAGH;;AACDL,IAAAA,WAAW,CAACM,GAAZ,GAAkBN,WAAW,CAACM,GAAZ;AAEd;AAFc,KAGbD,OAHa,CAGL,sBAHK,EAGmB,0BAHnB;AAKd;AALc,KAMbA,OANa,CAML,qBANK,EAMkB,yBANlB,CAAlB;AAOA,SAAKF,OAAL,GAAeH,WAAf,CA/BsC;;AAiCtCC,IAAAA,MAAM,CAACM,cAAP,CAAsB,IAAtB,EAA4B,MAA5B,EAAoC;AAChCC,MAAAA,GAAG,GAAG;AACFzB,QAAAA,WAAW,CAAC,IAAI0B,uBAAJ,CAAgB,0EAAhB,CAAD,CAAX;AACA,eAAOhB,UAAP;AACH;;AAJ+B,KAApC;AAMAQ,IAAAA,MAAM,CAACM,cAAP,CAAsB,IAAtB,EAA4B,SAA5B,EAAuC;AACnCC,MAAAA,GAAG,GAAG;AACFpB,QAAAA,cAAc,CAAC,IAAIqB,uBAAJ,CAAgB,uFAAhB,CAAD,CAAd;AACA,eAAOX,OAAO,IAAI,EAAlB;AACH;;AAJkC,KAAvC;AAMH;;AA9CmC;;;;"}
|
||||
@@ -0,0 +1,148 @@
|
||||
/** PURE_IMPORTS_START tslib,_scheduler_async,_Subscriber,_util_isScheduler PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { async } from '../scheduler/async';
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { isScheduler } from '../util/isScheduler';
|
||||
export function bufferTime(bufferTimeSpan) {
|
||||
var length = arguments.length;
|
||||
var scheduler = async;
|
||||
if (isScheduler(arguments[arguments.length - 1])) {
|
||||
scheduler = arguments[arguments.length - 1];
|
||||
length--;
|
||||
}
|
||||
var bufferCreationInterval = null;
|
||||
if (length >= 2) {
|
||||
bufferCreationInterval = arguments[1];
|
||||
}
|
||||
var maxBufferSize = Number.POSITIVE_INFINITY;
|
||||
if (length >= 3) {
|
||||
maxBufferSize = arguments[2];
|
||||
}
|
||||
return function bufferTimeOperatorFunction(source) {
|
||||
return source.lift(new BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler));
|
||||
};
|
||||
}
|
||||
var BufferTimeOperator = /*@__PURE__*/ (function () {
|
||||
function BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {
|
||||
this.bufferTimeSpan = bufferTimeSpan;
|
||||
this.bufferCreationInterval = bufferCreationInterval;
|
||||
this.maxBufferSize = maxBufferSize;
|
||||
this.scheduler = scheduler;
|
||||
}
|
||||
BufferTimeOperator.prototype.call = function (subscriber, source) {
|
||||
return source.subscribe(new BufferTimeSubscriber(subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler));
|
||||
};
|
||||
return BufferTimeOperator;
|
||||
}());
|
||||
var Context = /*@__PURE__*/ (function () {
|
||||
function Context() {
|
||||
this.buffer = [];
|
||||
}
|
||||
return Context;
|
||||
}());
|
||||
var BufferTimeSubscriber = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(BufferTimeSubscriber, _super);
|
||||
function BufferTimeSubscriber(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.bufferTimeSpan = bufferTimeSpan;
|
||||
_this.bufferCreationInterval = bufferCreationInterval;
|
||||
_this.maxBufferSize = maxBufferSize;
|
||||
_this.scheduler = scheduler;
|
||||
_this.contexts = [];
|
||||
var context = _this.openContext();
|
||||
_this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0;
|
||||
if (_this.timespanOnly) {
|
||||
var timeSpanOnlyState = { subscriber: _this, context: context, bufferTimeSpan: bufferTimeSpan };
|
||||
_this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));
|
||||
}
|
||||
else {
|
||||
var closeState = { subscriber: _this, context: context };
|
||||
var creationState = { bufferTimeSpan: bufferTimeSpan, bufferCreationInterval: bufferCreationInterval, subscriber: _this, scheduler: scheduler };
|
||||
_this.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState));
|
||||
_this.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState));
|
||||
}
|
||||
return _this;
|
||||
}
|
||||
BufferTimeSubscriber.prototype._next = function (value) {
|
||||
var contexts = this.contexts;
|
||||
var len = contexts.length;
|
||||
var filledBufferContext;
|
||||
for (var i = 0; i < len; i++) {
|
||||
var context_1 = contexts[i];
|
||||
var buffer = context_1.buffer;
|
||||
buffer.push(value);
|
||||
if (buffer.length == this.maxBufferSize) {
|
||||
filledBufferContext = context_1;
|
||||
}
|
||||
}
|
||||
if (filledBufferContext) {
|
||||
this.onBufferFull(filledBufferContext);
|
||||
}
|
||||
};
|
||||
BufferTimeSubscriber.prototype._error = function (err) {
|
||||
this.contexts.length = 0;
|
||||
_super.prototype._error.call(this, err);
|
||||
};
|
||||
BufferTimeSubscriber.prototype._complete = function () {
|
||||
var _a = this, contexts = _a.contexts, destination = _a.destination;
|
||||
while (contexts.length > 0) {
|
||||
var context_2 = contexts.shift();
|
||||
destination.next(context_2.buffer);
|
||||
}
|
||||
_super.prototype._complete.call(this);
|
||||
};
|
||||
BufferTimeSubscriber.prototype._unsubscribe = function () {
|
||||
this.contexts = null;
|
||||
};
|
||||
BufferTimeSubscriber.prototype.onBufferFull = function (context) {
|
||||
this.closeContext(context);
|
||||
var closeAction = context.closeAction;
|
||||
closeAction.unsubscribe();
|
||||
this.remove(closeAction);
|
||||
if (!this.closed && this.timespanOnly) {
|
||||
context = this.openContext();
|
||||
var bufferTimeSpan = this.bufferTimeSpan;
|
||||
var timeSpanOnlyState = { subscriber: this, context: context, bufferTimeSpan: bufferTimeSpan };
|
||||
this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));
|
||||
}
|
||||
};
|
||||
BufferTimeSubscriber.prototype.openContext = function () {
|
||||
var context = new Context();
|
||||
this.contexts.push(context);
|
||||
return context;
|
||||
};
|
||||
BufferTimeSubscriber.prototype.closeContext = function (context) {
|
||||
this.destination.next(context.buffer);
|
||||
var contexts = this.contexts;
|
||||
var spliceIndex = contexts ? contexts.indexOf(context) : -1;
|
||||
if (spliceIndex >= 0) {
|
||||
contexts.splice(contexts.indexOf(context), 1);
|
||||
}
|
||||
};
|
||||
return BufferTimeSubscriber;
|
||||
}(Subscriber));
|
||||
function dispatchBufferTimeSpanOnly(state) {
|
||||
var subscriber = state.subscriber;
|
||||
var prevContext = state.context;
|
||||
if (prevContext) {
|
||||
subscriber.closeContext(prevContext);
|
||||
}
|
||||
if (!subscriber.closed) {
|
||||
state.context = subscriber.openContext();
|
||||
state.context.closeAction = this.schedule(state, state.bufferTimeSpan);
|
||||
}
|
||||
}
|
||||
function dispatchBufferCreation(state) {
|
||||
var bufferCreationInterval = state.bufferCreationInterval, bufferTimeSpan = state.bufferTimeSpan, subscriber = state.subscriber, scheduler = state.scheduler;
|
||||
var context = subscriber.openContext();
|
||||
var action = this;
|
||||
if (!subscriber.closed) {
|
||||
subscriber.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, { subscriber: subscriber, context: context }));
|
||||
action.schedule(state, bufferCreationInterval);
|
||||
}
|
||||
}
|
||||
function dispatchBufferClose(arg) {
|
||||
var subscriber = arg.subscriber, context = arg.context;
|
||||
subscriber.closeContext(context);
|
||||
}
|
||||
//# sourceMappingURL=bufferTime.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/util/applyMixins"));
|
||||
//# sourceMappingURL=applyMixins.js.map
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operator/switchMapTo';
|
||||
@@ -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":"0 1 2 3 4 5 6 7 8 9 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","132":"I u J E F G A B C K L H M N O v 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 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","4":"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","2":"zB"},H:{"2":"nC"},I:{"1":"tB I D qC rC AC sC tC","2":"oC pC"},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:{"1":"9C"}},B:1,C:"Audio element"};
|
||||
@@ -0,0 +1,23 @@
|
||||
let Declaration = require('../declaration')
|
||||
let utils = require('../utils')
|
||||
|
||||
class Appearance extends Declaration {
|
||||
constructor (name, prefixes, all) {
|
||||
super(name, prefixes, all)
|
||||
|
||||
if (this.prefixes) {
|
||||
this.prefixes = utils.uniq(
|
||||
this.prefixes.map(i => {
|
||||
if (i === '-ms-') {
|
||||
return '-webkit-'
|
||||
}
|
||||
return i
|
||||
})
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Appearance.names = ['appearance']
|
||||
|
||||
module.exports = Appearance
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AsyncScheduler.js","sources":["../../../src/internal/scheduler/AsyncScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,OAAO,cAAe,SAAQ,SAAS;IAmB3C,YAAY,eAA8B,EAC9B,MAAoB,SAAS,CAAC,GAAG;QAC3C,KAAK,CAAC,eAAe,EAAE,GAAG,EAAE;YAC1B,IAAI,cAAc,CAAC,QAAQ,IAAI,cAAc,CAAC,QAAQ,KAAK,IAAI,EAAE;gBAC/D,OAAO,cAAc,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;aACtC;iBAAM;gBACL,OAAO,GAAG,EAAE,CAAC;aACd;QACH,CAAC,CAAC,CAAC;QAzBE,YAAO,GAA4B,EAAE,CAAC;QAOtC,WAAM,GAAY,KAAK,CAAC;QAQxB,cAAS,GAAQ,SAAS,CAAC;IAWlC,CAAC;IAEM,QAAQ,CAAI,IAAmD,EAAE,QAAgB,CAAC,EAAE,KAAS;QAClG,IAAI,cAAc,CAAC,QAAQ,IAAI,cAAc,CAAC,QAAQ,KAAK,IAAI,EAAE;YAC/D,OAAO,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;SAC7D;aAAM;YACL,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;SAC3C;IACH,CAAC;IAEM,KAAK,CAAC,MAAwB;QAEnC,MAAM,EAAC,OAAO,EAAC,GAAG,IAAI,CAAC;QAEvB,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,OAAO;SACR;QAED,IAAI,KAAU,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAEnB,GAAG;YACD,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE;gBACtD,MAAM;aACP;SACF,QAAQ,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE;QAEnC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAI,KAAK,EAAE;YACT,OAAO,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE;gBAC/B,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF"}
|
||||
@@ -0,0 +1,93 @@
|
||||
'use strict';
|
||||
const {PassThrough} = require('stream');
|
||||
const duplexer3 = require('duplexer3');
|
||||
const requestAsEventEmitter = require('./request-as-event-emitter');
|
||||
const {HTTPError, ReadError} = require('./errors');
|
||||
|
||||
module.exports = options => {
|
||||
const input = new PassThrough();
|
||||
const output = new PassThrough();
|
||||
const proxy = duplexer3(input, output);
|
||||
const piped = new Set();
|
||||
let isFinished = false;
|
||||
|
||||
options.retry.retries = () => 0;
|
||||
|
||||
if (options.body) {
|
||||
proxy.write = () => {
|
||||
throw new Error('Got\'s stream is not writable when the `body` option is used');
|
||||
};
|
||||
}
|
||||
|
||||
const emitter = requestAsEventEmitter(options, input);
|
||||
|
||||
// Cancels the request
|
||||
proxy._destroy = emitter.abort;
|
||||
|
||||
emitter.on('response', response => {
|
||||
const {statusCode} = response;
|
||||
|
||||
response.on('error', error => {
|
||||
proxy.emit('error', new ReadError(error, options));
|
||||
});
|
||||
|
||||
if (options.throwHttpErrors && statusCode !== 304 && (statusCode < 200 || statusCode > 299)) {
|
||||
proxy.emit('error', new HTTPError(response, options), null, response);
|
||||
return;
|
||||
}
|
||||
|
||||
isFinished = true;
|
||||
|
||||
response.pipe(output);
|
||||
|
||||
for (const destination of piped) {
|
||||
if (destination.headersSent) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (const [key, value] of Object.entries(response.headers)) {
|
||||
// Got gives *decompressed* data. Overriding `content-encoding` header would result in an error.
|
||||
// It's not possible to decompress already decompressed data, is it?
|
||||
const allowed = options.decompress ? key !== 'content-encoding' : true;
|
||||
if (allowed) {
|
||||
destination.setHeader(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
destination.statusCode = response.statusCode;
|
||||
}
|
||||
|
||||
proxy.emit('response', response);
|
||||
});
|
||||
|
||||
[
|
||||
'error',
|
||||
'request',
|
||||
'redirect',
|
||||
'uploadProgress',
|
||||
'downloadProgress'
|
||||
].forEach(event => emitter.on(event, (...args) => proxy.emit(event, ...args)));
|
||||
|
||||
const pipe = proxy.pipe.bind(proxy);
|
||||
const unpipe = proxy.unpipe.bind(proxy);
|
||||
proxy.pipe = (destination, options) => {
|
||||
if (isFinished) {
|
||||
throw new Error('Failed to pipe. The response has been emitted already.');
|
||||
}
|
||||
|
||||
const result = pipe(destination, options);
|
||||
|
||||
if (Reflect.has(destination, 'setHeader')) {
|
||||
piped.add(destination);
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
proxy.unpipe = stream => {
|
||||
piped.delete(stream);
|
||||
return unpipe(stream);
|
||||
};
|
||||
|
||||
return proxy;
|
||||
};
|
||||
@@ -0,0 +1,47 @@
|
||||
Join all arguments together and normalize the resulting url.
|
||||
|
||||
## Install
|
||||
|
||||
~~~
|
||||
npm install url-join
|
||||
~~~
|
||||
|
||||
## Usage
|
||||
|
||||
~~~javascript
|
||||
var urljoin = require('url-join');
|
||||
|
||||
var fullUrl = urljoin('http://www.google.com', 'a', '/b/cd', '?foo=123');
|
||||
|
||||
console.log(fullUrl);
|
||||
|
||||
~~~
|
||||
|
||||
Prints:
|
||||
|
||||
~~~
|
||||
'http://www.google.com/a/b/cd?foo=123'
|
||||
~~~
|
||||
|
||||
## Browser and AMD
|
||||
|
||||
It also works in the browser, you can either include ```lib/url-join.js``` in your page:
|
||||
|
||||
~~~html
|
||||
<script src="url-join.js"></script>
|
||||
<script type="text/javascript">
|
||||
urljoin('http://blabla.com', 'foo?a=1')
|
||||
</script>
|
||||
~~~
|
||||
|
||||
Or using an AMD module system like requirejs:
|
||||
|
||||
~~~javascript
|
||||
define(['path/url-join.js'], function (urljoin) {
|
||||
urljoin('http://blabla.com', 'foo?a=1');
|
||||
});
|
||||
~~~
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
@@ -0,0 +1,16 @@
|
||||
import Component from '../Component';
|
||||
import TemplateScope from './shared/TemplateScope';
|
||||
import Node from './shared/Node';
|
||||
import Let from './Let';
|
||||
import Attribute from './Attribute';
|
||||
import { INode } from './interfaces';
|
||||
export default class SlotTemplate extends Node {
|
||||
type: 'SlotTemplate';
|
||||
scope: TemplateScope;
|
||||
children: INode[];
|
||||
lets: Let[];
|
||||
slot_attribute: Attribute;
|
||||
slot_template_name: string;
|
||||
constructor(component: Component, parent: INode, scope: TemplateScope, info: any);
|
||||
validate_slot_template_placement(): void;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concatAll.js","sources":["../../src/add/operator/concatAll.ts"],"names":[],"mappings":";;AAAA,8CAA4C"}
|
||||
@@ -0,0 +1 @@
|
||||
{"/Users/ilya/maintained/cli-width/index.js":{"path":"/Users/ilya/maintained/cli-width/index.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":36}},"1":{"start":{"line":6,"column":20},"end":{"line":10,"column":3}},"2":{"start":{"line":12,"column":2},"end":{"line":14,"column":3}},"3":{"start":{"line":13,"column":4},"end":{"line":13,"column":23}},"4":{"start":{"line":16,"column":2},"end":{"line":20,"column":5}},"5":{"start":{"line":17,"column":4},"end":{"line":19,"column":5}},"6":{"start":{"line":18,"column":6},"end":{"line":18,"column":38}},"7":{"start":{"line":22,"column":2},"end":{"line":22,"column":17}},"8":{"start":{"line":26,"column":13},"end":{"line":26,"column":35}},"9":{"start":{"line":28,"column":2},"end":{"line":30,"column":3}},"10":{"start":{"line":29,"column":4},"end":{"line":29,"column":63}},"11":{"start":{"line":32,"column":2},"end":{"line":34,"column":3}},"12":{"start":{"line":33,"column":4},"end":{"line":33,"column":60}},"13":{"start":{"line":36,"column":2},"end":{"line":38,"column":3}},"14":{"start":{"line":37,"column":4},"end":{"line":37,"column":31}},"15":{"start":{"line":40,"column":2},"end":{"line":46,"column":3}},"16":{"start":{"line":41,"column":16},"end":{"line":41,"column":51}},"17":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"18":{"start":{"line":44,"column":6},"end":{"line":44,"column":19}},"19":{"start":{"line":48,"column":2},"end":{"line":48,"column":27}}},"fnMap":{"0":{"name":"normalizeOpts","decl":{"start":{"line":5,"column":9},"end":{"line":5,"column":22}},"loc":{"start":{"line":5,"column":32},"end":{"line":23,"column":1}},"line":5},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":35},"end":{"line":16,"column":36}},"loc":{"start":{"line":16,"column":50},"end":{"line":20,"column":3}},"line":16},"2":{"name":"cliWidth","decl":{"start":{"line":25,"column":9},"end":{"line":25,"column":17}},"loc":{"start":{"line":25,"column":27},"end":{"line":49,"column":1}},"line":25}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":2},"end":{"line":14,"column":3}},"type":"if","locations":[{"start":{"line":12,"column":2},"end":{"line":14,"column":3}},{"start":{"line":12,"column":2},"end":{"line":14,"column":3}}],"line":12},"1":{"loc":{"start":{"line":17,"column":4},"end":{"line":19,"column":5}},"type":"if","locations":[{"start":{"line":17,"column":4},"end":{"line":19,"column":5}},{"start":{"line":17,"column":4},"end":{"line":19,"column":5}}],"line":17},"2":{"loc":{"start":{"line":28,"column":2},"end":{"line":30,"column":3}},"type":"if","locations":[{"start":{"line":28,"column":2},"end":{"line":30,"column":3}},{"start":{"line":28,"column":2},"end":{"line":30,"column":3}}],"line":28},"3":{"loc":{"start":{"line":29,"column":11},"end":{"line":29,"column":62}},"type":"binary-expr","locations":[{"start":{"line":29,"column":11},"end":{"line":29,"column":41}},{"start":{"line":29,"column":45},"end":{"line":29,"column":62}}],"line":29},"4":{"loc":{"start":{"line":32,"column":2},"end":{"line":34,"column":3}},"type":"if","locations":[{"start":{"line":32,"column":2},"end":{"line":34,"column":3}},{"start":{"line":32,"column":2},"end":{"line":34,"column":3}}],"line":32},"5":{"loc":{"start":{"line":33,"column":11},"end":{"line":33,"column":59}},"type":"binary-expr","locations":[{"start":{"line":33,"column":11},"end":{"line":33,"column":38}},{"start":{"line":33,"column":42},"end":{"line":33,"column":59}}],"line":33},"6":{"loc":{"start":{"line":36,"column":2},"end":{"line":38,"column":3}},"type":"if","locations":[{"start":{"line":36,"column":2},"end":{"line":38,"column":3}},{"start":{"line":36,"column":2},"end":{"line":38,"column":3}}],"line":36},"7":{"loc":{"start":{"line":40,"column":2},"end":{"line":46,"column":3}},"type":"if","locations":[{"start":{"line":40,"column":2},"end":{"line":46,"column":3}},{"start":{"line":40,"column":2},"end":{"line":46,"column":3}}],"line":40},"8":{"loc":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},{"start":{"line":43,"column":4},"end":{"line":45,"column":5}}],"line":43},"9":{"loc":{"start":{"line":43,"column":8},"end":{"line":43,"column":36}},"type":"binary-expr","locations":[{"start":{"line":43,"column":8},"end":{"line":43,"column":21}},{"start":{"line":43,"column":25},"end":{"line":43,"column":36}}],"line":43}},"s":{"0":1,"1":11,"2":11,"3":5,"4":6,"5":18,"6":12,"7":6,"8":11,"9":11,"10":3,"11":8,"12":3,"13":5,"14":1,"15":4,"16":2,"17":2,"18":1,"19":3},"f":{"0":11,"1":18,"2":11},"b":{"0":[5,6],"1":[12,6],"2":[3,8],"3":[3,1],"4":[3,5],"5":[3,1],"6":[1,4],"7":[2,2],"8":[1,1],"9":[2,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a4d7f0a30376f059a5bc5bb60422e8b1332adf0c","contentHash":"1ab1e2def09289f7630132524d4d3929b81fe2db9a3f07e64865500b9c42e817"}}
|
||||
@@ -0,0 +1,83 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { async } from '../scheduler/async';
|
||||
import { SchedulerAction, SchedulerLike } from '../types';
|
||||
import { isNumeric } from '../util/isNumeric';
|
||||
import { Subscriber } from '../Subscriber';
|
||||
|
||||
/**
|
||||
* Creates an Observable that emits sequential numbers every specified
|
||||
* interval of time, on a specified {@link SchedulerLike}.
|
||||
*
|
||||
* <span class="informal">Emits incremental numbers periodically in time.
|
||||
* </span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* `interval` returns an Observable that emits an infinite sequence of
|
||||
* ascending integers, with a constant interval of time of your choosing
|
||||
* between those emissions. The first emission is not sent immediately, but
|
||||
* only after the first period has passed. By default, this operator uses the
|
||||
* `async` {@link SchedulerLike} to provide a notion of time, but you may pass any
|
||||
* {@link SchedulerLike} to it.
|
||||
*
|
||||
* ## Example
|
||||
* Emits ascending numbers, one every second (1000ms) up to the number 3
|
||||
* ```ts
|
||||
* import { interval } from 'rxjs';
|
||||
* import { take } from 'rxjs/operators';
|
||||
*
|
||||
* const numbers = interval(1000);
|
||||
*
|
||||
* const takeFourNumbers = numbers.pipe(take(4));
|
||||
*
|
||||
* takeFourNumbers.subscribe(x => console.log('Next: ', x));
|
||||
*
|
||||
* // Logs:
|
||||
* // Next: 0
|
||||
* // Next: 1
|
||||
* // Next: 2
|
||||
* // Next: 3
|
||||
* ```
|
||||
*
|
||||
* @see {@link timer}
|
||||
* @see {@link delay}
|
||||
*
|
||||
* @param {number} [period=0] The interval size in milliseconds (by default)
|
||||
* or the time unit determined by the scheduler's clock.
|
||||
* @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for scheduling
|
||||
* the emission of values, and providing a notion of "time".
|
||||
* @return {Observable} An Observable that emits a sequential number each time
|
||||
* interval.
|
||||
* @static true
|
||||
* @name interval
|
||||
* @owner Observable
|
||||
*/
|
||||
export function interval(period = 0,
|
||||
scheduler: SchedulerLike = async): Observable<number> {
|
||||
if (!isNumeric(period) || period < 0) {
|
||||
period = 0;
|
||||
}
|
||||
|
||||
if (!scheduler || typeof scheduler.schedule !== 'function') {
|
||||
scheduler = async;
|
||||
}
|
||||
|
||||
return new Observable<number>(subscriber => {
|
||||
subscriber.add(
|
||||
scheduler.schedule(dispatch, period, { subscriber, counter: 0, period })
|
||||
);
|
||||
return subscriber;
|
||||
});
|
||||
}
|
||||
|
||||
function dispatch(this: SchedulerAction<IntervalState>, state: IntervalState) {
|
||||
const { subscriber, counter, period } = state;
|
||||
subscriber.next(counter);
|
||||
this.schedule({ subscriber, counter: counter + 1, period }, period);
|
||||
}
|
||||
|
||||
interface IntervalState {
|
||||
subscriber: Subscriber<number>;
|
||||
counter: number;
|
||||
period: number;
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
'use strict'
|
||||
|
||||
let { existsSync, readFileSync } = require('fs')
|
||||
let { dirname, join } = require('path')
|
||||
let mozilla = require('source-map')
|
||||
|
||||
function fromBase64(str) {
|
||||
if (Buffer) {
|
||||
return Buffer.from(str, 'base64').toString()
|
||||
} else {
|
||||
// istanbul ignore next
|
||||
return window.atob(str)
|
||||
}
|
||||
}
|
||||
|
||||
class PreviousMap {
|
||||
constructor(css, opts) {
|
||||
if (opts.map === false) return
|
||||
this.loadAnnotation(css)
|
||||
this.inline = this.startWith(this.annotation, 'data:')
|
||||
|
||||
let prev = opts.map ? opts.map.prev : undefined
|
||||
let text = this.loadMap(opts.from, prev)
|
||||
if (!this.mapFile && opts.from) {
|
||||
this.mapFile = opts.from
|
||||
}
|
||||
if (this.mapFile) this.root = dirname(this.mapFile)
|
||||
if (text) this.text = text
|
||||
}
|
||||
|
||||
consumer() {
|
||||
if (!this.consumerCache) {
|
||||
this.consumerCache = new mozilla.SourceMapConsumer(this.text)
|
||||
}
|
||||
return this.consumerCache
|
||||
}
|
||||
|
||||
withContent() {
|
||||
return !!(
|
||||
this.consumer().sourcesContent &&
|
||||
this.consumer().sourcesContent.length > 0
|
||||
)
|
||||
}
|
||||
|
||||
startWith(string, start) {
|
||||
if (!string) return false
|
||||
return string.substr(0, start.length) === start
|
||||
}
|
||||
|
||||
getAnnotationURL(sourceMapString) {
|
||||
return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\*\//)[1].trim()
|
||||
}
|
||||
|
||||
loadAnnotation(css) {
|
||||
let annotations = css.match(/\/\*\s*# sourceMappingURL=.*\*\//gm)
|
||||
|
||||
if (annotations && annotations.length > 0) {
|
||||
// Locate the last sourceMappingURL to avoid picking up
|
||||
// sourceMappingURLs from comments, strings, etc.
|
||||
let lastAnnotation = annotations[annotations.length - 1]
|
||||
if (lastAnnotation) {
|
||||
this.annotation = this.getAnnotationURL(lastAnnotation)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
decodeInline(text) {
|
||||
let baseCharsetUri = /^data:application\/json;charset=utf-?8;base64,/
|
||||
let baseUri = /^data:application\/json;base64,/
|
||||
let charsetUri = /^data:application\/json;charset=utf-?8,/
|
||||
let uri = /^data:application\/json,/
|
||||
|
||||
if (charsetUri.test(text) || uri.test(text)) {
|
||||
return decodeURIComponent(text.substr(RegExp.lastMatch.length))
|
||||
}
|
||||
|
||||
if (baseCharsetUri.test(text) || baseUri.test(text)) {
|
||||
return fromBase64(text.substr(RegExp.lastMatch.length))
|
||||
}
|
||||
|
||||
let encoding = text.match(/data:application\/json;([^,]+),/)[1]
|
||||
throw new Error('Unsupported source map encoding ' + encoding)
|
||||
}
|
||||
|
||||
loadFile(path) {
|
||||
this.root = dirname(path)
|
||||
if (existsSync(path)) {
|
||||
this.mapFile = path
|
||||
return readFileSync(path, 'utf-8').toString().trim()
|
||||
}
|
||||
}
|
||||
|
||||
loadMap(file, prev) {
|
||||
if (prev === false) return false
|
||||
|
||||
if (prev) {
|
||||
if (typeof prev === 'string') {
|
||||
return prev
|
||||
} else if (typeof prev === 'function') {
|
||||
let prevPath = prev(file)
|
||||
if (prevPath) {
|
||||
let map = this.loadFile(prevPath)
|
||||
if (!map) {
|
||||
throw new Error(
|
||||
'Unable to load previous source map: ' + prevPath.toString()
|
||||
)
|
||||
}
|
||||
return map
|
||||
}
|
||||
} else if (prev instanceof mozilla.SourceMapConsumer) {
|
||||
return mozilla.SourceMapGenerator.fromSourceMap(prev).toString()
|
||||
} else if (prev instanceof mozilla.SourceMapGenerator) {
|
||||
return prev.toString()
|
||||
} else if (this.isMap(prev)) {
|
||||
return JSON.stringify(prev)
|
||||
} else {
|
||||
throw new Error(
|
||||
'Unsupported previous source map format: ' + prev.toString()
|
||||
)
|
||||
}
|
||||
} else if (this.inline) {
|
||||
return this.decodeInline(this.annotation)
|
||||
} else if (this.annotation) {
|
||||
let map = this.annotation
|
||||
if (file) map = join(dirname(file), map)
|
||||
return this.loadFile(map)
|
||||
}
|
||||
}
|
||||
|
||||
isMap(map) {
|
||||
if (typeof map !== 'object') return false
|
||||
return (
|
||||
typeof map.mappings === 'string' ||
|
||||
typeof map._mappings === 'string' ||
|
||||
Array.isArray(map.sections)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PreviousMap
|
||||
PreviousMap.default = PreviousMap
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G BC","132":"A B"},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 EC","2":"CC tB DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"I u"},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 qB 9B SC rB","2":"G B OC PC QC RC"},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":"tB I D rC AC sC tC","2":"oC pC qC"},J:{"1":"A","2":"E"},K:{"1":"C e qB 9B rB","2":"A B"},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:"FileReader API"};
|
||||
@@ -0,0 +1,63 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var innerSubscribe_1 = require("../innerSubscribe");
|
||||
function catchError(selector) {
|
||||
return function catchErrorOperatorFunction(source) {
|
||||
var operator = new CatchOperator(selector);
|
||||
var caught = source.lift(operator);
|
||||
return (operator.caught = caught);
|
||||
};
|
||||
}
|
||||
exports.catchError = catchError;
|
||||
var CatchOperator = (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 = (function (_super) {
|
||||
__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 innerSubscribe_1.SimpleInnerSubscriber(this);
|
||||
this.add(innerSubscriber);
|
||||
var innerSubscription = innerSubscribe_1.innerSubscribe(result, innerSubscriber);
|
||||
if (innerSubscription !== innerSubscriber) {
|
||||
this.add(innerSubscription);
|
||||
}
|
||||
}
|
||||
};
|
||||
return CatchSubscriber;
|
||||
}(innerSubscribe_1.SimpleOuterSubscriber));
|
||||
//# sourceMappingURL=catchError.js.map
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operators/auditTime';
|
||||
@@ -0,0 +1,10 @@
|
||||
import assertString from './util/assertString';
|
||||
export default function matches(str, pattern, modifiers) {
|
||||
assertString(str);
|
||||
|
||||
if (Object.prototype.toString.call(pattern) !== '[object RegExp]') {
|
||||
pattern = new RegExp(pattern, modifiers);
|
||||
}
|
||||
|
||||
return pattern.test(str);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user