Comparing version 1.1.2 to 1.1.3
@@ -6,3 +6,3 @@ import { Uri, HttpMethod } from '../../../../@types'; | ||
headers?: object | Headers; | ||
params?: URLSearchParams; | ||
params?: object; | ||
} | ||
@@ -9,0 +9,0 @@ declare const _default: (options: FetchFromUriOptions) => Promise<any>; |
@@ -14,4 +14,5 @@ "use strict"; | ||
const { oauthUri, clientId, clientSecret } = options; | ||
const params = new URLSearchParams(); | ||
params.append('grant_type', 'client_credentials'); | ||
const params = { | ||
grant_type: 'client_credentials', | ||
}; | ||
const headers = { | ||
@@ -18,0 +19,0 @@ Authorization: `Basic ${base64.encode(`${clientId}:${clientSecret}`)}`, |
{ | ||
"name": "blizzapi", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Flexible and feature-rich Node.js library for Blizzard Battle.net API", | ||
@@ -45,14 +45,14 @@ "homepage": "https://blizzapi.lukem.net", | ||
"@types/base-64": "0.1.3", | ||
"@types/jest": "24.0.18", | ||
"@types/node": "12.7.4", | ||
"@types/jest": "24.0.24", | ||
"@types/node": "12.12.21", | ||
"jest": "24.9.0", | ||
"prettier": "1.18.2", | ||
"prettier": "1.19.1", | ||
"rimraf": "3.0.0", | ||
"ts-jest": "24.0.2", | ||
"ts-jest": "24.2.0", | ||
"tslint": "5.19.0", | ||
"tslint-config-airbnb": "5.11.1", | ||
"tslint-config-airbnb": "5.11.2", | ||
"tslint-config-prettier": "1.18.0", | ||
"tslint-eslint-rules": "5.4.0", | ||
"tslint-immutable": "6.0.1", | ||
"tslint-plugin-prettier": "2.0.1", | ||
"tslint-plugin-prettier": "2.1.0", | ||
"typescript": "3.6.2" | ||
@@ -59,0 +59,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1000
88376