interfacer
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -49,3 +49,3 @@ 'use strict'; | ||
var composeUrl = exports.composeUrl = function composeUrl(endpoint, req) { | ||
return '' + resolve(req.baseUrl, join(endpoint, req.identifier ? '' + req.identifier : null)) + encodeURI(paste(req.queryparser(req.query), '?', true)); | ||
return '' + resolve(req.baseUrl, join(endpoint, req.identifier ? '' + req.identifier : '')) + encodeURI(paste(req.queryparser(req.query), '?', true)); | ||
}; |
{ | ||
"name": "interfacer", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Module for working with REST API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -32,2 +32,2 @@ // @flow | ||
export const composeUrl = (endpoint: string, req: Request): string => | ||
`${resolve(req.baseUrl, join(endpoint, req.identifier ? `${req.identifier}` : null))}${encodeURI(paste(req.queryparser(req.query), '?', true))}`; | ||
`${resolve(req.baseUrl, join(endpoint, req.identifier ? `${req.identifier}` : ''))}${encodeURI(paste(req.queryparser(req.query), '?', true))}`; |
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
185575