change-string-case/node_modules/@octokit/auth-token/dist-src/hook.js
Alex Szczuczko d0603cd0a7 npm install
2023-10-25 14:27:07 -06:00

13 lines
318 B
JavaScript

import { withAuthorizationPrefix } from "./with-authorization-prefix";
async function hook(token, request, route, parameters) {
const endpoint = request.endpoint.merge(
route,
parameters
);
endpoint.headers.authorization = withAuthorizationPrefix(token);
return request(endpoint);
}
export {
hook
};