@hestia-earth/data-validation 0.41.2 → 0.41.4

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/index.js CHANGED
@@ -149,9 +149,9 @@ var validations = [
149
149
  message: "the value provided is not consistent with the model result"
150
150
  },
151
151
  {
152
- function: "validate_duplicated_term_units",
152
+ function: "validate_duplicated_terms",
153
153
  level: "warning",
154
- message: "should not use identical terms with different units"
154
+ message: "should not use several terms describing the same product"
155
155
  },
156
156
  {
157
157
  function: "validate_other_model",
package/index.mjs CHANGED
@@ -147,9 +147,9 @@ var validations = [
147
147
  message: "the value provided is not consistent with the model result"
148
148
  },
149
149
  {
150
- function: "validate_duplicated_term_units",
150
+ function: "validate_duplicated_terms",
151
151
  level: "warning",
152
- message: "should not use identical terms with different units"
152
+ message: "should not use several terms describing the same product"
153
153
  },
154
154
  {
155
155
  function: "validate_other_model",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/data-validation",
3
- "version": "0.41.2",
3
+ "version": "0.41.4",
4
4
  "description": "HESTIA Data Validation library",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -17,27 +17,46 @@
17
17
  "default": "./index.js"
18
18
  }
19
19
  },
20
+ "./file-errors": {
21
+ "import": {
22
+ "types": "./file-errors/public-api.d.mts",
23
+ "default": "./file-errors/public-api.mjs"
24
+ },
25
+ "require": {
26
+ "types": "./file-errors/public-api.d.ts",
27
+ "default": "./file-errors/public-api.js"
28
+ }
29
+ },
20
30
  "./*.js": "./*.js",
21
31
  "./*": "./*"
22
32
  },
33
+ "typesVersions": {
34
+ "*": {
35
+ "file-errors": [
36
+ "file-errors/public-api.d.ts"
37
+ ]
38
+ }
39
+ },
23
40
  "sideEffects": false,
24
41
  "files": [
25
42
  "index.js",
26
43
  "index.mjs",
27
44
  "index.d.ts",
28
45
  "index.d.mts",
29
- "validation.json"
46
+ "validation.json",
47
+ "file-errors"
30
48
  ],
31
49
  "directories": {
32
50
  "test": "tests"
33
51
  },
34
52
  "scripts": {
35
- "build:module": "rm -f index.js index.mjs index.d.ts && tsup",
53
+ "build:module": "rm -rf index.js index.mjs index.d.ts index.d.mts file-errors && tsup",
36
54
  "test": "hestia-validate-jsonld tests/fixtures",
37
55
  "lint": "tsc --noEmit && eslint .",
38
56
  "lint:fix": "npm run lint -- --fix",
39
57
  "release": "standard-version -a",
40
- "postrelease": "git push origin master --follow-tags"
58
+ "postrelease": "git push origin master --follow-tags",
59
+ "test:module": "vitest run"
41
60
  },
42
61
  "repository": {
43
62
  "type": "git",
@@ -63,6 +82,7 @@
63
82
  "@hestia-earth/json-schema": "^39.0.1",
64
83
  "@hestia-earth/schema": "^39.0.1",
65
84
  "@hestia-earth/schema-validation": "^39.0.1",
85
+ "@hestia-earth/utils": "^0.17.17",
66
86
  "@typescript-eslint/eslint-plugin": "^5.62.0",
67
87
  "@typescript-eslint/parser": "^5.62.0",
68
88
  "eslint": "^7.32.0",
@@ -70,7 +90,8 @@
70
90
  "husky": "~4.3.8",
71
91
  "standard-version": "^9.5.0",
72
92
  "tsup": "^8.3.5",
73
- "typescript": "^5.9.3"
93
+ "typescript": "^5.9.3",
94
+ "vitest": "^3.2.4"
74
95
  },
75
96
  "standard-version": {
76
97
  "scripts": {
@@ -81,5 +102,9 @@
81
102
  "hooks": {
82
103
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
83
104
  }
105
+ },
106
+ "peerDependencies": {
107
+ "@hestia-earth/schema": ">=37.0.0",
108
+ "@hestia-earth/utils": "^0.17.17"
84
109
  }
85
110
  }
package/validation.json CHANGED
@@ -136,9 +136,9 @@
136
136
  "message": "the value provided is not consistent with the model result"
137
137
  },
138
138
  {
139
- "function": "validate_duplicated_term_units",
139
+ "function": "validate_duplicated_terms",
140
140
  "level": "warning",
141
- "message": "should not use identical terms with different units"
141
+ "message": "should not use several terms describing the same product"
142
142
  },
143
143
  {
144
144
  "function": "validate_other_model",