node-helper-utilities
Advanced tools
Comparing version 2.0.0 to 2.0.1
2.0.1 / 2015-10-01 | ||
================== | ||
* code: use return to avoid else | ||
* build: test against all node versions | ||
* build: suppress output from makefile | ||
* deps: update mocha | ||
* addons for .travis | ||
* setting the env for compiler | ||
* test against node.js 4.x | ||
2.0.0 / 2015-07-30 | ||
@@ -84,3 +95,3 @@ ================== | ||
* defer functions to later time | ||
1.4.0 / 2015-01-09 | ||
@@ -90,3 +101,3 @@ ================== | ||
* Update README.md | ||
* Use coveralls | ||
* Use coveralls | ||
* bcrypt hash and code coverage | ||
@@ -118,4 +129,4 @@ * Increase code coverage, and update to use Promises | ||
* added cluster helper. | ||
* remove unused code | ||
* Fix Repository name | ||
* remove unused code | ||
* Fix Repository name | ||
@@ -122,0 +133,0 @@ 1.0.0 / 2014-12-08 |
32
index.js
@@ -97,7 +97,7 @@ 'use strict'; | ||
if(err) { | ||
reject(err); | ||
} else { | ||
token = prefix ? prefix + ':' + token.toString('hex') : token.toString('hex'); | ||
resolve(token); | ||
return reject(err); | ||
} | ||
token = prefix ? prefix + ':' + token.toString('hex') : token.toString('hex'); | ||
return resolve(token); | ||
}); | ||
@@ -113,6 +113,6 @@ }); | ||
if(err) { | ||
reject(err); | ||
} else { | ||
resolve(hashed); | ||
return reject(err); | ||
} | ||
return resolve(hashed); | ||
}); | ||
@@ -126,6 +126,6 @@ }); | ||
if(err) { | ||
reject(err); | ||
} else { | ||
resolve(result); | ||
return reject(err); | ||
} | ||
return resolve(result); | ||
}); | ||
@@ -158,6 +158,6 @@ }); | ||
if(err) { | ||
reject(err); | ||
} else { | ||
resolve(data); | ||
return reject(err); | ||
} | ||
return resolve(data); | ||
}); | ||
@@ -171,6 +171,6 @@ }); | ||
if(err) { | ||
reject(err); | ||
} else { | ||
resolve(); | ||
return reject(err); | ||
} | ||
return resolve(); | ||
}); | ||
@@ -177,0 +177,0 @@ }); |
{ | ||
"name": "node-helper-utilities", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Generic helper utilities", | ||
@@ -22,3 +22,3 @@ "main": "index.js", | ||
"istanbul": "^0.3.14", | ||
"mocha": "^2.2.5", | ||
"mocha": "^2.3.3", | ||
"sinon": "^1.14.1" | ||
@@ -25,0 +25,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13471
6
166