@digitalculture/ochre-sdk 0.1.24 → 0.1.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/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1901,7 +1901,7 @@ async function fetchBibliography(uuid) {
|
|
|
1901
1901
|
metadata: parseMetadata(dataRaw.ochre.metadata),
|
|
1902
1902
|
item: bibliographyItem
|
|
1903
1903
|
};
|
|
1904
|
-
return { metadata: data.metadata,
|
|
1904
|
+
return { metadata: data.metadata, bibliography: data.item };
|
|
1905
1905
|
} catch (error) {
|
|
1906
1906
|
console.error(error);
|
|
1907
1907
|
return null;
|
|
@@ -2007,7 +2007,7 @@ async function fetchPeriod(uuid) {
|
|
|
2007
2007
|
metadata: parseMetadata(dataRaw.ochre.metadata),
|
|
2008
2008
|
item: periodItem
|
|
2009
2009
|
};
|
|
2010
|
-
return { metadata: data.metadata,
|
|
2010
|
+
return { metadata: data.metadata, period: data.item };
|
|
2011
2011
|
} catch (error) {
|
|
2012
2012
|
console.error(error);
|
|
2013
2013
|
return null;
|
package/dist/index.d.cts
CHANGED
|
@@ -560,7 +560,7 @@ type Style = {
|
|
|
560
560
|
*/
|
|
561
561
|
declare function fetchBibliography(uuid: string): Promise<{
|
|
562
562
|
metadata: Metadata;
|
|
563
|
-
|
|
563
|
+
bibliography: Bibliography;
|
|
564
564
|
} | null>;
|
|
565
565
|
|
|
566
566
|
/**
|
|
@@ -1213,7 +1213,7 @@ declare function fetchByUuid(uuid: string): Promise<[null, OchreData] | [string,
|
|
|
1213
1213
|
*/
|
|
1214
1214
|
declare function fetchPeriod(uuid: string): Promise<{
|
|
1215
1215
|
metadata: Metadata;
|
|
1216
|
-
|
|
1216
|
+
period: Period;
|
|
1217
1217
|
} | null>;
|
|
1218
1218
|
|
|
1219
1219
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -560,7 +560,7 @@ type Style = {
|
|
|
560
560
|
*/
|
|
561
561
|
declare function fetchBibliography(uuid: string): Promise<{
|
|
562
562
|
metadata: Metadata;
|
|
563
|
-
|
|
563
|
+
bibliography: Bibliography;
|
|
564
564
|
} | null>;
|
|
565
565
|
|
|
566
566
|
/**
|
|
@@ -1213,7 +1213,7 @@ declare function fetchByUuid(uuid: string): Promise<[null, OchreData] | [string,
|
|
|
1213
1213
|
*/
|
|
1214
1214
|
declare function fetchPeriod(uuid: string): Promise<{
|
|
1215
1215
|
metadata: Metadata;
|
|
1216
|
-
|
|
1216
|
+
period: Period;
|
|
1217
1217
|
} | null>;
|
|
1218
1218
|
|
|
1219
1219
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1824,7 +1824,7 @@ async function fetchBibliography(uuid) {
|
|
|
1824
1824
|
metadata: parseMetadata(dataRaw.ochre.metadata),
|
|
1825
1825
|
item: bibliographyItem
|
|
1826
1826
|
};
|
|
1827
|
-
return { metadata: data.metadata,
|
|
1827
|
+
return { metadata: data.metadata, bibliography: data.item };
|
|
1828
1828
|
} catch (error) {
|
|
1829
1829
|
console.error(error);
|
|
1830
1830
|
return null;
|
|
@@ -1930,7 +1930,7 @@ async function fetchPeriod(uuid) {
|
|
|
1930
1930
|
metadata: parseMetadata(dataRaw.ochre.metadata),
|
|
1931
1931
|
item: periodItem
|
|
1932
1932
|
};
|
|
1933
|
-
return { metadata: data.metadata,
|
|
1933
|
+
return { metadata: data.metadata, period: data.item };
|
|
1934
1934
|
} catch (error) {
|
|
1935
1935
|
console.error(error);
|
|
1936
1936
|
return null;
|
package/package.json
CHANGED