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

@commercetools/csv-parser-orders

Package Overview
Dependencies
Maintainers
9
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools/csv-parser-orders - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

4

lib/cli.js

@@ -97,7 +97,7 @@ "use strict";

returninfo: config => new _addReturnInfo.default(config),
deliveries: config => new _deliveries.default(config) // Register error listener
deliveries: config => new _deliveries.default(config)
}; // Register error listener
};
args.outputFile.on('error', errorHandler);
args.inputFile.setEncoding(args.encoding);
methodMapping[args.type](getModuleConfig()).parse(args.inputFile, args.outputFile);

@@ -24,5 +24,5 @@ "use strict";

strictMode: true
} // Go through object because `freeze` works shallow
}
}; // Go through object because `freeze` works shallow
};
Object.keys(CONSTANTS).forEach(key => {

@@ -29,0 +29,0 @@ Object.freeze(CONSTANTS[key]);

@@ -89,4 +89,4 @@ "use strict";

else existingReturnInfos.forEach(returnInfo => {
returnInfo.items.push(...currentOrder.returnInfo[0].items);
});
returnInfo.items.push(...currentOrder.returnInfo[0].items);
});
return allOrders;

@@ -93,0 +93,0 @@ }

@@ -108,6 +108,5 @@ "use strict";

quantity: parseInt(data['item.quantity'], 10)
}] // Add parcel info if it is present
}]
}; // Add parcel info if it is present
};
if (data['parcel.id']) {

@@ -205,5 +204,5 @@ const parcel = DeliveriesParser._parseParcelInfo(data);

const parcel = {
id: data['parcel.id'] // Build parcel object
id: data['parcel.id']
}; // Build parcel object
};
Object.keys(data).forEach(fieldName => {

@@ -210,0 +209,0 @@ if (!transitionMap[fieldName]) return; // All values are loaded as a string

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

"name": "@commercetools/csv-parser-orders",
"version": "2.0.8",
"version": "2.0.9",
"description": "Converts commercetools order data from CSV to JSON.",

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

"pretty-error": "^2.1.1",
"yargs": "^13.0.0"
"yargs": "^14.0.0"
},
"devDependencies": {
"sinon": "7.3.2",
"sinon": "7.4.2",
"streamtest": "1.2.4",
"tmp": "0.1.0"
},
"gitHead": "2c3a05c81e174246de8f12db49c40297542e8073"
"gitHead": "de99a6c00ea58e80187c580669c8102fbe637d42"
}
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