resource-client
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
module.exports = { | ||
@@ -3,0 +3,0 @@ 'get': { |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
var Promise, _, defaultActions, request, requestValidator, resourceClient, urlBuilder, | ||
@@ -3,0 +3,0 @@ slice = [].slice; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
var Promise, _, clean, getBanUnkownProperties, getQueryParamValues, getUrlParamValues, getUrlParams, validate, validator, | ||
@@ -3,0 +3,0 @@ indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; |
@@ -1,4 +0,6 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
var UrlAssembler, populateUrlParamsFromBody, stripRemainingUrlParams; | ||
// Generated by CoffeeScript 1.10.0 | ||
var UrlAssembler, _, populateUrlParamsFromBody, stripRemainingUrlParams; | ||
_ = require('lodash'); | ||
UrlAssembler = require('url-assembler'); | ||
@@ -16,8 +18,8 @@ | ||
module.exports.build = function(urlTemplate, params, body) { | ||
var populatedParams, url; | ||
var url; | ||
if (body == null) { | ||
body = {}; | ||
} | ||
populatedParams = populateUrlParamsFromBody(params, body); | ||
url = UrlAssembler().template(urlTemplate).param(populatedParams).toString(); | ||
params = populateUrlParamsFromBody(params, body); | ||
url = UrlAssembler().template(urlTemplate).param(_.omit(params, _.isArray)).query(_.pick(params, _.isArray)).toString(); | ||
return stripRemainingUrlParams(url); | ||
@@ -24,0 +26,0 @@ }; |
{ | ||
"name": "resource-client", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "Easily create api clients for your server side resources.", | ||
@@ -5,0 +5,0 @@ "author": "Good Eggs <open-source@goodeggs.com>", |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
50802
13
585
1