Socket
Socket
Sign inDemoInstall

@twurple/api-call

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twurple/api-call - npm Package Compare versions

Comparing version 7.0.0-pre.2 to 7.0.0-pre.3

12

lib/errors/HttpStatusCodeError.d.ts

@@ -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;

4

lib/helpers/url.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc