new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"rxSubscriber.js","sources":["../../src/internal/symbol/rxSubscriber.ts"],"names":[],"mappings":";;AACa,QAAA,YAAY,GAAG,CAAC;IAC3B,OAAA,OAAO,MAAM,KAAK,UAAU;QAC1B,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC;QACxB,CAAC,CAAC,iBAAiB,GAAG,IAAI,CAAC,MAAM,EAAE;AAFrC,CAEqC,CAAC,EAAE,CAAC;AAK9B,QAAA,cAAc,GAAG,oBAAY,CAAC"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"applyMixins.js","sources":["../src/util/applyMixins.ts"],"names":[],"mappings":";;;;;AAAA,kDAA6C"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"A B","2":"J E F G BC"},B:{"1":"C K L H M N O P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t"},C:{"1":"0 1 2 3 4 5 6 7 8 9 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 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","2":"I"},E:{"1":"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":"I 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 OC PC QC RC qB 9B SC rB","2":"G"},G:{"2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B"},H:{"2":"nC"},I:{"1":"tB I D rC AC sC tC","2":"oC pC qC"},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:1,C:"Autofocus attribute"};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,5 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
|
||||
script: "npm test"
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operators/pairwise';
|
||||
@@ -0,0 +1,64 @@
|
||||
import {WordSeparators} from '../source/utilities';
|
||||
import {Split} from './utilities';
|
||||
|
||||
/**
|
||||
Step by step takes the first item in an array literal, formats it and adds it to a string literal, and then recursively appends the remainder.
|
||||
|
||||
Only to be used by `CamelCaseStringArray<>`.
|
||||
|
||||
@see CamelCaseStringArray
|
||||
*/
|
||||
type InnerCamelCaseStringArray<Parts extends any[], PreviousPart> =
|
||||
Parts extends [`${infer FirstPart}`, ...infer RemainingParts]
|
||||
? FirstPart extends undefined
|
||||
? ''
|
||||
: FirstPart extends ''
|
||||
? InnerCamelCaseStringArray<RemainingParts, PreviousPart>
|
||||
: `${PreviousPart extends '' ? FirstPart : Capitalize<FirstPart>}${InnerCamelCaseStringArray<RemainingParts, FirstPart>}`
|
||||
: '';
|
||||
|
||||
/**
|
||||
Starts fusing the output of `Split<>`, an array literal of strings, into a camel-cased string literal.
|
||||
|
||||
It's separate from `InnerCamelCaseStringArray<>` to keep a clean API outwards to the rest of the code.
|
||||
|
||||
@see Split
|
||||
*/
|
||||
type CamelCaseStringArray<Parts extends string[]> =
|
||||
Parts extends [`${infer FirstPart}`, ...infer RemainingParts]
|
||||
? Uncapitalize<`${FirstPart}${InnerCamelCaseStringArray<RemainingParts, FirstPart>}`>
|
||||
: never;
|
||||
|
||||
/**
|
||||
Convert a string literal to camel-case.
|
||||
|
||||
This can be useful when, for example, converting some kebab-cased command-line flags or a snake-cased database result.
|
||||
|
||||
@example
|
||||
```
|
||||
import {CamelCase} from 'type-fest';
|
||||
|
||||
// Simple
|
||||
|
||||
const someVariable: CamelCase<'foo-bar'> = 'fooBar';
|
||||
|
||||
// Advanced
|
||||
|
||||
type CamelCasedProps<T> = {
|
||||
[K in keyof T as CamelCase<K>]: T[K]
|
||||
};
|
||||
|
||||
interface RawOptions {
|
||||
'dry-run': boolean;
|
||||
'full_family_name': string;
|
||||
foo: number;
|
||||
}
|
||||
|
||||
const dbResult: CamelCasedProps<ModelProps> = {
|
||||
dryRun: true,
|
||||
fullFamilyName: 'bar.js',
|
||||
foo: 123
|
||||
};
|
||||
```
|
||||
*/
|
||||
export type CamelCase<K> = K extends string ? CamelCaseStringArray<Split<K, WordSeparators>> : K;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"using.js","sources":["../src/observable/using.ts"],"names":[],"mappings":";;;;;AAAA,kDAA6C"}
|
||||
@@ -0,0 +1,39 @@
|
||||
/** PURE_IMPORTS_START tslib,_Observable,_Subscription,_SubscriptionLoggable,_util_applyMixins PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { Observable } from '../Observable';
|
||||
import { Subscription } from '../Subscription';
|
||||
import { SubscriptionLoggable } from './SubscriptionLoggable';
|
||||
import { applyMixins } from '../util/applyMixins';
|
||||
var ColdObservable = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(ColdObservable, _super);
|
||||
function ColdObservable(messages, scheduler) {
|
||||
var _this = _super.call(this, function (subscriber) {
|
||||
var observable = this;
|
||||
var index = observable.logSubscribedFrame();
|
||||
var subscription = new Subscription();
|
||||
subscription.add(new Subscription(function () {
|
||||
observable.logUnsubscribedFrame(index);
|
||||
}));
|
||||
observable.scheduleMessages(subscriber);
|
||||
return subscription;
|
||||
}) || this;
|
||||
_this.messages = messages;
|
||||
_this.subscriptions = [];
|
||||
_this.scheduler = scheduler;
|
||||
return _this;
|
||||
}
|
||||
ColdObservable.prototype.scheduleMessages = function (subscriber) {
|
||||
var messagesLength = this.messages.length;
|
||||
for (var i = 0; i < messagesLength; i++) {
|
||||
var message = this.messages[i];
|
||||
subscriber.add(this.scheduler.schedule(function (_a) {
|
||||
var message = _a.message, subscriber = _a.subscriber;
|
||||
message.notification.observe(subscriber);
|
||||
}, message.frame, { message: message, subscriber: subscriber }));
|
||||
}
|
||||
};
|
||||
return ColdObservable;
|
||||
}(Observable));
|
||||
export { ColdObservable };
|
||||
/*@__PURE__*/ applyMixins(ColdObservable, [SubscriptionLoggable]);
|
||||
//# sourceMappingURL=ColdObservable.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"i j k l m n o p q r s D t","2":"C K L H M N O P Q R S T U V W X Y Z a b c d f g h"},C:{"1":"r s D t xB yB","2":"0 1 2 3 4 5 6 7 8 9 CC tB I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h DC EC","258":"i j k l m n o","578":"p q"},D:{"1":"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 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","194":"Z a b c d f g h"},E:{"2":"I u J E F G A B C K L H GC zB HC IC JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC"},F:{"1":"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 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 OC PC QC RC qB 9B SC rB"},G:{"2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B"},H:{"2":"nC"},I:{"1":"D","2":"tB I oC pC qC rC AC sC tC"},J:{"16":"E A"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"16":"A B"},O:{"2":"uC"},P:{"1":"6C 7C","2":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C"},Q:{"2":"1B"},R:{"2":"8C"},S:{"2":"9C"}},B:6,C:"COLR/CPAL(v1) Font Formats"};
|
||||
@@ -0,0 +1,69 @@
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { noop } from '../util/noop';
|
||||
import { isFunction } from '../util/isFunction';
|
||||
export function tap(nextOrObserver, error, complete) {
|
||||
return function tapOperatorFunction(source) {
|
||||
return source.lift(new DoOperator(nextOrObserver, error, complete));
|
||||
};
|
||||
}
|
||||
class DoOperator {
|
||||
constructor(nextOrObserver, error, complete) {
|
||||
this.nextOrObserver = nextOrObserver;
|
||||
this.error = error;
|
||||
this.complete = complete;
|
||||
}
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));
|
||||
}
|
||||
}
|
||||
class TapSubscriber extends Subscriber {
|
||||
constructor(destination, observerOrNext, error, complete) {
|
||||
super(destination);
|
||||
this._tapNext = noop;
|
||||
this._tapError = noop;
|
||||
this._tapComplete = noop;
|
||||
this._tapError = error || noop;
|
||||
this._tapComplete = complete || noop;
|
||||
if (isFunction(observerOrNext)) {
|
||||
this._context = this;
|
||||
this._tapNext = observerOrNext;
|
||||
}
|
||||
else if (observerOrNext) {
|
||||
this._context = observerOrNext;
|
||||
this._tapNext = observerOrNext.next || noop;
|
||||
this._tapError = observerOrNext.error || noop;
|
||||
this._tapComplete = observerOrNext.complete || noop;
|
||||
}
|
||||
}
|
||||
_next(value) {
|
||||
try {
|
||||
this._tapNext.call(this._context, value);
|
||||
}
|
||||
catch (err) {
|
||||
this.destination.error(err);
|
||||
return;
|
||||
}
|
||||
this.destination.next(value);
|
||||
}
|
||||
_error(err) {
|
||||
try {
|
||||
this._tapError.call(this._context, err);
|
||||
}
|
||||
catch (err) {
|
||||
this.destination.error(err);
|
||||
return;
|
||||
}
|
||||
this.destination.error(err);
|
||||
}
|
||||
_complete() {
|
||||
try {
|
||||
this._tapComplete.call(this._context);
|
||||
}
|
||||
catch (err) {
|
||||
this.destination.error(err);
|
||||
return;
|
||||
}
|
||||
return this.destination.complete();
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=tap.js.map
|
||||
@@ -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 O"},C:{"1":"3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB","2":"0 1 2 CC tB I u J E F G A B C K L H M N O v w x y z DC EC"},D:{"1":"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":"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"},E:{"1":"A B C K L H KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"I u J E F G GC zB HC IC JC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB 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 H M N O v w x y z OC PC QC RC qB 9B SC rB"},G:{"1":"ZC aC bC cC dC eC fC 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"},H:{"2":"nC"},I:{"1":"D tC","2":"tB I oC pC qC rC AC sC"},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":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:2,C:"CSS all property"};
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user