ti2-tourplan 1.0.66 → 1.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -240,7 +240,7 @@ class BuyerPlugin {
240
240
  .replace(/“/g, '"')
241
241
  .replace(/”/g, '"')
242
242
  .replace(/–/g, '-')
243
- .replace(/&/g, '&')
243
+ .replace(/&/g, 'and')
244
244
  .replace(/</g, '&lt;')
245
245
  .replace(/>/g, '&gt;')
246
246
  .replace(/"/g, '&quot;')
@@ -486,12 +486,12 @@ class BuyerPlugin {
486
486
  R.values,
487
487
  R.groupBy(R.path(['OptGeneral', 'SupplierId'])),
488
488
  root => {
489
- const options = R.pathOr([], ['OptionInfoReply', 'Option'], root);
489
+ let options = R.pathOr([], ['OptionInfoReply', 'Option'], root);
490
490
  // due to the new parser, single option will be returned as an object
491
491
  // instead of an array
492
- if (Array.isArray(options)) return options;
492
+ if (!Array.isArray(options)) options = [options];
493
493
  console.log(`got ${options.length} options for serviceCode ${serviceCode}`);
494
- return [options];
494
+ return options;
495
495
  },
496
496
  ), getOptionsReply);
497
497
  const productsForServiceCode = await Promise.map(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {