@taskcluster/client-web 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskcluster/client-web",
3
- "version": "100.2.0",
3
+ "version": "100.4.0",
4
4
  "main": "src/index.js",
5
5
  "author": "Eli Perelman <eli@eliperelman.com>",
6
6
  "license": "MPL-2.0",
@@ -13,7 +13,7 @@
13
13
  "test": "NODE_OPTIONS='--openssl-legacy-provider --network-family-autoselection=false' karma start --single-run"
14
14
  },
15
15
  "devDependencies": {
16
- "@babel/core": "^7.29.0",
16
+ "@babel/core": "^7.29.7",
17
17
  "chai": "^6.2.2",
18
18
  "chai-as-promised": "^8.0.2",
19
19
  "crypto-js": "^4.2.0",
@@ -28,7 +28,7 @@
28
28
  "karma-webpack": "^4.0.2",
29
29
  "query-string": "^7.0.0",
30
30
  "webpack": "^4.47.0",
31
- "webpack-cli": "^4.0.0"
31
+ "webpack-cli": "^7.0.2"
32
32
  },
33
33
  "dependencies": {
34
34
  "crypto-js": "^4.2.0",
@@ -381,7 +381,7 @@ export default class Auth extends Client {
381
381
  // Get a temporary token suitable for use connecting to a
382
382
  // [websocktunnel](https://github.com/taskcluster/taskcluster/tree/main/tools/websocktunnel) server.
383
383
  // The resulting token will only be accepted by servers with a matching audience
384
- // value. Reaching such a server is the callers responsibility. In general,
384
+ // value. Reaching such a server is the caller's responsibility. In general,
385
385
  // a server URL or set of URLs should be provided to the caller as configuration
386
386
  // along with the audience value.
387
387
  // The token is valid for a limited time (on the scale of hours). Callers should
@@ -120,7 +120,7 @@ export default class Hooks extends Client {
120
120
  }
121
121
  /* eslint-disable max-len */
122
122
  // This endpoint will trigger the creation of a task from a hook definition.
123
- // The HTTP payload must match the hooks `triggerSchema`. If it does, it is
123
+ // The HTTP payload must match the hook's `triggerSchema`. If it does, it is
124
124
  // provided as the `payload` property of the JSON-e context used to render the
125
125
  // task template.
126
126
  // Optionally, a `taskId` can be provided in the payload which the hook task
@@ -151,7 +151,7 @@ export default class Hooks extends Client {
151
151
  }
152
152
  /* eslint-disable max-len */
153
153
  // This endpoint triggers a defined hook with a valid token.
154
- // The HTTP payload must match the hooks `triggerSchema`. If it does, it is
154
+ // The HTTP payload must match the hook's `triggerSchema`. If it does, it is
155
155
  // provided as the `payload` property of the JSON-e context used to render the
156
156
  // task template.
157
157
  // Optionally, a `taskId` can be provided in the payload which the hook task
@@ -77,10 +77,10 @@ export default class Secrets extends Client {
77
77
  /* eslint-disable max-len */
78
78
  // List the names of all secrets.
79
79
  // By default this end-point will try to return up to 1000 secret names in one
80
- // request. But it **may return less**, even if more tasks are available.
80
+ // request. But it **may return less**, even if more secrets are available.
81
81
  // It may also return a `continuationToken` even though there are no more
82
82
  // results. However, you can only be sure to have seen all results if you
83
- // keep calling `listTaskGroup` with the last `continuationToken` until you
83
+ // keep calling `list` with the last `continuationToken` until you
84
84
  // get a result without a `continuationToken`.
85
85
  // If you are not interested in listing all the members at once, you may
86
86
  // use the query-string option `limit` to return fewer.
package/src/emitter.js CHANGED
@@ -53,6 +53,8 @@ export default class Emitter {
53
53
  return;
54
54
  }
55
55
 
56
- handlers.forEach(handler => handler(...args));
56
+ handlers.forEach(handler => {
57
+ handler(...args);
58
+ });
57
59
  }
58
60
  }