@xuda.io/account_module 1.2.1995 → 1.2.1996

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_ms.mjs +7 -3
  2. package/package.json +1 -1
package/index_ms.mjs CHANGED
@@ -1,10 +1,11 @@
1
1
  // =====================================================
2
2
  // Queue wrapper – generated from index.mjs
3
+ // Queue target : account_module
3
4
  // =====================================================
4
5
 
5
- const send_to_queue = function(mas_method, ...args) {
6
- global[`_${module_in}_ch`].sendToQueue(
7
- 'undefined',
6
+ const send_to_queue = function(ms_method, ...args) {
7
+ global[`_${module_name}_ch`].sendToQueue(
8
+ 'account_module',
8
9
  Buffer.from(
9
10
  JSON.stringify({
10
11
  ms_method,
@@ -14,6 +15,9 @@ const send_to_queue = function(mas_method, ...args) {
14
15
  );
15
16
  };
16
17
 
18
+ // You must define this somewhere before using these wrappers:
19
+ const module_name = 'account_module';
20
+
17
21
  export const update_account_info = async function (...args) {
18
22
  return await send_to_queue("update_account_info", ...args);
19
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1995",
3
+ "version": "1.2.1996",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {