@giphy/js-util 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/get-pingback-id.ts +1 -1
- package/src/index.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -55,6 +55,7 @@ __export(src_exports, {
|
|
|
55
55
|
getPingbackId: () => get_pingback_id_default,
|
|
56
56
|
getSpecificRendition: () => getSpecificRendition,
|
|
57
57
|
mapValues: () => mapValues,
|
|
58
|
+
noUUIDRandom: () => noUUIDRandom,
|
|
58
59
|
pick: () => pick,
|
|
59
60
|
setRenditionScaleUpMaxPixels: () => setRenditionScaleUpMaxPixels,
|
|
60
61
|
take: () => take,
|
|
@@ -358,6 +359,7 @@ var appendGiphySDKRequestParam = (key, value) => {
|
|
|
358
359
|
getPingbackId,
|
|
359
360
|
getSpecificRendition,
|
|
360
361
|
mapValues,
|
|
362
|
+
noUUIDRandom,
|
|
361
363
|
pick,
|
|
362
364
|
setRenditionScaleUpMaxPixels,
|
|
363
365
|
take,
|
package/dist/index.d.cts
CHANGED
|
@@ -29,6 +29,7 @@ declare function pick<T extends object, U extends keyof T>(object: T, pick: Arra
|
|
|
29
29
|
*/
|
|
30
30
|
declare const getClientRect: (el: HTMLElement) => DOMRectReadOnly;
|
|
31
31
|
|
|
32
|
+
declare const noUUIDRandom: () => string;
|
|
32
33
|
declare const getPingbackId: () => string;
|
|
33
34
|
|
|
34
35
|
declare const getSpecificRendition: ({ images, is_sticker: isSticker }: IGif, renditionLabel: string, isStill?: boolean, useVideo?: boolean) => string;
|
|
@@ -76,4 +77,4 @@ declare const appendGiphySDKRequestParam: (key: GiphySDKRequestHeader, value: st
|
|
|
76
77
|
|
|
77
78
|
declare const checkIfWebP: Promise<unknown>;
|
|
78
79
|
|
|
79
|
-
export { LogLevel, Logger, appendGiphySDKRequestHeader, appendGiphySDKRequestParam, bestfit, checkIfWebP, forEach, getAltText, getBestRendition, getBestRenditionUrl, getBestVideo, getClientRect, getGifHeight, getGifWidth, getGiphySDKRequestHeaders, getPingbackId, getSpecificRendition, mapValues, pick, setRenditionScaleUpMaxPixels, take, without };
|
|
80
|
+
export { LogLevel, Logger, appendGiphySDKRequestHeader, appendGiphySDKRequestParam, bestfit, checkIfWebP, forEach, getAltText, getBestRendition, getBestRenditionUrl, getBestVideo, getClientRect, getGifHeight, getGifWidth, getGiphySDKRequestHeaders, getPingbackId, getSpecificRendition, mapValues, noUUIDRandom, pick, setRenditionScaleUpMaxPixels, take, without };
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ declare function pick<T extends object, U extends keyof T>(object: T, pick: Arra
|
|
|
29
29
|
*/
|
|
30
30
|
declare const getClientRect: (el: HTMLElement) => DOMRectReadOnly;
|
|
31
31
|
|
|
32
|
+
declare const noUUIDRandom: () => string;
|
|
32
33
|
declare const getPingbackId: () => string;
|
|
33
34
|
|
|
34
35
|
declare const getSpecificRendition: ({ images, is_sticker: isSticker }: IGif, renditionLabel: string, isStill?: boolean, useVideo?: boolean) => string;
|
|
@@ -76,4 +77,4 @@ declare const appendGiphySDKRequestParam: (key: GiphySDKRequestHeader, value: st
|
|
|
76
77
|
|
|
77
78
|
declare const checkIfWebP: Promise<unknown>;
|
|
78
79
|
|
|
79
|
-
export { LogLevel, Logger, appendGiphySDKRequestHeader, appendGiphySDKRequestParam, bestfit, checkIfWebP, forEach, getAltText, getBestRendition, getBestRenditionUrl, getBestVideo, getClientRect, getGifHeight, getGifWidth, getGiphySDKRequestHeaders, getPingbackId, getSpecificRendition, mapValues, pick, setRenditionScaleUpMaxPixels, take, without };
|
|
80
|
+
export { LogLevel, Logger, appendGiphySDKRequestHeader, appendGiphySDKRequestParam, bestfit, checkIfWebP, forEach, getAltText, getBestRendition, getBestRenditionUrl, getBestVideo, getClientRect, getGifHeight, getGifWidth, getGiphySDKRequestHeaders, getPingbackId, getSpecificRendition, mapValues, noUUIDRandom, pick, setRenditionScaleUpMaxPixels, take, without };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"test:watch": "run -T jest --config ./jestconfig.js --watchAll"
|
|
10
10
|
},
|
|
11
11
|
"name": "@giphy/js-util",
|
|
12
|
-
"version": "5.
|
|
12
|
+
"version": "5.2.0",
|
|
13
13
|
"description": "Shared giphy js utils",
|
|
14
14
|
"homepage": "https://github.com/Giphy/giphy-js/tree/master/packages/util",
|
|
15
15
|
"main": "dist/index.cjs",
|
package/src/get-pingback-id.ts
CHANGED
|
@@ -4,7 +4,7 @@ let pingbackId = ''
|
|
|
4
4
|
const idLength = 16
|
|
5
5
|
|
|
6
6
|
/* istanbul ignore next */
|
|
7
|
-
const noUUIDRandom = () => {
|
|
7
|
+
export const noUUIDRandom = () => {
|
|
8
8
|
let result = ''
|
|
9
9
|
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
|
|
10
10
|
const charactersLength = characters.length
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as bestfit, setRenditionScaleUpMaxPixels } from './bestfit'
|
|
2
2
|
export * from './collections'
|
|
3
3
|
export { default as getClientRect } from './get-client-rect-from-el'
|
|
4
|
-
export { default as getPingbackId } from './get-pingback-id'
|
|
4
|
+
export { default as getPingbackId, noUUIDRandom } from './get-pingback-id'
|
|
5
5
|
export {
|
|
6
6
|
getAltText,
|
|
7
7
|
getBestRendition,
|