@xh/hoist 70.0.0-SNAPSHOT.1729191582998 → 70.0.0-SNAPSHOT.1729536271949
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/CHANGELOG.md +4 -0
- package/data/Field.ts +5 -2
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
package/data/Field.ts
CHANGED
|
@@ -173,6 +173,9 @@ 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
|
-
|
|
177
|
-
|
|
176
|
+
const ret = startCase(fieldName);
|
|
177
|
+
// Handle common cases of "id" -> "ID" (vs "Id") and "foo_id" -> "Foo ID" (vs "Foo Id")
|
|
178
|
+
// safely by avoiding using grouping in a regex, which is not supported in older versions
|
|
179
|
+
// of Safari Mobile (<16.4), which BlackBerry Access uses (16.0).
|
|
180
|
+
return ret.replace(/\bid\b/gi, 'ID');
|
|
178
181
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "70.0.0-SNAPSHOT.
|
|
3
|
+
"version": "70.0.0-SNAPSHOT.1729536271949",
|
|
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",
|