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

producteca-sdk

Package Overview
Dependencies
Maintainers
3
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

producteca-sdk - npm Package Compare versions

Comparing version 0.0.26 to 0.0.28

22

build/productecaApi.js

@@ -43,2 +43,4 @@ (function() {

this.getSalesOrders = __bind(this.getSalesOrders, this);
this._createProducts = __bind(this._createProducts, this);
this.getMultipleProducts = __bind(this.getMultipleProducts, this);
this.getProducts = __bind(this.getProducts, this);

@@ -57,5 +59,3 @@ this.getProduct = __bind(this.getProduct, this);

return function(products) {
return products.map(function(it) {
return new Product(it);
});
return _this._createProducts(products);
};

@@ -65,2 +65,16 @@ })(this));

ProductecaApi.prototype.getMultipleProducts = function(ids) {
return this["return"](this.client.getAsync("/products?ids=" + ids)).then((function(_this) {
return function(products) {
return _this._createProducts(products);
};
})(this));
};
ProductecaApi.prototype._createProducts = function(products) {
return products.map(function(it) {
return new Product(it);
});
};
ProductecaApi.prototype.getSalesOrders = function(filters) {

@@ -115,3 +129,3 @@ var querystring;

ProductecaApi.prototype.createShipment = function(salesOrderId, shipment) {
return this["return"](this.asyncClient.postAsync("/salesorders/" + salesOrderId + "/shipments", shipment));
return this["return"](this.client.postAsync("/salesorders/" + salesOrderId + "/shipments", shipment));
};

@@ -118,0 +132,0 @@

2

package.json

@@ -8,3 +8,3 @@ {

},
"version": "0.0.26",
"version": "0.0.28",
"main": "build/sdk.js",

@@ -11,0 +11,0 @@ "dependencies": {

# Producteca SDK

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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