Add octokit

This commit is contained in:
Rachael Sewell
2019-08-06 20:56:08 -07:00
parent ba3261b69d
commit 332696c680
122 changed files with 55351 additions and 0 deletions

13
node_modules/@octokit/endpoint/dist-src/with-defaults.js generated vendored Executable file
View File

@@ -0,0 +1,13 @@
import { endpointWithDefaults } from "./endpoint-with-defaults";
import { merge } from "./merge";
import { parse } from "./parse";
export function withDefaults(oldDefaults, newDefaults) {
const DEFAULTS = merge(oldDefaults, newDefaults);
const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
return Object.assign(endpoint, {
DEFAULTS,
defaults: withDefaults.bind(null, DEFAULTS),
merge: merge.bind(null, DEFAULTS),
parse
});
}