mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-11-02 07:48:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			411 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			411 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import getUserAgent from "universal-user-agent";
 | 
						|
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: []
 | 
						|
    }
 | 
						|
};
 |