@polkadot/rpc-core 10.10.1 → 10.11.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/bundle.js CHANGED
@@ -49,17 +49,23 @@ function isTreatAsHex(key) {
49
49
  * ```
50
50
  */
51
51
  export class RpcCore {
52
+ __internal__instanceId;
53
+ __internal__isPedantic;
54
+ __internal__registryDefault;
55
+ __internal__storageCache = new Map();
56
+ __internal__storageCacheHits = 0;
57
+ __internal__storageCacheSize = 0;
58
+ __internal__getBlockRegistry;
59
+ __internal__getBlockHash;
60
+ mapping = new Map();
61
+ provider;
62
+ sections = [];
52
63
  /**
53
64
  * @constructor
54
65
  * Default constructor for the core RPC handler
55
66
  * @param {ProviderInterface} provider An API provider using any of the supported providers (HTTP, SC or WebSocket)
56
67
  */
57
68
  constructor(instanceId, registry, { isPedantic = true, provider, userRpc = {} }) {
58
- this.__internal__storageCache = new Map();
59
- this.__internal__storageCacheHits = 0;
60
- this.__internal__storageCacheSize = 0;
61
- this.mapping = new Map();
62
- this.sections = [];
63
69
  if (!provider || !isFunction(provider.send)) {
64
70
  throw new Error('Expected Provider to API create');
65
71
  }
package/cjs/bundle.js CHANGED
@@ -54,17 +54,23 @@ function isTreatAsHex(key) {
54
54
  * ```
55
55
  */
56
56
  class RpcCore {
57
+ __internal__instanceId;
58
+ __internal__isPedantic;
59
+ __internal__registryDefault;
60
+ __internal__storageCache = new Map();
61
+ __internal__storageCacheHits = 0;
62
+ __internal__storageCacheSize = 0;
63
+ __internal__getBlockRegistry;
64
+ __internal__getBlockHash;
65
+ mapping = new Map();
66
+ provider;
67
+ sections = [];
57
68
  /**
58
69
  * @constructor
59
70
  * Default constructor for the core RPC handler
60
71
  * @param {ProviderInterface} provider An API provider using any of the supported providers (HTTP, SC or WebSocket)
61
72
  */
62
73
  constructor(instanceId, registry, { isPedantic = true, provider, userRpc = {} }) {
63
- this.__internal__storageCache = new Map();
64
- this.__internal__storageCacheHits = 0;
65
- this.__internal__storageCacheSize = 0;
66
- this.mapping = new Map();
67
- this.sections = [];
68
74
  if (!provider || !(0, util_1.isFunction)(provider.send)) {
69
75
  throw new Error('Expected Provider to API create');
70
76
  }
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/rpc-core', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.10.1' };
4
+ exports.packageInfo = { name: '@polkadot/rpc-core', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.11.1' };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bugs": "https://github.com/polkadot-js/api/issues",
4
4
  "description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
5
5
  "engines": {
6
- "node": ">=16"
6
+ "node": ">=18"
7
7
  },
8
8
  "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
9
9
  "license": "Apache-2.0",
@@ -18,7 +18,7 @@
18
18
  "./cjs/detectPackage.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "10.10.1",
21
+ "version": "10.11.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -109,10 +109,10 @@
109
109
  }
110
110
  },
111
111
  "dependencies": {
112
- "@polkadot/rpc-augment": "10.10.1",
113
- "@polkadot/rpc-provider": "10.10.1",
114
- "@polkadot/types": "10.10.1",
115
- "@polkadot/util": "^12.5.1",
112
+ "@polkadot/rpc-augment": "10.11.1",
113
+ "@polkadot/rpc-provider": "10.11.1",
114
+ "@polkadot/types": "10.11.1",
115
+ "@polkadot/util": "^12.6.1",
116
116
  "rxjs": "^7.8.1",
117
117
  "tslib": "^2.6.2"
118
118
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/rpc-core', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.10.1' };
1
+ export const packageInfo = { name: '@polkadot/rpc-core', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.11.1' };