@fibery/schema 10.2.9 → 10.2.11
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/lib/src/type-object.js +3 -3
- package/package.json +3 -4
package/lib/src/type-object.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.TypeObject = void 0;
|
|
|
7
7
|
/* eslint-disable no-use-before-define */
|
|
8
8
|
const lodash_1 = __importDefault(require("lodash"));
|
|
9
9
|
const utils_1 = require("./utils");
|
|
10
|
-
const pluralize_1 =
|
|
10
|
+
const pluralize_1 = require("@fibery/pluralize");
|
|
11
11
|
class TypeObject {
|
|
12
12
|
name;
|
|
13
13
|
description;
|
|
@@ -130,12 +130,12 @@ class TypeObject {
|
|
|
130
130
|
pluralTitle: {
|
|
131
131
|
configurable: false,
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: lodash_1.default.once(() => (0, utils_1.toTitle)(
|
|
133
|
+
get: lodash_1.default.once(() => pluralize_1.pluralize.plural((0, utils_1.toTitle)(this.name))),
|
|
134
134
|
},
|
|
135
135
|
singularTitle: {
|
|
136
136
|
configurable: false,
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: lodash_1.default.once(() => (0, utils_1.toTitle)(
|
|
138
|
+
get: lodash_1.default.once(() => pluralize_1.pluralize.singular((0, utils_1.toTitle)(this.name))),
|
|
139
139
|
},
|
|
140
140
|
});
|
|
141
141
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/schema",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.11",
|
|
4
4
|
"description": "Fibery schema utils",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -19,15 +19,14 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"lodash": "4.17.21",
|
|
21
21
|
"memoize-one": "6.0.0",
|
|
22
|
-
"
|
|
23
|
-
"@fibery/
|
|
22
|
+
"@fibery/helpers": "1.3.4",
|
|
23
|
+
"@fibery/pluralize": "1.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/core": "7.28.5",
|
|
27
27
|
"@swc/jest": "0.2.39",
|
|
28
28
|
"@types/lodash": "4.14.172",
|
|
29
29
|
"@types/node": "24.10.1",
|
|
30
|
-
"@types/pluralize": "0.0.29",
|
|
31
30
|
"babel-loader": "10.0.0",
|
|
32
31
|
"jest": "30.2.0",
|
|
33
32
|
"jest-junit": "16.0.0",
|