forked from mirrors/action-gh-release
node_modules
This commit is contained in:
parent
2984051a42
commit
b28d8151ad
445 changed files with 83959 additions and 1 deletions
13
node_modules/@octokit/graphql/lib/with-defaults.js
generated
vendored
Normal file
13
node_modules/@octokit/graphql/lib/with-defaults.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
module.exports = withDefaults
|
||||
|
||||
const graphql = require('./graphql')
|
||||
|
||||
function withDefaults (request, newDefaults) {
|
||||
const newRequest = request.defaults(newDefaults)
|
||||
const newApi = function (query, options) {
|
||||
return graphql(newRequest, query, options)
|
||||
}
|
||||
|
||||
newApi.defaults = withDefaults.bind(null, newRequest)
|
||||
return newApi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue