@squoosh-kit/webp 0.0.13 → 0.0.15

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.
Files changed (48) hide show
  1. package/dist/bridge.browser.mjs +2 -2
  2. package/dist/bridge.browser.mjs.map +3 -3
  3. package/dist/bridge.bun.js +2 -2
  4. package/dist/bridge.bun.js.map +3 -3
  5. package/dist/bridge.d.ts.map +1 -1
  6. package/dist/bridge.node.cjs +2 -2
  7. package/dist/bridge.node.cjs.map +3 -3
  8. package/dist/bridge.node.mjs +2 -2
  9. package/dist/bridge.node.mjs.map +3 -3
  10. package/dist/chunk-2t18cpk4.js +3 -0
  11. package/dist/{chunk-460jgek8.js.map → chunk-2t18cpk4.js.map} +2 -2
  12. package/dist/{chunk-zwen5g92.js → chunk-534zkza4.js} +1 -1
  13. package/dist/{chunk-6k9yrqxa.js → chunk-8y42hv65.js} +2 -2
  14. package/dist/{chunk-494e4bws.js.map → chunk-8y42hv65.js.map} +1 -1
  15. package/dist/{chunk-494e4bws.js → chunk-bhj61bkd.js} +2 -2
  16. package/dist/{chunk-6k9yrqxa.js.map → chunk-bhj61bkd.js.map} +1 -1
  17. package/dist/{chunk-ks7kcgv0.js → chunk-c6cx0d7q.js} +2 -2
  18. package/dist/{chunk-ks7kcgv0.js.map → chunk-c6cx0d7q.js.map} +1 -1
  19. package/dist/{chunk-t6tcztdc.js → chunk-cxqwba64.js} +1 -1
  20. package/dist/chunk-eqkkc09z.js +4 -0
  21. package/dist/{chunk-nscv6dhm.js.map → chunk-eqkkc09z.js.map} +2 -2
  22. package/dist/chunk-m5rj68ef.js +5 -0
  23. package/dist/{chunk-h3s3se69.js.map → chunk-m5rj68ef.js.map} +2 -2
  24. package/dist/{chunk-3e1dzjy4.js → chunk-sbhzt3r6.js} +1 -1
  25. package/dist/index.browser.mjs +1 -1
  26. package/dist/index.bun.js +1 -1
  27. package/dist/index.node.mjs +1 -1
  28. package/dist/webp.worker.browser.mjs +5 -5
  29. package/dist/webp.worker.browser.mjs.map +3 -3
  30. package/dist/webp.worker.bun.js +5 -5
  31. package/dist/webp.worker.bun.js.map +3 -3
  32. package/dist/webp.worker.node.cjs +5 -5
  33. package/dist/webp.worker.node.cjs.map +3 -3
  34. package/dist/webp.worker.node.mjs +5 -5
  35. package/dist/webp.worker.node.mjs.map +3 -3
  36. package/package.json +2 -2
  37. package/dist/chunk-124gpwf3.js +0 -3
  38. package/dist/chunk-124gpwf3.js.map +0 -10
  39. package/dist/chunk-460jgek8.js +0 -3
  40. package/dist/chunk-8pja0p5b.js +0 -5
  41. package/dist/chunk-8pja0p5b.js.map +0 -10
  42. package/dist/chunk-a31j12b6.js +0 -4
  43. package/dist/chunk-a31j12b6.js.map +0 -10
  44. package/dist/chunk-h3s3se69.js +0 -5
  45. package/dist/chunk-nscv6dhm.js +0 -4
  46. /package/dist/{chunk-3e1dzjy4.js.map → chunk-534zkza4.js.map} +0 -0
  47. /package/dist/{chunk-t6tcztdc.js.map → chunk-cxqwba64.js.map} +0 -0
  48. /package/dist/{chunk-zwen5g92.js.map → chunk-sbhzt3r6.js.map} +0 -0
@@ -1,5 +0,0 @@
1
- // @bun
2
- function J(D){if(typeof SharedArrayBuffer<"u"&&D instanceof SharedArrayBuffer)throw Error("SharedArrayBuffer is not supported. Use regular ArrayBuffer or Uint8Array instead.");if(!(D instanceof ArrayBuffer))throw TypeError("image.data.buffer must be an ArrayBuffer")}function K(D){if(!D||typeof D!=="object")throw TypeError("image must be an object");let F=D;if(!("data"in F))throw TypeError("image.data is required");let{data:E}=F;if(!(E instanceof Uint8Array||E instanceof Uint8ClampedArray))throw TypeError("image.data must be Uint8Array or Uint8ClampedArray");if(!("width"in F)||!("height"in F))throw TypeError("image.width and image.height are required");let{width:G,height:H}=F;if(typeof G!=="number"||!Number.isInteger(G)||G<=0)throw RangeError(`image.width must be a positive integer, got ${G}`);if(typeof H!=="number"||!Number.isInteger(H)||H<=0)throw RangeError(`image.height must be a positive integer, got ${H}`);let I=G*H*4;if(E.length<I)throw RangeError(`image.data too small: ${E.length} bytes, expected at least ${I} bytes for ${G}x${H} RGBA image`)}function L(D){if(D===void 0)return;if(typeof D!=="object"||D===null)throw TypeError("options must be an object or undefined");let F=D;if("quality"in F&&F.quality!==void 0){let E=F.quality;if(Number.isNaN(E))throw RangeError("quality must be a valid number in the range 0-100, got NaN");if(typeof E!=="number")throw TypeError("quality must be a number");if(!Number.isInteger(E))throw RangeError("quality must be an integer in the range 0-100, got floating point");if(E<0||E>100)throw RangeError(`quality must be in the range 0-100, got ${E}`)}}
3
- export{J as b,K as c,L as d};
4
-
5
- //# debugId=1A665A80F2CC63BC64756E2164756E21
@@ -1,4 +0,0 @@
1
- function J(D){if(typeof SharedArrayBuffer<"u"&&D instanceof SharedArrayBuffer)throw Error("SharedArrayBuffer is not supported. Use regular ArrayBuffer or Uint8Array instead.");if(!(D instanceof ArrayBuffer))throw TypeError("image.data.buffer must be an ArrayBuffer")}function K(D){if(!D||typeof D!=="object")throw TypeError("image must be an object");let F=D;if(!("data"in F))throw TypeError("image.data is required");let{data:E}=F;if(!(E instanceof Uint8Array||E instanceof Uint8ClampedArray))throw TypeError("image.data must be Uint8Array or Uint8ClampedArray");if(!("width"in F)||!("height"in F))throw TypeError("image.width and image.height are required");let{width:G,height:H}=F;if(typeof G!=="number"||!Number.isInteger(G)||G<=0)throw RangeError(`image.width must be a positive integer, got ${G}`);if(typeof H!=="number"||!Number.isInteger(H)||H<=0)throw RangeError(`image.height must be a positive integer, got ${H}`);let I=G*H*4;if(E.length<I)throw RangeError(`image.data too small: ${E.length} bytes, expected at least ${I} bytes for ${G}x${H} RGBA image`)}function L(D){if(D===void 0)return;if(typeof D!=="object"||D===null)throw TypeError("options must be an object or undefined");let F=D;if("quality"in F&&F.quality!==void 0){let E=F.quality;if(Number.isNaN(E))throw RangeError("quality must be a valid number in the range 0-100, got NaN");if(typeof E!=="number")throw TypeError("quality must be a number");if(!Number.isInteger(E))throw RangeError("quality must be an integer in the range 0-100, got floating point");if(E<0||E>100)throw RangeError(`quality must be in the range 0-100, got ${E}`)}}
2
- export{J as b,K as c,L as d};
3
-
4
- //# debugId=ACA0C9A798BD3F5F64756E2164756E21