@poe-platform/safe-bash 0.1.834 → 0.1.835

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.
@@ -5216,7 +5216,7 @@ function readWebpMetadata(bytes) {
5216
5216
  }
5217
5217
  function createWebpEncoder(img, hasAlpha, options) {
5218
5218
  let { width, height } = img, numPixels = width * height;
5219
- if (!Number.isSafeInteger(width) || width <= 0 || !Number.isSafeInteger(height) || height <= 0 || !Number.isSafeInteger(numPixels))
5219
+ if (!Number.isSafeInteger(width) || width <= 0 || width > 16384 || !Number.isSafeInteger(height) || height <= 0 || height > 16384 || !Number.isSafeInteger(numPixels))
5220
5220
  throw new RangeError("Invalid WebP dimensions");
5221
5221
  let vp8lBuf = new Uint8Array(4096);
5222
5222
  vp8lBuf[0] = 47;
@@ -6631,7 +6631,7 @@ var Pixels = class {
6631
6631
  async function* encodeWebpFromStorage(image, storage, signal, options) {
6632
6632
  signal.throwIfAborted();
6633
6633
  let length = image.width * image.height * 4;
6634
- if (!Number.isSafeInteger(image.width) || image.width <= 0 || !Number.isSafeInteger(image.height) || image.height <= 0 || !Number.isSafeInteger(image.position) || image.position < 0 || !Number.isSafeInteger(length) || !Number.isSafeInteger(image.position + length))
6634
+ if (!Number.isSafeInteger(image.width) || image.width <= 0 || image.width > 16384 || !Number.isSafeInteger(image.height) || image.height <= 0 || image.height > 16384 || !Number.isSafeInteger(image.position) || image.position < 0 || !Number.isSafeInteger(length) || !Number.isSafeInteger(image.position + length))
6635
6635
  throw new RangeError("Invalid WebP backing allocation");
6636
6636
  let pixels = new Pixels(image, storage, signal), hasAlpha = !1;
6637
6637
  for (let at = 0; at < length && !hasAlpha; at += 4096) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poe-platform/safe-bash",
3
- "version": "0.1.834",
3
+ "version": "0.1.835",
4
4
  "description": "Extensible virtual shell with pluggable filesystems and streaming commands",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1415,7 +1415,7 @@
1415
1415
  "access": "public"
1416
1416
  },
1417
1417
  "dependencies": {
1418
- "@poe-platform/safe-fs": "0.1.834",
1418
+ "@poe-platform/safe-fs": "0.1.835",
1419
1419
  "pdf-lib": "1.17.1",
1420
1420
  "@types/node": "^25.2.2",
1421
1421
  "@formatjs/intl-numberformat": "9.4.0",