@xuda.io/account_module 1.2.2025 → 1.2.2026
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/index_ms.mjs +2 -1
- package/package.json +1 -1
package/index_ms.mjs
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// =====================================================
|
|
5
5
|
|
|
6
6
|
import amqplib from 'amqplib';
|
|
7
|
+
import { randomUUID } from 'crypto';
|
|
7
8
|
|
|
8
9
|
let queue={}
|
|
9
10
|
|
|
@@ -36,7 +37,7 @@ let queue={}
|
|
|
36
37
|
|
|
37
38
|
const send_to_queue =async function(ms_method, ...args) {
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
const queue_id = randomUUID();
|
|
40
41
|
return new Promise((resolve,reject)=>{
|
|
41
42
|
|
|
42
43
|
queue[queue_id] = { resolve, reject };
|