@twurple/api-call
Advanced tools
Comparing version 7.0.0-pre.2 to 7.0.0-pre.3
@@ -12,7 +12,19 @@ import { CustomError } from '@twurple/common'; | ||
constructor(_statusCode: number, statusText: string, _url: string, _method: string, _body: string, isJson: boolean); | ||
/** | ||
* The HTTP status code of the error. | ||
*/ | ||
get statusCode(): number; | ||
/** | ||
* The URL that was requested. | ||
*/ | ||
get url(): string; | ||
/** | ||
* The HTTP method that was used for the request. | ||
*/ | ||
get method(): string; | ||
/** | ||
* The body that was used for the request, as a string. | ||
*/ | ||
get body(): string; | ||
} | ||
//# sourceMappingURL=HttpStatusCodeError.d.ts.map |
@@ -17,11 +17,23 @@ "use strict"; | ||
} | ||
/** | ||
* The HTTP status code of the error. | ||
*/ | ||
get statusCode() { | ||
return this._statusCode; | ||
} | ||
/** | ||
* The URL that was requested. | ||
*/ | ||
get url() { | ||
return this._url; | ||
} | ||
/** | ||
* The HTTP method that was used for the request. | ||
*/ | ||
get method() { | ||
return this._method; | ||
} | ||
/** | ||
* The body that was used for the request, as a string. | ||
*/ | ||
get body() { | ||
@@ -28,0 +40,0 @@ return this._body; |
@@ -1,4 +0,2 @@ | ||
import type { TwitchApiCallType } from '../TwitchApiCallOptions'; | ||
/** @private */ | ||
export declare function getTwitchApiUrl(url: string, type: TwitchApiCallType): string; | ||
export {}; | ||
//# sourceMappingURL=url.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getTwitchApiUrl = void 0; | ||
/** @private */ | ||
/** @internal */ | ||
function getTwitchApiUrl(url, type) { | ||
@@ -6,0 +6,0 @@ switch (type) { |
{ | ||
"name": "@twurple/api-call", | ||
"version": "7.0.0-pre.2", | ||
"version": "7.0.0-pre.3", | ||
"publishConfig": { | ||
@@ -37,3 +37,3 @@ "access": "public" | ||
"@d-fischer/shared-utils": "^3.6.1", | ||
"@twurple/common": "7.0.0-pre.2", | ||
"@twurple/common": "7.0.0-pre.3", | ||
"tslib": "^2.0.3" | ||
@@ -40,0 +40,0 @@ }, |
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
23292
489
+ Added@twurple/common@7.0.0-pre.3(transitive)
- Removed@twurple/common@7.0.0-pre.2(transitive)
Updated@twurple/common@7.0.0-pre.3