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

@cap-js-community/event-queue

Package Overview
Dependencies
Maintainers
6
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cap-js-community/event-queue - npm Package Compare versions

Comparing version 0.1.52 to 0.1.53

2

package.json
{
"name": "@cap-js-community/event-queue",
"version": "0.1.52",
"version": "0.1.53",
"description": "event queue for cds",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -5,2 +5,4 @@ "use strict";

const ALLOWED_SHIFT_IN_PROCENT = 0.1;
class SetIntervalDriftSafe {

@@ -23,4 +25,7 @@ #adjustedInterval;

this.#expectedCycleTime = now + this.#interval;
} else if (now + this.#interval - this.#nextTickScheduledFor < this.#interval) {
this.#logger.info("overlapping ticks, skipping this run");
} else if (
Math.abs(now + this.#interval - this.#nextTickScheduledFor - this.#interval) >
this.#interval * ALLOWED_SHIFT_IN_PROCENT
) {
this.#logger.log("overlapping ticks, skipping this run");
return;

@@ -27,0 +32,0 @@ } else {

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