@polkadot/rpc-core 6.12.2-13 → 6.12.2-17
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/augment.cjs +3 -0
- package/augment.d.ts +1 -0
- package/{types.jsonrpc.js → augment.js} +1 -1
- package/package.json +9 -5
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/types.cjs +1 -16
- package/types.d.ts +3 -12
- package/types.js +1 -2
- package/types.jsonrpc.cjs +0 -10
- package/types.jsonrpc.d.ts +0 -7
package/augment.cjs
ADDED
package/augment.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@polkadot/rpc-augment';
|
package/package.json
CHANGED
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "6.12.2-
|
|
23
|
+
"version": "6.12.2-17",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.5",
|
|
27
|
-
"@polkadot/rpc-
|
|
28
|
-
"@polkadot/
|
|
27
|
+
"@polkadot/rpc-augment": "6.12.2-17",
|
|
28
|
+
"@polkadot/rpc-provider": "6.12.2-17",
|
|
29
|
+
"@polkadot/types": "6.12.2-17",
|
|
29
30
|
"@polkadot/util": "^8.1.2",
|
|
30
31
|
"rxjs": "^7.4.0"
|
|
31
32
|
},
|
|
@@ -37,6 +38,11 @@
|
|
|
37
38
|
"require": "./index.cjs",
|
|
38
39
|
"default": "./index.js"
|
|
39
40
|
},
|
|
41
|
+
"./augment": {
|
|
42
|
+
"require": "./augment.cjs",
|
|
43
|
+
"default": "./augment.js"
|
|
44
|
+
},
|
|
45
|
+
"./augment.d.ts": "./augment.d.ts",
|
|
40
46
|
"./bundle": {
|
|
41
47
|
"require": "./bundle.cjs",
|
|
42
48
|
"default": "./bundle.js"
|
|
@@ -60,8 +66,6 @@
|
|
|
60
66
|
"default": "./types.js"
|
|
61
67
|
},
|
|
62
68
|
"./types.d.ts": "./types.d.ts",
|
|
63
|
-
"./types.jsonrpc.d.ts": "./types.jsonrpc.d.ts",
|
|
64
|
-
"./typesonrpc.js": "./types.jsonrpc.js",
|
|
65
69
|
"./util": {
|
|
66
70
|
"require": "./util/index.cjs",
|
|
67
71
|
"default": "./util/index.js"
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/types.cjs
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _types = require("@polkadot/rpc-core/types.jsonrpc");
|
|
8
|
-
|
|
9
|
-
Object.keys(_types).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
12
|
-
Object.defineProperty(exports, key, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _types[key];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
3
|
+
require("./augment.cjs");
|
package/types.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export interface RpcInterfaceMethod {
|
|
5
|
-
<T extends Codec>(...params: unknown[]): Observable<T>;
|
|
6
|
-
raw(...params: unknown[]): Observable<unknown>;
|
|
7
|
-
meta: DefinitionRpc;
|
|
8
|
-
}
|
|
9
|
-
export declare type AugmentedRpc<F extends AnyFunction> = F & {
|
|
10
|
-
raw: <T>(...params: Parameters<F>) => Observable<T>;
|
|
11
|
-
meta: DefinitionRpc;
|
|
12
|
-
};
|
|
1
|
+
import './augment';
|
|
2
|
+
export type { RpcInterface } from '@polkadot/rpc-augment/rpc';
|
|
3
|
+
export type { AugmentedRpc, RpcInterfaceMethod } from '@polkadot/rpc-augment/types';
|
package/types.js
CHANGED
package/types.jsonrpc.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.__PHANTOM_RPC = void 0;
|
|
7
|
-
// Copyright 2017-2021 @polkadot/rpc-core authors & contributors
|
|
8
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
-
const __PHANTOM_RPC = 'phantom-rpc';
|
|
10
|
-
exports.__PHANTOM_RPC = __PHANTOM_RPC;
|