change-string-case/node_modules/@octokit/request/dist-src/index.js

13 lines
332 B
JavaScript
Raw Normal View History

2022-11-04 00:55:07 +08:00
import { endpoint } from "@octokit/endpoint";
import { getUserAgent } from "universal-user-agent";
import { VERSION } from "./version";
import withDefaults from "./with-defaults";
2023-10-26 04:27:07 +08:00
const request = withDefaults(endpoint, {
headers: {
"user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`
}
2022-11-04 00:55:07 +08:00
});
2023-10-26 04:27:07 +08:00
export {
request
};