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

promise-make-counter

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-make-counter - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

package.json

@@ -5,3 +5,3 @@ {

"description": "A simple function that makes a counter-based promise, which can be incremented and decremented, and it resolves once its counter reaches zero.",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",

@@ -26,7 +26,6 @@ "main": "dist/index.js",

"dependencies": {
"promise-make-naked": "^2.1.2"
"promise-make-naked": "^3.0.0"
},
"devDependencies": {
"fava": "^0.3.2",
"promise-resolve-timeout": "^2.0.0",
"fava": "^0.3.4",
"tsex": "^4.0.2",

@@ -33,0 +32,0 @@ "typescript": "^5.5.0-beta"

@@ -5,3 +5,2 @@

import {describe} from 'fava';
import delay from 'promise-resolve-timeout';
import makeCounterPromise from '../dist/index.js';

@@ -19,3 +18,3 @@

await delay ( 0 );
await t.wait ( 0 );

@@ -36,3 +35,3 @@ t.false ( isPending () );

await delay ( 0 );
await t.wait ( 0 );

@@ -44,3 +43,3 @@ t.true ( isPending () );

await delay ( 0 );
await t.wait ( 0 );

@@ -51,3 +50,3 @@ t.true ( isPending () );

await delay ( 0 );
await t.wait ( 0 );

@@ -54,0 +53,0 @@ t.false ( isPending () );

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