suitest-js-api 4.0.9 → 4.0.11

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.
@@ -85,6 +85,10 @@ const webSocketsFactory = (self) => {
85
85
  throw new SuitestError(texts.maxTestExecutionTimeExceededMessage());
86
86
  }
87
87
 
88
+ if (content.type === 'minutesExceeded') {
89
+ throw new SuitestError(texts.testingMinutesExceededMessage());
90
+ }
91
+
88
92
  if (content.type === 'executorStopped') {
89
93
  // Notify user about executor being stopped
90
94
  throw new SuitestError(texts.executorStopped());
package/lib/texts.js CHANGED
@@ -162,6 +162,8 @@ ${leaves}`,
162
162
 
163
163
  maxTestExecutionTimeExceededMessage: () => 'Session execution time limit exceeded.',
164
164
 
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
+
165
167
  // ipc
166
168
  ipcFailedToCreateServer: template`Failed to create IPC server. Port ${0} is busy.`,
167
169
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suitest-js-api",
3
- "version": "4.0.9",
3
+ "version": "4.0.11",
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",