@taskcluster/client-web 97.0.1 → 98.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 +2 -2
- package/src/clients/Hooks.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taskcluster/client-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "98.0.0",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"author": "Eli Perelman <eli@eliperelman.com>",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"chai-as-promised": "^8.0.2",
|
|
19
19
|
"crypto-js": "^4.2.0",
|
|
20
20
|
"dotenv": "^16.5.0",
|
|
21
|
-
"eslint": "^
|
|
21
|
+
"eslint": "^10.0.3",
|
|
22
22
|
"karma": "^6.4.4",
|
|
23
23
|
"karma-cli": "^2.0.0",
|
|
24
24
|
"karma-coverage": "^2.2.1",
|
package/src/clients/Hooks.js
CHANGED
|
@@ -123,6 +123,8 @@ export default class Hooks extends Client {
|
|
|
123
123
|
// The HTTP payload must match the hooks `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
|
+
// Optionally, a `taskId` can be provided in the payload which the hook task
|
|
127
|
+
// will use. It must be unique and follow the slugid format.
|
|
126
128
|
/* eslint-enable max-len */
|
|
127
129
|
triggerHook(...args) {
|
|
128
130
|
this.validate(this.triggerHook.entry, args);
|
|
@@ -152,6 +154,8 @@ export default class Hooks extends Client {
|
|
|
152
154
|
// The HTTP payload must match the hooks `triggerSchema`. If it does, it is
|
|
153
155
|
// provided as the `payload` property of the JSON-e context used to render the
|
|
154
156
|
// task template.
|
|
157
|
+
// Optionally, a `taskId` can be provided in the payload which the hook task
|
|
158
|
+
// will use. It must be unique and follow the slugid format.
|
|
155
159
|
/* eslint-enable max-len */
|
|
156
160
|
triggerHookWithToken(...args) {
|
|
157
161
|
this.validate(this.triggerHookWithToken.entry, args);
|