@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.js CHANGED
@@ -1202,6 +1202,9 @@ var generateMatchFunc = (predicate) => {
1202
1202
  } else {
1203
1203
  const value = resolveValue(obj, left);
1204
1204
  if (value) {
1205
+ if (Array.isArray(value)) {
1206
+ return value.some((item) => expr(item, vars));
1207
+ }
1205
1208
  return expr(value, vars);
1206
1209
  }
1207
1210
  return false;
@@ -3394,10 +3397,12 @@ var CustomerRepository = class extends AbstractResourceRepository {
3394
3397
  }
3395
3398
  const expiresAt = new Date(Date.now() + 30 * 60);
3396
3399
  const customer = results.results[0];
3397
- const { version: _, ...rest } = getBaseResourceProperties();
3400
+ const rest = getBaseResourceProperties();
3398
3401
  const token = createPasswordResetToken(customer);
3399
3402
  return {
3400
- ...rest,
3403
+ id: rest.id,
3404
+ createdAt: rest.createdAt,
3405
+ lastModifiedAt: rest.lastModifiedAt,
3401
3406
  customerId: customer.id,
3402
3407
  expiresAt: expiresAt.toISOString(),
3403
3408
  value: token