@fibery/schema 10.2.8 → 10.2.10

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.
@@ -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 = __importDefault(require("pluralize"));
10
+ const pluralize_1 = require("@fibery/pluralize");
11
11
  class TypeObject {
12
12
  name;
13
13
  description;
@@ -59,7 +59,7 @@ class TypeObject {
59
59
  this.isWriterModeByDefault = rawMeta["ui/writer-mode?"] || false;
60
60
  this.isDeleted = rawTypeObject["fibery/deleted?"] || false;
61
61
  this.nameParts = (0, utils_1.parseType)(this.name);
62
- this.color = rawMeta["ui/color"] || "#4568FB";
62
+ this.color = rawMeta["ui/color"] || "#4978D4";
63
63
  this.units = rawMeta["ui/units"] || null;
64
64
  this.installedMixins = new Set(Object.keys(rawMeta["app/mixins"] || {}));
65
65
  this.syncSource = rawMeta["sync/source"] || null;
@@ -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)(pluralize_1.default.plural(this.name))),
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)(pluralize_1.default.singular(this.name))),
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.8",
3
+ "version": "10.2.10",
4
4
  "description": "Fibery schema utils",
5
5
  "main": "./lib/index.js",
6
6
  "files": [
@@ -17,25 +17,24 @@
17
17
  },
18
18
  "private": false,
19
19
  "dependencies": {
20
- "lodash": "^4.17.21",
21
- "memoize-one": "^6.0.0",
22
- "pluralize": "^8.0.0",
23
- "@fibery/helpers": "1.3.3"
20
+ "lodash": "4.17.21",
21
+ "memoize-one": "6.0.0",
22
+ "@fibery/helpers": "1.3.4",
23
+ "@fibery/pluralize": "1.0.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@babel/core": "7.23.9",
27
- "@swc/jest": "0.2.29",
26
+ "@babel/core": "7.28.5",
27
+ "@swc/jest": "0.2.39",
28
28
  "@types/lodash": "4.14.172",
29
- "@types/node": "18.11.17",
30
- "@types/pluralize": "0.0.29",
31
- "babel-loader": "9.1.3",
32
- "jest": "27.5.1",
33
- "jest-junit": "13.0.0",
34
- "typescript": "5.8.3",
29
+ "@types/node": "24.10.1",
30
+ "babel-loader": "10.0.0",
31
+ "jest": "30.2.0",
32
+ "jest-junit": "16.0.0",
33
+ "typescript": "5.9.3",
35
34
  "webpack": "5.87.0",
36
35
  "webpack-cli": "4.10.0",
37
- "@fibery/eslint-config": "8.6.1",
38
- "@fibery/babel-preset": "7.4.0"
36
+ "@fibery/eslint-config": "8.6.2",
37
+ "@fibery/babel-preset": "7.4.1"
39
38
  },
40
39
  "jest": {
41
40
  "testEnvironment": "node",
@@ -73,7 +72,9 @@
73
72
  }
74
73
  ]
75
74
  },
76
- "testURL": "http://localhost"
75
+ "testEnvironmentOptions": {
76
+ "url": "http://localhost"
77
+ }
77
78
  },
78
79
  "scripts": {
79
80
  "build": "rm -rf lib && pnpm exec tsc --project tsconfig.build.json",