@stndrds/schema 1.0.0-alpha.121 → 1.0.0-alpha.123
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -878,7 +878,7 @@ var simplePipes = {
|
|
|
878
878
|
/** Convert to lowercase */
|
|
879
879
|
LOWER: (v) => String(v).toLowerCase(),
|
|
880
880
|
/** Capitalize first letter of each word */
|
|
881
|
-
capitalize: (v) => String(v).replace(
|
|
881
|
+
capitalize: (v) => String(v).replace(/(^|\s)\S/g, (c) => c.toUpperCase()),
|
|
882
882
|
/** Trim whitespace from both ends */
|
|
883
883
|
trim: (v) => String(v).trim()
|
|
884
884
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -874,7 +874,7 @@ var simplePipes = {
|
|
|
874
874
|
/** Convert to lowercase */
|
|
875
875
|
LOWER: (v) => String(v).toLowerCase(),
|
|
876
876
|
/** Capitalize first letter of each word */
|
|
877
|
-
capitalize: (v) => String(v).replace(
|
|
877
|
+
capitalize: (v) => String(v).replace(/(^|\s)\S/g, (c) => c.toUpperCase()),
|
|
878
878
|
/** Trim whitespace from both ends */
|
|
879
879
|
trim: (v) => String(v).trim()
|
|
880
880
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stndrds/schema",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.123",
|
|
4
4
|
"description": "Standard schema definitions and utilities",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"expr-eval": "^2.0.2",
|
|
132
132
|
"libphonenumber-js": "^1.12.31",
|
|
133
133
|
"zod": "^4.2.1",
|
|
134
|
-
"@stndrds/constants": "1.0.0-alpha.
|
|
134
|
+
"@stndrds/constants": "1.0.0-alpha.123"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@types/node": "^25.0.3",
|