@skyramp/skyramp 1.2.27 → 1.2.28

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": "@skyramp/skyramp",
3
- "version": "1.2.27",
3
+ "version": "1.2.28",
4
4
  "description": "module for leveraging skyramp cli functionality",
5
5
  "scripts": {
6
6
  "lint": "eslint 'src/**/*.js' 'src/**/*.ts' --fix",
@@ -239,7 +239,11 @@ class SkyrampPlaywrightLocator {
239
239
  async execute() {
240
240
  debug(` execute ${ this._locator}.${this.execFname} ${this.execParam ?? ''} ${this.execArgs ?? ''}`)
241
241
  const func = this._locator[this.execFname];
242
- return func.call(this._locator, this.execParam, this.execArgs);
242
+ if (this.execParam !== null && this.execParam !== undefined) {
243
+ return func.call(this._locator, this.execParam, ...this.execArgs);
244
+ } else {
245
+ return func.call(this._locator, ...this.execArgs);
246
+ }
243
247
  }
244
248
 
245
249
  generateLLMErrors() {