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

rest-facade

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-facade - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

package.json
{
"name": "rest-facade",
"version": "1.2.2",
"version": "1.2.3",
"description": "Simple abstraction for consuming REST API endpoints",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -122,3 +122,2 @@ var extend = require('util')._extend;

* @param {Object} params Object containing URL resource params.
* @param {Number} params.id The ID of the resource to be updated.
* @param {Object} data The new data.

@@ -131,6 +130,2 @@ * @param {Function} [callback] Callback function.

if (params.id === null || params.id === undefined) {
throw new ArgumentError('A resource ID is required');
}
if (typeof data !== 'object') {

@@ -153,3 +148,2 @@ throw new ArgumentError('The data must be an object');

* @param {Object} params Object containing URL resource params.
* @param {Number} params.id The ID of the resource to be updated.
* @param {Object} data The new data.

@@ -162,6 +156,2 @@ * @param {Function} [callback] Callback function.

if (params.id === null || params.id === undefined) {
throw new ArgumentError('A resource ID is required');
}
if (typeof data !== 'object') {

@@ -168,0 +158,0 @@ throw new ArgumentError('The data must be an object');

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