@digitalculture/ochre-sdk 0.4.3 → 0.4.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/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -77,6 +77,7 @@ __export(index_exports, {
|
|
|
77
77
|
module.exports = __toCommonJS(index_exports);
|
|
78
78
|
|
|
79
79
|
// src/utils/parse.ts
|
|
80
|
+
var import_uuid = require("uuid");
|
|
80
81
|
var import_zod3 = require("zod");
|
|
81
82
|
|
|
82
83
|
// src/utils/fetchers/generic.ts
|
|
@@ -1939,7 +1940,7 @@ async function parseWebpage(webpageResource) {
|
|
|
1939
1940
|
"element"
|
|
1940
1941
|
);
|
|
1941
1942
|
const block = {
|
|
1942
|
-
uuid:
|
|
1943
|
+
uuid: (0, import_uuid.v4)(),
|
|
1943
1944
|
layout: "vertical",
|
|
1944
1945
|
blocks: [],
|
|
1945
1946
|
elements,
|
|
@@ -1961,7 +1962,7 @@ async function parseWebpage(webpageResource) {
|
|
|
1961
1962
|
if (elementsToHandle.length > 0) {
|
|
1962
1963
|
const elements = await parseWebpageResources(elementsToHandle, "element");
|
|
1963
1964
|
const block = {
|
|
1964
|
-
uuid:
|
|
1965
|
+
uuid: (0, import_uuid.v4)(),
|
|
1965
1966
|
layout: "vertical",
|
|
1966
1967
|
blocks: [],
|
|
1967
1968
|
elements,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/utils/parse.ts
|
|
2
|
+
import { v4 as uuidv4 } from "uuid";
|
|
2
3
|
import { z as z3 } from "zod";
|
|
3
4
|
|
|
4
5
|
// src/utils/fetchers/generic.ts
|
|
@@ -1861,7 +1862,7 @@ async function parseWebpage(webpageResource) {
|
|
|
1861
1862
|
"element"
|
|
1862
1863
|
);
|
|
1863
1864
|
const block = {
|
|
1864
|
-
uuid:
|
|
1865
|
+
uuid: uuidv4(),
|
|
1865
1866
|
layout: "vertical",
|
|
1866
1867
|
blocks: [],
|
|
1867
1868
|
elements,
|
|
@@ -1883,7 +1884,7 @@ async function parseWebpage(webpageResource) {
|
|
|
1883
1884
|
if (elementsToHandle.length > 0) {
|
|
1884
1885
|
const elements = await parseWebpageResources(elementsToHandle, "element");
|
|
1885
1886
|
const block = {
|
|
1886
|
-
uuid:
|
|
1887
|
+
uuid: uuidv4(),
|
|
1887
1888
|
layout: "vertical",
|
|
1888
1889
|
blocks: [],
|
|
1889
1890
|
elements,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalculture/ochre-sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"iso-639-3": "^3.0.1",
|
|
44
|
+
"uuid": "^11.1.0",
|
|
44
45
|
"zod": "^3.24.2"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|