@forge/events
Advanced tools
Comparing version 0.2.0-next.1 to 0.2.0-next.2
# @forge/events | ||
## 0.2.0-next.2 | ||
### Patch Changes | ||
- ddce3eb: Update the error message for delayInSettings error in push settings | ||
## 0.2.0-next.1 | ||
@@ -4,0 +10,0 @@ |
@@ -28,3 +28,3 @@ "use strict"; | ||
const queue = getQueue(apiClientMock, 'name'); | ||
await expect(queue.push(1, { delayInSeconds: 901 })).rejects.toThrow(new errors_1.InvalidPushSettingsError(`Delay in seconds must be between 0 and 900.`)); | ||
await expect(queue.push(1, { delayInSeconds: 901 })).rejects.toThrow(new errors_1.InvalidPushSettingsError(`The delayInSeconds setting must be configured between 0 and 900.`)); | ||
expect(apiClientMock).toHaveBeenCalledTimes(0); | ||
@@ -31,0 +31,0 @@ }); |
@@ -15,3 +15,3 @@ "use strict"; | ||
if ((settings.delayInSeconds && settings.delayInSeconds > 900) || settings.delayInSeconds < 0) { | ||
throw new errors_1.InvalidPushSettingsError('Delay in seconds must be between 0 and 900.'); | ||
throw new errors_1.InvalidPushSettingsError('The delayInSeconds setting must be configured between 0 and 900.'); | ||
} | ||
@@ -18,0 +18,0 @@ }; |
{ | ||
"name": "@forge/events", | ||
"version": "0.2.0-next.1", | ||
"version": "0.2.0-next.2", | ||
"description": "Forge Async Event methods", | ||
@@ -5,0 +5,0 @@ "author": "Atlassian", |
@@ -44,3 +44,3 @@ import { | ||
await expect(queue.push(1, { delayInSeconds: 901 })).rejects.toThrow( | ||
new InvalidPushSettingsError(`Delay in seconds must be between 0 and 900.`) | ||
new InvalidPushSettingsError(`The delayInSeconds setting must be configured between 0 and 900.`) | ||
); | ||
@@ -47,0 +47,0 @@ expect(apiClientMock).toHaveBeenCalledTimes(0); |
@@ -28,3 +28,3 @@ import { | ||
if ((settings.delayInSeconds && settings.delayInSeconds > 900) || settings.delayInSeconds < 0) { | ||
throw new InvalidPushSettingsError('Delay in seconds must be between 0 and 900.'); | ||
throw new InvalidPushSettingsError('The delayInSeconds setting must be configured between 0 and 900.'); | ||
} | ||
@@ -31,0 +31,0 @@ }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
106988
0