@polkadot/rpc-core 9.10.2 → 9.10.4

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/bundle.js CHANGED
@@ -221,9 +221,12 @@ export class RpcCore {
221
221
  (_memoized2 = memoized) == null ? void 0 : _memoized2.raw.unmemoize(...values);
222
222
  }
223
223
  };
224
- }).pipe(publishReplay(1),
224
+ }).pipe(
225
+ // eslint-disable-next-line deprecation/deprecation
226
+ publishReplay(1),
225
227
  // create a Replay(1)
226
228
  isDelayed ? refCountDelay() // Unsubscribe after delay
229
+ // eslint-disable-next-line deprecation/deprecation
227
230
  : refCount());
228
231
  };
229
232
  memoized = this._memomize(creator, def);
package/cjs/bundle.js CHANGED
@@ -258,9 +258,12 @@ class RpcCore {
258
258
  (_memoized2 = memoized) == null ? void 0 : _memoized2.raw.unmemoize(...values);
259
259
  }
260
260
  };
261
- }).pipe((0, _rxjs.publishReplay)(1),
261
+ }).pipe(
262
+ // eslint-disable-next-line deprecation/deprecation
263
+ (0, _rxjs.publishReplay)(1),
262
264
  // create a Replay(1)
263
265
  isDelayed ? (0, _util2.refCountDelay)() // Unsubscribe after delay
266
+ // eslint-disable-next-line deprecation/deprecation
264
267
  : (0, _rxjs.refCount)());
265
268
  };
266
269
  memoized = this._memomize(creator, def);
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@polkadot/rpc-core',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '9.10.2'
16
+ version: '9.10.4'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
package/cjs/util/drr.js CHANGED
@@ -36,5 +36,9 @@ function drr() {
36
36
  skipChange = false,
37
37
  skipTimeout = false
38
38
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
39
- return source$ => source$.pipe((0, _rxjs.catchError)(ERR), skipChange ? (0, _rxjs.tap)(NOOP) : (0, _rxjs.distinctUntilChanged)(CMP), (0, _rxjs.publishReplay)(1), skipTimeout ? (0, _rxjs.refCount)() : (0, _refCountDelay.refCountDelay)(delay));
39
+ return source$ => source$.pipe((0, _rxjs.catchError)(ERR), skipChange ? (0, _rxjs.tap)(NOOP) : (0, _rxjs.distinctUntilChanged)(CMP),
40
+ // eslint-disable-next-line deprecation/deprecation
41
+ (0, _rxjs.publishReplay)(1), skipTimeout
42
+ // eslint-disable-next-line deprecation/deprecation
43
+ ? (0, _rxjs.refCount)() : (0, _refCountDelay.refCountDelay)(delay));
40
44
  }
@@ -20,6 +20,7 @@ function refCountDelay() {
20
20
  if (state === 1) {
21
21
  scheduler.unsubscribe();
22
22
  } else {
23
+ // eslint-disable-next-line deprecation/deprecation
23
24
  connection = source.connect();
24
25
  }
25
26
  state = 3;
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.10.2",
23
+ "version": "9.10.4",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -96,10 +96,10 @@
96
96
  },
97
97
  "dependencies": {
98
98
  "@babel/runtime": "^7.20.6",
99
- "@polkadot/rpc-augment": "9.10.2",
100
- "@polkadot/rpc-provider": "9.10.2",
101
- "@polkadot/types": "9.10.2",
99
+ "@polkadot/rpc-augment": "9.10.4",
100
+ "@polkadot/rpc-provider": "9.10.4",
101
+ "@polkadot/types": "9.10.4",
102
102
  "@polkadot/util": "^10.2.1",
103
- "rxjs": "^7.6.0"
103
+ "rxjs": "^7.8.0"
104
104
  }
105
105
  }
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@polkadot/rpc-core',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '9.10.2'
10
+ version: '9.10.4'
11
11
  };
package/util/drr.js CHANGED
@@ -29,5 +29,9 @@ export function drr({
29
29
  skipChange = false,
30
30
  skipTimeout = false
31
31
  } = {}) {
32
- return source$ => source$.pipe(catchError(ERR), skipChange ? tap(NOOP) : distinctUntilChanged(CMP), publishReplay(1), skipTimeout ? refCount() : refCountDelay(delay));
32
+ return source$ => source$.pipe(catchError(ERR), skipChange ? tap(NOOP) : distinctUntilChanged(CMP),
33
+ // eslint-disable-next-line deprecation/deprecation
34
+ publishReplay(1), skipTimeout
35
+ // eslint-disable-next-line deprecation/deprecation
36
+ ? refCount() : refCountDelay(delay));
33
37
  }
@@ -14,6 +14,7 @@ export function refCountDelay(delay = 1750) {
14
14
  if (state === 1) {
15
15
  scheduler.unsubscribe();
16
16
  } else {
17
+ // eslint-disable-next-line deprecation/deprecation
17
18
  connection = source.connect();
18
19
  }
19
20
  state = 3;