@fluojs/slack 1.0.0-beta.3 → 1.0.0-beta.4

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.ko.md CHANGED
@@ -62,8 +62,9 @@ export class AppModule {}
62
62
  import { Inject } from '@fluojs/core';
63
63
  import { SlackService } from '@fluojs/slack';
64
64
 
65
+ @Inject(SlackService)
65
66
  export class DeployNotifier {
66
- constructor(@Inject(SlackService) private readonly slack: SlackService) {}
67
+ constructor(private readonly slack: SlackService) {}
67
68
 
68
69
  async announce(version: string) {
69
70
  await this.slack.send({
package/README.md CHANGED
@@ -62,8 +62,9 @@ export class AppModule {}
62
62
  import { Inject } from '@fluojs/core';
63
63
  import { SlackService } from '@fluojs/slack';
64
64
 
65
+ @Inject(SlackService)
65
66
  export class DeployNotifier {
66
- constructor(@Inject(SlackService) private readonly slack: SlackService) {}
67
+ constructor(private readonly slack: SlackService) {}
67
68
 
68
69
  async announce(version: string) {
69
70
  await this.slack.send({
package/dist/webhook.js CHANGED
@@ -150,13 +150,13 @@ export function createSlackWebhookTransport(options) {
150
150
  if (isAbortError(error) || context.signal?.aborted) {
151
151
  throw error;
152
152
  }
153
+ if (error instanceof SlackTransportError) {
154
+ throw error;
155
+ }
153
156
  if (attempt < DEFAULT_RETRY_ATTEMPTS) {
154
157
  await waitForRetry(DEFAULT_RETRY_DELAY_MS * 2 ** (attempt - 1), context.signal);
155
158
  continue;
156
159
  }
157
- if (error instanceof SlackTransportError) {
158
- throw error;
159
- }
160
160
  throw new SlackTransportError(createTransportFailureMessage(attempt));
161
161
  }
162
162
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "portable",
10
10
  "fetch"
11
11
  ],
12
- "version": "1.0.0-beta.3",
12
+ "version": "1.0.0-beta.4",
13
13
  "private": false,
14
14
  "license": "MIT",
15
15
  "repository": {
@@ -36,10 +36,10 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@fluojs/core": "^1.0.0-beta.4",
40
- "@fluojs/di": "^1.0.0-beta.6",
41
- "@fluojs/notifications": "^1.0.0-beta.3",
42
- "@fluojs/runtime": "^1.0.0-beta.11"
39
+ "@fluojs/core": "^1.0.0-beta.5",
40
+ "@fluojs/di": "^1.0.0-beta.7",
41
+ "@fluojs/notifications": "^1.0.0-beta.4",
42
+ "@fluojs/runtime": "^1.0.0-beta.12"
43
43
  },
44
44
  "devDependencies": {
45
45
  "vitest": "^3.2.4"