@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.
@@ -2215,7 +2215,7 @@ class CustomerRepository extends AbstractResourceRepository {
2215
2215
  create(projectKey, draft) {
2216
2216
  const resource = { ...getBaseResourceProperties(),
2217
2217
  email: draft.email,
2218
- password: Buffer.from(draft.password).toString('base64'),
2218
+ password: draft.password ? Buffer.from(draft.password).toString('base64') : undefined,
2219
2219
  isEmailVerified: draft.isEmailVerified || false,
2220
2220
  addresses: []
2221
2221
  };