new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"P Q R S 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 K L H M N","130":"O"},C:{"1":"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":"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 DC EC"},D:{"1":"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":"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"},E:{"1":"K L H 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"I u J E F G A B C GC zB HC IC JC KC 0B qB rB"},F:{"1":"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":"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 OC PC QC RC qB 9B SC rB"},G:{"1":"gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B","2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC fC"},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:{"1":"uC"},P:{"1":"yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C","2":"I vC wC xC"},Q:{"1":"1B"},R:{"1":"8C"},S:{"2":"9C"}},B:6,C:"Intl.PluralRules API"};
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operator/mergeMap';
|
||||
@@ -0,0 +1,401 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { Notification } from '../Notification';
|
||||
import { ColdObservable } from './ColdObservable';
|
||||
import { HotObservable } from './HotObservable';
|
||||
import { TestMessage } from './TestMessage';
|
||||
import { SubscriptionLog } from './SubscriptionLog';
|
||||
import { Subscription } from '../Subscription';
|
||||
import { VirtualTimeScheduler, VirtualAction } from '../scheduler/VirtualTimeScheduler';
|
||||
import { AsyncScheduler } from '../scheduler/AsyncScheduler';
|
||||
|
||||
const defaultMaxFrame: number = 750;
|
||||
|
||||
export interface RunHelpers {
|
||||
cold: typeof TestScheduler.prototype.createColdObservable;
|
||||
hot: typeof TestScheduler.prototype.createHotObservable;
|
||||
flush: typeof TestScheduler.prototype.flush;
|
||||
expectObservable: typeof TestScheduler.prototype.expectObservable;
|
||||
expectSubscriptions: typeof TestScheduler.prototype.expectSubscriptions;
|
||||
}
|
||||
|
||||
interface FlushableTest {
|
||||
ready: boolean;
|
||||
actual?: any[];
|
||||
expected?: any[];
|
||||
}
|
||||
|
||||
export type observableToBeFn = (marbles: string, values?: any, errorValue?: any) => void;
|
||||
export type subscriptionLogsToBeFn = (marbles: string | string[]) => void;
|
||||
|
||||
export class TestScheduler extends VirtualTimeScheduler {
|
||||
public readonly hotObservables: HotObservable<any>[] = [];
|
||||
public readonly coldObservables: ColdObservable<any>[] = [];
|
||||
private flushTests: FlushableTest[] = [];
|
||||
private runMode = false;
|
||||
|
||||
constructor(public assertDeepEqual: (actual: any, expected: any) => boolean | void) {
|
||||
super(VirtualAction, defaultMaxFrame);
|
||||
}
|
||||
|
||||
createTime(marbles: string): number {
|
||||
const indexOf: number = marbles.indexOf('|');
|
||||
if (indexOf === -1) {
|
||||
throw new Error('marble diagram for time should have a completion marker "|"');
|
||||
}
|
||||
return indexOf * TestScheduler.frameTimeFactor;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param marbles A diagram in the marble DSL. Letters map to keys in `values` if provided.
|
||||
* @param values Values to use for the letters in `marbles`. If ommitted, the letters themselves are used.
|
||||
* @param error The error to use for the `#` marble (if present).
|
||||
*/
|
||||
createColdObservable<T = string>(marbles: string, values?: { [marble: string]: T }, error?: any): ColdObservable<T> {
|
||||
if (marbles.indexOf('^') !== -1) {
|
||||
throw new Error('cold observable cannot have subscription offset "^"');
|
||||
}
|
||||
if (marbles.indexOf('!') !== -1) {
|
||||
throw new Error('cold observable cannot have unsubscription marker "!"');
|
||||
}
|
||||
const messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode);
|
||||
const cold = new ColdObservable<T>(messages, this);
|
||||
this.coldObservables.push(cold);
|
||||
return cold;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param marbles A diagram in the marble DSL. Letters map to keys in `values` if provided.
|
||||
* @param values Values to use for the letters in `marbles`. If ommitted, the letters themselves are used.
|
||||
* @param error The error to use for the `#` marble (if present).
|
||||
*/
|
||||
createHotObservable<T = string>(marbles: string, values?: { [marble: string]: T }, error?: any): HotObservable<T> {
|
||||
if (marbles.indexOf('!') !== -1) {
|
||||
throw new Error('hot observable cannot have unsubscription marker "!"');
|
||||
}
|
||||
const messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode);
|
||||
const subject = new HotObservable<T>(messages, this);
|
||||
this.hotObservables.push(subject);
|
||||
return subject;
|
||||
}
|
||||
|
||||
private materializeInnerObservable(observable: Observable<any>,
|
||||
outerFrame: number): TestMessage[] {
|
||||
const messages: TestMessage[] = [];
|
||||
observable.subscribe((value) => {
|
||||
messages.push({ frame: this.frame - outerFrame, notification: Notification.createNext(value) });
|
||||
}, (err) => {
|
||||
messages.push({ frame: this.frame - outerFrame, notification: Notification.createError(err) });
|
||||
}, () => {
|
||||
messages.push({ frame: this.frame - outerFrame, notification: Notification.createComplete() });
|
||||
});
|
||||
return messages;
|
||||
}
|
||||
|
||||
expectObservable(observable: Observable<any>,
|
||||
subscriptionMarbles: string = null): ({ toBe: observableToBeFn }) {
|
||||
const actual: TestMessage[] = [];
|
||||
const flushTest: FlushableTest = { actual, ready: false };
|
||||
const subscriptionParsed = TestScheduler.parseMarblesAsSubscriptions(subscriptionMarbles, this.runMode);
|
||||
const subscriptionFrame = subscriptionParsed.subscribedFrame === Number.POSITIVE_INFINITY ?
|
||||
0 : subscriptionParsed.subscribedFrame;
|
||||
const unsubscriptionFrame = subscriptionParsed.unsubscribedFrame;
|
||||
let subscription: Subscription;
|
||||
|
||||
this.schedule(() => {
|
||||
subscription = observable.subscribe(x => {
|
||||
let value = x;
|
||||
// Support Observable-of-Observables
|
||||
if (x instanceof Observable) {
|
||||
value = this.materializeInnerObservable(value, this.frame);
|
||||
}
|
||||
actual.push({ frame: this.frame, notification: Notification.createNext(value) });
|
||||
}, (err) => {
|
||||
actual.push({ frame: this.frame, notification: Notification.createError(err) });
|
||||
}, () => {
|
||||
actual.push({ frame: this.frame, notification: Notification.createComplete() });
|
||||
});
|
||||
}, subscriptionFrame);
|
||||
|
||||
if (unsubscriptionFrame !== Number.POSITIVE_INFINITY) {
|
||||
this.schedule(() => subscription.unsubscribe(), unsubscriptionFrame);
|
||||
}
|
||||
|
||||
this.flushTests.push(flushTest);
|
||||
const { runMode } = this;
|
||||
|
||||
return {
|
||||
toBe(marbles: string, values?: any, errorValue?: any) {
|
||||
flushTest.ready = true;
|
||||
flushTest.expected = TestScheduler.parseMarbles(marbles, values, errorValue, true, runMode);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
expectSubscriptions(actualSubscriptionLogs: SubscriptionLog[]): ({ toBe: subscriptionLogsToBeFn }) {
|
||||
const flushTest: FlushableTest = { actual: actualSubscriptionLogs, ready: false };
|
||||
this.flushTests.push(flushTest);
|
||||
const { runMode } = this;
|
||||
return {
|
||||
toBe(marbles: string | string[]) {
|
||||
const marblesArray: string[] = (typeof marbles === 'string') ? [marbles] : marbles;
|
||||
flushTest.ready = true;
|
||||
flushTest.expected = marblesArray.map(marbles =>
|
||||
TestScheduler.parseMarblesAsSubscriptions(marbles, runMode)
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
flush() {
|
||||
const hotObservables = this.hotObservables;
|
||||
while (hotObservables.length > 0) {
|
||||
hotObservables.shift().setup();
|
||||
}
|
||||
|
||||
super.flush();
|
||||
|
||||
this.flushTests = this.flushTests.filter(test => {
|
||||
if (test.ready) {
|
||||
this.assertDeepEqual(test.actual, test.expected);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
/** @nocollapse */
|
||||
static parseMarblesAsSubscriptions(marbles: string, runMode = false): SubscriptionLog {
|
||||
if (typeof marbles !== 'string') {
|
||||
return new SubscriptionLog(Number.POSITIVE_INFINITY);
|
||||
}
|
||||
const len = marbles.length;
|
||||
let groupStart = -1;
|
||||
let subscriptionFrame = Number.POSITIVE_INFINITY;
|
||||
let unsubscriptionFrame = Number.POSITIVE_INFINITY;
|
||||
let frame = 0;
|
||||
|
||||
for (let i = 0; i < len; i++) {
|
||||
let nextFrame = frame;
|
||||
const advanceFrameBy = (count: number) => {
|
||||
nextFrame += count * this.frameTimeFactor;
|
||||
};
|
||||
const c = marbles[i];
|
||||
switch (c) {
|
||||
case ' ':
|
||||
// Whitespace no longer advances time
|
||||
if (!runMode) {
|
||||
advanceFrameBy(1);
|
||||
}
|
||||
break;
|
||||
case '-':
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
case '(':
|
||||
groupStart = frame;
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
case ')':
|
||||
groupStart = -1;
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
case '^':
|
||||
if (subscriptionFrame !== Number.POSITIVE_INFINITY) {
|
||||
throw new Error('found a second subscription point \'^\' in a ' +
|
||||
'subscription marble diagram. There can only be one.');
|
||||
}
|
||||
subscriptionFrame = groupStart > -1 ? groupStart : frame;
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
case '!':
|
||||
if (unsubscriptionFrame !== Number.POSITIVE_INFINITY) {
|
||||
throw new Error('found a second subscription point \'^\' in a ' +
|
||||
'subscription marble diagram. There can only be one.');
|
||||
}
|
||||
unsubscriptionFrame = groupStart > -1 ? groupStart : frame;
|
||||
break;
|
||||
default:
|
||||
// time progression syntax
|
||||
if (runMode && c.match(/^[0-9]$/)) {
|
||||
// Time progression must be preceeded by at least one space
|
||||
// if it's not at the beginning of the diagram
|
||||
if (i === 0 || marbles[i - 1] === ' ') {
|
||||
const buffer = marbles.slice(i);
|
||||
const match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);
|
||||
if (match) {
|
||||
i += match[0].length - 1;
|
||||
const duration = parseFloat(match[1]);
|
||||
const unit = match[2];
|
||||
let durationInMs: number;
|
||||
|
||||
switch (unit) {
|
||||
case 'ms':
|
||||
durationInMs = duration;
|
||||
break;
|
||||
case 's':
|
||||
durationInMs = duration * 1000;
|
||||
break;
|
||||
case 'm':
|
||||
durationInMs = duration * 1000 * 60;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
advanceFrameBy(durationInMs / this.frameTimeFactor);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Error('there can only be \'^\' and \'!\' markers in a ' +
|
||||
'subscription marble diagram. Found instead \'' + c + '\'.');
|
||||
}
|
||||
|
||||
frame = nextFrame;
|
||||
}
|
||||
|
||||
if (unsubscriptionFrame < 0) {
|
||||
return new SubscriptionLog(subscriptionFrame);
|
||||
} else {
|
||||
return new SubscriptionLog(subscriptionFrame, unsubscriptionFrame);
|
||||
}
|
||||
}
|
||||
|
||||
/** @nocollapse */
|
||||
static parseMarbles(marbles: string,
|
||||
values?: any,
|
||||
errorValue?: any,
|
||||
materializeInnerObservables: boolean = false,
|
||||
runMode = false): TestMessage[] {
|
||||
if (marbles.indexOf('!') !== -1) {
|
||||
throw new Error('conventional marble diagrams cannot have the ' +
|
||||
'unsubscription marker "!"');
|
||||
}
|
||||
const len = marbles.length;
|
||||
const testMessages: TestMessage[] = [];
|
||||
const subIndex = runMode ? marbles.replace(/^[ ]+/, '').indexOf('^') : marbles.indexOf('^');
|
||||
let frame = subIndex === -1 ? 0 : (subIndex * -this.frameTimeFactor);
|
||||
const getValue = typeof values !== 'object' ?
|
||||
(x: any) => x :
|
||||
(x: any) => {
|
||||
// Support Observable-of-Observables
|
||||
if (materializeInnerObservables && values[x] instanceof ColdObservable) {
|
||||
return values[x].messages;
|
||||
}
|
||||
return values[x];
|
||||
};
|
||||
let groupStart = -1;
|
||||
|
||||
for (let i = 0; i < len; i++) {
|
||||
let nextFrame = frame;
|
||||
const advanceFrameBy = (count: number) => {
|
||||
nextFrame += count * this.frameTimeFactor;
|
||||
};
|
||||
|
||||
let notification: Notification<any>;
|
||||
const c = marbles[i];
|
||||
switch (c) {
|
||||
case ' ':
|
||||
// Whitespace no longer advances time
|
||||
if (!runMode) {
|
||||
advanceFrameBy(1);
|
||||
}
|
||||
break;
|
||||
case '-':
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
case '(':
|
||||
groupStart = frame;
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
case ')':
|
||||
groupStart = -1;
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
case '|':
|
||||
notification = Notification.createComplete();
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
case '^':
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
case '#':
|
||||
notification = Notification.createError(errorValue || 'error');
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
default:
|
||||
// Might be time progression syntax, or a value literal
|
||||
if (runMode && c.match(/^[0-9]$/)) {
|
||||
// Time progression must be preceeded by at least one space
|
||||
// if it's not at the beginning of the diagram
|
||||
if (i === 0 || marbles[i - 1] === ' ') {
|
||||
const buffer = marbles.slice(i);
|
||||
const match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);
|
||||
if (match) {
|
||||
i += match[0].length - 1;
|
||||
const duration = parseFloat(match[1]);
|
||||
const unit = match[2];
|
||||
let durationInMs: number;
|
||||
|
||||
switch (unit) {
|
||||
case 'ms':
|
||||
durationInMs = duration;
|
||||
break;
|
||||
case 's':
|
||||
durationInMs = duration * 1000;
|
||||
break;
|
||||
case 'm':
|
||||
durationInMs = duration * 1000 * 60;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
advanceFrameBy(durationInMs / this.frameTimeFactor);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
notification = Notification.createNext(getValue(c));
|
||||
advanceFrameBy(1);
|
||||
break;
|
||||
}
|
||||
|
||||
if (notification) {
|
||||
testMessages.push({ frame: groupStart > -1 ? groupStart : frame, notification });
|
||||
}
|
||||
|
||||
frame = nextFrame;
|
||||
}
|
||||
return testMessages;
|
||||
}
|
||||
|
||||
run<T>(callback: (helpers: RunHelpers) => T): T {
|
||||
const prevFrameTimeFactor = TestScheduler.frameTimeFactor;
|
||||
const prevMaxFrames = this.maxFrames;
|
||||
|
||||
TestScheduler.frameTimeFactor = 1;
|
||||
this.maxFrames = Number.POSITIVE_INFINITY;
|
||||
this.runMode = true;
|
||||
AsyncScheduler.delegate = this;
|
||||
|
||||
const helpers = {
|
||||
cold: this.createColdObservable.bind(this),
|
||||
hot: this.createHotObservable.bind(this),
|
||||
flush: this.flush.bind(this),
|
||||
expectObservable: this.expectObservable.bind(this),
|
||||
expectSubscriptions: this.expectSubscriptions.bind(this),
|
||||
};
|
||||
try {
|
||||
const ret = callback(helpers);
|
||||
this.flush();
|
||||
return ret;
|
||||
} finally {
|
||||
TestScheduler.frameTimeFactor = prevFrameTimeFactor;
|
||||
this.maxFrames = prevMaxFrames;
|
||||
this.runMode = false;
|
||||
AsyncScheduler.delegate = undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"throttleTime.js","sources":["../../src/internal/operators/throttleT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ChC;YACD,SAAS,CAAC,WAAW,EAAE,CAAC;YACxB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YACvB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;SACvB;IACH,CAAC;IACH,6BAAC;AAAD,CAAC,AApDD,CAAwC,uBAAU,GAoDjD;AAMD,SAAS,YAAY,CAAI,GAAmB;IAClC,IAAA,2BAAU,CAAS;IAC3B,UAAU,CAAC,aAAa,EAAE,CAAC;AAC7B,CAAC"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ObjectUnsubscribedError.js","sources":["../../../src/internal/util/ObjectUnsubscribedError.ts"],"names":[],"mappings":"AAOA,MAAM,2BAA2B,GAAG,CAAC,GAAG,EAAE;IACxC,SAAS,2BAA2B;QAClC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,qBAAqB,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;QACtC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,2BAA2B,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAEvE,OAAO,2BAA2B,CAAC;AACrC,CAAC,CAAC,EAAE,CAAC;AAWL,MAAM,CAAC,MAAM,uBAAuB,GAAgC,2BAAkC,CAAC"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G BC","129":"A B"},B:{"1":"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","129":"C K L"},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","2":"CC tB DC EC"},D:{"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 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","33":"F G A B C K L H M N O v w x y"},E:{"1":"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","33":"J"},F:{"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 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 C OC PC QC RC qB 9B SC rB"},G:{"1":"F 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","33":"VC"},H:{"2":"nC"},I:{"1":"D sC tC","2":"tB oC pC qC","33":"I rC AC"},J:{"1":"A","2":"E"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},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:"Blob URLs"};
|
||||
@@ -0,0 +1,180 @@
|
||||
import { Operator } from '../Operator';
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { Observable } from '../Observable';
|
||||
import { Subscription } from '../Subscription';
|
||||
import { subscribeToResult } from '../util/subscribeToResult';
|
||||
import { OuterSubscriber } from '../OuterSubscriber';
|
||||
import { InnerSubscriber } from '../InnerSubscriber';
|
||||
import { OperatorFunction, SubscribableOrPromise } from '../types';
|
||||
|
||||
/**
|
||||
* Buffers the source Observable values starting from an emission from
|
||||
* `openings` and ending when the output of `closingSelector` emits.
|
||||
*
|
||||
* <span class="informal">Collects values from the past as an array. Starts
|
||||
* collecting only when `opening` emits, and calls the `closingSelector`
|
||||
* function to get an Observable that tells when to close the buffer.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* Buffers values from the source by opening the buffer via signals from an
|
||||
* Observable provided to `openings`, and closing and sending the buffers when
|
||||
* a Subscribable or Promise returned by the `closingSelector` function emits.
|
||||
*
|
||||
* ## Example
|
||||
*
|
||||
* Every other second, emit the click events from the next 500ms
|
||||
*
|
||||
* ```ts
|
||||
* import { fromEvent, interval, EMPTY } from 'rxjs';
|
||||
* import { bufferToggle } from 'rxjs/operators';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const openings = interval(1000);
|
||||
* const buffered = clicks.pipe(bufferToggle(openings, i =>
|
||||
* i % 2 ? interval(500) : EMPTY
|
||||
* ));
|
||||
* buffered.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* @see {@link buffer}
|
||||
* @see {@link bufferCount}
|
||||
* @see {@link bufferTime}
|
||||
* @see {@link bufferWhen}
|
||||
* @see {@link windowToggle}
|
||||
*
|
||||
* @param {SubscribableOrPromise<O>} openings A Subscribable or Promise of notifications to start new
|
||||
* buffers.
|
||||
* @param {function(value: O): SubscribableOrPromise} closingSelector A function that takes
|
||||
* the value emitted by the `openings` observable and returns a Subscribable or Promise,
|
||||
* which, when it emits, signals that the associated buffer should be emitted
|
||||
* and cleared.
|
||||
* @return {Observable<T[]>} An observable of arrays of buffered values.
|
||||
* @method bufferToggle
|
||||
* @owner Observable
|
||||
*/
|
||||
export function bufferToggle<T, O>(
|
||||
openings: SubscribableOrPromise<O>,
|
||||
closingSelector: (value: O) => SubscribableOrPromise<any>
|
||||
): OperatorFunction<T, T[]> {
|
||||
return function bufferToggleOperatorFunction(source: Observable<T>) {
|
||||
return source.lift(new BufferToggleOperator<T, O>(openings, closingSelector));
|
||||
};
|
||||
}
|
||||
|
||||
class BufferToggleOperator<T, O> implements Operator<T, T[]> {
|
||||
|
||||
constructor(private openings: SubscribableOrPromise<O>,
|
||||
private closingSelector: (value: O) => SubscribableOrPromise<any>) {
|
||||
}
|
||||
|
||||
call(subscriber: Subscriber<T[]>, source: any): any {
|
||||
return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector));
|
||||
}
|
||||
}
|
||||
|
||||
interface BufferContext<T> {
|
||||
buffer: T[];
|
||||
subscription: Subscription;
|
||||
}
|
||||
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
class BufferToggleSubscriber<T, O> extends OuterSubscriber<T, O> {
|
||||
private contexts: Array<BufferContext<T>> = [];
|
||||
|
||||
constructor(destination: Subscriber<T[]>,
|
||||
openings: SubscribableOrPromise<O>,
|
||||
private closingSelector: (value: O) => SubscribableOrPromise<any> | void) {
|
||||
super(destination);
|
||||
this.add(subscribeToResult(this, openings));
|
||||
}
|
||||
|
||||
protected _next(value: T): void {
|
||||
const contexts = this.contexts;
|
||||
const len = contexts.length;
|
||||
for (let i = 0; i < len; i++) {
|
||||
contexts[i].buffer.push(value);
|
||||
}
|
||||
}
|
||||
|
||||
protected _error(err: any): void {
|
||||
const contexts = this.contexts;
|
||||
while (contexts.length > 0) {
|
||||
const context = contexts.shift()!;
|
||||
context.subscription.unsubscribe();
|
||||
context.buffer = null!;
|
||||
context.subscription = null!;
|
||||
}
|
||||
this.contexts = null!;
|
||||
super._error(err);
|
||||
}
|
||||
|
||||
protected _complete(): void {
|
||||
const contexts = this.contexts;
|
||||
while (contexts.length > 0) {
|
||||
const context = contexts.shift()!;
|
||||
this.destination.next!(context.buffer);
|
||||
context.subscription.unsubscribe();
|
||||
context.buffer = null!;
|
||||
context.subscription = null!;
|
||||
}
|
||||
this.contexts = null!;
|
||||
super._complete();
|
||||
}
|
||||
|
||||
notifyNext(outerValue: any, innerValue: O): void {
|
||||
outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);
|
||||
}
|
||||
|
||||
notifyComplete(innerSub: InnerSubscriber<T, O>): void {
|
||||
this.closeBuffer((<any> innerSub).context);
|
||||
}
|
||||
|
||||
private openBuffer(value: O): void {
|
||||
try {
|
||||
const closingSelector = this.closingSelector;
|
||||
const closingNotifier = closingSelector.call(this, value);
|
||||
if (closingNotifier) {
|
||||
this.trySubscribe(closingNotifier);
|
||||
}
|
||||
} catch (err) {
|
||||
this._error(err);
|
||||
}
|
||||
}
|
||||
|
||||
private closeBuffer(context: BufferContext<T>): void {
|
||||
const contexts = this.contexts;
|
||||
|
||||
if (contexts && context) {
|
||||
const { buffer, subscription } = context;
|
||||
this.destination.next!(buffer);
|
||||
contexts.splice(contexts.indexOf(context), 1);
|
||||
this.remove(subscription);
|
||||
subscription.unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
private trySubscribe(closingNotifier: any): void {
|
||||
const contexts = this.contexts;
|
||||
|
||||
const buffer: Array<T> = [];
|
||||
const subscription = new Subscription();
|
||||
const context = { buffer, subscription };
|
||||
contexts.push(context);
|
||||
|
||||
const innerSubscription = subscribeToResult(this, closingNotifier, context as any);
|
||||
|
||||
if (!innerSubscription || innerSubscription.closed) {
|
||||
this.closeBuffer(context);
|
||||
} else {
|
||||
(innerSubscription as any).context = context;
|
||||
|
||||
this.add(innerSubscription);
|
||||
subscription.add(innerSubscription);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"combineAll.js","sources":["../src/operator/combineAll.ts"],"names":[],"mappings":";;;;;AAAA,qDAAgD"}
|
||||
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/operator/withLatestFrom';
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"is-unicode-supported","version":"0.1.0","files":{"license":{"checkedAt":1678887829613,"integrity":"sha512-0fM2/ycrxrltyaBKfQ748Ck23VlPUUBgNAR47ldf4B1V/HoXTfWBSk+vcshGKwEpmOynu4mOP5o+hyBfuRNa8g==","mode":420,"size":1117},"index.js":{"checkedAt":1678887830147,"integrity":"sha512-I+Q/32+cCOv019H30WjVTswnt03L8eu7T709pFBQlh8XPq2ZjQ57iCcLsFX3rACCrcP4aWBVO55l2pLyGOwruQ==","mode":420,"size":313},"readme.md":{"checkedAt":1678887830147,"integrity":"sha512-n/w0CseLPlNsP11MnXy0pMw/23BEXqow9FVt0sv+E3DkyV4/qLkBVvNoFgOsiM3+8dZvQVisoxYSc7KTcrCSEg==","mode":420,"size":1128},"index.d.ts":{"checkedAt":1678887830147,"integrity":"sha512-k7Ps3qvjxHdz5rfQSxMTgurKgWrVAqNODLuFW3IU1dY8WqQXm7hvPNC7Cs22obeOy78MOHXdS5n37An2fWtcWQ==","mode":420,"size":243},"package.json":{"checkedAt":1678887830147,"integrity":"sha512-tXVcDxGJzpTZhm8iLh9SkRnh6bVv4GRfQLBUgCl3BndD4R9UtttGpFYTHwAPLFVAlxLbrRwV+kCVHiv5EsilxQ==","mode":420,"size":734}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/readFile.ts"],"names":["fsReadFileAsync","pathname","encoding","Promise","resolve","reject","fs","readFile","error","contents","filepath","options","throwNotFound","content","code","readFileSync"],"mappings":";;;;;;;;AAAA;;;;AAEA,eAAeA,eAAf,CACEC,QADF,EAEEC,QAFF,EAGmB;AACjB,SAAO,IAAIC,OAAJ,CAAY,CAACC,OAAD,EAAUC,MAAV,KAA2B;AAC5CC,gBAAGC,QAAH,CAAYN,QAAZ,EAAsBC,QAAtB,EAAgC,CAACM,KAAD,EAAQC,QAAR,KAA2B;AACzD,UAAID,KAAJ,EAAW;AACTH,QAAAA,MAAM,CAACG,KAAD,CAAN;AACA;AACD;;AAEDJ,MAAAA,OAAO,CAACK,QAAD,CAAP;AACD,KAPD;AAQD,GATM,CAAP;AAUD;;AAMD,eAAeF,QAAf,CACEG,QADF,EAEEC,OAAgB,GAAG,EAFrB,EAG0B;AACxB,QAAMC,aAAa,GAAGD,OAAO,CAACC,aAAR,KAA0B,IAAhD;;AAEA,MAAI;AACF,UAAMC,OAAO,GAAG,MAAMb,eAAe,CAACU,QAAD,EAAW,MAAX,CAArC;AAEA,WAAOG,OAAP;AACD,GAJD,CAIE,OAAOL,KAAP,EAAc;AACd,QAAII,aAAa,KAAK,KAAlB,IAA2BJ,KAAK,CAACM,IAAN,KAAe,QAA9C,EAAwD;AACtD,aAAO,IAAP;AACD;;AAED,UAAMN,KAAN;AACD;AACF;;AAED,SAASO,YAAT,CAAsBL,QAAtB,EAAwCC,OAAgB,GAAG,EAA3D,EAA8E;AAC5E,QAAMC,aAAa,GAAGD,OAAO,CAACC,aAAR,KAA0B,IAAhD;;AAEA,MAAI;AACF,UAAMC,OAAO,GAAGP,YAAGS,YAAH,CAAgBL,QAAhB,EAA0B,MAA1B,CAAhB;;AAEA,WAAOG,OAAP;AACD,GAJD,CAIE,OAAOL,KAAP,EAAc;AACd,QAAII,aAAa,KAAK,KAAlB,IAA2BJ,KAAK,CAACM,IAAN,KAAe,QAA9C,EAAwD;AACtD,aAAO,IAAP;AACD;;AAED,UAAMN,KAAN;AACD;AACF","sourcesContent":["import fs from 'fs';\n\nasync function fsReadFileAsync(\n pathname: string,\n encoding: string,\n): Promise<string> {\n return new Promise((resolve, reject): void => {\n fs.readFile(pathname, encoding, (error, contents): void => {\n if (error) {\n reject(error);\n return;\n }\n\n resolve(contents);\n });\n });\n}\n\ninterface Options {\n throwNotFound?: boolean;\n}\n\nasync function readFile(\n filepath: string,\n options: Options = {},\n): Promise<string | null> {\n const throwNotFound = options.throwNotFound === true;\n\n try {\n const content = await fsReadFileAsync(filepath, 'utf8');\n\n return content;\n } catch (error) {\n if (throwNotFound === false && error.code === 'ENOENT') {\n return null;\n }\n\n throw error;\n }\n}\n\nfunction readFileSync(filepath: string, options: Options = {}): string | null {\n const throwNotFound = options.throwNotFound === true;\n\n try {\n const content = fs.readFileSync(filepath, 'utf8');\n\n return content;\n } catch (error) {\n if (throwNotFound === false && error.code === 'ENOENT') {\n return null;\n }\n\n throw error;\n }\n}\n\nexport { readFile, readFileSync };\n"],"file":"readFile.js"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"sequenceEqual.js","sources":["../../../src/internal/operators/sequenceEqual.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA8D3C,MAAM,UAAU,aAAa,CAAI,SAAwB,EACxB,UAAoC;IACnE,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAClG,CAAC;AAED,MAAM,OAAO,qBAAqB;IAChC,YAAoB,SAAwB,EACxB,UAAmC;QADnC,cAAS,GAAT,SAAS,CAAe;QACxB,eAAU,GAAV,UAAU,CAAyB;IACvD,CAAC;IAED,IAAI,CAAC,UAA+B,EAAE,MAAW;QAC/C,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,uBAAuB,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACpG,CAAC;CACF;AAOD,MAAM,OAAO,uBAA8B,SAAQ,UAAa;IAK9D,YAAY,WAAwB,EAChB,SAAwB,EACxB,UAAmC;QACrD,KAAK,CAAC,WAAW,CAAC,CAAC;QAFD,cAAS,GAAT,SAAS,CAAe;QACxB,eAAU,GAAV,UAAU,CAAyB;QAN/C,OAAE,GAAQ,EAAE,CAAC;QACb,OAAE,GAAQ,EAAE,CAAC;QACb,iBAAY,GAAG,KAAK,CAAC;QAM1B,IAAI,CAAC,WAA4B,CAAC,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,gCAAgC,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACvH,CAAC;IAES,KAAK,CAAC,KAAQ;QACtB,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,EAAE,CAAC,MAA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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":"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 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 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","2":"G B C 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:{"2":"nC"},I:{"1":"tB I D oC pC qC rC AC sC tC"},J:{"1":"E A"},K:{"1":"e","2":"A B C 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:{"2":"9C"}},B:7,C:"background-position-x & background-position-y"};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"distinctUntilKeyChanged.js","sources":["../src/operator/distinctUntilKeyChanged.ts"],"names":[],"mappings":";;;;;AAAA,kEAA6D"}
|
||||
@@ -0,0 +1,309 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var sade = require('sade');
|
||||
var glob = require('tiny-glob');
|
||||
var compiler = require('svelte/compiler');
|
||||
var estreeWalker = require('estree-walker');
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
function _interopNamespace(e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var n = Object.create(null);
|
||||
if (e) {
|
||||
Object.keys(e).forEach(function (k) {
|
||||
if (k !== 'default') {
|
||||
var d = Object.getOwnPropertyDescriptor(e, k);
|
||||
Object.defineProperty(n, k, d.get ? d : {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return e[k];
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
n['default'] = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
|
||||
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
||||
var sade__default = /*#__PURE__*/_interopDefaultLegacy(sade);
|
||||
var glob__default = /*#__PURE__*/_interopDefaultLegacy(glob);
|
||||
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
function __values(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
}
|
||||
|
||||
function __asyncValues(o) {
|
||||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
||||
var m = o[Symbol.asyncIterator], i;
|
||||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
||||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
||||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
||||
}
|
||||
|
||||
/* eslint-disable no-multi-assign */
|
||||
/* eslint-disable no-return-assign */
|
||||
const isNumberString = (n) => !Number.isNaN(parseInt(n, 10));
|
||||
function deepSet(obj, path, value) {
|
||||
const parts = path.replace(/\[(\w+)\]/gi, '.$1').split('.');
|
||||
return parts.reduce((ref, part, i) => {
|
||||
if (part in ref)
|
||||
return (ref = ref[part]);
|
||||
if (i < parts.length - 1) {
|
||||
if (isNumberString(parts[i + 1])) {
|
||||
return (ref = ref[part] = []);
|
||||
}
|
||||
return (ref = ref[part] = {});
|
||||
}
|
||||
return (ref[part] = value);
|
||||
}, obj);
|
||||
}
|
||||
|
||||
function getObjFromExpression(exprNode) {
|
||||
return exprNode.properties.reduce((acc, prop) => {
|
||||
// we only want primitives
|
||||
if (prop.value.type === 'Literal' &&
|
||||
prop.value.value !== Object(prop.value.value)) {
|
||||
const key = prop.key.name;
|
||||
acc[key] = prop.value.value;
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
}
|
||||
|
||||
function delve(obj, fullKey) {
|
||||
if (fullKey in obj) {
|
||||
return obj[fullKey];
|
||||
}
|
||||
const keys = fullKey.split('.');
|
||||
let result = obj;
|
||||
for (let p = 0; p < keys.length; p++) {
|
||||
if (typeof result === 'object') {
|
||||
if (p > 0) {
|
||||
const partialKey = keys.slice(p, keys.length).join('.');
|
||||
if (partialKey in result) {
|
||||
result = result[partialKey];
|
||||
break;
|
||||
}
|
||||
}
|
||||
result = result[keys[p]];
|
||||
}
|
||||
else {
|
||||
result = undefined;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
const LIB_NAME = 'svelte-i18n';
|
||||
const DEFINE_MESSAGES_METHOD_NAME = 'defineMessages';
|
||||
const FORMAT_METHOD_NAMES = new Set(['format', '_', 't']);
|
||||
function isFormatCall(node, imports) {
|
||||
if (node.type !== 'CallExpression')
|
||||
return false;
|
||||
let identifier;
|
||||
if (node.callee.type === 'Identifier') {
|
||||
identifier = node.callee;
|
||||
}
|
||||
if (!identifier || identifier.type !== 'Identifier') {
|
||||
return false;
|
||||
}
|
||||
const methodName = identifier.name.slice(1);
|
||||
return imports.has(methodName);
|
||||
}
|
||||
function isMessagesDefinitionCall(node, methodName) {
|
||||
if (node.type !== 'CallExpression')
|
||||
return false;
|
||||
return (node.callee &&
|
||||
node.callee.type === 'Identifier' &&
|
||||
node.callee.name === methodName);
|
||||
}
|
||||
function getLibImportDeclarations(ast) {
|
||||
return (ast.instance
|
||||
? ast.instance.content.body.filter((node) => node.type === 'ImportDeclaration' && node.source.value === LIB_NAME)
|
||||
: []);
|
||||
}
|
||||
function getDefineMessagesSpecifier(decl) {
|
||||
return decl.specifiers.find((spec) => 'imported' in spec && spec.imported.name === DEFINE_MESSAGES_METHOD_NAME);
|
||||
}
|
||||
function getFormatSpecifiers(decl) {
|
||||
return decl.specifiers.filter((spec) => 'imported' in spec && FORMAT_METHOD_NAMES.has(spec.imported.name));
|
||||
}
|
||||
function collectFormatCalls(ast) {
|
||||
const importDecls = getLibImportDeclarations(ast);
|
||||
if (importDecls.length === 0)
|
||||
return [];
|
||||
const imports = new Set(importDecls.flatMap((decl) => getFormatSpecifiers(decl).map((n) => n.local.name)));
|
||||
if (imports.size === 0)
|
||||
return [];
|
||||
const calls = [];
|
||||
function enter(node) {
|
||||
if (isFormatCall(node, imports)) {
|
||||
calls.push(node);
|
||||
this.skip();
|
||||
}
|
||||
}
|
||||
estreeWalker.walk(ast.instance, { enter });
|
||||
estreeWalker.walk(ast.html, { enter });
|
||||
return calls;
|
||||
}
|
||||
function collectMessageDefinitions(ast) {
|
||||
const definitions = [];
|
||||
const defineImportDecl = getLibImportDeclarations(ast).find(getDefineMessagesSpecifier);
|
||||
if (defineImportDecl == null)
|
||||
return [];
|
||||
const defineMethodName = getDefineMessagesSpecifier(defineImportDecl).local
|
||||
.name;
|
||||
estreeWalker.walk(ast.instance, {
|
||||
enter(node) {
|
||||
if (isMessagesDefinitionCall(node, defineMethodName) === false)
|
||||
return;
|
||||
const [arg] = node.arguments;
|
||||
if (arg.type === 'ObjectExpression') {
|
||||
definitions.push(arg);
|
||||
this.skip();
|
||||
}
|
||||
},
|
||||
});
|
||||
return definitions.flatMap((definitionDict) => definitionDict.properties.map((propNode) => {
|
||||
if (propNode.type !== 'Property') {
|
||||
throw new Error(`Found invalid '${propNode.type}' at L${propNode.loc.start.line}:${propNode.loc.start.column}`);
|
||||
}
|
||||
return propNode.value;
|
||||
}));
|
||||
}
|
||||
function collectMessages(markup) {
|
||||
const ast = compiler.parse(markup);
|
||||
const calls = collectFormatCalls(ast);
|
||||
const definitions = collectMessageDefinitions(ast);
|
||||
return [
|
||||
...definitions.map((definition) => getObjFromExpression(definition)),
|
||||
...calls.map((call) => {
|
||||
const [pathNode, options] = call.arguments;
|
||||
let messageObj;
|
||||
if (pathNode.type === 'ObjectExpression') {
|
||||
// _({ ...opts })
|
||||
messageObj = getObjFromExpression(pathNode);
|
||||
}
|
||||
else {
|
||||
const node = pathNode;
|
||||
const id = node.value;
|
||||
if (options && options.type === 'ObjectExpression') {
|
||||
// _(id, { ...opts })
|
||||
messageObj = getObjFromExpression(options);
|
||||
messageObj.id = id;
|
||||
}
|
||||
else {
|
||||
// _(id)
|
||||
messageObj = { id };
|
||||
}
|
||||
}
|
||||
if ((messageObj === null || messageObj === void 0 ? void 0 : messageObj.id) == null)
|
||||
return null;
|
||||
return messageObj;
|
||||
}),
|
||||
].filter(Boolean);
|
||||
}
|
||||
function extractMessages(markup, { accumulator = {}, shallow = false, overwrite = false } = {}) {
|
||||
collectMessages(markup).forEach((messageObj) => {
|
||||
let defaultValue = messageObj.default;
|
||||
if (typeof defaultValue === 'undefined') {
|
||||
defaultValue = '';
|
||||
}
|
||||
if (shallow) {
|
||||
if (overwrite === false && messageObj.id in accumulator) {
|
||||
return;
|
||||
}
|
||||
accumulator[messageObj.id] = defaultValue;
|
||||
}
|
||||
else {
|
||||
if (overwrite === false &&
|
||||
typeof delve(accumulator, messageObj.id) !== 'undefined') {
|
||||
return;
|
||||
}
|
||||
deepSet(accumulator, messageObj.id, defaultValue);
|
||||
}
|
||||
});
|
||||
return accumulator;
|
||||
}
|
||||
|
||||
const { readFile, writeFile, mkdir, access } = fs__default['default'].promises;
|
||||
const fileExists = (path) => access(path)
|
||||
.then(() => true)
|
||||
.catch(() => false);
|
||||
const program = sade__default['default']('svelte-i18n');
|
||||
program
|
||||
.command('extract <glob> [output]')
|
||||
.describe('extract all message definitions from files to a json')
|
||||
.option('-s, --shallow', 'extract to a shallow dictionary (ids with dots interpreted as strings, not paths)', false)
|
||||
.option('--overwrite', 'overwrite the content of the output file instead of just appending new properties', false)
|
||||
.option('-c, --config <dir>', 'path to the "svelte.config.js" file', process.cwd())
|
||||
.action(async (globStr, output, { shallow, overwrite, config }) => {
|
||||
var e_1, _a;
|
||||
const filesToExtract = (await glob__default['default'](globStr)).filter((file) => file.match(/\.html|svelte$/i));
|
||||
const svelteConfig = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(path.resolve(config, 'svelte.config.js'))); }).catch(() => null);
|
||||
let accumulator = {};
|
||||
if (output != null && overwrite === false && (await fileExists(output))) {
|
||||
accumulator = await readFile(output)
|
||||
.then((file) => JSON.parse(file.toString()))
|
||||
.catch((e) => {
|
||||
console.warn(e);
|
||||
accumulator = {};
|
||||
});
|
||||
}
|
||||
try {
|
||||
for (var filesToExtract_1 = __asyncValues(filesToExtract), filesToExtract_1_1; filesToExtract_1_1 = await filesToExtract_1.next(), !filesToExtract_1_1.done;) {
|
||||
const filePath = filesToExtract_1_1.value;
|
||||
const buffer = await readFile(filePath);
|
||||
let content = buffer.toString();
|
||||
if (svelteConfig === null || svelteConfig === void 0 ? void 0 : svelteConfig.preprocess) {
|
||||
const processed = await compiler.preprocess(content, svelteConfig.preprocess, {
|
||||
filename: filePath,
|
||||
});
|
||||
content = processed.code;
|
||||
}
|
||||
extractMessages(content, { filePath, accumulator, shallow });
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (filesToExtract_1_1 && !filesToExtract_1_1.done && (_a = filesToExtract_1.return)) await _a.call(filesToExtract_1);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
const jsonDictionary = JSON.stringify(accumulator, null, ' ');
|
||||
if (output == null)
|
||||
return console.log(jsonDictionary);
|
||||
await mkdir(path.dirname(output), { recursive: true });
|
||||
await writeFile(output, jsonDictionary);
|
||||
});
|
||||
program.parse(process.argv);
|
||||
@@ -0,0 +1,22 @@
|
||||
let utils = require('./utils')
|
||||
|
||||
class OldValue {
|
||||
constructor (unprefixed, prefixed, string, regexp) {
|
||||
this.unprefixed = unprefixed
|
||||
this.prefixed = prefixed
|
||||
this.string = string || prefixed
|
||||
this.regexp = regexp || utils.regexp(prefixed)
|
||||
}
|
||||
|
||||
/**
|
||||
* Check, that value contain old value
|
||||
*/
|
||||
check (value) {
|
||||
if (value.includes(this.string)) {
|
||||
return !!value.match(this.regexp)
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = OldValue
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"withLatestFrom.js","sources":["../src/operator/withLatestFrom.ts"],"names":[],"mappings":";;;;;AAAA,yDAAoD"}
|
||||
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/operator/exhaustMap';
|
||||
@@ -0,0 +1,79 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "v1", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _v.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "v3", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _v2.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "v4", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _v3.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "v5", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _v4.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "NIL", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _nil.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "version", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _version.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "validate", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _validate.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "stringify", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _stringify.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "parse", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _parse.default;
|
||||
}
|
||||
});
|
||||
|
||||
var _v = _interopRequireDefault(require("./v1.js"));
|
||||
|
||||
var _v2 = _interopRequireDefault(require("./v3.js"));
|
||||
|
||||
var _v3 = _interopRequireDefault(require("./v4.js"));
|
||||
|
||||
var _v4 = _interopRequireDefault(require("./v5.js"));
|
||||
|
||||
var _nil = _interopRequireDefault(require("./nil.js"));
|
||||
|
||||
var _version = _interopRequireDefault(require("./version.js"));
|
||||
|
||||
var _validate = _interopRequireDefault(require("./validate.js"));
|
||||
|
||||
var _stringify = _interopRequireDefault(require("./stringify.js"));
|
||||
|
||||
var _parse = _interopRequireDefault(require("./parse.js"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
Methods to exclude.
|
||||
*/
|
||||
type ArrayLengthMutationKeys = 'splice' | 'push' | 'pop' | 'shift' | 'unshift';
|
||||
|
||||
/**
|
||||
Create a type that represents an array of the given type and length. The array's length and the `Array` prototype methods that manipulate its length are excluded in the resulting type.
|
||||
|
||||
Please participate in [this issue](https://github.com/microsoft/TypeScript/issues/26223) if you want to have a similiar type built into TypeScript.
|
||||
|
||||
Use-cases:
|
||||
- Declaring fixed-length tuples or arrays with a large number of items.
|
||||
- Creating a range union (for example, `0 | 1 | 2 | 3 | 4` from the keys of such a type) without having to resort to recursive types.
|
||||
- Creating an array of coordinates with a static length, for example, length of 3 for a 3D vector.
|
||||
|
||||
@example
|
||||
```
|
||||
import {FixedLengthArray} from 'type-fest';
|
||||
|
||||
type FencingTeam = FixedLengthArray<string, 3>;
|
||||
|
||||
const guestFencingTeam: FencingTeam = ['Josh', 'Michael', 'Robert'];
|
||||
|
||||
const homeFencingTeam: FencingTeam = ['George', 'John'];
|
||||
//=> error TS2322: Type string[] is not assignable to type 'FencingTeam'
|
||||
|
||||
guestFencingTeam.push('Sam');
|
||||
//=> error TS2339: Property 'push' does not exist on type 'FencingTeam'
|
||||
```
|
||||
*/
|
||||
export type FixedLengthArray<Element, Length extends number, ArrayPrototype = [Element, ...Element[]]> = Pick<
|
||||
ArrayPrototype,
|
||||
Exclude<keyof ArrayPrototype, ArrayLengthMutationKeys>
|
||||
> & {
|
||||
[index: number]: Element;
|
||||
[Symbol.iterator]: () => IterableIterator<Element>;
|
||||
readonly length: Length;
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
@@ -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.00653,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0.00327,"49":0,"50":0,"51":0.00327,"52":0.03919,"53":0,"54":0,"55":0,"56":0.00653,"57":0,"58":0,"59":0,"60":0,"61":0.00327,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.00327,"69":0,"70":0,"71":0,"72":0.0098,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00327,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0.00327,"89":0,"90":0,"91":0,"92":0,"93":0.00327,"94":0.00327,"95":0,"96":0,"97":0,"98":0,"99":0.00327,"100":0,"101":0,"102":0.0098,"103":0.00327,"104":0.00327,"105":0.0098,"106":0.00327,"107":0.00653,"108":0.39845,"109":0.23842,"110":0.00327,"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.00653,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0.00327,"48":0,"49":0.02286,"50":0,"51":0,"52":0,"53":0.00653,"54":0,"55":0,"56":0.00327,"57":0,"58":0,"59":0,"60":0.00327,"61":0,"62":0,"63":0.00327,"64":0.00327,"65":0.00327,"66":0.00327,"67":0,"68":0.00327,"69":0.00327,"70":0,"71":0.00327,"72":0.00327,"73":0.00327,"74":0,"75":0.00327,"76":0.00653,"77":0.00327,"78":0,"79":0.05226,"80":0.00327,"81":0.01633,"83":0.01306,"84":0.00327,"85":0.01306,"86":0.01633,"87":0.01306,"88":0.00653,"89":0.00327,"90":0.00327,"91":0.01306,"92":0.01306,"93":0.00653,"94":0.01306,"95":0.00653,"96":0.00653,"97":0.00653,"98":0.00327,"99":0.00327,"100":0.01306,"101":0.00653,"102":0.01306,"103":0.01633,"104":0.0098,"105":0.02939,"106":0.02939,"107":0.05552,"108":3.94206,"109":3.83755,"110":0.0098,"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.00653,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0.00327,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0.00653,"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.00327,"68":0,"69":0,"70":0.00327,"71":0,"72":0,"73":0.00327,"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.1731,"94":0.23515,"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,"15":0.00327,"16":0,"17":0,"18":0,"79":0,"80":0,"81":0,"83":0,"84":0.00327,"85":0,"86":0.00327,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00327,"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,"106":0.00327,"107":0.00653,"108":0.29067,"109":0.27434},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.00327,"15":0,_:"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,"13.1":0.00653,"14.1":0.01633,"15.1":0,"15.2-15.3":0,"15.4":0.00327,"15.5":0.0098,"15.6":0.04899,"16.0":0.00653,"16.1":0.0196,"16.2":0.04572,"16.3":0.00327},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,"7.0-7.1":0.03585,"8.1-8.4":0,"9.0-9.2":0.00224,"9.3":0.07617,"10.0-10.2":0.00224,"10.3":0.0224,"11.0-11.2":0.00896,"11.3-11.4":0.00448,"12.0-12.1":0.02016,"12.2-12.5":0.69003,"13.0-13.1":0.00672,"13.2":0.00896,"13.3":0.03361,"13.4-13.7":0.1165,"14.0-14.4":0.33157,"14.5-14.8":1.09105,"15.0-15.1":0.10754,"15.2-15.3":0.21507,"15.4":0.27556,"15.5":0.62954,"15.6":2.70411,"16.0":3.18802,"16.1":6.73002,"16.2":4.30372,"16.3":0.33829},P:{"4":0.17243,"5.0-5.4":0.01014,"6.2-6.4":0,"7.2-7.4":0.01014,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0.03043,"12.0":0.01014,"13.0":0.04057,"14.0":0.03043,"15.0":0.01014,"16.0":0.05071,"17.0":0.071,"18.0":0.071,"19.0":1.9373},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.06334,"4.2-4.3":0.00232,"4.4":0,"4.4.3-4.4.4":0.01046},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.0098,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.08754},Q:{"13.1":0},O:{"0":0.00673},H:{"0":0.19763},L:{"0":64.80897},S:{"2.5":0}};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"queue.js","sources":["../../../src/internal/scheduler/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAgElD,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,WAAW,CAAC,CAAC;AAK9D,MAAM,CAAC,MAAM,KAAK,GAAG,cAAc,CAAC"}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "rxjs/ajax",
|
||||
"typings": "./index.d.ts",
|
||||
"main": "./index.js",
|
||||
"module": "../_esm5/ajax/index.js",
|
||||
"es2015": "../_esm2015/ajax/index.js",
|
||||
"sideEffects": false
|
||||
}
|
||||
Reference in New Issue
Block a user