@msafe/sui3-sdk 0.0.47-pre-e1a0d17.0 → 0.0.47
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
- package/src/backend/BackendImpl.ts +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@msafe/sui3-sdk",
|
|
3
|
-
"version": "0.0.47
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"description": "SDK for MSafe SUI V3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -22,13 +22,15 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@msafe/sui-wallet": "^0.0.41",
|
|
25
|
-
"@msafe/sui3-utils": "^3.1.
|
|
25
|
+
"@msafe/sui3-utils": "^3.1.55",
|
|
26
26
|
"axios": "^1.6.6",
|
|
27
|
-
"buffer": "^6.0.3"
|
|
27
|
+
"buffer": "^6.0.3",
|
|
28
|
+
"json-bigint": "^1.0.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@mysten/sui.js": "^0.50.1",
|
|
31
32
|
"@types/jest": "^29.5.8",
|
|
33
|
+
"@types/json-bigint": "^1.0.4",
|
|
32
34
|
"@types/node": "^20.9.2",
|
|
33
35
|
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
|
34
36
|
"@typescript-eslint/parser": "^6.5.0",
|
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
} from '@msafe/sui3-utils';
|
|
41
41
|
import { SerializedSignature, PublicKey } from '@mysten/sui.js/cryptography';
|
|
42
42
|
import axios, { AxiosError, AxiosRequestConfig, AxiosRequestTransformer, AxiosResponse } from 'axios';
|
|
43
|
+
import * as JSONBig from 'json-bigint';
|
|
43
44
|
|
|
44
45
|
import { IBackend } from '@/backend/interface';
|
|
45
46
|
import { addPrefix } from '@/utils';
|
|
@@ -333,11 +334,7 @@ export class BackendImpl implements IBackend {
|
|
|
333
334
|
transformRequests = [transformRequest];
|
|
334
335
|
}
|
|
335
336
|
|
|
336
|
-
return [
|
|
337
|
-
(d: any) =>
|
|
338
|
-
JSON.parse(JSON.stringify(d, (_, value) => (typeof value === 'bigint' ? `${value.toString()}n` : value))),
|
|
339
|
-
...transformRequests,
|
|
340
|
-
];
|
|
337
|
+
return [(d: any) => JSONBig.parse(JSONBig.stringify(d)), ...transformRequests];
|
|
341
338
|
}
|
|
342
339
|
}
|
|
343
340
|
|