build(deps): commit production deps

This commit is contained in:
marocchino 2019-11-21 09:59:42 +09:00
parent cb9470fc12
commit e4492afca8
No known key found for this signature in database
GPG key ID: AFF521DBDB122570
450 changed files with 123635 additions and 2 deletions

28
node_modules/before-after-hook/lib/register.js generated vendored Normal file
View file

@ -0,0 +1,28 @@
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)()
})
}