@hestia-earth/data-validation 0.41.2 → 0.41.3
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/file-errors/public-api.d.mts +237 -0
- package/file-errors/public-api.d.ts +237 -0
- package/file-errors/public-api.js +2281 -0
- package/file-errors/public-api.mjs +2260 -0
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +23 -5
- package/validation.json +2 -2
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: "
|
|
152
|
+
function: "validate_duplicated_terms",
|
|
153
153
|
level: "warning",
|
|
154
|
-
message: "should not use
|
|
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: "
|
|
150
|
+
function: "validate_duplicated_terms",
|
|
151
151
|
level: "warning",
|
|
152
|
-
message: "should not use
|
|
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.
|
|
3
|
+
"version": "0.41.3",
|
|
4
4
|
"description": "HESTIA Data Validation library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -17,6 +17,16 @@
|
|
|
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
|
},
|
|
@@ -26,18 +36,20 @@
|
|
|
26
36
|
"index.mjs",
|
|
27
37
|
"index.d.ts",
|
|
28
38
|
"index.d.mts",
|
|
29
|
-
"validation.json"
|
|
39
|
+
"validation.json",
|
|
40
|
+
"file-errors"
|
|
30
41
|
],
|
|
31
42
|
"directories": {
|
|
32
43
|
"test": "tests"
|
|
33
44
|
},
|
|
34
45
|
"scripts": {
|
|
35
|
-
"build:module": "rm -
|
|
46
|
+
"build:module": "rm -rf index.js index.mjs index.d.ts index.d.mts file-errors && tsup",
|
|
36
47
|
"test": "hestia-validate-jsonld tests/fixtures",
|
|
37
48
|
"lint": "tsc --noEmit && eslint .",
|
|
38
49
|
"lint:fix": "npm run lint -- --fix",
|
|
39
50
|
"release": "standard-version -a",
|
|
40
|
-
"postrelease": "git push origin master --follow-tags"
|
|
51
|
+
"postrelease": "git push origin master --follow-tags",
|
|
52
|
+
"test:module": "vitest run"
|
|
41
53
|
},
|
|
42
54
|
"repository": {
|
|
43
55
|
"type": "git",
|
|
@@ -63,6 +75,7 @@
|
|
|
63
75
|
"@hestia-earth/json-schema": "^39.0.1",
|
|
64
76
|
"@hestia-earth/schema": "^39.0.1",
|
|
65
77
|
"@hestia-earth/schema-validation": "^39.0.1",
|
|
78
|
+
"@hestia-earth/utils": "^0.17.17",
|
|
66
79
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
67
80
|
"@typescript-eslint/parser": "^5.62.0",
|
|
68
81
|
"eslint": "^7.32.0",
|
|
@@ -70,7 +83,8 @@
|
|
|
70
83
|
"husky": "~4.3.8",
|
|
71
84
|
"standard-version": "^9.5.0",
|
|
72
85
|
"tsup": "^8.3.5",
|
|
73
|
-
"typescript": "^5.9.3"
|
|
86
|
+
"typescript": "^5.9.3",
|
|
87
|
+
"vitest": "^3.2.4"
|
|
74
88
|
},
|
|
75
89
|
"standard-version": {
|
|
76
90
|
"scripts": {
|
|
@@ -81,5 +95,9 @@
|
|
|
81
95
|
"hooks": {
|
|
82
96
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
83
97
|
}
|
|
98
|
+
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"@hestia-earth/schema": ">=37.0.0",
|
|
101
|
+
"@hestia-earth/utils": "^0.17.17"
|
|
84
102
|
}
|
|
85
103
|
}
|
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": "
|
|
139
|
+
"function": "validate_duplicated_terms",
|
|
140
140
|
"level": "warning",
|
|
141
|
-
"message": "should not use
|
|
141
|
+
"message": "should not use several terms describing the same product"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"function": "validate_other_model",
|