rest-facade
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"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'); |
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
32774
720