| 1 | // TODO: Remove this file in Babel 8 |
| 2 | |
| 3 | "use strict"; |
| 4 | |
| 5 | const hook = require("./hook"); |
| 6 | const { LocalClient } = require("./worker-client"); |
| 7 | |
| 8 | const client = new LocalClient(); |
| 9 | function register(opts = {}) { |
| 10 | return hook.register(client, { ...opts }); |
| 11 | } |
| 12 | |
| 13 | module.exports = Object.assign(register, { |
| 14 | revert: hook.revert, |
| 15 | default: register, |
| 16 | }); |