@xuda.io/account_module 1.2.174 → 1.2.176

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 +4 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6,7 +6,9 @@ import { createRequire } from 'module';
6
6
  const require = createRequire(import.meta.url);
7
7
 
8
8
  // Load Globals and Config
9
- global._conf = require(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG));
9
+ global._conf = await import(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG), {
10
+ with: { type: 'json' },
11
+ });
10
12
 
11
13
  const _common = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda_node_common.mjs'));
12
14
  const _utils = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi-utils.mjs'));
@@ -1467,7 +1469,7 @@ export const get_account_default_project_id = async function (uid) {
1467
1469
 
1468
1470
  export const get_user_name = async function (uid) {
1469
1471
  try {
1470
- const account_info = await get_account_name(uid);
1472
+ const account_info = await get_account_name({ uid });
1471
1473
  let username = 'unknown';
1472
1474
  if (account_info) {
1473
1475
  username = account_info.first_name + ' ' + account_info.last_name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.174",
3
+ "version": "1.2.176",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {