@xh/hoist 67.0.0-SNAPSHOT.1725050936701 → 67.0.0-SNAPSHOT.1725133204871
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/data/Field.ts +2 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/data/Field.ts
CHANGED
|
@@ -173,5 +173,6 @@ export type FieldType = (typeof FieldType)[keyof typeof FieldType];
|
|
|
173
173
|
* @returns fieldName transformed into user-facing / longer name for display.
|
|
174
174
|
*/
|
|
175
175
|
export function genDisplayName(fieldName: string): string {
|
|
176
|
-
|
|
176
|
+
// Handle common cases of "id" -> "ID" and "foo_id" -> "Foo ID" (vs "Foo Id")
|
|
177
|
+
return startCase(fieldName).replace(/(^| )Id\b/g, '$1ID');
|
|
177
178
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "67.0.0-SNAPSHOT.
|
|
3
|
+
"version": "67.0.0-SNAPSHOT.1725133204871",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|