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

promish

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promish - npm Package Compare versions

Comparing version 4.2.7 to 4.2.8

24

lib/promish.js

@@ -87,2 +87,22 @@ 'use strict';

static delay(timeout, value) {
return new Promish(resolve => {
setTimeout(function() {
resolve(value);
}, timeout);
});
}
static resolve(value) {
return new Promish(resolve => {
resolve(value);
});
}
static reject(error) {
return new Promish((resolve, reject) => {
reject(error);
});
}
// Wrap a synchronous method and resolve with its return value

@@ -199,2 +219,6 @@ static method(f) {

static all(promises) {
return new Promish(Promise.all(promises));
}
// some - the first n to resolve, win - else reject with all of the errors

@@ -201,0 +225,0 @@ static some(promises, n) {

2

package.json
{
"name": "promish",
"version": "4.2.7",
"version": "4.2.8",
"description": "ES6 Promise Shim",

@@ -5,0 +5,0 @@ "private": false,

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