@twin.org/data-json-ld 0.0.1-next.11 → 0.0.1-next.12
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 +2 -2
- package/docs/changelog.md +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -1717,7 +1717,7 @@ class JsonLdProcessor {
|
|
|
1717
1717
|
const response = await web.FetchHelper.fetchJson(JsonLdProcessor._CLASS_NAME, url, web.HttpMethod.GET, undefined, {
|
|
1718
1718
|
cacheTtlMs: 3600000,
|
|
1719
1719
|
headers: {
|
|
1720
|
-
Accept: `${web.MimeTypes.JsonLd},${web.MimeTypes.Json}`
|
|
1720
|
+
[web.HeaderTypes.Accept]: `${web.MimeTypes.JsonLd},${web.MimeTypes.Json}`
|
|
1721
1721
|
}
|
|
1722
1722
|
});
|
|
1723
1723
|
return {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataTypeHandlerFactory, DataTypeHelper } from '@twin.org/data-core';
|
|
2
2
|
import { Is, GeneralError, ObjectHelper } from '@twin.org/core';
|
|
3
|
-
import { FetchHelper, HttpMethod, MimeTypes } from '@twin.org/web';
|
|
3
|
+
import { FetchHelper, HttpMethod, HeaderTypes, MimeTypes } from '@twin.org/web';
|
|
4
4
|
import jsonLd from 'jsonld';
|
|
5
5
|
|
|
6
6
|
// Copyright 2024 IOTA Stiftung.
|
|
@@ -1715,7 +1715,7 @@ class JsonLdProcessor {
|
|
|
1715
1715
|
const response = await FetchHelper.fetchJson(JsonLdProcessor._CLASS_NAME, url, HttpMethod.GET, undefined, {
|
|
1716
1716
|
cacheTtlMs: 3600000,
|
|
1717
1717
|
headers: {
|
|
1718
|
-
Accept: `${MimeTypes.JsonLd},${MimeTypes.Json}`
|
|
1718
|
+
[HeaderTypes.Accept]: `${MimeTypes.JsonLd},${MimeTypes.Json}`
|
|
1719
1719
|
}
|
|
1720
1720
|
});
|
|
1721
1721
|
return {
|
package/docs/changelog.md
CHANGED
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.12",
|
|
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.12",
|
|
19
19
|
"@twin.org/entity": "next",
|
|
20
20
|
"@twin.org/nameof": "next",
|
|
21
21
|
"@twin.org/web": "next",
|