@twin.org/data-core 0.0.2-next.3 → 0.0.2-next.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/dist/cjs/index.cjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/docs/changelog.md +7 -0
- package/locales/en.json +0 -3
- package/package.json +17 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -70,7 +70,7 @@ class JsonSchemaHelper {
|
|
|
70
70
|
* The class name.
|
|
71
71
|
* @internal
|
|
72
72
|
*/
|
|
73
|
-
static
|
|
73
|
+
static CLASS_NAME = "JsonSchemaHelper";
|
|
74
74
|
/**
|
|
75
75
|
* Validates data against the schema.
|
|
76
76
|
* @param schema The schema to validate the data with.
|
|
@@ -95,7 +95,7 @@ class JsonSchemaHelper {
|
|
|
95
95
|
}
|
|
96
96
|
try {
|
|
97
97
|
// We don't have the type in our local data types, so we try to fetch it from the web
|
|
98
|
-
return web.FetchHelper.fetchJson(JsonSchemaHelper.
|
|
98
|
+
return web.FetchHelper.fetchJson(JsonSchemaHelper.CLASS_NAME, uri, web.HttpMethod.GET, undefined, {
|
|
99
99
|
// Cache for an hour
|
|
100
100
|
cacheTtlMs: 3600000
|
|
101
101
|
});
|
package/dist/esm/index.mjs
CHANGED
|
@@ -68,7 +68,7 @@ class JsonSchemaHelper {
|
|
|
68
68
|
* The class name.
|
|
69
69
|
* @internal
|
|
70
70
|
*/
|
|
71
|
-
static
|
|
71
|
+
static CLASS_NAME = "JsonSchemaHelper";
|
|
72
72
|
/**
|
|
73
73
|
* Validates data against the schema.
|
|
74
74
|
* @param schema The schema to validate the data with.
|
|
@@ -93,7 +93,7 @@ class JsonSchemaHelper {
|
|
|
93
93
|
}
|
|
94
94
|
try {
|
|
95
95
|
// We don't have the type in our local data types, so we try to fetch it from the web
|
|
96
|
-
return FetchHelper.fetchJson(JsonSchemaHelper.
|
|
96
|
+
return FetchHelper.fetchJson(JsonSchemaHelper.CLASS_NAME, uri, HttpMethod.GET, undefined, {
|
|
97
97
|
// Cache for an hour
|
|
98
98
|
cacheTtlMs: 3600000
|
|
99
99
|
});
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @twin.org/data-core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.4](https://github.com/twinfoundation/data/compare/data-core-v0.0.2-next.3...data-core-v0.0.2-next.4) (2025-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add validate-locales ([cf9b761](https://github.com/twinfoundation/data/commit/cf9b76160820fe0b13b4fe56ed241c1d5511b7c1))
|
|
9
|
+
|
|
3
10
|
## [0.0.2-next.3](https://github.com/twinfoundation/data/compare/data-core-v0.0.2-next.2...data-core-v0.0.2-next.3) (2025-09-29)
|
|
4
11
|
|
|
5
12
|
|
package/locales/en.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"error": {
|
|
3
3
|
"validation": {
|
|
4
|
-
"properties": {
|
|
5
|
-
"keyAlreadyExists": "The key already exists"
|
|
6
|
-
},
|
|
7
4
|
"schema": {
|
|
8
5
|
"failedValidation": "The JSON schema failed validation, {message}",
|
|
9
6
|
"missingType": "Failed to validate as there is no handler for type \"{dataType}\""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/data-core",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.4",
|
|
4
4
|
"description": "Definitions and helpers for using with data and schemas",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,5 +37,20 @@
|
|
|
37
37
|
"dist/types",
|
|
38
38
|
"locales",
|
|
39
39
|
"docs"
|
|
40
|
-
]
|
|
40
|
+
],
|
|
41
|
+
"keywords": [
|
|
42
|
+
"twin",
|
|
43
|
+
"trade",
|
|
44
|
+
"iota",
|
|
45
|
+
"framework",
|
|
46
|
+
"blockchain",
|
|
47
|
+
"data",
|
|
48
|
+
"core",
|
|
49
|
+
"foundation",
|
|
50
|
+
"utilities"
|
|
51
|
+
],
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "git+https://github.com/twinfoundation/data/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://twindev.org"
|
|
41
56
|
}
|