@giphy/js-util
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -5,2 +5,3 @@ export { default as bestfit, setRenditionScaleUpMaxPixels } from './bestfit'; | ||
export { default as getClientRect } from './get-client-rect-from-el'; | ||
export { default as getPingbackId } from './get-pingback-id'; | ||
export { getAltText, getBestRendition, getBestRenditionUrl, getGifHeight, getGifWidth, getSpecificRendition, } from './gif-utils'; | ||
@@ -7,0 +8,0 @@ export * from './log'; |
@@ -16,3 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.checkIfWebP = exports.injectTrackingPixel = exports.getSpecificRendition = exports.getGifWidth = exports.getGifHeight = exports.getBestRenditionUrl = exports.getBestRendition = exports.getAltText = exports.getClientRect = exports.setRenditionScaleUpMaxPixels = exports.bestfit = void 0; | ||
exports.checkIfWebP = exports.injectTrackingPixel = exports.getSpecificRendition = exports.getGifWidth = exports.getGifHeight = exports.getBestRenditionUrl = exports.getBestRendition = exports.getAltText = exports.getPingbackId = exports.getClientRect = exports.setRenditionScaleUpMaxPixels = exports.bestfit = void 0; | ||
var bestfit_1 = require("./bestfit"); | ||
@@ -25,2 +25,4 @@ Object.defineProperty(exports, "bestfit", { enumerable: true, get: function () { return __importDefault(bestfit_1).default; } }); | ||
Object.defineProperty(exports, "getClientRect", { enumerable: true, get: function () { return __importDefault(get_client_rect_from_el_1).default; } }); | ||
var get_pingback_id_1 = require("./get-pingback-id"); | ||
Object.defineProperty(exports, "getPingbackId", { enumerable: true, get: function () { return __importDefault(get_pingback_id_1).default; } }); | ||
var gif_utils_1 = require("./gif-utils"); | ||
@@ -27,0 +29,0 @@ Object.defineProperty(exports, "getAltText", { enumerable: true, get: function () { return gif_utils_1.getAltText; } }); |
@@ -11,3 +11,3 @@ { | ||
"name": "@giphy/js-util", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"main": "dist/index.js", | ||
@@ -26,9 +26,11 @@ "description": "Shared giphy js utils", | ||
"@giphy/js-types": "^3.0.0", | ||
"dompurify": "^2.2.2" | ||
"dompurify": "^2.2.2", | ||
"uuid": "^8.3.0" | ||
}, | ||
"devDependencies": { | ||
"@types/dompurify": "^2.0.4", | ||
"@types/uuid": "^8.3.0", | ||
"typescript": "^4.0.5" | ||
}, | ||
"gitHead": "28e758ef37a244da1152358c51025b0e511b51a1" | ||
"gitHead": "0ece5d2279b01f37ec9a1a9f6ba6d1c13cd04656" | ||
} |
@@ -1,5 +0,6 @@ | ||
import { getGifHeight, getAltText, getBestRenditionUrl, getSpecificRendition, getGifWidth } from '../gif-utils' | ||
import { mapValues, forEach, take, without, pick } from '../collections' | ||
import { IGif, IUser } from '@giphy/js-types' | ||
import { IImages, ImageAllTypes } from '@giphy/js-types/dist/gif' | ||
import { forEach, mapValues, pick, take, without } from '../collections' | ||
import getPingbackId from '../get-pingback-id' | ||
import { getAltText, getBestRenditionUrl, getGifHeight, getGifWidth, getSpecificRendition } from '../gif-utils' | ||
@@ -169,2 +170,7 @@ jest.mock('../webp-check') | ||
}) | ||
test('getRandomId', () => { | ||
const id = getPingbackId() | ||
expect(id.length).toEqual(16) | ||
}) | ||
}) |
@@ -5,2 +5,3 @@ export { default as bestfit, setRenditionScaleUpMaxPixels } from './bestfit' | ||
export { default as getClientRect } from './get-client-rect-from-el' | ||
export { default as getPingbackId } from './get-pingback-id' | ||
export { | ||
@@ -7,0 +8,0 @@ getAltText, |
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
71255
53
1354
3
3
+ Addeduuid@^8.3.0
+ Addeduuid@8.3.2(transitive)