@labdigital/commercetools-mock 2.22.1 → 2.23.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
@@ -1239,6 +1239,9 @@ var generateMatchFunc = (predicate) => {
1239
1239
  } else {
1240
1240
  const value = resolveValue(obj, left);
1241
1241
  if (value) {
1242
+ if (Array.isArray(value)) {
1243
+ return value.some((item) => expr(item, vars));
1244
+ }
1242
1245
  return expr(value, vars);
1243
1246
  }
1244
1247
  return false;
@@ -3431,10 +3434,12 @@ var CustomerRepository = class extends AbstractResourceRepository {
3431
3434
  }
3432
3435
  const expiresAt = new Date(Date.now() + 30 * 60);
3433
3436
  const customer = results.results[0];
3434
- const { version: _, ...rest } = getBaseResourceProperties();
3437
+ const rest = getBaseResourceProperties();
3435
3438
  const token = createPasswordResetToken(customer);
3436
3439
  return {
3437
- ...rest,
3440
+ id: rest.id,
3441
+ createdAt: rest.createdAt,
3442
+ lastModifiedAt: rest.lastModifiedAt,
3438
3443
  customerId: customer.id,
3439
3444
  expiresAt: expiresAt.toISOString(),
3440
3445
  value: token