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 2.0.0-alpha-2 to 2.0.0-alpha-3

2

package.json
{
"name": "gangway",
"version": "2.0.0-alpha-2",
"version": "2.0.0-alpha-3",
"description": "A client-side API abstraction layer",

@@ -5,0 +5,0 @@ "engines": {

var singularize = require('./singularize')
var url = require('./url')
module.exports = function segmentize (segments) {
return segments.map(function(segment, i) {
return segment + (i === segments.length - 1 ? '' : '/{' + singularize(segment) + '_id}')
}).reduce(url.resolve, '')
}).join('/')
}

@@ -21,7 +21,2 @@ var parameterizeRoute = require('./parameterizeRoute')

// Normalize the base url
if (base.slice(-1) !== '/') {
base += '/'
}
base = base.replace(trimRight, '')

@@ -28,0 +23,0 @@ path = path.replace(trimLeft, '')

@@ -36,3 +36,3 @@ var API = require('../src/api')

var api = new API({
baseURL: 'http://example.com/api/'
baseURL: 'http://example.com/api'
})

@@ -39,0 +39,0 @@ var foo = api.namespace('foo')

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