@settlemint/sdk-utils 2.4.0-prbfb36448 → 2.4.0-prc7747625
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/environment.cjs +5 -5
- package/dist/environment.cjs.map +1 -1
- package/dist/environment.js +5 -5
- package/dist/environment.js.map +1 -1
- package/dist/filesystem.cjs +79 -79
- package/dist/filesystem.cjs.map +1 -1
- package/dist/filesystem.js +79 -79
- package/dist/filesystem.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/json.cjs +1 -1
- package/dist/json.cjs.map +1 -1
- package/dist/json.js +1 -1
- package/dist/json.js.map +1 -1
- package/dist/package-manager.cjs +79 -79
- package/dist/package-manager.cjs.map +1 -1
- package/dist/package-manager.js +79 -79
- package/dist/package-manager.js.map +1 -1
- package/dist/validation.cjs +4 -4
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.js +4 -4
- package/dist/validation.js.map +1 -1
- package/package.json +2 -4
package/dist/validation.js
CHANGED
|
@@ -10806,17 +10806,17 @@ function validate(schema, value) {
|
|
|
10806
10806
|
* Schema for validating application access tokens.
|
|
10807
10807
|
* Application access tokens start with 'sm_aat_' prefix.
|
|
10808
10808
|
*/
|
|
10809
|
-
const ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_
|
|
10809
|
+
const ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.*$/);
|
|
10810
10810
|
/**
|
|
10811
10811
|
* Schema for validating personal access tokens.
|
|
10812
10812
|
* Personal access tokens start with 'sm_pat_' prefix.
|
|
10813
10813
|
*/
|
|
10814
|
-
const PersonalAccessTokenSchema = string$1().regex(/^sm_pat_
|
|
10814
|
+
const PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.*$/);
|
|
10815
10815
|
/**
|
|
10816
10816
|
* Schema for validating both application and personal access tokens.
|
|
10817
10817
|
* Accepts tokens starting with either 'sm_pat_' or 'sm_aat_' prefix.
|
|
10818
10818
|
*/
|
|
10819
|
-
const AccessTokenSchema = string$1().regex(/^
|
|
10819
|
+
const AccessTokenSchema = string$1().regex(/^sm_pat_.*|sm_aat_.*$/);
|
|
10820
10820
|
|
|
10821
10821
|
//#endregion
|
|
10822
10822
|
//#region src/json.ts
|
|
@@ -10849,7 +10849,7 @@ function tryParseJson(value, defaultValue = null) {
|
|
|
10849
10849
|
return defaultValue;
|
|
10850
10850
|
}
|
|
10851
10851
|
return parsed;
|
|
10852
|
-
} catch (
|
|
10852
|
+
} catch (err) {
|
|
10853
10853
|
return defaultValue;
|
|
10854
10854
|
}
|
|
10855
10855
|
}
|