@twurple/api
Advanced tools
Comparing version 5.0.0-pre.13 to 5.0.0-pre.14
@@ -36,3 +36,2 @@ "use strict"; | ||
getImageUrl(scale) { | ||
// eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style | ||
return this[common_1.rawDataSymbol][`image_url_${scale}x`]; | ||
@@ -39,0 +38,0 @@ } |
@@ -14,3 +14,3 @@ import type { CheermoteBackground, CheermoteDisplayInfo, CheermoteFormat, CheermoteScale, CheermoteState } from '@twurple/common'; | ||
color: string; | ||
images: HelixCheermoteActionImageUrlsByBackgroundAndStateAndScale[]; | ||
images: HelixCheermoteActionImageUrlsByBackgroundAndStateAndScale; | ||
can_cheer: boolean; | ||
@@ -17,0 +17,0 @@ show_in_bits_card: boolean; |
@@ -33,4 +33,2 @@ "use strict"; | ||
return { | ||
// @ts-expect-error TS7015 TODO will be fixed with the removal of enums | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment | ||
url: correctTier.images[background][state][scale], | ||
@@ -37,0 +35,0 @@ color: correctTier.color |
@@ -53,3 +53,2 @@ "use strict"; | ||
var _a, _b; | ||
// eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style | ||
const urlProp = `url_${scale}x`; | ||
@@ -56,0 +55,0 @@ return (_b = (_a = this[common_1.rawDataSymbol].image) === null || _a === void 0 ? void 0 : _a[urlProp]) !== null && _b !== void 0 ? _b : this[common_1.rawDataSymbol].default_image[urlProp]; |
@@ -22,3 +22,2 @@ "use strict"; | ||
getImageUrl(scale) { | ||
// eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style | ||
return this[common_1.rawDataSymbol][`image_url_${scale}x`]; | ||
@@ -25,0 +24,0 @@ } |
@@ -28,3 +28,2 @@ "use strict"; | ||
getImageUrl(scale) { | ||
// eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style | ||
return this[common_1.rawDataSymbol].images[`url_${scale}x`]; | ||
@@ -31,0 +30,0 @@ } |
@@ -75,3 +75,2 @@ "use strict"; | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
async callApi(options) { | ||
@@ -78,0 +77,0 @@ var _a; |
{ | ||
"name": "@twurple/api", | ||
"version": "5.0.0-pre.13", | ||
"version": "5.0.0-pre.14", | ||
"publishConfig": { | ||
@@ -39,8 +39,8 @@ "access": "public" | ||
"@d-fischer/shared-utils": "^3.2.0", | ||
"@twurple/api-call": "^5.0.0-pre.13", | ||
"@twurple/common": "^5.0.0-pre.13", | ||
"@twurple/api-call": "^5.0.0-pre.14", | ||
"@twurple/common": "^5.0.0-pre.14", | ||
"tslib": "^2.0.3" | ||
}, | ||
"devDependencies": { | ||
"@twurple/auth": "^5.0.0-pre.13" | ||
"@twurple/auth": "^5.0.0-pre.14" | ||
}, | ||
@@ -61,3 +61,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "f305beefb6f619faed0776ab62eff51db5d8530d" | ||
"gitHead": "d243c0e1dac40c5a530d1d52306ed16eee590fa0" | ||
} |
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
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
740550
21469