Files
hello-world-javascript-action/node_modules/@octokit/request/dist-src/index.js

10 lines
327 B
JavaScript
Raw Normal View History

2019-08-06 20:56:08 -07:00
import { endpoint } from "@octokit/endpoint";
2019-09-06 15:17:38 -07:00
import { getUserAgent } from "universal-user-agent";
2019-08-06 20:56:08 -07:00
import { VERSION } from "./version";
import withDefaults from "./with-defaults";
export const request = withDefaults(endpoint, {
headers: {
2022-04-05 10:05:12 +10:00
"user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`,
},
2019-08-06 20:56:08 -07:00
});