@open-tender/utils 0.0.56 → 0.0.57

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.
@@ -258,8 +258,8 @@ const makeOrderItem = (item, isEdit, soldOut = [], simpleItem, hasPoints = false
258
258
  description: item.description,
259
259
  imageUrl: item.large_image_url,
260
260
  slug: item.slug,
261
- allergens: (0, exports.convertStringToArray)(item.allergens.join()),
262
- tags: (0, exports.convertStringToArray)(item.tags.join()),
261
+ allergens: (0, exports.convertStringToArray)(Array.from(item.allergens).join()),
262
+ tags: (0, exports.convertStringToArray)(Array.from(item.tags).join()),
263
263
  ingredients: item.ingredients,
264
264
  nutritionalInfo: item.nutritional_info,
265
265
  cals: isNaN(cals !== null && cals !== void 0 ? cals : 0) ? null : cals,
@@ -241,8 +241,8 @@ export const makeOrderItem = (item, isEdit, soldOut = [], simpleItem, hasPoints
241
241
  description: item.description,
242
242
  imageUrl: item.large_image_url,
243
243
  slug: item.slug,
244
- allergens: convertStringToArray(item.allergens.join()),
245
- tags: convertStringToArray(item.tags.join()),
244
+ allergens: convertStringToArray(Array.from(item.allergens).join()),
245
+ tags: convertStringToArray(Array.from(item.tags).join()),
246
246
  ingredients: item.ingredients,
247
247
  nutritionalInfo: item.nutritional_info,
248
248
  cals: isNaN(cals !== null && cals !== void 0 ? cals : 0) ? null : cals,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",