@budibase/shared-core 3.45.0 → 3.47.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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/dist/password.d.ts +15 -0
- package/package.json +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PasswordPolicy } from "@budibase/types";
|
|
2
|
+
export declare const DEFAULT_PASSWORD_POLICY: PasswordPolicy;
|
|
3
|
+
export type PasswordValidationResult = {
|
|
4
|
+
valid: true;
|
|
5
|
+
} | {
|
|
6
|
+
valid: false;
|
|
7
|
+
error: string;
|
|
8
|
+
};
|
|
9
|
+
interface ValidatePasswordOptions {
|
|
10
|
+
password: string | undefined;
|
|
11
|
+
policy: PasswordPolicy;
|
|
12
|
+
enforceRegex?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const validatePasswordPolicy: ({ password, policy, enforceRegex, }: ValidatePasswordOptions) => PasswordValidationResult;
|
|
15
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/shared-core",
|
|
3
|
-
"version": "v3.
|
|
3
|
+
"version": "v3.47.0",
|
|
4
4
|
"description": "Shared data utils",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "adfff86585b1d393941175f58cbe74f2005616b4"
|
|
41
41
|
}
|