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

sleep-promise

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sleep-promise - npm Package Compare versions

Comparing version 8.0.1 to 9.0.0

CHANGELOG.md

2

build/cjs.js

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

'use strict';var cachedSetTimeout=setTimeout;function createSleepPromise(a,b){var c=b.useCachedSetTimeout,d=c?cachedSetTimeout:setTimeout;return new Promise(function(b){d(b,a)})}function sleep(a){function b(a){return e.then(function(){return a})}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=c.useCachedSetTimeout,e=createSleepPromise(a,{useCachedSetTimeout:d});return b.then=function(){return e.then.apply(e,arguments)},b.catch=Promise.resolve().catch,b}module.exports=sleep;
"use strict";var e=setTimeout;function t(t,n){var u=n.useCachedSetTimeout?e:setTimeout;return new Promise((function(e){u(e,t)}))}module.exports=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=n.useCachedSetTimeout,r=t(e,{useCachedSetTimeout:u});function o(e){return r.then((function(){return e}))}return o.then=function(){return r.then.apply(r,arguments)},o.catch=Promise.resolve().catch,o};
{
"name": "sleep-promise",
"author": "Jan Brummelte <sleep-promise@jan-brummelte.de> (https://jan-brummelte.de)",
"version": "8.0.1",
"description": "Resolves a promise after a specified delay.",
"main": "build/cjs.js",
"module": "build/esm.mjs",
"types": "build/cjs.d.ts",
"scripts": {
"test": "npm run test:code && npm run test:eslint && npm run test:formatting && npm run test:typescript",
"test:code": "jest",
"test:eslint": "eslint \"lib/**/*.js\"",
"test:formatting": "prettier-eslint --list-different \"lib/**/*.js\" \"types/**/*.d.ts\"",
"test:typescript": "tsc",
"build": "npm run build:clean && npm run build:bundle && npm run build:types",
"build:clean": "rimraf build",
"build:bundle": "rollup --config",
"build:types": "copyfiles -u 1 types/* build",
"prepublishOnly": "npm run test && npm run build"
},
"repository": {
"type": "git",
"url": "https://github.com/brummelte/sleep-promise"
},
"keywords": [
"sleep",
"promise",
"delay"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/brummelte/sleep-promise/issues"
},
"homepage": "https://github.com/brummelte/sleep-promise",
"jest-junit": {
"output": "coverage/junit/js-test-results.xml"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.49",
"@babel/core": "^7.0.0-beta.49",
"@babel/preset-env": "^7.0.0-beta.49",
"@brummelte/eslint-config": "^3.0.0",
"babel-core": "^7.0.0-0",
"babel-jest": "^23.0.1",
"copyfiles": "^2.0.0",
"coveralls": "^3.0.1",
"eslint": "^4.19.1",
"jest": "^23.1.0",
"jest-junit": "^5.0.0",
"prettier-eslint-cli": "^4.7.1",
"rimraf": "^2.6.2",
"rollup": "^0.60.0",
"rollup-plugin-babel": "^4.0.0-beta.4",
"rollup-plugin-babel-minify": "^5.0.0",
"rollup-plugin-node-resolve": "^3.3.0",
"typescript": "^2.9.1"
}
"name": "sleep-promise",
"author": "Jan Brummelte <sleep-promise@jan-brummelte.de> (https://jan-brummelte.de)",
"version": "9.0.0",
"description": "Resolves a promise after a specified delay.",
"main": "build/cjs.js",
"module": "build/esm.mjs",
"types": "build/cjs.d.ts",
"scripts": {
"test": "npm run test:code && npm run test:eslint && npm run test:typescript",
"test:code": "jest",
"test:eslint": "eslint .",
"test:typescript": "tsc",
"build": "npm run build:clean && npm run build:bundle && npm run build:types",
"build:clean": "rimraf build",
"build:bundle": "rollup --config",
"build:types": "copyfiles -u 1 types/* build",
"prepublishOnly": "yarn build"
},
"repository": {
"type": "git",
"url": "https://github.com/brummelte/sleep-promise"
},
"keywords": [
"sleep",
"promise",
"delay"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/brummelte/sleep-promise/issues"
},
"homepage": "https://github.com/brummelte/sleep-promise",
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@brummelte/eslint-config": "^8.2.2",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.1.1",
"@semantic-release/npm": "^7.0.6",
"@semantic-release/release-notes-generator": "^9.0.1",
"babel-jest": "^26.5.2",
"copyfiles": "^2.4.0",
"coveralls": "^3.1.0",
"eslint": "^7.11.0",
"jest": "^26.5.3",
"jest-junit": "^12.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.32.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.2",
"semantic-release": "^17.2.1",
"typescript": "^4.0.3"
},
"dependencies": {
"core-js": "^3.6.5"
}
}

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