@commercetools/sdk-client
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -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('?'), |
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
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
325856
8
7249
2