@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 +4 -1
- package/cjs/bundle.js +4 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/util/drr.js +5 -1
- package/cjs/util/refCountDelay.js +1 -0
- package/package.json +5 -5
- package/packageInfo.js +1 -1
- package/util/drr.js +5 -1
- package/util/refCountDelay.js +1 -0
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(
|
|
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(
|
|
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);
|
package/cjs/packageInfo.js
CHANGED
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),
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "9.10.
|
|
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.
|
|
100
|
-
"@polkadot/rpc-provider": "9.10.
|
|
101
|
-
"@polkadot/types": "9.10.
|
|
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.
|
|
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.
|
|
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),
|
|
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
|
}
|