pacc 4.27.0 → 4.27.1
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/package.json +1 -1
- package/src/expression.mjs +2 -1
- package/types/expression.d.mts +2 -0
package/package.json
CHANGED
package/src/expression.mjs
CHANGED
|
@@ -293,5 +293,6 @@ export function parse(input, context = { globals }) {
|
|
|
293
293
|
export const globals = {
|
|
294
294
|
min: (a, b) => (a < b ? a : b),
|
|
295
295
|
max: (a, b) => (a > b ? a : b),
|
|
296
|
-
substring: (s,a,b) => s.substring(a,b)
|
|
296
|
+
substring: (s, a, b) => s.substring(a, b),
|
|
297
|
+
length: s => s.length
|
|
297
298
|
};
|
package/types/expression.d.mts
CHANGED
|
@@ -4,10 +4,12 @@ export function parse(input: any, context?: {
|
|
|
4
4
|
min: (a: any, b: any) => any;
|
|
5
5
|
max: (a: any, b: any) => any;
|
|
6
6
|
substring: (s: any, a: any, b: any) => any;
|
|
7
|
+
length: (s: any) => any;
|
|
7
8
|
};
|
|
8
9
|
}): any;
|
|
9
10
|
export namespace globals {
|
|
10
11
|
function min(a: any, b: any): any;
|
|
11
12
|
function max(a: any, b: any): any;
|
|
12
13
|
function substring(s: any, a: any, b: any): any;
|
|
14
|
+
function length(s: any): any;
|
|
13
15
|
}
|