ti2-ventrata 1.0.6 → 1.0.7

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 +6 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -210,7 +210,10 @@ class Plugin {
210
210
  if (Object.keys(extraFilters).length > 0) {
211
211
  products = products.filter(
212
212
  product => Object.entries(extraFilters).every(
213
- ([key, value]) => wildcardMatch(value, product[key]),
213
+ ([key, value]) => {
214
+ if (typeof value === 'string') return wildcardMatch(value, product[key]);
215
+ return true;
216
+ },
214
217
  ),
215
218
  );
216
219
  }
@@ -276,7 +279,7 @@ class Plugin {
276
279
  optionIds,
277
280
  occupancies,
278
281
  startDate,
279
- // endDate,
282
+ endDate,
280
283
  dateFormat,
281
284
  },
282
285
  }) {
@@ -294,7 +297,7 @@ class Plugin {
294
297
  assert(optionIds.every(Boolean), 'some invalid optionId(s)');
295
298
  assert(occupancies.every(Boolean), 'some invalid occupacies(s)');
296
299
  const localDateStart = moment(startDate, dateFormat).format('YYYY-MM-DD');
297
- const localDateEnd = moment(startDate, dateFormat).format('YYYY-MM-DD');
300
+ const localDateEnd = moment(endDate, dateFormat).format('YYYY-MM-DD');
298
301
  // obtain the rates
299
302
  const { quote } = await this.searchQuote({
300
303
  token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-ventrata",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Ventrata's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {