Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gangway

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gangway - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

src/.tern-port

4

CHANGELOG.md
# Changelog
## 1.0.1
- Fix bug where undefined config would throw off options preparation
## 1.0.0

@@ -4,0 +8,0 @@

5

package.json
{
"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')
})
})
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