First upload version 0.0.1
This commit is contained in:
16
node_modules/@octokit/oauth-app/dist-src/emit-event.js
generated
vendored
Normal file
16
node_modules/@octokit/oauth-app/dist-src/emit-event.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
async function emitEvent(state, context) {
|
||||
const { name, action } = context;
|
||||
if (state.eventHandlers[`${name}.${action}`]) {
|
||||
for (const eventHandler of state.eventHandlers[`${name}.${action}`]) {
|
||||
await eventHandler(context);
|
||||
}
|
||||
}
|
||||
if (state.eventHandlers[name]) {
|
||||
for (const eventHandler of state.eventHandlers[name]) {
|
||||
await eventHandler(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
export {
|
||||
emitEvent
|
||||
};
|
||||
Reference in New Issue
Block a user