Socket
Socket
Sign inDemoInstall

vow

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vow - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

.npmignore

28

lib/vow.js
/**
* @module vow
* @author Filatov Dmitry <dfilatov@yandex-team.ru>
* @version 0.4.5
* @version 0.4.6
* @license

@@ -80,3 +80,17 @@ * Dual licensed under the MIT and GPL licenses:

reject : function(reason) {
this._promise.isResolved() || this._promise._reject(reason);
if(this._promise.isResolved()) {
return;
}
if(vow.isPromise(reason)) {
reason = reason.then(function(val) {
var defer = vow.defer();
defer.reject(val);
return defer.promise();
});
this._promise._resolve(reason);
}
else {
this._promise._reject(reason);
}
},

@@ -858,10 +872,2 @@

reject : function(reason) {
if(vow.isPromise(reason)) {
return reason.then(function(val) {
var defer = vow.defer();
defer.reject(val);
return defer.promise();
});
}
var defer = vow.defer();

@@ -1271,3 +1277,3 @@ defer.reject(reason);

var defineAsGlobal = true;
if(typeof exports === 'object') {
if(typeof module === 'object' && typeof module.exports === 'object') {
module.exports = vow;

@@ -1274,0 +1280,0 @@ defineAsGlobal = false;

{
"name" : "vow",
"version" : "0.4.5",
"version" : "0.4.6",
"description" : "DOM Promise and Promises/A+ implementation for Node.js and browsers",
"homepage" : "https://github.com/dfilatov/vow",
"homepage" : "http://dfilatov.github.io/vow/",
"keywords" : ["nodejs", "browser", "async", "promise", "dom", "a+"],

@@ -21,3 +21,3 @@ "author" : "Dmitry Filatov <dfilatov@yandex-team.ru>",

"uglify-js" : "1.3.4",
"promises-aplus-tests": "2.0.3",
"promises-aplus-tests": "2.1.0",
"marked" : "0.2.10",

@@ -24,0 +24,0 @@ "jspath" : "0.2.11",

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