@xnetjs/plugins 0.11.1 → 0.12.0
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/dist/index.js +3 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -12134,6 +12134,8 @@ function isServiceClientAvailable() {
|
|
|
12134
12134
|
}
|
|
12135
12135
|
|
|
12136
12136
|
// src/services/webhook-emitter.ts
|
|
12137
|
+
import { exponential } from "@xnetjs/core";
|
|
12138
|
+
var RETRY_POLICY = exponential(1e3);
|
|
12137
12139
|
var WebhookEmitter = class {
|
|
12138
12140
|
constructor(store) {
|
|
12139
12141
|
this.store = store;
|
|
@@ -12257,7 +12259,7 @@ var WebhookEmitter = class {
|
|
|
12257
12259
|
} catch (err) {
|
|
12258
12260
|
lastError = err instanceof Error ? err : new Error(String(err));
|
|
12259
12261
|
if (attempt < maxRetries) {
|
|
12260
|
-
await this.delay(
|
|
12262
|
+
await this.delay(RETRY_POLICY.delayFor(attempt) ?? 0);
|
|
12261
12263
|
}
|
|
12262
12264
|
}
|
|
12263
12265
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xnetjs/plugins",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"acorn": "^8.15.0",
|
|
33
|
-
"@xnetjs/abuse": "0.
|
|
34
|
-
"@xnetjs/core": "0.
|
|
33
|
+
"@xnetjs/abuse": "0.12.0",
|
|
34
|
+
"@xnetjs/core": "0.12.0",
|
|
35
35
|
"@xnetjs/trust": "0.0.2",
|
|
36
|
-
"@xnetjs/data": "0.
|
|
36
|
+
"@xnetjs/data": "0.12.0",
|
|
37
37
|
"@xnetjs/slack-compat": "0.0.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"tsup": "^8.0.0",
|
|
49
49
|
"typescript": "^5.4.0",
|
|
50
50
|
"vitest": "^4.0.0",
|
|
51
|
-
"@xnetjs/licenses": "0.0.
|
|
51
|
+
"@xnetjs/licenses": "0.0.17"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsup",
|