@nathan3boss/expressu 0.1.0 → 0.1.2
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/config.d.ts +6 -6
- package/package.json +2 -4
package/dist/config.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export declare const DEFAULT_VALIDATION_MESSAGE = "Validation failed";
|
|
2
2
|
/**
|
|
3
|
-
* Global configuration shape for
|
|
3
|
+
* Global configuration shape for Expressu consumers.
|
|
4
4
|
*/
|
|
5
5
|
export type ExpressuConfig = Partial<{
|
|
6
6
|
validationMessage: string;
|
|
7
7
|
}>;
|
|
8
8
|
/**
|
|
9
|
-
* Updates the global
|
|
9
|
+
* Updates the global Expressu configuration.
|
|
10
10
|
*/
|
|
11
11
|
export declare const configure: (config?: ExpressuConfig) => void;
|
|
12
12
|
/**
|
|
13
|
-
* Resets the global
|
|
13
|
+
* Resets the global Expressu configuration to defaults.
|
|
14
14
|
*/
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const resetExpressuConfig: () => void;
|
|
16
16
|
/**
|
|
17
|
-
* Returns the current global
|
|
17
|
+
* Returns the current global Expressu configuration.
|
|
18
18
|
*/
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const getExpressuConfig: () => Readonly<ExpressuConfig>;
|
|
20
20
|
/**
|
|
21
21
|
* Resolves the validation message using the provided override, the global config,
|
|
22
22
|
* and the package default.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nathan3boss/expressu",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Composable middleware builders for Express validators",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "nathan2slime",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"type": "module",
|
|
19
|
-
"packageManager": "pnpm@10.30.3",
|
|
20
19
|
"main": "./dist/index.js",
|
|
21
20
|
"types": "./dist/index.d.ts",
|
|
22
21
|
"exports": {
|
|
@@ -51,8 +50,7 @@
|
|
|
51
50
|
"test:coverage": "rstest --globals --coverage",
|
|
52
51
|
"changeset": "changeset",
|
|
53
52
|
"version-packages": "changeset version",
|
|
54
|
-
"release": "changeset publish"
|
|
55
|
-
"prepare": "lefthook install"
|
|
53
|
+
"release": "changeset publish"
|
|
56
54
|
},
|
|
57
55
|
"peerDependencies": {
|
|
58
56
|
"class-transformer": "^0.5.1",
|