@jscutlery/operators 0.1.3 → 0.1.7

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.7](https://github.com/jscutlery/devkit/compare/operators-0.1.6...operators-0.1.7) (2022-06-24)
6
+
7
+
8
+
9
+ ## [0.1.6](https://github.com/jscutlery/devkit/compare/operators-0.1.5...operators-0.1.6) (2022-03-27)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * 🐞 bump workspace ([127c808](https://github.com/jscutlery/devkit/commit/127c808e61cd9e8be3f3e3fd32f64fe7ad1f7e55))
15
+
16
+
17
+
18
+ ## [0.1.5](https://github.com/jscutlery/devkit/compare/operators-0.1.4...operators-0.1.5) (2022-03-26)
19
+
20
+
21
+
22
+ ## [0.1.4](https://github.com/jscutlery/devkit/compare/operators-0.1.3...operators-0.1.4) (2021-12-08)
23
+
24
+
25
+
5
26
  ## [0.1.3](https://github.com/jscutlery/devkit/compare/operators-0.1.2...operators-0.1.3) (2021-10-26)
6
27
 
7
28
 
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@jscutlery/operators",
3
- "version": "0.1.3",
3
+ "version": "0.1.7",
4
4
  "repository": {
5
5
  "url": "https://github.com/jscutlery/devkit"
6
6
  },
7
7
  "peerDependencies": {
8
- "rxjs": ">=6.0.0"
8
+ "rxjs": ">=6.0.0",
9
+ "tslib": "2.4.0"
9
10
  },
10
11
  "main": "./src/index.js",
11
- "typings": "./src/index.d.ts"
12
+ "typings": "./src/index.d.ts",
13
+ "dependencies": {}
12
14
  }
@@ -16,7 +16,7 @@ function _coalesceFirstEmittedValue() {
16
16
  const subscription = source$
17
17
  .pipe(
18
18
  /* Wait for all synchronous processing to be done. */
19
- operators_1.debounce(() => isReadySubject))
19
+ (0, operators_1.debounce)(() => isReadySubject))
20
20
  .subscribe(observer);
21
21
  /* Sync emitted values have been processed now.
22
22
  * Mark source as ready and emit last computed state. */
@@ -33,11 +33,15 @@ function _suspensify(projector) {
33
33
  finalized: false,
34
34
  pending: true,
35
35
  };
36
- const result$ = source$.pipe(operators_1.materialize(), operators_1.scan((state = initialState, notification) => {
36
+ const result$ = source$.pipe((0, operators_1.materialize)(), (0, operators_1.scan)((state = initialState, notification) => {
37
37
  /* On complete, merge `finalized: true & pending: false`
38
38
  * with the current state. */
39
39
  if (notification.kind === 'C') {
40
- return Object.assign(Object.assign({}, state), { finalized: true, pending: false });
40
+ return {
41
+ ...state,
42
+ finalized: true,
43
+ pending: false,
44
+ };
41
45
  }
42
46
  /* Mark as finalized on error as complete is only triggered on success. */
43
47
  const finalized = notification.kind === 'E';
@@ -47,8 +51,8 @@ function _suspensify(projector) {
47
51
  finalized,
48
52
  pending: false,
49
53
  };
50
- }, undefined), operators_1.startWith(initialState));
51
- return projector != null ? result$.pipe(operators_1.map(projector)) : result$;
54
+ }, undefined), (0, operators_1.startWith)(initialState));
55
+ return projector != null ? result$.pipe((0, operators_1.map)(projector)) : result$;
52
56
  };
53
57
  }
54
58
  //# sourceMappingURL=suspensify.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"suspensify.js","sourceRoot":"","sources":["../../../../../packages/operators/src/lib/suspensify.ts"],"names":[],"mappings":";;;AAAA,+BAKc;AACd,8CAA6E;AAqB7E,SAAgB,UAAU,CACxB,SAAoC;IAEpC,OAAO,CAAC,OAAsB,EAA+B,EAAE;QAC7D,OAAO,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,0BAA0B,EAAE,CAAC,CAAC;IAC5E,CAAC,CAAC;AACJ,CAAC;AAND,gCAMC;AAED,SAAS,0BAA0B;IACjC,OAAO,CAAC,OAAsB,EAAiB,EAAE;QAC/C,OAAO,IAAI,iBAAU,CAAI,CAAC,QAAQ,EAAE,EAAE;YACpC,M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