ochre-sdk 1.1.4 → 1.1.5
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.
|
@@ -68,8 +68,8 @@ function buildPropertyValueTypedSortKeyExpression(parameters) {
|
|
|
68
68
|
return if ($candidate = ("true", "1")) then 1 else 0)[1]`;
|
|
69
69
|
case "date": return `(for $v in ${propertyValuePath}
|
|
70
70
|
let $candidate := normalize-space(string($v/@rawValue))
|
|
71
|
-
where $candidate castable as xs:date
|
|
72
|
-
return xs:date($candidate))[1]`;
|
|
71
|
+
where $candidate castable as xs:date or $candidate castable as xs:dateTime
|
|
72
|
+
return if ($candidate castable as xs:date) then xs:date($candidate) else xs:date(xs:dateTime($candidate)))[1]`;
|
|
73
73
|
case "dateTime": return `(for $v in ${propertyValuePath}
|
|
74
74
|
let $candidate := normalize-space(string($v/@rawValue))
|
|
75
75
|
where $candidate castable as xs:dateTime
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ochre-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
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",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@antfu/eslint-config": "^9.5.1",
|
|
54
|
-
"@types/node": "^24.
|
|
54
|
+
"@types/node": "^24.19.0",
|
|
55
55
|
"bumpp": "^12.3.0",
|
|
56
56
|
"eslint": "^10.11.0",
|
|
57
57
|
"eslint-plugin-erasable-syntax-only": "^0.7.2",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"oxfmt": "^0.70.0",
|
|
62
62
|
"tsdown": "^0.23.0",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
|
-
"vitest": "^5.0.
|
|
64
|
+
"vitest": "^5.0.2"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"dev": "tsdown src/index.ts --watch",
|