suitest-js-api 4.0.8 → 4.0.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suitest-js-api",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
  "main": "index.js",
5
5
  "repository": "github:SuitestAutomation/suitest-js-api",
6
6
  "author": "Suitest <hello@suite.st>",
@@ -99,7 +99,7 @@
99
99
  },
100
100
  "dependencies": {
101
101
  "@suitest/smst-to-text": "^4.28.5",
102
- "@suitest/translate": "^4.28.5",
102
+ "@suitest/translate": "^4.29.0",
103
103
  "@types/node": "^14.0.10",
104
104
  "ajv": "^6.12.2",
105
105
  "ansi-regex": "^5.0.0",
@@ -122,7 +122,12 @@ export interface StringModifiers<T> extends Equalable<T>, Containable<T> {
122
122
  endsWith(value: string): T;
123
123
  }
124
124
 
125
- export type JSExpression = ((value: any) => boolean) | string;
125
+ export type JSExpression =
126
+ | ((value: any) => boolean) // Synchronous comparison
127
+ | ((value: any, callback: (error: Error | null, result: boolean) => void) => void) // Callback function
128
+ | ((value: any) => Promise<boolean>) // Promise (includes async/await)
129
+ | string; // String form
130
+
126
131
  export interface MatchJSModifiers<T> {
127
132
  matchJS(value: JSExpression): T;
128
133
  matchesJS(value: JSExpression): T;