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

resource-client

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resource-client - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

2

lib/default_actions.js

@@ -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

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