repository-provider 30.0.0 → 30.0.1
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 +1 -1
- package/src/repository.mjs +2 -2
package/package.json
CHANGED
package/src/repository.mjs
CHANGED
|
@@ -401,10 +401,10 @@ export class Repository extends OwnedObject {
|
|
|
401
401
|
* @param {Object} options
|
|
402
402
|
* @return {Hook} newly created hook
|
|
403
403
|
*/
|
|
404
|
-
addHook(name,
|
|
404
|
+
addHook(name, options) {
|
|
405
405
|
return (
|
|
406
406
|
this.#hooks.find(hook => hook.name == name) ||
|
|
407
|
-
new this.hookClass(this, name,
|
|
407
|
+
new this.hookClass(this, name, options)
|
|
408
408
|
);
|
|
409
409
|
}
|
|
410
410
|
|