@labdigital/commercetools-mock 0.5.23 → 0.6.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.
@@ -2208,7 +2208,7 @@ class CustomerRepository extends AbstractResourceRepository {
2208
2208
  create(projectKey, draft) {
2209
2209
  const resource = { ...getBaseResourceProperties(),
2210
2210
  email: draft.email,
2211
- password: Buffer.from(draft.password).toString('base64'),
2211
+ password: draft.password ? Buffer.from(draft.password).toString('base64') : undefined,
2212
2212
  isEmailVerified: draft.isEmailVerified || false,
2213
2213
  addresses: []
2214
2214
  };