@startbahn/startrail-sdk-js 1.23.2 → 1.23.3

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.
@@ -164920,7 +164920,8 @@ exports.EMAIL_BUTTON = {
164920
164920
  };
164921
164921
  exports.ERROR_FROM = 'StartrailSdk';
164922
164922
  exports.ERROR_MESSAGE = {
164923
- AUTH0_VERIFY_EMAIL: 'Please verify your email before logging in',
164923
+ AUTH0_AFTER_SIGNUP: 'error: startrail custom: Please verify your email before logging in',
164924
+ AUTH0_VERIFY_EMAIL: 'startrail custom',
164924
164925
  TORUS_ALREADY_INITIALIZED: 'Already initialized',
164925
164926
  TORUS_CACHE_CONTROL_HEADERS_UNMATCH: 'Unexpected Cache-Control headers, got',
164926
164927
  TORUS_INTEGRITY_UNMATCH: 'Integrity check failed',
@@ -165039,7 +165040,9 @@ class CustomError {
165039
165040
  throw new ErrorClass.TORUS_USER_REJECT_WALLET_REQUEST(this.err);
165040
165041
  case argument === util_1.trimStringWord(constant_1.ERROR_MESSAGE.TORUS_ALREADY_INITIALIZED):
165041
165042
  throw new ErrorClass.TORUS_ALREADY_INITIALIZED(this.err);
165042
- case argument === util_1.trimStringWord(constant_1.ERROR_MESSAGE.AUTH0_VERIFY_EMAIL):
165043
+ case argument.startsWith(`error:${util_1.trimStringWord(constant_1.ERROR_MESSAGE.AUTH0_VERIFY_EMAIL)}`):
165044
+ throw new ErrorClass.Auth0VerifyEmail(this.err);
165045
+ case argument.startsWith(util_1.trimStringWord('No Accounts available')):
165043
165046
  throw new ErrorClass.Auth0VerifyEmail(this.err);
165044
165047
  case argument === util_1.trimStringWord(constant_1.ERROR_MESSAGE.TORUS_INTEGRITY_UNMATCH):
165045
165048
  throw new ErrorClass.TORUS_INTEGRITY_UNMATCH(this.err);
@@ -165083,6 +165086,7 @@ class StartrailSdkErrorBase extends Error {
165083
165086
  }
165084
165087
  class Auth0VerifyEmail extends StartrailSdkErrorBase {
165085
165088
  constructor(err) {
165089
+ err.message = 'Please verify your email before logging in.';
165086
165090
  super(err.message);
165087
165091
  this.errorCode = constant_1.StartrailSdkErrorCodeEnum.AUTH0_VERIFY_EMAIL;
165088
165092
  this.property = { message: err.message };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startbahn/startrail-sdk-js",
3
- "version": "1.23.2",
3
+ "version": "1.23.3",
4
4
  "description": "Startrail Api for JS SDK",
5
5
  "main": "dist/startrail-sdk.js",
6
6
  "unpkg": "dist/startrail-sdk.js",
@@ -865,6 +865,7 @@ declare module '@startbahn/startrail-sdk-js/constant' {
865
865
  };
866
866
  export const ERROR_FROM = "StartrailSdk";
867
867
  export const ERROR_MESSAGE: {
868
+ AUTH0_AFTER_SIGNUP: string;
868
869
  AUTH0_VERIFY_EMAIL: string;
869
870
  TORUS_ALREADY_INITIALIZED: string;
870
871
  TORUS_CACHE_CONTROL_HEADERS_UNMATCH: string;