1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-19 01:41:19 +01:00

Remove node modules

This commit is contained in:
Russell Banks
2023-12-12 09:31:29 +00:00
committed by GitHub
parent 016d9d2047
commit b198d6d0c9
416 changed files with 0 additions and 97766 deletions

View File

@@ -1,27 +0,0 @@
module.exports = register;
function register(state, name, method, options) {
if (typeof method !== "function") {
throw new Error("method for before hook must be a function");
}
if (!options) {
options = {};
}
if (Array.isArray(name)) {
return name.reverse().reduce(function (callback, name) {
return register.bind(null, state, name, callback, options);
}, method)();
}
return Promise.resolve().then(function () {
if (!state.registry[name]) {
return method(options);
}
return state.registry[name].reduce(function (method, registered) {
return registered.hook.bind(null, method, options);
}, method)();
});
}