@giphy/js-util
Advanced tools
Comparing version 1.5.2 to 1.5.3
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -22,3 +29,3 @@ /* istanbul ignore next */ | ||
if (exports.Logger.ENABLED && exports.Logger.LEVEL <= LogLevel.DEBUG) { | ||
console.debug.apply(console, [exports.Logger.PREFIX].concat(msg)); // eslint-disable-line no-console | ||
console.debug.apply(console, __spreadArrays([exports.Logger.PREFIX], msg)); // eslint-disable-line no-console | ||
} | ||
@@ -32,3 +39,3 @@ }, | ||
if (exports.Logger.ENABLED && exports.Logger.LEVEL <= LogLevel.INFO) { | ||
console.info.apply(console, [exports.Logger.PREFIX].concat(msg)); // eslint-disable-line no-console | ||
console.info.apply(console, __spreadArrays([exports.Logger.PREFIX], msg)); // eslint-disable-line no-console | ||
} | ||
@@ -42,3 +49,3 @@ }, | ||
if (exports.Logger.ENABLED && exports.Logger.LEVEL <= LogLevel.WARN) { | ||
console.warn.apply(console, [exports.Logger.PREFIX].concat(msg)); // eslint-disable-line no-console | ||
console.warn.apply(console, __spreadArrays([exports.Logger.PREFIX], msg)); // eslint-disable-line no-console | ||
} | ||
@@ -52,3 +59,3 @@ }, | ||
if (exports.Logger.ENABLED && exports.Logger.LEVEL <= LogLevel.ERROR) { | ||
console.error.apply(console, [exports.Logger.PREFIX].concat(msg)); // eslint-disable-line no-console | ||
console.error.apply(console, __spreadArrays([exports.Logger.PREFIX], msg)); // eslint-disable-line no-console | ||
} | ||
@@ -55,0 +62,0 @@ }, |
@@ -11,3 +11,3 @@ { | ||
"name": "@giphy/js-util", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"main": "dist/index.js", | ||
@@ -25,8 +25,8 @@ "description": "Shared giphy js utils", | ||
"dependencies": { | ||
"@giphy/js-types": "^2.0.0" | ||
"@giphy/js-types": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^3.5.2" | ||
"typescript": "^3.8.2" | ||
}, | ||
"gitHead": "5bfe769294667ac946df8e890345b7fe5b328df9" | ||
"gitHead": "4fa699d661f19c57eafb016df0b99b278381d73e" | ||
} |
@@ -11,3 +11,3 @@ import { take, pick, without } from './collections' | ||
isStill = false, | ||
useVideo = false, | ||
useVideo = false | ||
) => { | ||
@@ -41,3 +41,3 @@ if (!images || !renditionLabel) return '' | ||
gifHeight: number, | ||
scaleUpMaxPixels?: number, | ||
scaleUpMaxPixels?: number | ||
): IRenditionWithName => { | ||
@@ -67,3 +67,3 @@ const checkRenditions = pick(images, [ | ||
gifHeight: number, | ||
options: Options = { isStill: false, useVideo: false }, | ||
options: Options = { isStill: false, useVideo: false } | ||
): keyof IImages | '' => { | ||
@@ -70,0 +70,0 @@ if (!gifWidth || !gifHeight || !images) return '' |
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
53491
1040
Updated@giphy/js-types@^2.0.1