enketo-transformer
Version:
Library that transforms ODK-compliant XForms into a format that Enketo can consume
21 lines (20 loc) • 514 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
class XPathResult {
constructor(results) {
this.results = results;
}
get singleNodeValue() {
return this.results[0] ?? null;
}
get snapshotLength() {
return this.results.length;
}
snapshotItem(index) {
return this.results[index];
}
}
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE = 6;
XPathResult.FIRST_ORDERED_NODE_TYPE = 9;
exports.XPathResult = XPathResult;
//# sourceMappingURL=XPathResult.cjs.map