producteca-sdk
Advanced tools
Comparing version 1.2.6 to 1.3.0
@@ -46,3 +46,3 @@ (function() { | ||
ProductsApi.prototype.getMany = function(ids) { | ||
return this.respond(this.client.getAsync("/products?ids=" + ids)).then(this._convertJsonToProducts); | ||
return (this.respond(this.client.getAsync("/products?ids=" + ids))).then(this._convertJsonToProducts); | ||
}; | ||
@@ -59,7 +59,3 @@ | ||
ProductsApi.prototype.findByVariationSku = function(sku) { | ||
return (this.respond(this.client.getAsync("/products/bysku/" + sku))).then(this._convertJsonToProduct)["catch"]((function(_this) { | ||
return function() { | ||
throw new Error("The product with sku=" + sku + " wasn't found"); | ||
}; | ||
})(this)); | ||
return (this.respond(this.client.getAsync("/products/bysku/" + sku))).then(this._convertJsonToProducts); | ||
}; | ||
@@ -66,0 +62,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "1.2.6", | ||
"version": "1.3.0", | ||
"main": "build/sdk.js", | ||
@@ -11,0 +11,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
47538
543