oak-backend-base 4.1.12 → 4.1.13
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/lib/Synchronizer.js +3 -0
- package/package.json +5 -5
package/lib/Synchronizer.js
CHANGED
|
@@ -38,6 +38,9 @@ function verify(publicKey, body, ts, nonce, signature) {
|
|
|
38
38
|
return verify2.verify(publicKey, signature, 'hex');
|
|
39
39
|
}
|
|
40
40
|
async function fetchWithTimeout(url, options, timeout = 5000) {
|
|
41
|
+
if (typeof AbortController === 'undefined' || timeout === 0) {
|
|
42
|
+
return fetch(url, options);
|
|
43
|
+
}
|
|
41
44
|
const controller = new AbortController();
|
|
42
45
|
const signal = controller.signal;
|
|
43
46
|
// 设置超时
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oak-backend-base",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.13",
|
|
4
4
|
"description": "oak-backend-base",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"author": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"mysql": "^2.18.1",
|
|
21
21
|
"mysql2": "^2.3.3",
|
|
22
22
|
"node-schedule": "^2.1.0",
|
|
23
|
-
"oak-common-aspect": "^3.0.
|
|
24
|
-
"oak-db": "^3.3.
|
|
25
|
-
"oak-domain": "^5.1.
|
|
26
|
-
"oak-frontend-base": "^5.3.
|
|
23
|
+
"oak-common-aspect": "^3.0.5",
|
|
24
|
+
"oak-db": "^3.3.5",
|
|
25
|
+
"oak-domain": "^5.1.14",
|
|
26
|
+
"oak-frontend-base": "^5.3.22",
|
|
27
27
|
"socket.io": "^4.7.2",
|
|
28
28
|
"socket.io-client": "^4.7.2",
|
|
29
29
|
"uuid": "^8.3.2"
|