aws-delivlib
Version:
A fabulous library for defining continuous pipelines for building, testing and releasing code libraries.
16 lines (15 loc) • 447 B
JavaScript
import { auth } from "./auth";
import { hook } from "./hook";
const createUnauthenticatedAuth = function createUnauthenticatedAuth2(options) {
if (!options || !options.reason) {
throw new Error(
"[@octokit/auth-unauthenticated] No reason passed to createUnauthenticatedAuth"
);
}
return Object.assign(auth.bind(null, options.reason), {
hook: hook.bind(null, options.reason)
});
};
export {
createUnauthenticatedAuth
};