Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forge/events

Package Overview
Dependencies
Maintainers
8
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forge/events - npm Package Compare versions

Comparing version 0.2.0-next.1 to 0.2.0-next.2

6

CHANGELOG.md
# @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 @@

2

out/__test__/queue.test.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc