ochre-sdk 1.0.13 → 1.0.15
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/constants.d.mts +17 -0
- package/dist/constants.mjs +85 -0
- package/dist/fetchers/gallery.d.mts +38 -0
- package/dist/fetchers/gallery.mjs +91 -0
- package/dist/fetchers/item-links.d.mts +32 -0
- package/dist/fetchers/item-links.mjs +120 -0
- package/dist/fetchers/item.d.mts +74 -0
- package/dist/fetchers/item.mjs +146 -0
- package/dist/fetchers/set/items.d.mts +48 -0
- package/dist/fetchers/set/items.mjs +268 -0
- package/dist/fetchers/set/property-values.d.mts +46 -0
- package/dist/fetchers/set/property-values.mjs +514 -0
- package/dist/fetchers/website.d.mts +25 -0
- package/dist/fetchers/website.mjs +38 -0
- package/dist/getters.d.mts +193 -0
- package/dist/getters.mjs +341 -0
- package/dist/helpers.d.mts +18 -0
- package/dist/helpers.mjs +33 -0
- package/dist/index.d.mts +12 -1971
- package/dist/index.mjs +9 -7236
- package/dist/parsers/helpers.d.mts +27 -0
- package/dist/parsers/helpers.mjs +53 -0
- package/dist/parsers/index.d.mts +65 -0
- package/dist/parsers/index.mjs +1338 -0
- package/dist/parsers/mdx.d.mts +4 -0
- package/dist/parsers/mdx.mjs +9 -0
- package/dist/parsers/multilingual.d.mts +189 -0
- package/dist/parsers/multilingual.mjs +410 -0
- package/dist/parsers/string.d.mts +29 -0
- package/dist/parsers/string.mjs +445 -0
- package/dist/parsers/website/index.d.mts +20 -0
- package/dist/parsers/website/index.mjs +1245 -0
- package/dist/parsers/website/reader.d.mts +29 -0
- package/dist/parsers/website/reader.mjs +75 -0
- package/dist/query.d.mts +13 -0
- package/dist/query.mjs +827 -0
- package/dist/schemas.d.mts +79 -0
- package/dist/schemas.mjs +223 -0
- package/dist/types/index.d.mts +840 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/website.d.mts +501 -0
- package/dist/types/website.mjs +1 -0
- package/dist/utils.d.mts +34 -0
- package/dist/utils.mjs +172 -0
- package/dist/xml/metadata.d.mts +5 -0
- package/dist/xml/metadata.mjs +30 -0
- package/dist/xml/schemas.d.mts +13 -0
- package/dist/xml/schemas.mjs +849 -0
- package/dist/xml/types.d.mts +901 -0
- package/dist/xml/types.mjs +1 -0
- package/package.json +19 -17
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ochre-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
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",
|
|
@@ -27,12 +27,14 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
+
"sideEffects": false,
|
|
30
31
|
"imports": {
|
|
31
32
|
"#/*": "./src/*"
|
|
32
33
|
},
|
|
33
34
|
"exports": {
|
|
34
35
|
".": {
|
|
35
|
-
"types": "./dist/index.d.
|
|
36
|
+
"types": "./dist/index.d.mts",
|
|
37
|
+
"import": "./dist/index.mjs",
|
|
36
38
|
"default": "./dist/index.mjs"
|
|
37
39
|
}
|
|
38
40
|
},
|
|
@@ -42,32 +44,32 @@
|
|
|
42
44
|
"files": [
|
|
43
45
|
"dist"
|
|
44
46
|
],
|
|
45
|
-
"scripts": {
|
|
46
|
-
"dev": "tsdown src/index.ts --watch",
|
|
47
|
-
"build": "tsdown",
|
|
48
|
-
"lint": "eslint .",
|
|
49
|
-
"lint:fix": "eslint . --fix",
|
|
50
|
-
"format": "prettier --check .",
|
|
51
|
-
"format:fix": "prettier --write --list-different .",
|
|
52
|
-
"check-types": "tsc --noEmit",
|
|
53
|
-
"test": "vitest run",
|
|
54
|
-
"release": "bumpp"
|
|
55
|
-
},
|
|
56
47
|
"dependencies": {
|
|
57
|
-
"date-fns": "^4.
|
|
48
|
+
"date-fns": "^4.3.0",
|
|
58
49
|
"fast-equals": "^6.0.0",
|
|
59
50
|
"fast-xml-parser": "^5.8.0",
|
|
60
|
-
"valibot": "^1.4.
|
|
51
|
+
"valibot": "^1.4.1"
|
|
61
52
|
},
|
|
62
53
|
"devDependencies": {
|
|
63
54
|
"@antfu/eslint-config": "^9.0.0",
|
|
64
55
|
"@types/node": "^24.12.4",
|
|
65
56
|
"bumpp": "^11.1.0",
|
|
66
57
|
"eslint": "^10.4.0",
|
|
58
|
+
"knip": "^6.14.2",
|
|
67
59
|
"prettier": "^3.8.3",
|
|
68
60
|
"tsdown": "^0.22.0",
|
|
69
61
|
"typescript": "^6.0.3",
|
|
70
62
|
"vitest": "^4.1.7"
|
|
71
63
|
},
|
|
72
|
-
"
|
|
73
|
-
|
|
64
|
+
"scripts": {
|
|
65
|
+
"dev": "tsdown src/index.ts --watch",
|
|
66
|
+
"build": "tsdown",
|
|
67
|
+
"lint": "knip; eslint .",
|
|
68
|
+
"lint:fix": "knip --fix; eslint . --fix",
|
|
69
|
+
"format": "prettier --check .",
|
|
70
|
+
"format:fix": "prettier --write --list-different .",
|
|
71
|
+
"check-types": "tsc --noEmit",
|
|
72
|
+
"test": "vitest run",
|
|
73
|
+
"release": "bumpp"
|
|
74
|
+
}
|
|
75
|
+
}
|