@tstdl/base 0.92.115 → 0.92.116

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.
Files changed (2) hide show
  1. package/ai/ai.service.js +1 -1
  2. package/package.json +2 -2
package/ai/ai.service.js CHANGED
@@ -246,7 +246,7 @@ Always output the content and tags in ${options?.targetLanguage ?? 'the same lan
246
246
  break;
247
247
  }
248
248
  catch (error) {
249
- if ((i < 20) && isError(error) && (error['status'] == 429)) {
249
+ if ((i < 20) && isError(error) && ((error['status'] == 429) || (error['status'] == 503))) {
250
250
  this.#logger.verbose('429 Too Many Requests - trying again in 15 seconds');
251
251
  const canceled = await cancelableTimeout(15 * millisecondsPerSecond, getShutdownSignal());
252
252
  if (!canceled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.92.115",
3
+ "version": "0.92.116",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -137,7 +137,7 @@
137
137
  "luxon": "^3.6",
138
138
  "reflect-metadata": "^0.2",
139
139
  "rxjs": "^7.8",
140
- "ts-pattern": "^5.6",
140
+ "ts-pattern": "^5.7",
141
141
  "type-fest": "4.37"
142
142
  },
143
143
  "devDependencies": {