cgserver 9.0.1 → 9.0.2
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/README.md
CHANGED
|
@@ -8,7 +8,7 @@ const crypto = require("crypto");
|
|
|
8
8
|
const Log_1 = require("../Logic/Log");
|
|
9
9
|
const CryptoJS = require("crypto-js");
|
|
10
10
|
const ec_key_1 = require("ec-key");
|
|
11
|
-
const
|
|
11
|
+
const uuidv4_1 = require("uuidv4");
|
|
12
12
|
/**
|
|
13
13
|
* 常用的工具函数类
|
|
14
14
|
*/
|
|
@@ -654,7 +654,7 @@ class core {
|
|
|
654
654
|
return dtext;
|
|
655
655
|
}
|
|
656
656
|
static getUuid() {
|
|
657
|
-
let id =
|
|
657
|
+
let id = (0, uuidv4_1.uuid)();
|
|
658
658
|
return id;
|
|
659
659
|
}
|
|
660
660
|
static signatureBase64(private_key, rsa_name, payload) {
|
|
@@ -123,7 +123,7 @@ declare class AppleTool {
|
|
|
123
123
|
onVerify(receipt: string, environment: string): Promise<ResponseBody>;
|
|
124
124
|
signature(nickname: string, create_time: number, appBundleID: string, productIdentifier: string, offerIdentifier: string): {
|
|
125
125
|
keyIdentifier: string;
|
|
126
|
-
nonce:
|
|
126
|
+
nonce: string;
|
|
127
127
|
timestamp: number;
|
|
128
128
|
signature: any;
|
|
129
129
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cgserver",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"author": "trojan",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"description": "free for all.Websocket or Http",
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"socket.io": "^4.7.4",
|
|
78
78
|
"underscore": "^1.13.6",
|
|
79
79
|
"urlencode": "^2.0.0",
|
|
80
|
+
"uuidv4": "^6.2.13",
|
|
80
81
|
"websocket": "^1.0.34"
|
|
81
82
|
}
|
|
82
83
|
}
|