Socket
Socket
Sign inDemoInstall

pinkie

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

2

index.js

@@ -164,3 +164,3 @@ 'use strict';

if (typeof resolver !== 'function') {
throw new TypeError('Promise constructor takes a function argument');
throw new TypeError('Promise resolver ' + resolver + ' is not a function');
}

@@ -167,0 +167,0 @@

{
"name": "pinkie",
"version": "0.0.1",
"version": "0.0.2",
"description": "Itty bitty little wittle twinkie pinkie ES6 Promise implementation",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,6 +0,17 @@

# pinkie [![Build Status](https://travis-ci.org/floatdrop/pinkie.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie)
<h1 align="center">
<br>
<img width="300" src="https://rawgit.com/floatdrop/pinkie/master/media/logo.png" alt="pinkie">
<br>
<br>
</h1>
> Itty bitty little wittle twinkie pinkie [ES6 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) implementation
[![Build Status](https://travis-ci.org/floatdrop/pinkie.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie)
There are [tons of Promise implementations](https://github.com/sorrycc/awesome-javascript#control-flow) out there, but all of them focused on browser compatibility and often bloated with functionality.
This module focused to be exactly Promise specification polyfill (like [native-promise-only](https://github.com/getify/native-promise-only)), but in NodeJS land (it should be browserify-able thou).
## Install

@@ -48,7 +59,7 @@

Returns a promise that resolves when all of the promises in the `promises` argument have resolved.
Returns a promise that resolves when all of the promises in the `promises` Array argument have resolved.
#### pinkie.race(promises)
Returns a promise that resolves or rejects as soon as one of the promises in the `promises` resolves or rejects, with the value or reason from that promise.
Returns a promise that resolves or rejects as soon as one of the promises in the `promises` Array resolves or rejects, with the value or reason from that promise.

@@ -55,0 +66,0 @@ #### pinkie.reject(reason)

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