@xuda.io/drive_module 1.1.1241 → 1.1.1242

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.
Files changed (2) hide show
  1. package/index.mjs +5 -8
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import { createRequire } from 'module';
2
1
  import path from 'path';
3
2
  import _ from 'lodash';
4
3
  import { rimraf } from 'rimraf';
@@ -20,13 +19,11 @@ import { Upload } from '@aws-sdk/lib-storage';
20
19
 
21
20
  console.log('Drive Module loaded...');
22
21
 
23
- // Initialize require for dynamic paths
24
- const require = createRequire(import.meta.url);
25
-
26
- // Load Globals
27
- global._conf = await import(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG), {
28
- with: { type: 'json' },
29
- });
22
+ global._conf = (
23
+ await import(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG), {
24
+ with: { type: 'json' },
25
+ })
26
+ ).default;
30
27
 
31
28
  const _common = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda_node_common.mjs'));
32
29
  const _utils = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi-utils.mjs'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1241",
3
+ "version": "1.1.1242",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {