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

producteca-sdk

Package Overview
Dependencies
Maintainers
1
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 5.0.1 to 5.1.0

14

build/couriersApi.js

@@ -15,6 +15,9 @@ (function() {

CouriersApi.prototype.getZplOf = function(arg, arg1) {
var jwttoken, salesOrderId, shipmentId, url;
CouriersApi.prototype.getDownloadLink = function(arg, arg1, type) {
var jwttoken, salesOrderId, shipmentId;
salesOrderId = arg.id;
shipmentId = arg1.id;
if (type == null) {
type = "pdf";
}
jwttoken = jwt.encode([

@@ -26,4 +29,7 @@ {

], this.jsonWebTokenSecret);
url = "/couriers/shipments/label?shipments=" + jwttoken + "&type=zpl2&access_token=" + this.productecaToken;
return this.client.getAsync(url, {
return "/couriers/shipments/label?shipments=" + jwttoken + "&type=" + type + "&access_token=" + this.productecaToken;
};
CouriersApi.prototype.getZplOf = function(order, shipment) {
return this.client.getAsync(getDownloadLink(order, shipment, "zpl2"), {
raw: true

@@ -30,0 +36,0 @@ });

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

},
"version": "5.0.1",
"version": "5.1.0",
"main": "build/sdk.js",

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

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