ti2-tourplan 1.0.57 → 1.0.59

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.
@@ -3417,7 +3417,7 @@ Object {
3417
3417
  "quantity": 4,
3418
3418
  "serviceLineId": "745684",
3419
3419
  "startDate": "2025-08-13",
3420
- "supplierId": null,
3420
+ "supplierId": "SANLON",
3421
3421
  "supplierName": "Sanderson",
3422
3422
  },
3423
3423
  ],
package/index.js CHANGED
@@ -13,7 +13,7 @@ const Normalizer = require('./normalizer');
13
13
 
14
14
  const xmlParser = new xml2js.Parser();
15
15
  const fastParser = new XMLParser();
16
- const BAD_XML_CHARS = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007f-\u0084\u0086-\u009f\uD800-\uDFFF\uFDD0-\uFDFF\uFFFF\uC008\uFEFF]/g;
16
+ const BAD_XML_CHARS = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007f-\u0084\u0086-\u009f\uD800-\uDFFF\uFDD0-\uFDFF\uFFFF\uC008\uFEFF\u00DF]/g;
17
17
 
18
18
  const defaultXmlOptions = {
19
19
  prettyPrinting: { enabled: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,7 +36,11 @@ const resolvers = {
36
36
  },
37
37
  ServiceLine: {
38
38
  serviceLineId: R.path(['ServiceLineId']),
39
- supplierId: R.path(['ProductId']),
39
+ supplierId: sl => {
40
+ const opt = R.path(['Opt'], sl);
41
+ if (!opt) return null;
42
+ return opt.slice(5, 11);
43
+ },
40
44
  supplierName: R.path(['SupplierName']),
41
45
  optionId: R.path(['Opt']),
42
46
  optionName: R.path(['Description']),