@inixiative/json-rules 3.13.0 → 3.14.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 +3 -3
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -567,7 +567,8 @@ declare const check: <TData extends CheckData>(conditions: Condition, data: TDat
|
|
|
567
567
|
* unit any relative date in the tree names (`{ ago: { hours: 2 } }` → `hour`, `{ this: 'week' }`
|
|
568
568
|
* → `week`), at any depth. Null when the rule reads no clock: absolute dates, column compares and
|
|
569
569
|
* their offsets, weekday lists. A bound value (`{ bind }`) is read as written, not as what a
|
|
570
|
-
* binding may supply.
|
|
570
|
+
* binding may supply. Throws on a unit finer than the engine's `clock.finestUnit`, as evaluating
|
|
571
|
+
* the rule does.
|
|
571
572
|
*/
|
|
572
573
|
declare const clockUnit: (condition: Condition) => ClockUnit | null;
|
|
573
574
|
|
|
@@ -597,7 +598,7 @@ type EngineGlobalsState = {
|
|
|
597
598
|
dialect: SqlDialect;
|
|
598
599
|
};
|
|
599
600
|
clock: {
|
|
600
|
-
/** The finest clock unit
|
|
601
|
+
/** The finest clock unit a rule may read: a rule naming a finer one fails to evaluate. */
|
|
601
602
|
finestUnit: ClockUnit;
|
|
602
603
|
};
|
|
603
604
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -567,7 +567,8 @@ declare const check: <TData extends CheckData>(conditions: Condition, data: TDat
|
|
|
567
567
|
* unit any relative date in the tree names (`{ ago: { hours: 2 } }` → `hour`, `{ this: 'week' }`
|
|
568
568
|
* → `week`), at any depth. Null when the rule reads no clock: absolute dates, column compares and
|
|
569
569
|
* their offsets, weekday lists. A bound value (`{ bind }`) is read as written, not as what a
|
|
570
|
-
* binding may supply.
|
|
570
|
+
* binding may supply. Throws on a unit finer than the engine's `clock.finestUnit`, as evaluating
|
|
571
|
+
* the rule does.
|
|
571
572
|
*/
|
|
572
573
|
declare const clockUnit: (condition: Condition) => ClockUnit | null;
|
|
573
574
|
|
|
@@ -597,7 +598,7 @@ type EngineGlobalsState = {
|
|
|
597
598
|
dialect: SqlDialect;
|
|
598
599
|
};
|
|
599
600
|
clock: {
|
|
600
|
-
/** The finest clock unit
|
|
601
|
+
/** The finest clock unit a rule may read: a rule naming a finer one fails to evaluate. */
|
|
601
602
|
finestUnit: ClockUnit;
|
|
602
603
|
};
|
|
603
604
|
};
|