@getodk/xpath 0.4.1 → 0.5.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/.vite/manifest.json +4 -4
- package/dist/adapter/interface/XPathDOMOptimizableOperations.d.ts +1 -1
- package/dist/adapter/interface/XPathTraversalAdapter.d.ts +4 -4
- package/dist/adapter/xpathDOMProvider.d.ts +1 -16
- package/dist/context/Context.d.ts +3 -3
- package/dist/context/EvaluationContext.d.ts +4 -4
- package/dist/evaluations/DateTimeLikeEvaluation.d.ts +1 -1
- package/dist/evaluations/Evaluation.d.ts +2 -2
- package/dist/evaluations/LocationPathEvaluation.d.ts +10 -13
- package/dist/evaluations/NodeEvaluation.d.ts +1 -1
- package/dist/evaluations/ValueEvaluation.d.ts +4 -3
- package/dist/evaluator/Evaluator.d.ts +2 -2
- package/dist/evaluator/expression/FilterPathExpressionEvaluator.d.ts +1 -1
- package/dist/evaluator/expression/LocationPathEvaluator.d.ts +1 -1
- package/dist/evaluator/expression/LocationPathExpressionEvaluator.d.ts +1 -1
- package/dist/evaluator/expression/UnionExpressionEvaluator.d.ts +1 -1
- package/dist/evaluator/functions/FunctionLibraryCollection.d.ts +1 -1
- package/dist/evaluator/functions/NodeSetFunction.d.ts +1 -1
- package/dist/evaluator/result/BaseResult.d.ts +1 -1
- package/dist/evaluator/result/NodeSetResult.d.ts +5 -9
- package/dist/{expressionParser-3CFK02GG.js → expressionParser-BUM7qFCl.js} +29 -29
- package/dist/{expressionParser-3CFK02GG.js.map → expressionParser-BUM7qFCl.js.map} +1 -1
- package/dist/expressionParser.js +1 -1
- package/dist/index.js +4048 -22140
- package/dist/index.js.map +1 -1
- package/dist/lib/collections/sort.d.ts +1 -1
- package/dist/lib/datetime/coercion.d.ts +3 -3
- package/dist/lib/datetime/functions.d.ts +3 -3
- package/package.json +3 -4
- package/dist/lib/datetime/constants.d.ts +0 -6
- package/dist/lib/iterators/Reiterable.d.ts +0 -15
- package/dist/lib/iterators/common.d.ts +0 -17
- package/dist/lib/iterators/index.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const seededRandomize: <T>(values: readonly T[], seed?:
|
|
1
|
+
export declare const seededRandomize: <T>(values: readonly T[], seed?: bigint | number) => T[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Temporal } from '
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
2
|
export declare const tryParseDateString: (value: string) => Date | null;
|
|
3
|
-
export declare const dateTimeFromString: (timeZone: Temporal.
|
|
4
|
-
export declare const dateTimeFromNumber: (timeZone: Temporal.
|
|
3
|
+
export declare const dateTimeFromString: (timeZone: Temporal.TimeZoneLike, value: string) => Temporal.ZonedDateTime | null;
|
|
4
|
+
export declare const dateTimeFromNumber: (timeZone: Temporal.TimeZoneLike, milliseconds: number) => Temporal.ZonedDateTime | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Temporal } from '
|
|
2
|
-
export declare const currentLocalDateTimeString: (timeZone: Temporal.
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
|
+
export declare const currentLocalDateTimeString: (timeZone: Temporal.TimeZoneLike) => string;
|
|
3
3
|
export declare const localDateTimeString: (dateTime: Temporal.ZonedDateTime) => string;
|
|
4
4
|
export declare const localDateTimeOrDateString: (dateTime: Temporal.ZonedDateTime) => string;
|
|
5
|
-
export declare const now: (timeZone: Temporal.
|
|
5
|
+
export declare const now: (timeZone: Temporal.TimeZoneLike) => Temporal.ZonedDateTime;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getodk/xpath",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "XPath implementation for ODK Web Forms",
|
|
6
6
|
"type": "module",
|
|
@@ -54,10 +54,9 @@
|
|
|
54
54
|
"test:types:test": "tsc --project ./test/tsconfig.json --emitDeclarationOnly false --noEmit"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@getodk/common": "0.
|
|
58
|
-
"@js-temporal/polyfill": "^0.4.4",
|
|
57
|
+
"@getodk/common": "0.6.0",
|
|
59
58
|
"crypto-js": "^4.2.0",
|
|
60
|
-
"
|
|
59
|
+
"temporal-polyfill": "^0.3.0"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
62
|
"@babel/core": "^7.26.10",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const DAY_MILLISECONDS: number;
|
|
2
|
-
export declare const MILLISECOND_NANOSECONDS: bigint;
|
|
3
|
-
export declare const ISO_DATE_LIKE_PATTERN: RegExp;
|
|
4
|
-
export declare const ISO_TIME_LIKE_PATTERN: RegExp;
|
|
5
|
-
export declare const ISO_DATE_TIME_LIKE_PATTERN: RegExp;
|
|
6
|
-
export declare const ISO_DATE_OR_DATE_TIME_LIKE_PATTERN: RegExp;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type BooleanPredicate<T> = (value: T) => boolean;
|
|
2
|
-
export declare class Reiterable<T> implements Iterable<T> {
|
|
3
|
-
protected source: Iterable<T> | Iterator<T>;
|
|
4
|
-
static from<T>(source: Iterable<T> | Iterator<T>): Reiterable<T>;
|
|
5
|
-
protected active: IterableIterator<T>;
|
|
6
|
-
protected cache: T[];
|
|
7
|
-
protected constructor(source: Iterable<T> | Iterator<T>);
|
|
8
|
-
[Symbol.iterator](): Iterator<T>;
|
|
9
|
-
entries(): IterableIterator<readonly [key: number, value: T]>;
|
|
10
|
-
keys(): IterableIterator<number>;
|
|
11
|
-
values(): IterableIterator<T>;
|
|
12
|
-
first(): T | void;
|
|
13
|
-
some(predicate: BooleanPredicate<T>): boolean;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
type Iter<T> = Iterable<T> | Iterator<T>;
|
|
2
|
-
export declare function toIterableIterator<T>(iter: Iter<T>): IterableIterator<T>;
|
|
3
|
-
type MapIterated<T, U> = (value: T) => U;
|
|
4
|
-
export type MapIterable<T, U> = (iterable: Iter<T>) => IterableIterator<U>;
|
|
5
|
-
export declare const map: <T, U>(fn: MapIterated<T, U>) => MapIterable<T, U>;
|
|
6
|
-
export declare const eager: <T>(iterable: Iter<T>) => IterableIterator<T>;
|
|
7
|
-
type TypedGuardIterated<T, U extends T> = (value: T) => value is U;
|
|
8
|
-
type PredicateGuardIterated<T> = (value: T) => boolean;
|
|
9
|
-
type GuardIterated<T, U extends T> = PredicateGuardIterated<T & U> | TypedGuardIterated<T, U>;
|
|
10
|
-
type UnguardedIterated<Guard extends GuardIterated<any, any>> = Guard extends TypedGuardIterated<infer T, any> ? T : Guard extends PredicateGuardIterated<infer T> ? T : never;
|
|
11
|
-
type GuardedIterated<Guard extends GuardIterated<any, any>> = Guard extends TypedGuardIterated<infer T, infer U> ? T & U : Guard extends PredicateGuardIterated<infer T> ? T : never;
|
|
12
|
-
type FilterIterable<Guard extends GuardIterated<any, any>> = MapIterable<UnguardedIterated<Guard>, GuardedIterated<Guard>>;
|
|
13
|
-
export declare const filter: <Guard extends GuardIterated<any, any>>(guard: Guard) => FilterIterable<Guard>;
|
|
14
|
-
export declare const distinct: <T>(iterable: Iterable<T>) => Generator<T, void, unknown>;
|
|
15
|
-
type TeeResult<T> = [IterableIterator<T>, IterableIterator<T>];
|
|
16
|
-
export declare const tee: <T>(input: Iterable<T> | Iterator<T>) => TeeResult<T>;
|
|
17
|
-
export {};
|