@twin.org/data-json-ld 0.0.1-next.24 → 0.0.1-next.25
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 +1 -1
- package/dist/esm/index.mjs +1 -1
- package/docs/changelog.md +1 -1
- package/locales/en.json +9 -7
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -1777,7 +1777,7 @@ class JsonLdProcessor {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
else if (core.Is.object(err) &&
|
|
1779
1779
|
err.name.startsWith("jsonld.")) {
|
|
1780
|
-
throw new core.GeneralError(JsonLdProcessor._CLASS_NAME, "
|
|
1780
|
+
throw new core.GeneralError(JsonLdProcessor._CLASS_NAME, "jsonLdError", err.details, err);
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1775,7 +1775,7 @@ class JsonLdProcessor {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
else if (Is.object(err) &&
|
|
1777
1777
|
err.name.startsWith("jsonld.")) {
|
|
1778
|
-
throw new GeneralError(JsonLdProcessor._CLASS_NAME, "
|
|
1778
|
+
throw new GeneralError(JsonLdProcessor._CLASS_NAME, "jsonLdError", err.details, err);
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
package/docs/changelog.md
CHANGED
package/locales/en.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"error": {
|
|
3
|
+
"jsonLdProcessor": {
|
|
4
|
+
"compact": "The JSON-LD compaction failed",
|
|
5
|
+
"expand": "The JSON-LD expansion failed",
|
|
6
|
+
"canonize": "The JSON-LD canonization failed",
|
|
7
|
+
"invalidUrl": "The JSON-LD processing failed to retrieve from the following url \"{url}\"",
|
|
8
|
+
"jsonLdError": "The JSON-LD processing failed due to the following error: \"{code}\""
|
|
9
|
+
}
|
|
8
10
|
}
|
|
9
|
-
}
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/data-json-ld",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.25",
|
|
4
4
|
"description": "Models which define the structure of JSON LD",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/data-core": "0.0.1-next.
|
|
18
|
+
"@twin.org/data-core": "0.0.1-next.25",
|
|
19
19
|
"@twin.org/entity": "next",
|
|
20
20
|
"@twin.org/nameof": "next",
|
|
21
21
|
"@twin.org/web": "next",
|