import { getUserAgent } from "universal-user-agent" ; import { EndpointDefaults } from "@octokit/types" ; import { VERSION } from "./version" ; const userAgent = `octokit-endpoint.js/${ VERSION } ${ getUserAgent ( ) }` ; export const DEFAULTS = { method : "GET" , baseUrl : "https://api.github.com" , headers : { accept : "application/vnd.github.v3+json" , "user-agent" : userAgent , } , mediaType : { format : "" , previews : [ ] as string [ ] , } , } ;