@dedot/api 0.9.5-next.889fe7cd.3 → 0.9.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.
|
@@ -33,7 +33,8 @@ class ChainHead extends JsonRpcGroup_js_1.JsonRpcGroup {
|
|
|
33
33
|
this.#retryQueue = new utils_1.AsyncQueue();
|
|
34
34
|
this.#blockUsage = new BlockUsage_js_1.BlockUsage();
|
|
35
35
|
this.#cache = new Map();
|
|
36
|
-
|
|
36
|
+
// This helps us to not accidentally putting too much stress on the JSON-RPC server, especially smoldot/light-client
|
|
37
|
+
this.#operationQueue = new utils_1.ThrottleQueue(this.#__unsafe__isSmoldot() ? 25 : 250);
|
|
37
38
|
}
|
|
38
39
|
async runtimeVersion() {
|
|
39
40
|
await this.#ensureFollowed();
|
|
@@ -30,7 +30,8 @@ export class ChainHead extends JsonRpcGroup {
|
|
|
30
30
|
this.#retryQueue = new AsyncQueue();
|
|
31
31
|
this.#blockUsage = new BlockUsage();
|
|
32
32
|
this.#cache = new Map();
|
|
33
|
-
|
|
33
|
+
// This helps us to not accidentally putting too much stress on the JSON-RPC server, especially smoldot/light-client
|
|
34
|
+
this.#operationQueue = new ThrottleQueue(this.#__unsafe__isSmoldot() ? 25 : 250);
|
|
34
35
|
}
|
|
35
36
|
async runtimeVersion() {
|
|
36
37
|
await this.#ensureFollowed();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/api",
|
|
3
|
-
"version": "0.9.5
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"description": "A delightful JavaScript/TypeScript client for Polkadot & Substrate",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"sideEffects": false,
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dedot/codecs": "0.9.5
|
|
17
|
-
"@dedot/providers": "0.9.5
|
|
18
|
-
"@dedot/runtime-specs": "0.9.5
|
|
19
|
-
"@dedot/shape": "0.9.5
|
|
20
|
-
"@dedot/storage": "0.9.5
|
|
21
|
-
"@dedot/types": "0.9.5
|
|
22
|
-
"@dedot/utils": "0.9.5
|
|
16
|
+
"@dedot/codecs": "0.9.5",
|
|
17
|
+
"@dedot/providers": "0.9.5",
|
|
18
|
+
"@dedot/runtime-specs": "0.9.5",
|
|
19
|
+
"@dedot/shape": "0.9.5",
|
|
20
|
+
"@dedot/storage": "0.9.5",
|
|
21
|
+
"@dedot/types": "0.9.5",
|
|
22
|
+
"@dedot/utils": "0.9.5"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsc --project tsconfig.build.json && tsc --project tsconfig.build.cjs.json",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"node": ">=18"
|
|
49
49
|
},
|
|
50
50
|
"license": "Apache-2.0",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "18f4c23ad45330f9de1b3be70d4ce7581eaccb20",
|
|
52
52
|
"module": "./index.js",
|
|
53
53
|
"types": "./index.d.ts"
|
|
54
54
|
}
|