discord-slim
Advanced tools
Comparing version 2.1.8 to 2.1.9
@@ -6,3 +6,3 @@ "use strict"; | ||
const url_1 = require("url"); | ||
const QueryString = (params) => params ? '?' + String(new url_1.URLSearchParams(params)) : ''; | ||
const ParamString = (params) => String(new url_1.URLSearchParams(params)), QueryString = (params) => params ? '?' + ParamString(params) : ''; | ||
let defaultRequestOptions; | ||
@@ -180,3 +180,3 @@ const setDefaultRequestOptions = (requestOptions) => defaultRequestOptions = requestOptions; | ||
exports.OAuth2 = { | ||
TokenExchange: (params, requestOptions) => request_1.Request("POST", "/oauth2" + "/token", requestOptions ?? defaultRequestOptions, QueryString(params)), | ||
TokenExchange: (params, requestOptions) => request_1.Request("POST", "/oauth2" + "/token", requestOptions ?? defaultRequestOptions, ParamString(params)), | ||
GetCurrentApplicationInformation: (requestOptions) => request_1.Request("GET", "/oauth2" + "/applications" + "/@me", requestOptions ?? defaultRequestOptions), | ||
@@ -183,0 +183,0 @@ GetCurrentAuthorizationInformation: (requestOptions) => request_1.Request("GET", "/oauth2" + "/@me", requestOptions ?? defaultRequestOptions), |
{ | ||
"name": "discord-slim", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"description": "Lightweight Discord API library for Node.js.", | ||
@@ -5,0 +5,0 @@ "author": "Hanabishi", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
170246
0