@polkadot/rpc-core 6.12.2-11 → 6.12.2-15

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 ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("@polkadot/rpc-augment/augment");
package/augment.d.ts ADDED
@@ -0,0 +1 @@
1
+ import '@polkadot/rpc-augment/augment';
@@ -1,3 +1,3 @@
1
1
  // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- export const __PHANTOM_RPC = 'phantom-rpc';
3
+ import '@polkadot/rpc-augment/augment';
package/package.json CHANGED
@@ -20,12 +20,13 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "6.12.2-11",
23
+ "version": "6.12.2-15",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.5",
27
- "@polkadot/rpc-provider": "6.12.2-11",
28
- "@polkadot/types": "6.12.2-11",
27
+ "@polkadot/rpc-augment": "6.12.2-15",
28
+ "@polkadot/rpc-provider": "6.12.2-15",
29
+ "@polkadot/types": "6.12.2-15",
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
@@ -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-11'
12
+ version: '6.12.2-15'
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-11'
6
+ version: '6.12.2-15'
7
7
  };
package/types.cjs CHANGED
@@ -1,18 +1,3 @@
1
1
  "use strict";
2
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
- });
3
+ require("./augment.cjs");
package/types.d.ts CHANGED
@@ -1,12 +1,3 @@
1
- import type { Observable } from 'rxjs';
2
- import type { AnyFunction, Codec, DefinitionRpc } from '@polkadot/types/types';
3
- export * from '@polkadot/rpc-core/types.jsonrpc';
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
@@ -1,4 +1,3 @@
1
1
  // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- export * from '@polkadot/rpc-core/types.jsonrpc';
4
- export {};
3
+ import "./augment.js";
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";