@pushrocks/smartrx
Advanced tools
Comparing version 2.0.19 to 2.0.20
@@ -15,3 +15,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -21,3 +21,3 @@ var __importStar = (this && this.__importStar) || function (mod) { | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -28,2 +28,3 @@ return result; | ||
exports.rxjs = void 0; | ||
require("./smartrx.plugins"); | ||
__exportStar(require("./smartrx.classes.observablemap"), exports); | ||
@@ -33,2 +34,2 @@ __exportStar(require("./smartrx.classes.observableintake"), exports); | ||
exports.rxjs = rxjs; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQ0Esa0VBQWdEO0FBQ2hELHFFQUFtRDtBQUVuRCw2REFBK0M7QUFDdEMsb0JBQUkifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNkJBQTZDO0FBQzdDLGtFQUFnRDtBQUNoRCxxRUFBbUQ7QUFFbkQsNkRBQStDO0FBQ3RDLG9CQUFJIn0= |
@@ -14,3 +14,3 @@ import * as plugins from './smartrx.plugins'; | ||
constructor(); | ||
setObservable(observableFunc: any): void; | ||
setObservable(observableFunc: plugins.rxjs.Observable<any>): void; | ||
push(payloadArg: T): void; | ||
@@ -26,5 +26,5 @@ /** | ||
*/ | ||
setGenerator(generatorArg: any): void; | ||
setGenerator(generatorArg: Generator<T>): void; | ||
makeBuffered(): void; | ||
subscribe(...args: any[]): plugins.rxjs.Subscription; | ||
subscribe(...args: any): plugins.rxjs.Subscription; | ||
/** | ||
@@ -31,0 +31,0 @@ * request the next values in the quantity specified |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -43,7 +43,7 @@ return result; | ||
this.observableFunctions.next = (...args) => { | ||
return observerArg.next(...args); | ||
return observerArg.next(args); | ||
}; | ||
this.observableFunctions.complete = (...args) => { | ||
this.observableFunctions.complete = () => { | ||
this.completedDeffered.resolve(); | ||
return observerArg.complete(...args); | ||
return observerArg.complete(); | ||
}; | ||
@@ -55,3 +55,3 @@ }); | ||
setObservable(observableFunc) { | ||
this.observable = observableFunc(); | ||
this.observable = observableFunc; | ||
} | ||
@@ -102,4 +102,4 @@ push(payloadArg) { | ||
else { | ||
const nextPayload = this.generator(); | ||
this.internalPush(nextPayload); | ||
const nextPayload = this.generator.next(); | ||
this.internalPush(nextPayload.value); | ||
} | ||
@@ -120,2 +120,2 @@ } | ||
exports.ObservableIntake = ObservableIntake; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRyeC5jbGFzc2VzLm9ic2VydmFibGVpbnR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ENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQztpQkFDL0M7cUJBQU07b0JBQ0wsTUFBTSxXQUFXLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLEVBQUUsQ0FBQztvQkFDMUMsSUFBSSxDQUFDLFlBQVksQ0FBQyxXQUFXLENBQUMsS0FBSyxDQUFDLENBQUM7aUJBQ3RDO2FBQ0Y7U0FDRjtJQUNILENBQUM7SUFFRDs7T0FFRztJQUNJLGNBQWM7UUFDbkIsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFFBQVEsRUFBRSxDQUFDO0lBQ3RDLENBQUM7SUFFTyxZQUFZLENBQUMsVUFBYTtRQUNoQyxJQUFJLENBQUMsbUJBQW1CLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQzVDLENBQUM7Q0FDRjtBQWpHRCw0Q0FpR0MifQ== |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -37,3 +37,3 @@ return result; | ||
getObservableForEmitterEvent(emitterArg, eventArg) { | ||
const existingBundle = this.observableEmitterBundleObjectmap.find((bundleArg) => { | ||
const existingBundle = this.observableEmitterBundleObjectmap.findSync((bundleArg) => { | ||
return bundleArg.emitter === emitterArg && bundleArg.event === eventArg; | ||
@@ -56,2 +56,2 @@ }); | ||
exports.Observablemap = Observablemap; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRyeC5jbGFzc2VzLm9ic2VydmFibGVtYXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFyd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2QkQsc0NBdUJDIn0= |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -1,2 +0,2 @@ | ||
export { Observable, Subject, fromEvent, ReplaySubject, Subscription } from 'rxjs'; | ||
export { Observable, Subject, fromEvent, ReplaySubject, Subscription, Observer } from 'rxjs'; | ||
import { startWith, takeUntil, map, debounce, debounceTime } from 'rxjs/operators'; | ||
@@ -3,0 +3,0 @@ export declare const ops: { |
"use strict"; | ||
// this file is intended to keep the bundle size down | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ops = void 0; | ||
exports.ops = exports.Subscription = exports.ReplaySubject = exports.fromEvent = exports.Subject = exports.Observable = void 0; | ||
var rxjs_1 = require("rxjs"); | ||
@@ -19,2 +19,2 @@ Object.defineProperty(exports, "Observable", { enumerable: true, get: function () { return rxjs_1.Observable; } }); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRyeC5wbHVnaW5zLnJ4anMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHJ4LnBsdWdpbnMucnhqcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscURBQXFEOzs7QUFFckQsNkJBQW1GO0FBQTFFLGtHQUFBLFVBQVUsT0FBQTtBQUFFLCtGQUFBLE9BQU8sT0FBQTtBQUFFLGlHQUFBLFNBQVMsT0FBQTtBQUFFLHFHQUFBLGFBQWEsT0FBQTtBQUFFLG9HQUFBLFlBQVksT0FBQTtBQUVwRSw4Q0FBbUY7QUFFdEUsUUFBQSxHQUFHLEdBQUc7SUFDakIsUUFBUSxFQUFSLG9CQUFRO0lBQ1IsWUFBWSxFQUFaLHdCQUFZO0lBQ1osR0FBRyxFQUFILGVBQUc7SUFDSCxTQUFTLEVBQVQscUJBQVM7SUFDVCxTQUFTLEVBQVQscUJBQVM7Q0FDVixDQUFDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRyeC5wbHVnaW5zLnJ4anMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHJ4LnBsdWdpbnMucnhqcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscURBQXFEOzs7QUFFckQsNkJBQTZGO0FBQXBGLGtHQUFBLFVBQVUsT0FBQTtBQUFFLCtGQUFBLE9BQU8sT0FBQTtBQUFFLGlHQUFBLFNBQVMsT0FBQTtBQUFFLHFHQUFBLGFBQWEsT0FBQTtBQUFFLG9HQUFBLFlBQVksT0FBQTtBQUVwRSw4Q0FBbUY7QUFFdEUsUUFBQSxHQUFHLEdBQUc7SUFDakIsUUFBUSxFQUFSLG9CQUFRO0lBQ1IsWUFBWSxFQUFaLHdCQUFZO0lBQ1osR0FBRyxFQUFILGVBQUc7SUFDSCxTQUFTLEVBQVQscUJBQVM7SUFDVCxTQUFTLEVBQVQscUJBQVM7Q0FDVixDQUFDIn0= |
{ | ||
"name": "@pushrocks/smartrx", | ||
"version": "2.0.19", | ||
"version": "2.0.20", | ||
"private": false, | ||
@@ -15,8 +15,8 @@ "description": "smart wrapper for rxjs", | ||
"devDependencies": { | ||
"@gitzone/tsbuild": "^2.1.25", | ||
"@gitzone/tsbundle": "^1.0.78", | ||
"@gitzone/tsrun": "^1.2.12", | ||
"@gitzone/tstest": "^1.0.44", | ||
"@pushrocks/tapbundle": "^3.2.9", | ||
"@types/node": "^14.11.2", | ||
"@gitzone/tsbuild": "^2.1.29", | ||
"@gitzone/tsbundle": "^1.0.88", | ||
"@gitzone/tsrun": "^1.2.18", | ||
"@gitzone/tstest": "^1.0.60", | ||
"@pushrocks/tapbundle": "^4.0.0", | ||
"@types/node": "^17.0.10", | ||
"tslint": "^6.1.3", | ||
@@ -26,4 +26,4 @@ "tslint-config-prettier": "^1.18.0" | ||
"dependencies": { | ||
"@pushrocks/lik": "^4.0.17", | ||
"@pushrocks/smartpromise": "^3.0.6", | ||
"@pushrocks/lik": "^5.0.0", | ||
"@pushrocks/smartpromise": "^3.1.6", | ||
"rxjs": "^6.6.3" | ||
@@ -30,0 +30,0 @@ }, |
@@ -11,21 +11,21 @@ import * as plugins from './smartrx.plugins'; | ||
private observableFunctions: any = { | ||
next: (payloadArg) => { | ||
next: (payloadArg: T) => { | ||
// nothing | ||
}, | ||
complete: (payloadArg) => { | ||
complete: (payloadArg: T) => { | ||
// nothing | ||
}, | ||
}; | ||
private generator = null; | ||
private generator: Generator<T> = null; | ||
private buffered = false; | ||
private payloadBuffer = []; | ||
private payloadBuffer: any[] = []; | ||
constructor() { | ||
this.observable = plugins.rxjs.Observable.create((observerArg) => { | ||
this.observableFunctions.next = (...args) => { | ||
return observerArg.next(...args); | ||
this.observable = plugins.rxjs.Observable.create((observerArg: plugins.rxjs.Observer<any>) => { | ||
this.observableFunctions.next = (...args: any) => { | ||
return observerArg.next(args); | ||
}; | ||
this.observableFunctions.complete = (...args) => { | ||
this.observableFunctions.complete = () => { | ||
this.completedDeffered.resolve(); | ||
return observerArg.complete(...args); | ||
return observerArg.complete(); | ||
}; | ||
@@ -37,4 +37,4 @@ }); | ||
public setObservable(observableFunc) { | ||
this.observable = observableFunc(); | ||
public setObservable(observableFunc: plugins.rxjs.Observable<any>) { | ||
this.observable = observableFunc; | ||
} | ||
@@ -64,3 +64,3 @@ | ||
*/ | ||
public setGenerator(generatorArg) { | ||
public setGenerator(generatorArg: Generator<T>) { | ||
this.generator = generatorArg; | ||
@@ -73,3 +73,3 @@ } | ||
public subscribe(...args) { | ||
public subscribe(...args: any) { | ||
return this.observable.subscribe(...args); | ||
@@ -90,4 +90,4 @@ } | ||
} else { | ||
const nextPayload = this.generator(); | ||
this.internalPush(nextPayload); | ||
const nextPayload = this.generator.next(); | ||
this.internalPush(nextPayload.value); | ||
} | ||
@@ -105,5 +105,5 @@ } | ||
private internalPush(payloadArg) { | ||
private internalPush(payloadArg: T) { | ||
this.observableFunctions.next(payloadArg); | ||
} | ||
} |
@@ -27,3 +27,3 @@ import * as plugins from './smartrx.plugins'; | ||
public getObservableForEmitterEvent<T>(emitterArg: IEventEmitter<T>, eventArg: string) { | ||
const existingBundle = this.observableEmitterBundleObjectmap.find((bundleArg) => { | ||
const existingBundle = this.observableEmitterBundleObjectmap.findSync((bundleArg) => { | ||
return bundleArg.emitter === emitterArg && bundleArg.event === eventArg; | ||
@@ -30,0 +30,0 @@ }); |
// this file is intended to keep the bundle size down | ||
export { Observable, Subject, fromEvent, ReplaySubject, Subscription } from 'rxjs'; | ||
export { Observable, Subject, fromEvent, ReplaySubject, Subscription, Observer } from 'rxjs'; | ||
@@ -5,0 +5,0 @@ import { startWith, takeUntil, map, debounce, debounceTime } from 'rxjs/operators'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1585585
13724
- Removed@pushrocks/lik@4.0.22(transitive)
Updated@pushrocks/lik@^5.0.0