Comparing version 1.0.0 to 1.0.1
# Changelog | ||
## 1.0.1 | ||
- Fix bug where undefined config would throw off options preparation | ||
## 1.0.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "gangway", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A client-side API abstraction layer", | ||
"main": "src/api.js", | ||
"scripts": { | ||
"test": "istanbul cover _mocha -- -R dot", | ||
"test": "mocha -R dot", | ||
"test:cov": "istanbul cover _mocha -- -R dot", | ||
"test:watch": "mocha -w -R dot" | ||
@@ -9,0 +10,0 @@ }, |
@@ -22,3 +22,5 @@ /** | ||
module.exports = function prepare (/* options list */) { | ||
var options = [ DEFAULTS ].concat(toArray(arguments)) | ||
var options = [ DEFAULTS ].concat(toArray(arguments)).filter(function (config) { | ||
return !!config | ||
}) | ||
@@ -25,0 +27,0 @@ return options.reduce(function (memo, next) { |
@@ -27,2 +27,7 @@ var url = require('../src/url') | ||
}) | ||
it ('properly falsy handles numbers', function() { | ||
var location = url('http://foobar.com', '/user/{id}', { id: 0 }) | ||
assert.equal(location, 'http://foobar.com/user/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
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
28016
28
516
0