@polkadot/rpc-core 6.3.2-15 → 6.3.2-19
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/package.json +5 -5
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/util/memo.cjs +1 -0
- package/util/memo.d.ts +2 -2
- package/util/memo.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polkadot/rpc-core",
|
|
3
|
-
"version": "6.3.2-
|
|
3
|
+
"version": "6.3.2-19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
|
6
6
|
"main": "index.js",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.15.4",
|
|
23
|
-
"@polkadot/rpc-provider": "6.3.2-
|
|
24
|
-
"@polkadot/types": "6.3.2-
|
|
25
|
-
"@polkadot/util": "^7.
|
|
23
|
+
"@polkadot/rpc-provider": "6.3.2-19",
|
|
24
|
+
"@polkadot/types": "6.3.2-19",
|
|
25
|
+
"@polkadot/util": "^7.5.1",
|
|
26
26
|
"rxjs": "^7.4.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@polkadot/keyring": "^7.
|
|
29
|
+
"@polkadot/keyring": "^7.5.1"
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/util/memo.cjs
CHANGED
|
@@ -18,6 +18,7 @@ var _drr = require("./drr.cjs");
|
|
|
18
18
|
// 2. wraps the observable in a drr() (which includes an unsub delay)
|
|
19
19
|
|
|
20
20
|
/** @internal */
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
21
22
|
function memo(instanceId, inner) {
|
|
22
23
|
const options = {
|
|
23
24
|
getInstanceId: () => instanceId
|
package/util/memo.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Memoized } from '@polkadot/util/types';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
declare type ObsFn<T> = (...params:
|
|
3
|
+
declare type ObsFn<T> = (...params: unknown[]) => Observable<T>;
|
|
4
4
|
/** @internal */
|
|
5
|
-
export declare function memo<T>(instanceId: string, inner:
|
|
5
|
+
export declare function memo<T>(instanceId: string, inner: Function): Memoized<ObsFn<T>>;
|
|
6
6
|
export {};
|
package/util/memo.js
CHANGED
|
@@ -8,6 +8,7 @@ import { drr } from "./drr.js";
|
|
|
8
8
|
// 2. wraps the observable in a drr() (which includes an unsub delay)
|
|
9
9
|
|
|
10
10
|
/** @internal */
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
11
12
|
export function memo(instanceId, inner) {
|
|
12
13
|
const options = {
|
|
13
14
|
getInstanceId: () => instanceId
|