@taskcluster/client 100.2.0 → 100.4.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 +2 -2
- package/src/apis.js +4 -4
- package/src/client.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taskcluster/client",
|
|
3
|
-
"version": "100.
|
|
3
|
+
"version": "100.4.0",
|
|
4
4
|
"author": "Jonas Finnemann Jensen <jopsen@gmail.com>",
|
|
5
5
|
"description": "Client for interfacing taskcluster components",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"nock": "^14.0.13"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": "24.
|
|
26
|
+
"node": "24.16.0"
|
|
27
27
|
},
|
|
28
28
|
"type": "module",
|
|
29
29
|
"files": [
|
package/src/apis.js
CHANGED
|
@@ -576,7 +576,7 @@ export default {
|
|
|
576
576
|
"wstClient"
|
|
577
577
|
],
|
|
578
578
|
"category": "Websocktunnel Credentials",
|
|
579
|
-
"description": "Get a temporary token suitable for use connecting to a\n[websocktunnel](https://github.com/taskcluster/taskcluster/tree/main/tools/websocktunnel) server.\n\nThe resulting token will only be accepted by servers with a matching audience\nvalue. Reaching such a server is the
|
|
579
|
+
"description": "Get a temporary token suitable for use connecting to a\n[websocktunnel](https://github.com/taskcluster/taskcluster/tree/main/tools/websocktunnel) server.\n\nThe resulting token will only be accepted by servers with a matching audience\nvalue. Reaching such a server is the caller's responsibility. In general,\na server URL or set of URLs should be provided to the caller as configuration\nalong with the audience value.\n\nThe token is valid for a limited time (on the scale of hours). Callers should\nrefresh it before expiration.",
|
|
580
580
|
"method": "get",
|
|
581
581
|
"name": "websocktunnelToken",
|
|
582
582
|
"output": "v1/websocktunnel-token-response.json#",
|
|
@@ -1352,7 +1352,7 @@ export default {
|
|
|
1352
1352
|
"hookId"
|
|
1353
1353
|
],
|
|
1354
1354
|
"category": "Hooks",
|
|
1355
|
-
"description": "This endpoint will trigger the creation of a task from a hook definition.\n\nThe HTTP payload must match the
|
|
1355
|
+
"description": "This endpoint will trigger the creation of a task from a hook definition.\n\nThe HTTP payload must match the hook's `triggerSchema`. If it does, it is\nprovided as the `payload` property of the JSON-e context used to render the\ntask template.\n\nOptionally, a `taskId` can be provided in the payload which the hook task\nwill use. It must be unique and follow the slugid format.",
|
|
1356
1356
|
"input": "v1/trigger-hook.json#",
|
|
1357
1357
|
"method": "post",
|
|
1358
1358
|
"name": "triggerHook",
|
|
@@ -1408,7 +1408,7 @@ export default {
|
|
|
1408
1408
|
"token"
|
|
1409
1409
|
],
|
|
1410
1410
|
"category": "Hooks",
|
|
1411
|
-
"description": "This endpoint triggers a defined hook with a valid token.\n\nThe HTTP payload must match the
|
|
1411
|
+
"description": "This endpoint triggers a defined hook with a valid token.\n\nThe HTTP payload must match the hook's `triggerSchema`. If it does, it is\nprovided as the `payload` property of the JSON-e context used to render the\ntask template.\n\nOptionally, a `taskId` can be provided in the payload which the hook task\nwill use. It must be unique and follow the slugid format.",
|
|
1412
1412
|
"input": "v1/trigger-hook.json#",
|
|
1413
1413
|
"method": "post",
|
|
1414
1414
|
"name": "triggerHookWithToken",
|
|
@@ -4088,7 +4088,7 @@ export default {
|
|
|
4088
4088
|
"args": [
|
|
4089
4089
|
],
|
|
4090
4090
|
"category": "Secrets Service",
|
|
4091
|
-
"description": "List the names of all secrets.\n\nBy default this end-point will try to return up to 1000 secret names in one\nrequest. But it **may return less**, even if more
|
|
4091
|
+
"description": "List the names of all secrets.\n\nBy default this end-point will try to return up to 1000 secret names in one\nrequest. But it **may return less**, even if more secrets are available.\nIt may also return a `continuationToken` even though there are no more\nresults. However, you can only be sure to have seen all results if you\nkeep calling `list` with the last `continuationToken` until you\nget a result without a `continuationToken`.\n\nIf you are not interested in listing all the members at once, you may\nuse the query-string option `limit` to return fewer.",
|
|
4092
4092
|
"method": "get",
|
|
4093
4093
|
"name": "list",
|
|
4094
4094
|
"output": "v1/secret-list.json#",
|
package/src/client.js
CHANGED
|
@@ -302,7 +302,7 @@ export const createClient = function(reference, name) {
|
|
|
302
302
|
reference.entries.filter(e => e.type === 'function').forEach(e => this.fakeCalls[e.name] = []);
|
|
303
303
|
// Throw an error if creating fakes in production
|
|
304
304
|
if (process.env.NODE_ENV === 'production') {
|
|
305
|
-
new Error('@taskcluster/client object created in "fake" mode, when NODE_ENV == "production"');
|
|
305
|
+
throw new Error('@taskcluster/client object created in "fake" mode, when NODE_ENV == "production"');
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
};
|