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