pacc 5.0.0 → 5.1.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/package.json +1 -1
- package/src/expression.mjs +2 -0
- package/types/expression.d.mts +4 -0
package/package.json
CHANGED
package/src/expression.mjs
CHANGED
|
@@ -314,6 +314,8 @@ export const globals = {
|
|
|
314
314
|
},
|
|
315
315
|
min: (a, b) => (a < b ? a : b),
|
|
316
316
|
max: (a, b) => (a > b ? a : b),
|
|
317
|
+
uppercase: (a) => a.toUpperCase(),
|
|
318
|
+
lowercase: (a) => a.toLowerCase(),
|
|
317
319
|
substring: (s, a, b) => s.substring(a, b),
|
|
318
320
|
length: s => s.length
|
|
319
321
|
};
|
package/types/expression.d.mts
CHANGED
|
@@ -4,6 +4,8 @@ export function parse(input: any, context?: {
|
|
|
4
4
|
in: (a: any, b: any) => boolean;
|
|
5
5
|
min: (a: any, b: any) => any;
|
|
6
6
|
max: (a: any, b: any) => any;
|
|
7
|
+
uppercase: (a: any) => any;
|
|
8
|
+
lowercase: (a: any) => any;
|
|
7
9
|
substring: (s: any, a: any, b: any) => any;
|
|
8
10
|
length: (s: any) => any;
|
|
9
11
|
};
|
|
@@ -13,6 +15,8 @@ export namespace globals {
|
|
|
13
15
|
export { _in as in };
|
|
14
16
|
export function min(a: any, b: any): any;
|
|
15
17
|
export function max(a: any, b: any): any;
|
|
18
|
+
export function uppercase(a: any): any;
|
|
19
|
+
export function lowercase(a: any): any;
|
|
16
20
|
export function substring(s: any, a: any, b: any): any;
|
|
17
21
|
export function length(s: any): any;
|
|
18
22
|
}
|