@openmrs/esm-expression-evaluator 6.3.1-pre.3106 → 6.3.1-pre.3124

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.
@@ -1,3 +1,3 @@
1
- [0] Successfully compiled: 5 files with swc (266.12ms)
1
+ [0] Successfully compiled: 5 files with swc (258.11ms)
2
2
  [0] swc --strip-leading-paths src -d dist exited with code 0
3
3
  [1] tsc --project tsconfig.build.json exited with code 0
@@ -147,7 +147,7 @@ export declare function evaluateAsync(expression: string | jsep.Expression, vari
147
147
  * the expression.
148
148
  * @returns The result of evaluating the expression
149
149
  */
150
- export declare function evaluateAsBoolean(expression: string | jsep.Expression, variables?: VariablesMap): Boolean;
150
+ export declare function evaluateAsBoolean(expression: string | jsep.Expression, variables?: VariablesMap): boolean;
151
151
  /**
152
152
  * `evaluateAsBooleanAsync()` is a variant of {@link evaluateAsync()} which only supports boolean results. Useful
153
153
  * if valid expression must return boolean values.
@@ -157,7 +157,7 @@ export declare function evaluateAsBoolean(expression: string | jsep.Expression,
157
157
  * the expression.
158
158
  * @returns The result of evaluating the expression
159
159
  */
160
- export declare function evaluateAsBooleanAsync(expression: string | jsep.Expression, variables?: VariablesMap): Promise<Boolean>;
160
+ export declare function evaluateAsBooleanAsync(expression: string | jsep.Expression, variables?: VariablesMap): Promise<boolean>;
161
161
  /**
162
162
  * `evaluateAsNumber()` is a variant of {@link evaluate()} which only supports number results. Useful
163
163
  * if valid expression must return numeric values.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-expression-evaluator",
3
- "version": "6.3.1-pre.3106",
3
+ "version": "6.3.1-pre.3124",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Utilities for evaluating user-defined expressions",
6
6
  "type": "module",
package/src/evaluator.ts CHANGED
@@ -24,6 +24,7 @@ export { jsep };
24
24
 
25
25
  /** An object containing the variable to use when evaluating this expression */
26
26
  export type VariablesMap = {
27
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
27
28
  [key: string]: string | number | boolean | Function | RegExp | object | null | VariablesMap | Array<VariablesMap>;
28
29
  };
29
30
 
@@ -336,7 +337,7 @@ function defaultTypePredicate(result: unknown): result is DefaultEvaluateReturnT
336
337
  );
337
338
  }
338
339
 
339
- function booleanTypePredicate(result: unknown): result is Boolean {
340
+ function booleanTypePredicate(result: unknown): result is boolean {
340
341
  return typeof result === 'boolean';
341
342
  }
342
343