New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

turbowatch

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turbowatch - npm Package Compare versions

Comparing version 2.29.2 to 2.29.3

23

dist/subscribe.js

@@ -139,8 +139,15 @@ "use strict";

outerActiveTask.abortController.abort();
const abortedTaskPromise = outerActiveTask.promise;
// Do not start a new task until the previous task has been
// aborted and the shutdown routine has run to completion.
await abortedTaskPromise;
// eslint-disable-next-line require-atomic-updates
outerActiveTask = null;
log.debug('%s (%s): waiting for task to abort', trigger.name, outerActiveTask.id);
if (outerActiveTask.queued) {
return undefined;
}
outerActiveTask.queued = true;
try {
// Do not start a new task until the previous task has been
// aborted and the shutdown routine has run to completion.
await outerActiveTask.promise;
}
catch (_a) {
// nothing to do
}
}

@@ -160,3 +167,3 @@ else {

}
catch (_a) {
catch (_b) {
// nothing to do

@@ -181,3 +188,3 @@ }

}) // eslint-disable-next-line promise/prefer-await-to-then
.then(() => {
.finally(() => {
if (taskId === (outerActiveTask === null || outerActiveTask === void 0 ? void 0 : outerActiveTask.id)) {

@@ -184,0 +191,0 @@ log.debug('%s (%s): completed task', trigger.name, taskId);

@@ -70,3 +70,3 @@ {

"types": "./dist/index.d.ts",
"version": "2.29.2"
"version": "2.29.3"
}

@@ -230,10 +230,21 @@ import { createSpawn } from './createSpawn';

const abortedTaskPromise = outerActiveTask.promise;
log.debug(
'%s (%s): waiting for task to abort',
trigger.name,
outerActiveTask.id,
);
// Do not start a new task until the previous task has been
// aborted and the shutdown routine has run to completion.
await abortedTaskPromise;
if (outerActiveTask.queued) {
return undefined;
}
// eslint-disable-next-line require-atomic-updates
outerActiveTask = null;
outerActiveTask.queued = true;
try {
// Do not start a new task until the previous task has been
// aborted and the shutdown routine has run to completion.
await outerActiveTask.promise;
} catch {
// nothing to do
}
} else {

@@ -291,3 +302,3 @@ if (trigger.persistent) {

}) // eslint-disable-next-line promise/prefer-await-to-then
.then(() => {
.finally(() => {
if (taskId === outerActiveTask?.id) {

@@ -294,0 +305,0 @@ log.debug('%s (%s): completed task', trigger.name, taskId);

Sorry, the diff of this file is not supported yet

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