ti2-tourplan 1.0.1 → 1.0.3

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.
@@ -105,7 +105,6 @@ Object {
105
105
  },
106
106
  "description": "2021 Reboot Year",
107
107
  "name": "2021 REBOOT",
108
- "supplierId": "MAGLUX",
109
108
  },
110
109
  Object {
111
110
  "appliesTo": "Supplier",
@@ -209,7 +208,6 @@ Object {
209
208
  },
210
209
  "description": "",
211
210
  "name": "FREESALE",
212
- "supplierId": "MAGLUX",
213
211
  },
214
212
  ],
215
213
  }
package/index.js CHANGED
@@ -79,7 +79,8 @@ class Plugin {
79
79
  headers: getHeaders({ length: data.length }),
80
80
  }));
81
81
  const returnObj = await xmlParser.parseStringPromise(reply);
82
- let allotment = R.path(
82
+ let allotment = R.pathOr(
83
+ [],
83
84
  ['Reply', 'GetInventoryReply', 0, 'Allocation'],
84
85
  returnObj,
85
86
  );
@@ -114,7 +115,6 @@ class Plugin {
114
115
  };
115
116
  });
116
117
  return {
117
- supplierId: R.path(['SupplierCode', 0], currentAllotment),
118
118
  name: R.path(['AllocationName', 0], currentAllotment),
119
119
  description: R.path(['AllocationDescription', 0], currentAllotment),
120
120
  appliesTo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {