@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 CHANGED
@@ -20,17 +20,19 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "6.12.2-8",
23
+ "version": "7.0.2-1",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.5",
27
- "@polkadot/rpc-provider": "6.12.2-8",
28
- "@polkadot/types": "6.12.2-8",
29
- "@polkadot/util": "^8.1.2",
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.1.2"
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.d.ts": "./types.d.ts",
63
- "./types.jsonrpc.d.ts": "./types.jsonrpc.d.ts",
64
- "./typesonrpc.js": "./types.jsonrpc.js",
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
@@ -9,6 +9,6 @@ exports.packageInfo = void 0;
9
9
  // Auto-generated by @polkadot/dev, do not edit
10
10
  const packageInfo = {
11
11
  name: '@polkadot/rpc-core',
12
- version: '6.12.2-8'
12
+ version: '7.0.2-1'
13
13
  };
14
14
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -3,5 +3,5 @@
3
3
  // Auto-generated by @polkadot/dev, do not edit
4
4
  export const packageInfo = {
5
5
  name: '@polkadot/rpc-core',
6
- version: '6.12.2-8'
6
+ version: '7.0.2-1'
7
7
  };
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 {};
@@ -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
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@polkadot/rpc-core/types/jsonrpc';
2
+ export * from './base';
package/types/index.js ADDED
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ // augmented, do an augmentation export
4
+ export * from '@polkadot/rpc-core/types/jsonrpc'; // normal exports
5
+
6
+ export * from "./base.js";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,2 @@
1
+ export interface RpcInterface {
2
+ }
@@ -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
@@ -1,4 +0,0 @@
1
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
- export * from '@polkadot/rpc-core/types.jsonrpc';
4
- export {};
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;
@@ -1,7 +0,0 @@
1
- import type { AugmentedRpc } from './types';
2
- export interface RpcInterface {
3
- [section: string]: {
4
- [method: string]: AugmentedRpc<(...params: any[]) => any>;
5
- };
6
- }
7
- export declare const __PHANTOM_RPC = "phantom-rpc";
package/types.jsonrpc.js DELETED
@@ -1,3 +0,0 @@
1
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
- export const __PHANTOM_RPC = 'phantom-rpc';