@vertexvis/api-client-node 0.22.2 → 0.22.4

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.
@@ -61,7 +61,7 @@ export function createPartFromFile(_a) {
61
61
  : undefined;
62
62
  const pollRes = yield pollQueuedJob({
63
63
  id: queuedId,
64
- getQueuedJob: (id) => client.translationInspections.getQueuedTranslation({ id }),
64
+ getQueuedJob: (id) => client.translationInspections.getQueuedTranslationJob({ id }),
65
65
  polling,
66
66
  });
67
67
  if (isPollError(pollRes.res))
@@ -68,7 +68,8 @@ export function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polli
68
68
  }
69
69
  let attempts = 1;
70
70
  let backoffMs = (_a = backoff === null || backoff === void 0 ? void 0 : backoff[attempts]) !== null && _a !== void 0 ? _a : 0;
71
- const pollRes = yield poll(attempts);
71
+ // eslint-disable-next-line prefer-const
72
+ let pollRes = yield poll(attempts);
72
73
  /* eslint-disable no-await-in-loop */
73
74
  while (!completeJob(pollRes.res) &&
74
75
  (allowed404(allow404, pollRes.status) ||
@@ -78,7 +79,7 @@ export function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polli
78
79
  attempts += 1;
79
80
  backoffMs = (_b = backoff === null || backoff === void 0 ? void 0 : backoff[attempts]) !== null && _b !== void 0 ? _b : backoffMs;
80
81
  yield delay(intervalMs + backoffMs);
81
- yield poll(attempts);
82
+ pollRes = yield poll(attempts);
82
83
  }
83
84
  /* eslint-enable no-await-in-loop */
84
85
  // At this point, the result is one of the following,
@@ -1 +1 @@
1
- export declare const version = "0.22.1";
1
+ export declare const version = "0.22.4";
@@ -1 +1 @@
1
- export const version = '0.22.1';
1
+ export const version = '0.22.4';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/api-client-node",
3
- "version": "0.22.2",
3
+ "version": "0.22.4",
4
4
  "description": "The Vertex REST API client for Node.js.",
5
5
  "license": "MIT",
6
6
  "author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
@@ -33,7 +33,7 @@
33
33
  "typescript"
34
34
  ],
35
35
  "dependencies": {
36
- "axios": "^1.6.1",
36
+ "axios": "^1.6.4",
37
37
  "p-limit": "^3"
38
38
  },
39
39
  "devDependencies": {