Socket
Socket
Sign inDemoInstall

delay

Package Overview
Dependencies
0
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

2

index.d.ts

@@ -0,1 +1,3 @@

/// <reference lib="dom"/>
interface ClearablePromise<T> extends Promise<T> {

@@ -2,0 +4,0 @@ /**

8

index.js

@@ -47,8 +47,6 @@ 'use strict';

delayPromise.clear = () => {
clearTimeout(timeoutId);
timeoutId = null;
cleanup();
if (timeoutId) {
clearTimeout(timeoutId);
timeoutId = null;
settle();
}
settle();
};

@@ -55,0 +53,0 @@

{
"name": "delay",
"version": "4.0.0",
"version": "4.0.1",
"description": "Delay a promise a specified amount of time",

@@ -47,10 +47,5 @@ "license": "MIT",

"time-span": "^2.0.0",
"tsd-check": "^0.1.0",
"tsd-check": "^0.2.1",
"xo": "*"
},
"xo": {
"ignores": [
"*.ts"
]
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc