@code.store/arcxp-sdk-ts 5.1.6 → 5.1.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/index.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/platform/index.d.ts +1 -1
- package/dist/lib/platform/node.d.ts +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import * as rateLimit from 'axios-rate-limit';
|
|
3
3
|
import axiosRetry from 'axios-retry';
|
|
4
|
+
import fs from 'node:fs';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import FormData from 'form-data';
|
|
4
7
|
import * as ws from 'ws';
|
|
5
8
|
import encode from 'base32-encode';
|
|
6
9
|
import { v5 } from 'uuid';
|
|
@@ -271,12 +274,10 @@ class ArcIdentity extends ArcAbstractAPI {
|
|
|
271
274
|
}
|
|
272
275
|
}
|
|
273
276
|
|
|
274
|
-
const importNodeModule = async (moduleId) => await import(moduleId);
|
|
275
277
|
const modules = {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
form_data: () => importNodeModule('form-data'),
|
|
278
|
+
fs: () => Promise.resolve(fs),
|
|
279
|
+
path: () => Promise.resolve(path),
|
|
280
|
+
form_data: () => Promise.resolve(FormData),
|
|
280
281
|
};
|
|
281
282
|
|
|
282
283
|
var platform = {
|