@punks/backend-entity-manager 0.0.498 → 0.0.500

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/cjs/index.js CHANGED
@@ -23680,6 +23680,10 @@ let UserVerifyCompleteHandler = class UserVerifyCompleteHandler {
23680
23680
  verified: true,
23681
23681
  verifiedTimestamp: new Date(),
23682
23682
  });
23683
+ return {
23684
+ userId: user.id,
23685
+ email: user.email,
23686
+ };
23683
23687
  }
23684
23688
  async decodeToken(token) {
23685
23689
  return await this.jwtProvider.verify(token);
@@ -23999,7 +24003,7 @@ exports.AuthenticationService = class AuthenticationService {
23999
24003
  return await this.userVerifyRequestHandler.execute(input);
24000
24004
  }
24001
24005
  async userVerifyComplete(input) {
24002
- await this.userVerifyCompleteHandler.execute(input);
24006
+ return await this.userVerifyCompleteHandler.execute(input);
24003
24007
  }
24004
24008
  async userTokenVerify(input) {
24005
24009
  return await this.userTokenVerifyHandler.execute(input);
@@ -41164,9 +41168,8 @@ const fieldRequiredValidator = (item, selector) => {
41164
41168
  };
41165
41169
  const fieldNumericValidator = (item, selector, params) => {
41166
41170
  const value = selector(item);
41167
- const isInvalid = value && !isNaN(value);
41168
41171
  const errors = [];
41169
- if (!!value && !isNaN(value)) {
41172
+ if (!!value && isNaN(value)) {
41170
41173
  errors.push({ errorCode: "notNumeric" });
41171
41174
  }
41172
41175
  if (!!params?.min && !!value && value < params.min) {
@@ -41182,7 +41185,7 @@ const fieldNumericValidator = (item, selector, params) => {
41182
41185
  });
41183
41186
  }
41184
41187
  return {
41185
- isValid: !isInvalid,
41188
+ isValid: errors.length === 0,
41186
41189
  validationErrors: errors,
41187
41190
  };
41188
41191
  };