@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 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
- // make it like that so static analyzer of webpack won't bundle it
301
- fs: () => importNodeModule('node:fs'),
302
- path: () => importNodeModule('node:path'),
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 = {