github.com/nektos/act@v0.2.63-0.20240520024548-8acde99bfa9c/pkg/runner/testdata/actions/node12/node_modules/@octokit/graphql/dist-src/with-defaults.js (about) 1 import { request as Request } from "@octokit/request"; 2 import { graphql } from "./graphql"; 3 export function withDefaults(request, newDefaults) { 4 const newRequest = request.defaults(newDefaults); 5 const newApi = (query, options) => { 6 return graphql(newRequest, query, options); 7 }; 8 return Object.assign(newApi, { 9 defaults: withDefaults.bind(null, newRequest), 10 endpoint: Request.endpoint, 11 }); 12 }