github-pages-deploy-action/node_modules/@octokit/request/dist-src/index.js

10 lines
327 B
JavaScript
Raw Normal View History

2020-01-28 13:08:03 +08:00
import { endpoint } from "@octokit/endpoint";
import { getUserAgent } from "universal-user-agent";
import { VERSION } from "./version";
import withDefaults from "./with-defaults";
export const request = withDefaults(endpoint, {
headers: {
2020-06-06 22:11:37 +08:00
"user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`,
},
2020-01-28 13:08:03 +08:00
});