@acala-network/chopsticks-testing 1.2.4 → 1.2.7
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/dist/cjs/check.js +3 -2
- package/dist/esm/check.js +3 -2
- package/package.json +3 -3
package/dist/cjs/check.js
CHANGED
|
@@ -125,6 +125,7 @@ class Checker {
|
|
|
125
125
|
const { section, method } = filter;
|
|
126
126
|
return evt.section === section && evt.method === method;
|
|
127
127
|
}
|
|
128
|
+
return false;
|
|
128
129
|
});
|
|
129
130
|
});
|
|
130
131
|
}
|
|
@@ -295,7 +296,7 @@ function _redact(obj, options, depth) {
|
|
|
295
296
|
if (typeof obj === 'string') {
|
|
296
297
|
if (redactNumber && obj.match(/0x000000[0-9a-f]{26}/)) {
|
|
297
298
|
// this is very likely u128 encoded in hex
|
|
298
|
-
const num = Number.parseInt(obj);
|
|
299
|
+
const num = Number.parseInt(obj, 16);
|
|
299
300
|
return processNumber(num);
|
|
300
301
|
}
|
|
301
302
|
if (redactHash && obj.match(/0x[0-9a-f]{64}/)) {
|
|
@@ -308,7 +309,7 @@ function _redact(obj, options, depth) {
|
|
|
308
309
|
return '(address)';
|
|
309
310
|
}
|
|
310
311
|
if (redactNumber && obj.match(/^-?[\d,]+$/)) {
|
|
311
|
-
const num = Number.parseInt(obj.replace(/,/g, ''));
|
|
312
|
+
const num = Number.parseInt(obj.replace(/,/g, ''), 10);
|
|
312
313
|
return processNumber(num);
|
|
313
314
|
}
|
|
314
315
|
return obj;
|
package/dist/esm/check.js
CHANGED
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
const { section, method } = filter;
|
|
74
74
|
return evt.section === section && evt.method === method;
|
|
75
75
|
}
|
|
76
|
+
return false;
|
|
76
77
|
});
|
|
77
78
|
});
|
|
78
79
|
}
|
|
@@ -137,7 +138,7 @@
|
|
|
137
138
|
if (typeof obj === 'string') {
|
|
138
139
|
if (redactNumber && obj.match(/0x000000[0-9a-f]{26}/)) {
|
|
139
140
|
// this is very likely u128 encoded in hex
|
|
140
|
-
const num = Number.parseInt(obj);
|
|
141
|
+
const num = Number.parseInt(obj, 16);
|
|
141
142
|
return processNumber(num);
|
|
142
143
|
}
|
|
143
144
|
if (redactHash && obj.match(/0x[0-9a-f]{64}/)) {
|
|
@@ -150,7 +151,7 @@
|
|
|
150
151
|
return '(address)';
|
|
151
152
|
}
|
|
152
153
|
if (redactNumber && obj.match(/^-?[\d,]+$/)) {
|
|
153
|
-
const num = Number.parseInt(obj.replace(/,/g, ''));
|
|
154
|
+
const num = Number.parseInt(obj.replace(/,/g, ''), 10);
|
|
154
155
|
return processNumber(num);
|
|
155
156
|
}
|
|
156
157
|
return obj;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks-testing",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"author": "Acala Developers <hello@acala.network>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"depcheck": "npx depcheck"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@acala-network/chopsticks-utils": "1.2.
|
|
16
|
+
"@acala-network/chopsticks-utils": "1.2.7",
|
|
17
17
|
"@polkadot/api": "^16.4.1",
|
|
18
18
|
"@polkadot/types": "^16.4.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@swc/cli": "0.7.
|
|
21
|
+
"@swc/cli": "0.7.10",
|
|
22
22
|
"@swc/core": "^1.12.14",
|
|
23
23
|
"typescript": "^5.8.3"
|
|
24
24
|
},
|