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

@commercetools/sdk-client

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools/sdk-client - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

lib/validate.js

14

CHANGELOG.md

@@ -1,6 +0,16 @@

<a name="1.3.0"></a>
# 1.3.0 (2017-03-17)
<a name="1.4.0"></a>
# 1.4.0 (2017-04-19)
<a name="1.4.0"></a>
# 1.4.0 (2017-04-19)
### Features
* **sdk-client:** validate arguments (#134) ([e46690b](https://github.com/commercetools/nodejs/commit/e46690b)), closes [#41](https://github.com/commercetools/nodejs/issues/41)
<a name="1.3.0"></a>

@@ -7,0 +17,0 @@ # 1.3.0 (2017-03-17)

@@ -17,2 +17,6 @@ 'use strict';

var _validate = require('./validate');
var _validate2 = _interopRequireDefault(_validate);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -34,2 +38,4 @@

execute: function execute(request) {
(0, _validate2.default)('exec', request);
return new Promise(function (resolve, reject) {

@@ -68,2 +74,8 @@ var resolver = function resolver(rq, rs) {

(0, _validate2.default)('process', request, { allowedMethods: ['GET'] });
if (typeof fn !== 'function')
// eslint-disable-next-line max-len
throw new Error('The "process" function accepts a "Function" as a second argument that returns a Promise. See https://commercetools.github.io/nodejs/sdk/api/sdkClient.html#processrequest-processfn-options');
return new Promise(function (resolve, reject) {

@@ -70,0 +82,0 @@ var _request$uri$split = request.uri.split('?'),

2

package.json

@@ -7,3 +7,3 @@ {

"name": "@commercetools/sdk-client",
"version": "1.3.0",
"version": "1.4.0",
"description": "SDK Client for usage of commercetools platform API",

@@ -10,0 +10,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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