We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46a3f30 + 12eb30f commit 1d91276Copy full SHA for 1d91276
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "aelf-command",
3
- "version": "0.1.47-beta.11",
+ "version": "0.1.48",
4
"description": "A CLI tools for AElf",
5
"main": "src/index.js",
6
"type": "module",
src/utils/utils.js
@@ -225,6 +225,9 @@ function parseJSON(str = '') {
225
let result = null;
226
try {
227
result = JSON.parse(str);
228
+ if (typeof result === 'number' && /^-?\d+(\.\d+)?[eE][+-]?\d+$/.test(String(result))) {
229
+ result = str;
230
+ }
231
} catch (e) {
232
result = str;
233
}
0 commit comments