@polkadot/rpc-core 6.12.2-8 → 7.0.2-1
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 +20 -10
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/types/base.cjs +1 -0
- package/{types.d.ts → types/base.d.ts} +0 -1
- package/types/base.js +1 -0
- package/types/index.cjs +31 -0
- package/types/index.d.ts +2 -0
- package/types/index.js +6 -0
- package/types/jsonrpc.cjs +1 -0
- package/types/jsonrpc.d.ts +2 -0
- package/types/jsonrpc.js +1 -0
- package/types.cjs +0 -18
- package/types.js +0 -4
- package/types.jsonrpc.cjs +0 -10
- package/types.jsonrpc.d.ts +0 -7
- package/types.jsonrpc.js +0 -3
package/package.json
CHANGED
|
@@ -20,17 +20,19 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "
|
|
23
|
+
"version": "7.0.2-1",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.5",
|
|
27
|
-
"@polkadot/rpc-
|
|
28
|
-
"@polkadot/
|
|
29
|
-
"@polkadot/
|
|
27
|
+
"@polkadot/rpc-augment": "7.0.2-1",
|
|
28
|
+
"@polkadot/rpc-provider": "7.0.2-1",
|
|
29
|
+
"@polkadot/types": "7.0.2-1",
|
|
30
|
+
"@polkadot/util": "^8.2.2",
|
|
30
31
|
"rxjs": "^7.4.0"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@polkadot/keyring": "^8.
|
|
34
|
+
"@polkadot/keyring": "^8.2.2",
|
|
35
|
+
"@polkadot/rpc-augment": "7.0.2-1"
|
|
34
36
|
},
|
|
35
37
|
"exports": {
|
|
36
38
|
".": {
|
|
@@ -56,12 +58,20 @@
|
|
|
56
58
|
"./packageInfo.d.ts": "./packageInfo.d.ts",
|
|
57
59
|
"./README.md": "./README.md",
|
|
58
60
|
"./types": {
|
|
59
|
-
"require": "./types.cjs",
|
|
60
|
-
"default": "./types.js"
|
|
61
|
+
"require": "./types/index.cjs",
|
|
62
|
+
"default": "./types/index.js"
|
|
61
63
|
},
|
|
62
|
-
"./types
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
"./types/base": {
|
|
65
|
+
"require": "./types/base.cjs",
|
|
66
|
+
"default": "./types/base.js"
|
|
67
|
+
},
|
|
68
|
+
"./types/base.d.ts": "./types/base.d.ts",
|
|
69
|
+
"./types/index.d.ts": "./types/index.d.ts",
|
|
70
|
+
"./types/jsonrpc": {
|
|
71
|
+
"require": "./types/jsonrpc.cjs",
|
|
72
|
+
"default": "./types/jsonrpc.js"
|
|
73
|
+
},
|
|
74
|
+
"./types/jsonrpc.d.ts": "./types/jsonrpc.d.ts",
|
|
65
75
|
"./util": {
|
|
66
76
|
"require": "./util/index.cjs",
|
|
67
77
|
"default": "./util/index.js"
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/types/base.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Observable } from 'rxjs';
|
|
2
2
|
import type { AnyFunction, Codec, DefinitionRpc } from '@polkadot/types/types';
|
|
3
|
-
export * from '@polkadot/rpc-core/types.jsonrpc';
|
|
4
3
|
export interface RpcInterfaceMethod {
|
|
5
4
|
<T extends Codec>(...params: unknown[]): Observable<T>;
|
|
6
5
|
raw(...params: unknown[]): Observable<unknown>;
|
package/types/base.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/types/index.cjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _jsonrpc = require("@polkadot/rpc-core/types/jsonrpc");
|
|
8
|
+
|
|
9
|
+
Object.keys(_jsonrpc).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _jsonrpc[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _jsonrpc[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
var _base = require("./base.cjs");
|
|
21
|
+
|
|
22
|
+
Object.keys(_base).forEach(function (key) {
|
|
23
|
+
if (key === "default" || key === "__esModule") return;
|
|
24
|
+
if (key in exports && exports[key] === _base[key]) return;
|
|
25
|
+
Object.defineProperty(exports, key, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _base[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
package/types/index.d.ts
ADDED
package/types/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/types/jsonrpc.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/types.cjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
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
|
-
});
|
package/types.js
DELETED
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;
|
package/types.jsonrpc.d.ts
DELETED
package/types.jsonrpc.js
DELETED