github-graphql-api
Advanced tools
Comparing version 1.0.2 to 1.0.3
/// <reference types="node" /> | ||
import { Dict, Options } from './types'; | ||
import { URL } from 'url'; | ||
import { UrlWithStringQuery } from 'url'; | ||
export declare class GitHub { | ||
token: string; | ||
apiUrl: string; | ||
url: URL; | ||
url: UrlWithStringQuery; | ||
constructor(config: Options); | ||
@@ -9,0 +9,0 @@ query(query: string, variables?: Dict<any>): Promise<any>; |
@@ -46,3 +46,3 @@ "use strict"; | ||
this.apiUrl = config.apiUrl; | ||
this.url = new url_1.URL(this.apiUrl); | ||
this.url = url_1.parse(this.apiUrl); | ||
} | ||
@@ -49,0 +49,0 @@ GitHub.prototype.query = function (query, variables) { |
{ | ||
"name": "github-graphql-api", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A node client for the GitHub GraphQL API with minimal dependencies created with TypeScript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
13751