@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.cjs
CHANGED
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var axios = require('axios');
|
|
6
6
|
var rateLimit = require('axios-rate-limit');
|
|
7
7
|
var axiosRetry = require('axios-retry');
|
|
8
|
+
var fs = require('node:fs');
|
|
9
|
+
var path = require('node:path');
|
|
10
|
+
var FormData = require('form-data');
|
|
8
11
|
var ws = require('ws');
|
|
9
12
|
var encode = require('base32-encode');
|
|
10
13
|
var uuid = require('uuid');
|
|
@@ -295,12 +298,10 @@ class ArcIdentity extends ArcAbstractAPI {
|
|
|
295
298
|
}
|
|
296
299
|
}
|
|
297
300
|
|
|
298
|
-
const importNodeModule = async (moduleId) => await import(moduleId);
|
|
299
301
|
const modules = {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
form_data: () => importNodeModule('form-data'),
|
|
302
|
+
fs: () => Promise.resolve(fs),
|
|
303
|
+
path: () => Promise.resolve(path),
|
|
304
|
+
form_data: () => Promise.resolve(FormData),
|
|
304
305
|
};
|
|
305
306
|
|
|
306
307
|
var platform = {
|