@getodk/xpath 0.8.1 → 0.9.0
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/README.md
CHANGED
|
@@ -144,12 +144,6 @@ Both evaluator classes provide the following convenience methods:
|
|
|
144
144
|
|
|
145
145
|
- Expressions with variable references are parsed incorrectly. There is also no API to provide variable values, even if variable references were supported.
|
|
146
146
|
|
|
147
|
-
### ODK XForms
|
|
148
|
-
|
|
149
|
-
We intend to support the full ODK XForms function library, but support is currently incomplete. The following functions are not yet supported (the `jr:` prefix is used by convention to refer to the JavaRosa namespace):
|
|
150
|
-
|
|
151
|
-
- `jr:choice-name`
|
|
152
|
-
|
|
153
147
|
### Non-browser environments
|
|
154
148
|
|
|
155
149
|
The DOM standard is very complex, and compatibility libraries sometimes differ in terms of standards compliance and compatibility with the major browser implementations. It is likely, perhaps inevitable, that there will be edge cases and minor compatiblity issues when using such a library. At time of writing, no such issues are known in our tested environments, but a couple of minor issues have already been found and fixed during the initial test setup.
|
|
@@ -7,7 +7,7 @@ export type AdapterText<T extends XPathNode> = Extract<T, XPathText>;
|
|
|
7
7
|
export type AdapterComment<T extends XPathNode> = Extract<T, XPathComment>;
|
|
8
8
|
export type AdapterProcessingInstruction<T extends XPathNode> = Extract<T, XPathProcessingInstruction>;
|
|
9
9
|
export type AdapterParentNode<T extends XPathNode> = AdapterDocument<T> | AdapterElement<T>;
|
|
10
|
-
export type AdapterChildNode<T extends XPathNode> = AdapterElement<T> | AdapterText<T> | AdapterComment<T> | AdapterProcessingInstruction<T>;
|
|
10
|
+
export type AdapterChildNode<T extends XPathNode> = AdapterElement<T> | AdapterText<T> | AdapterComment<T> | AdapterAttribute<T> | AdapterProcessingInstruction<T>;
|
|
11
11
|
export type AdapterQualifiedNamedNode<T extends XPathNode> = AdapterElement<T> | AdapterAttribute<T>;
|
|
12
12
|
export interface XPathNodeKindAdapter<T extends XPathNode> {
|
|
13
13
|
readonly isXPathNode: (value: unknown) => value is T;
|
package/dist/index.js
CHANGED
|
@@ -3779,7 +3779,7 @@ const sn = /*@__PURE__*/new WeakMap(),
|
|
|
3779
3779
|
epochMilliseconds: I,
|
|
3780
3780
|
epochNanoseconds: v
|
|
3781
3781
|
},
|
|
3782
|
-
[wn, In
|
|
3782
|
+
[wn, In] = createSlotClass(N, j, {
|
|
3783
3783
|
...gn,
|
|
3784
3784
|
blank: y
|
|
3785
3785
|
}, {
|
|
@@ -3864,7 +3864,7 @@ const sn = /*@__PURE__*/new WeakMap(),
|
|
|
3864
3864
|
from: (t, e) => En(toPlainDateTimeSlots(t, e)),
|
|
3865
3865
|
compare: (t, e) => Yt(toPlainDateTimeSlots(t), toPlainDateTimeSlots(e))
|
|
3866
3866
|
}),
|
|
3867
|
-
[Ln, Vn
|
|
3867
|
+
[Ln, Vn] = createSlotClass(qt, Pt(kt, Mt), {
|
|
3868
3868
|
...Pn,
|
|
3869
3869
|
...Dn
|
|
3870
3870
|
}, {
|
|
@@ -3883,7 +3883,7 @@ const sn = /*@__PURE__*/new WeakMap(),
|
|
|
3883
3883
|
}, {
|
|
3884
3884
|
from: (t, e) => Vn(toPlainMonthDaySlots(t, e))
|
|
3885
3885
|
}),
|
|
3886
|
-
[kn, qn
|
|
3886
|
+
[kn, qn] = createSlotClass(Ut, Pt(Qt, Mt), {
|
|
3887
3887
|
...Pn,
|
|
3888
3888
|
...hn
|
|
3889
3889
|
}, {
|
|
@@ -3907,7 +3907,7 @@ const sn = /*@__PURE__*/new WeakMap(),
|
|
|
3907
3907
|
from: (t, e) => qn(toPlainYearMonthSlots(t, e)),
|
|
3908
3908
|
compare: (t, e) => te(toPlainYearMonthSlots(t), toPlainYearMonthSlots(e))
|
|
3909
3909
|
}),
|
|
3910
|
-
[xn, Wn
|
|
3910
|
+
[xn, Wn] = createSlotClass(G, Pt(ue, Mt), {
|
|
3911
3911
|
...Pn,
|
|
3912
3912
|
...Tn
|
|
3913
3913
|
}, {
|
|
@@ -3990,7 +3990,7 @@ const sn = /*@__PURE__*/new WeakMap(),
|
|
|
3990
3990
|
from: (t, e) => $n(toZonedDateTimeSlots(t, e)),
|
|
3991
3991
|
compare: (t, e) => Be(toZonedDateTimeSlots(t), toZonedDateTimeSlots(e))
|
|
3992
3992
|
}),
|
|
3993
|
-
[Hn, Kn
|
|
3993
|
+
[Hn, Kn] = createSlotClass(Re, qe, On, {
|
|
3994
3994
|
add: (t, e) => Kn(Ye(0, t, toDurationSlots(e))),
|
|
3995
3995
|
subtract: (t, e) => Kn(Ye(1, t, toDurationSlots(e))),
|
|
3996
3996
|
until: (t, e, n) => In(Ee(0, t, toInstantSlots(e), n)),
|