@commercetools/csv-parser-orders
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -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" | ||
} |
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
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
23946
+ Addedyargs@14.2.3(transitive)
+ Addedyargs-parser@15.0.3(transitive)
- Removedyargs@13.3.2(transitive)
- Removedyargs-parser@13.1.2(transitive)
Updatedyargs@^14.0.0