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

@you21979/promise-sleep

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@you21979/promise-sleep - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

example/loop_zero.js

3

lib/sleep.js

@@ -6,4 +6,5 @@ 'use strict';

var sleep = module.exports = function(msec, value){
var f = (msec === 0) ? setImmediate : setTimeout;
return new Promise(function(resolve){
setTimeout(function(){
f(function(){
resolve(value);

@@ -10,0 +11,0 @@ }, msec)

{
"author": "Yuki Akiyama",
"name": "@you21979/promise-sleep",
"version": "1.0.0",
"version": "1.0.1",
"private": false,

@@ -6,0 +6,0 @@ "dependencies": {

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