🎉 Initial commit

This commit is contained in:
Simon Schneegans
2020-08-15 12:02:21 +02:00
parent b8f4f17c5a
commit ed18a71a87
364 changed files with 87551 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
import { request as Request } from "@octokit/request";
import { graphql } from "./graphql";
export function withDefaults(request, newDefaults) {
const newRequest = request.defaults(newDefaults);
const newApi = (query, options) => {
return graphql(newRequest, query, options);
};
return Object.assign(newApi, {
defaults: withDefaults.bind(null, newRequest),
endpoint: Request.endpoint,
});
}