@polkadot/rpc-core 7.2.2-4 → 7.2.2-5

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.cjs CHANGED
@@ -255,7 +255,8 @@ class RpcCore {
255
255
  registry: (0, _classPrivateFieldLooseBase2.default)(this, _registryDefault)[_registryDefault]
256
256
  };
257
257
 
258
- const params = this._formatInputs(registry, null, def, values);
258
+ const params = this._formatInputs(registry, null, def, values); // only cache .at(<blockHash>) queries, e.g. where valid blockHash was supplied
259
+
259
260
 
260
261
  const result = await this.provider.send(rpcName, params.map(p => p.toJSON()), !!blockHash);
261
262
  return this._formatResult(isScale, registry, blockHash, method, def, params, result);
package/bundle.js CHANGED
@@ -210,7 +210,8 @@ export class RpcCore {
210
210
  registry: _classPrivateFieldLooseBase(this, _registryDefault)[_registryDefault]
211
211
  };
212
212
 
213
- const params = this._formatInputs(registry, null, def, values);
213
+ const params = this._formatInputs(registry, null, def, values); // only cache .at(<blockHash>) queries, e.g. where valid blockHash was supplied
214
+
214
215
 
215
216
  const result = await this.provider.send(rpcName, params.map(p => p.toJSON()), !!blockHash);
216
217
  return this._formatResult(isScale, registry, blockHash, method, def, params, result);
package/package.json CHANGED
@@ -20,19 +20,19 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.2.2-4",
23
+ "version": "7.2.2-5",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.7",
27
- "@polkadot/rpc-augment": "7.2.2-4",
28
- "@polkadot/rpc-provider": "7.2.2-4",
29
- "@polkadot/types": "7.2.2-4",
27
+ "@polkadot/rpc-augment": "7.2.2-5",
28
+ "@polkadot/rpc-provider": "7.2.2-5",
29
+ "@polkadot/types": "7.2.2-5",
30
30
  "@polkadot/util": "^8.2.2",
31
31
  "rxjs": "^7.5.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@polkadot/keyring": "^8.2.2",
35
- "@polkadot/rpc-augment": "7.2.2-4"
35
+ "@polkadot/rpc-augment": "7.2.2-5"
36
36
  },
37
37
  "exports": {
38
38
  ".": {
package/packageInfo.cjs CHANGED
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/rpc-core',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '7.2.2-4'
14
+ version: '7.2.2-5'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/rpc-core',
6
6
  path: typeof __dirname === 'string' ? __dirname : 'auto',
7
7
  type: 'esm',
8
- version: '7.2.2-4'
8
+ version: '7.2.2-5'
9
9
  };