@taskcluster/client 110.1.0 → 112.0.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.
- package/package.json +3 -3
- package/src/apis.js +1 -1
- package/src/client.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taskcluster/client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "112.0.0",
|
|
4
4
|
"author": "Jonas Finnemann Jensen <jopsen@gmail.com>",
|
|
5
5
|
"description": "Client for interfacing taskcluster components",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"debug": "^4.1.1",
|
|
14
|
-
"got": "^
|
|
14
|
+
"got": "^16.0.0",
|
|
15
15
|
"hawk": "^9.0.1",
|
|
16
16
|
"lodash": "^4.17.4",
|
|
17
17
|
"slugid": "^5.0.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"http-proxy": "^1.18.0",
|
|
22
|
-
"mocha": "^
|
|
22
|
+
"mocha": "^12.0.2",
|
|
23
23
|
"nock": "^14.0.13"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
package/src/apis.js
CHANGED
|
@@ -2137,7 +2137,7 @@ export default {
|
|
|
2137
2137
|
"since"
|
|
2138
2138
|
],
|
|
2139
2139
|
"route": "/purge-cache/<workerPoolId>",
|
|
2140
|
-
"scopes": "purge-cache:purge-requests
|
|
2140
|
+
"scopes": "purge-cache:purge-requests:<workerPoolId>",
|
|
2141
2141
|
"stability": "stable",
|
|
2142
2142
|
"title": "Open Purge Requests for a worker pool",
|
|
2143
2143
|
"type": "function"
|
package/src/client.js
CHANGED
|
@@ -428,6 +428,9 @@ export const createClient = (reference, name) => {
|
|
|
428
428
|
err.body = res.body;
|
|
429
429
|
err.code = res.body.code || 'UnknownError';
|
|
430
430
|
err.statusCode = res.statusCode;
|
|
431
|
+
if (res.statusCode === 503 && err.code === 'ServiceUnavailable') {
|
|
432
|
+
err.overCapacity = true;
|
|
433
|
+
}
|
|
431
434
|
|
|
432
435
|
// Decide if we should retry or just throw
|
|
433
436
|
if (
|