suitest-js-api 4.2.0 → 4.2.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.
@@ -89,6 +89,10 @@ const webSocketsFactory = (self) => {
89
89
  throw new SuitestError(texts.testingMinutesExceededMessage());
90
90
  }
91
91
 
92
+ if (content.type === 'releasingDevice') {
93
+ throw new SuitestError(texts.releasingDeviceMessage());
94
+ }
95
+
92
96
  if (content.type === 'executorStopped') {
93
97
  // Notify user about executor being stopped
94
98
  throw new SuitestError(texts.executorStopped());
package/lib/texts.js CHANGED
@@ -164,6 +164,8 @@ ${leaves}`,
164
164
 
165
165
  testingMinutesExceededMessage: () => 'You reached the limit of testing minutes specified by your subscription plan. If you need more minutes, contact us at sales@suite.st or upgrade your subscription.',
166
166
 
167
+ releasingDeviceMessage: () => 'The device has been disconnected.',
168
+
167
169
  // ipc
168
170
  ipcFailedToCreateServer: template`Failed to create IPC server. Port ${0} is busy.`,
169
171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suitest-js-api",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "main": "index.js",
5
5
  "repository": "github:SuitestAutomation/suitest-js-api",
6
6
  "author": "Suitest <hello@suite.st>",