@giphy/js-util 5.1.0 → 5.2.1

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 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
@@ -313,6 +313,7 @@ export {
313
313
  get_pingback_id_default as getPingbackId,
314
314
  getSpecificRendition,
315
315
  mapValues,
316
+ noUUIDRandom,
316
317
  pick,
317
318
  setRenditionScaleUpMaxPixels,
318
319
  take,
package/package.json CHANGED
@@ -9,9 +9,14 @@
9
9
  "test:watch": "run -T jest --config ./jestconfig.js --watchAll"
10
10
  },
11
11
  "name": "@giphy/js-util",
12
- "version": "5.1.0",
12
+ "version": "5.2.1",
13
13
  "description": "Shared giphy js utils",
14
14
  "homepage": "https://github.com/Giphy/giphy-js/tree/master/packages/util",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/Giphy/giphy-js",
18
+ "directory": "packages/util"
19
+ },
15
20
  "main": "dist/index.cjs",
16
21
  "types": "dist/index.d.ts",
17
22
  "module": "dist/index.js",
@@ -35,10 +40,9 @@
35
40
  },
36
41
  "dependencies": {
37
42
  "@giphy/js-types": "*",
38
- "uuid": "^9.0.0"
43
+ "uuid": "^11.1.1"
39
44
  },
40
45
  "devDependencies": {
41
- "@types/uuid": "^8.3.0",
42
46
  "typescript": "^5.0.4"
43
47
  }
44
48
  }
@@ -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,