17 lines
342 B
JavaScript
17 lines
342 B
JavaScript
// TODO: Remove this file in Babel 8
|
|
|
|
"use strict";
|
|
|
|
const hook = require("./hook");
|
|
const { LocalClient } = require("./worker-client");
|
|
|
|
const client = new LocalClient();
|
|
function register(opts = {}) {
|
|
return hook.register(client, { ...opts });
|
|
}
|
|
|
|
module.exports = Object.assign(register, {
|
|
revert: hook.revert,
|
|
default: register,
|
|
});
|