@settlemint/sdk-utils 2.4.0-pra6821f69 → 2.4.0-pra779099b

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.
@@ -10805,17 +10805,17 @@ function validate(schema, value) {
10805
10805
  * Schema for validating application access tokens.
10806
10806
  * Application access tokens start with 'sm_aat_' prefix.
10807
10807
  */
10808
- const ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.*$/);
10808
+ const ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.+$/);
10809
10809
  /**
10810
10810
  * Schema for validating personal access tokens.
10811
10811
  * Personal access tokens start with 'sm_pat_' prefix.
10812
10812
  */
10813
- const PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.*$/);
10813
+ const PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.+$/);
10814
10814
  /**
10815
10815
  * Schema for validating both application and personal access tokens.
10816
10816
  * Accepts tokens starting with either 'sm_pat_' or 'sm_aat_' prefix.
10817
10817
  */
10818
- const AccessTokenSchema = string$1().regex(/^sm_pat_.*|sm_aat_.*$/);
10818
+ const AccessTokenSchema = string$1().regex(/^(sm_pat_.+|sm_aat_.+)$/);
10819
10819
 
10820
10820
  //#endregion
10821
10821
  //#region src/json.ts
@@ -10848,7 +10848,7 @@ function tryParseJson(value, defaultValue = null) {
10848
10848
  return defaultValue;
10849
10849
  }
10850
10850
  return parsed;
10851
- } catch (err) {
10851
+ } catch (_err) {
10852
10852
  return defaultValue;
10853
10853
  }
10854
10854
  }