@cardano-sdk/util-rxjs 0.4.2 → 0.4.3-nightly.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ import { Observable, OperatorFunction } from 'rxjs';
2
+ export declare function blockingWithLatestFrom<T, O>(dependency$: Observable<O>): OperatorFunction<T, [T, O]>;
3
+ export declare function blockingWithLatestFrom<T, O, R>(dependency$: Observable<O>, combinator: (...value: [T, O]) => R): OperatorFunction<T, R>;
4
+ //# sourceMappingURL=blockingWithLatestFrom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockingWithLatestFrom.d.ts","sourceRoot":"","sources":["../../src/blockingWithLatestFrom.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,gBAAgB,EASjB,MAAM,MAAM,CAAC;AAEd,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACtG,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAC5C,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC,EAC1B,UAAU,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAClC,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.blockingWithLatestFrom = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ function blockingWithLatestFrom(dependency$, combinator = (a, b) => [a, b]) {
6
+ return (source$) => {
7
+ const sharedDependency$ = dependency$.pipe((0, rxjs_1.share)());
8
+ const firstDependency$ = sharedDependency$.pipe((0, rxjs_1.delay)(1), (0, rxjs_1.take)(1));
9
+ const sharedSource$ = source$.pipe((0, rxjs_1.share)());
10
+ return (0, rxjs_1.merge)(sharedSource$.pipe((0, rxjs_1.buffer)(firstDependency$), (0, rxjs_1.mergeAll)()), sharedSource$.pipe((0, rxjs_1.skipUntil)(firstDependency$))).pipe((0, rxjs_1.withLatestFrom)(sharedDependency$, combinator));
11
+ };
12
+ }
13
+ exports.blockingWithLatestFrom = blockingWithLatestFrom;
14
+ //# sourceMappingURL=blockingWithLatestFrom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockingWithLatestFrom.js","sourceRoot":"","sources":["../../src/blockingWithLatestFrom.ts"],"names":[],"mappings":";;;AAEA,+BAWc;AAYd,SAAgB,sBAAsB,CACpC,WAA4B,EAC5B,aAAa,CAAC,CAAM,EAAE,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CAAC,OAAsB,EAAE,EAAE;QAChC,MAAM,iBAAiB,GAAG,WAAW,CAAC,IAAI,CAAC,IAAA,YAAK,GAAE,CAAC,CAAC;QAGpD,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAA,YAAK,EAAC,CAAC,CAAC,EAAE,IAAA,WAAI,EAAC,CAAC,CAAC,CAAC,CAAC;QACnE,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,IAAA,YAAK,GAAE,CAAC,CAAC;QAC5C,OAAO,IAAA,YAAK,EAIV,aAAa,CAAC,IAAI,CAAC,IAAA,aAAM,EAAC,gBAAgB,CAAC,EAAE,IAAA,eAAQ,GAAE,CAAC,EAExD,aAAa,CAAC,IAAI,CAAC,IAAA,gBAAS,EAAC,gBAAgB,CAAC,CAAC,CAChD,CAAC,IAAI,CAAC,IAAA,qBAAc,EAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC;AACJ,CAAC;AAnBD,wDAmBC"}
@@ -1,2 +1,5 @@
1
1
  export * from './TrackerSubject';
2
+ export * from './blockingWithLatestFrom';
3
+ export * from './toEmpty';
4
+ export * from './types';
2
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -15,4 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./TrackerSubject"), exports);
18
+ __exportStar(require("./blockingWithLatestFrom"), exports);
19
+ __exportStar(require("./toEmpty"), exports);
20
+ __exportStar(require("./types"), exports);
18
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,2DAAyC;AACzC,4CAA0B;AAC1B,0CAAwB"}
@@ -0,0 +1,2 @@
1
+ export declare const toEmpty: import("rxjs").OperatorFunction<unknown, never>;
2
+ //# sourceMappingURL=toEmpty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEmpty.d.ts","sourceRoot":"","sources":["../../src/toEmpty.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,iDAAwB,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toEmpty = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ exports.toEmpty = (0, rxjs_1.mergeMap)(() => rxjs_1.EMPTY);
6
+ //# sourceMappingURL=toEmpty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEmpty.js","sourceRoot":"","sources":["../../src/toEmpty.ts"],"names":[],"mappings":";;;AAAA,+BAAuC;AAE1B,QAAA,OAAO,GAAG,IAAA,eAAQ,EAAC,GAAG,EAAE,CAAC,YAAK,CAAC,CAAC"}