Socket
Socket
Sign inDemoInstall

get-ready

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-ready - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

5

History.md
2.0.1 / 2017-02-09
==================
* fix: it should reject error when ready return promise (#3)
2.0.0 / 2017-02-08

@@ -3,0 +8,0 @@ ==================

13

index.js

@@ -35,7 +35,14 @@ 'use strict';

if (!func) {
return new Promise(resolve => {
return new Promise((resolve, reject) => {
function func(err) {
if (err) {
reject(err);
} else {
resolve();
}
}
if (this[IS_READY]) {
return resolve(this[READY_ARG]);
return func(this[READY_ARG]);
}
this[READY_CALLBACKS].push(resolve);
this[READY_CALLBACKS].push(func);
});

@@ -42,0 +49,0 @@ }

{
"name": "get-ready",
"version": "2.0.0",
"version": "2.0.1",
"description": "mixin to add one-time ready event callback handler",

@@ -5,0 +5,0 @@ "main": "index.js",

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