@labdigital/commercetools-mock 2.43.3 → 2.44.0

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.
package/dist/index.cjs CHANGED
@@ -1131,7 +1131,8 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
1131
1131
  sku,
1132
1132
  custom,
1133
1133
  quantity = 1,
1134
- addedAt
1134
+ addedAt,
1135
+ key
1135
1136
  }) {
1136
1137
  let product = null;
1137
1138
  if (productId && variantId) {
@@ -1196,6 +1197,7 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
1196
1197
  }
1197
1198
  resource.lineItems.push({
1198
1199
  id: (0, import_uuid5.v4)(),
1200
+ key,
1199
1201
  addedAt: addedAt ? addedAt : (/* @__PURE__ */ new Date()).toISOString(),
1200
1202
  productId: product.id,
1201
1203
  productKey: product.key,
@@ -6996,7 +6998,8 @@ var ShoppingListUpdateHandler = class extends AbstractUpdateHandler {
6996
6998
  variantId,
6997
6999
  sku,
6998
7000
  quantity = 1,
6999
- addedAt
7001
+ addedAt,
7002
+ key
7000
7003
  }) {
7001
7004
  let product = null;
7002
7005
  if (productId) {
@@ -7040,6 +7043,7 @@ var ShoppingListUpdateHandler = class extends AbstractUpdateHandler {
7040
7043
  resource.lineItems.push({
7041
7044
  addedAt: addedAt ? addedAt : (/* @__PURE__ */ new Date()).toISOString(),
7042
7045
  id: (0, import_uuid11.v4)(),
7046
+ key,
7043
7047
  productId: product.id,
7044
7048
  productSlug: product.masterData.current.slug,
7045
7049
  productType: product.productType,