File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- import getUserAgent from "universal-user-agent" ;
1+ import { getUserAgent } from "universal-user-agent" ;
22import { Collection , HookCollection } from "before-after-hook" ;
33import { request } from "@octokit/request" ;
4- import { graphql } from "@octokit/graphql" ;
4+ import { graphql , withCustomRequest } from "@octokit/graphql" ;
55
66import { OctokitOptions , Parameters , Plugin } from "./types" ;
77import { VERSION } from "./version" ;
@@ -62,7 +62,7 @@ export class Octokit {
6262 }
6363
6464 this . request = request . defaults ( requestDefaults ) ;
65- this . graphql = graphql . defaults ( requestDefaults ) ;
65+ this . graphql = withCustomRequest ( this . request ) . defaults ( requestDefaults ) ;
6666 this . hook = hook ;
6767
6868 // apply plugins
Original file line number Diff line number Diff line change 1- import getUserAgent from "universal-user-agent" ;
1+ import { getUserAgent } from "universal-user-agent" ;
22import fetchMock , { MockMatcherFunction } from "fetch-mock" ;
33import { Response } from "node-fetch" ;
44import {
Original file line number Diff line number Diff line change 1- import getUserAgent from "universal-user-agent" ;
1+ import { getUserAgent } from "universal-user-agent" ;
22import fetchMock from "fetch-mock" ;
33
44import { Octokit } from "../src" ;
Original file line number Diff line number Diff line change 1- import getUserAgent from "universal-user-agent" ;
1+ import { getUserAgent } from "universal-user-agent" ;
22import fetchMock from "fetch-mock" ;
33
44import { Octokit } from "../src" ;
Original file line number Diff line number Diff line change 1- import getUserAgent from "universal-user-agent" ;
1+ import { getUserAgent } from "universal-user-agent" ;
22import fetchMock from "fetch-mock" ;
33
44import { Octokit } from "../src" ;
You can’t perform that action at this time.
0 commit comments