@getodk/xpath 0.9.2 → 0.10.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/dist/evaluator/Evaluator.d.ts +1 -0
- package/dist/evaluator/NamespaceResolver.d.ts +1 -0
- package/dist/functions/xforms/geo.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +187 -4161
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
|
@@ -23,6 +23,7 @@ export interface EvaluatorNodeConvenienceMethodOptions<T extends XPathNode, Asse
|
|
|
23
23
|
readonly assertExists?: AssertExists;
|
|
24
24
|
}
|
|
25
25
|
type EvaluatedNode<T extends XPathNode, U extends T | UnwrapAdapterNode<T>, AssertExists extends boolean> = AssertExists extends true ? U : U | null;
|
|
26
|
+
export declare const clearCache: () => void;
|
|
26
27
|
export declare class Evaluator<T extends XPathNode> {
|
|
27
28
|
readonly domProvider: XPathDOMProvider<T>;
|
|
28
29
|
protected readonly parser: ExpressionParser;
|
|
@@ -31,6 +31,7 @@ export declare const staticNamespaces: StaticNamespaces<"xf", "http://www.w3.org
|
|
|
31
31
|
readonly xml: "http://www.w3.org/XML/1998/namespace";
|
|
32
32
|
readonly xmlns: "http://www.w3.org/2000/xmlns/";
|
|
33
33
|
}>;
|
|
34
|
+
export declare const clearCache: () => void;
|
|
34
35
|
type XPathNSResolverFunction = (prefix: string | null) => string | null;
|
|
35
36
|
interface XPathNSResolverObject {
|
|
36
37
|
readonly lookupNamespaceURI: XPathNSResolverFunction;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BooleanFunction } from '../../evaluator/functions/BooleanFunction.ts';
|
|
1
2
|
import { NumberFunction } from '../../evaluator/functions/NumberFunction.ts';
|
|
2
3
|
export declare const area: NumberFunction;
|
|
3
4
|
export declare const distance: NumberFunction;
|
|
5
|
+
export declare const geofence: BooleanFunction;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* - - -
|
|
19
19
|
*/
|
|
20
20
|
export type * from './evaluator/Evaluator.ts';
|
|
21
|
-
export { Evaluator } from './evaluator/Evaluator.ts';
|
|
21
|
+
export { clearCache, Evaluator } from './evaluator/Evaluator.ts';
|
|
22
22
|
/**
|
|
23
23
|
* - - -
|
|
24
24
|
* {@link XPathDOMAdapter}, associated values and types
|