askui 0.19.0 → 0.20.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.
@@ -126,6 +126,9 @@ class UiControlClient extends dsl_1.ApiCommands {
126
126
  }
127
127
  getAIElementsByNames(names) {
128
128
  return __awaiter(this, void 0, void 0, function* () {
129
+ if (names.length === 0) {
130
+ return [];
131
+ }
129
132
  // eslint-disable-next-line max-len
130
133
  const workspaceAIElementCollection = yield ai_element_collection_1.AIElementCollection.collectForWorkspaceId(this.workspaceId);
131
134
  return workspaceAIElementCollection.getByNames(names);
@@ -123,6 +123,9 @@ export class UiControlClient extends ApiCommands {
123
123
  }
124
124
  getAIElementsByNames(names) {
125
125
  return __awaiter(this, void 0, void 0, function* () {
126
+ if (names.length === 0) {
127
+ return [];
128
+ }
126
129
  // eslint-disable-next-line max-len
127
130
  const workspaceAIElementCollection = yield AIElementCollection.collectForWorkspaceId(this.workspaceId);
128
131
  return workspaceAIElementCollection.getByNames(names);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askui",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "license": "MIT",
5
5
  "author": "askui GmbH <info@askui.com> (http://www.askui.com/)",
6
6
  "description": "Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on",