@xuda.io/account_module 1.2.176 → 1.2.178

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 +7 -8
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2,13 +2,11 @@ import path from 'path';
2
2
  import _ from 'lodash';
3
3
  import { createRequire } from 'module';
4
4
 
5
- // Initialize require for dynamic paths based on environment variables
6
- const require = createRequire(import.meta.url);
7
-
8
- // Load Globals and Config
9
- global._conf = await import(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG), {
10
- with: { type: 'json' },
11
- });
5
+ global._conf = (
6
+ await import(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG), {
7
+ with: { type: 'json' },
8
+ })
9
+ ).default;
12
10
 
13
11
  const _common = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda_node_common.mjs'));
14
12
  const _utils = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi-utils.mjs'));
@@ -1151,7 +1149,7 @@ export const delete_contact = async function (req) {
1151
1149
  // );
1152
1150
 
1153
1151
  export const add_contact = async function (req) {
1154
- const { uid, email, name, stat, contact_uid, req_id } = req;
1152
+ const { uid, email, name, stat, contact_uid, req_id, profile_picture } = req;
1155
1153
  const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: [uid, email] });
1156
1154
 
1157
1155
  if (!contact_ret.rows.length) {
@@ -1165,6 +1163,7 @@ export const add_contact = async function (req) {
1165
1163
  contact_uid,
1166
1164
  uid,
1167
1165
  req_id,
1166
+ profile_picture,
1168
1167
  });
1169
1168
  return ret;
1170
1169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.176",
3
+ "version": "1.2.178",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {