@@ -427,6 +427,6 @@ /*! | ||
| this.options.dilateWidth = 1; | ||
| } else if (is.integer(width) && width > 0) { | ||
| } else if (is.integer(width) && is.inRange(width, 1, 65536)) { | ||
| this.options.dilateWidth = width; | ||
| } else { | ||
| throw is.invalidParameterError('dilate', 'positive integer', dilate); | ||
| throw is.invalidParameterError('width', 'integer between 1 and 65536', width); | ||
| } | ||
@@ -451,6 +451,6 @@ return this; | ||
| this.options.erodeWidth = 1; | ||
| } else if (is.integer(width) && width > 0) { | ||
| } else if (is.integer(width) && is.inRange(width, 1, 65536)) { | ||
| this.options.erodeWidth = width; | ||
| } else { | ||
| throw is.invalidParameterError('erode', 'positive integer', erode); | ||
| throw is.invalidParameterError('width', 'integer between 1 and 65536', width); | ||
| } | ||
@@ -457,0 +457,0 @@ return this; |
@@ -427,6 +427,6 @@ /*! | ||
| this.options.dilateWidth = 1; | ||
| } else if (is.integer(width) && width > 0) { | ||
| } else if (is.integer(width) && is.inRange(width, 1, 65536)) { | ||
| this.options.dilateWidth = width; | ||
| } else { | ||
| throw is.invalidParameterError('dilate', 'positive integer', dilate); | ||
| throw is.invalidParameterError('width', 'integer between 1 and 65536', width); | ||
| } | ||
@@ -451,6 +451,6 @@ return this; | ||
| this.options.erodeWidth = 1; | ||
| } else if (is.integer(width) && width > 0) { | ||
| } else if (is.integer(width) && is.inRange(width, 1, 65536)) { | ||
| this.options.erodeWidth = width; | ||
| } else { | ||
| throw is.invalidParameterError('erode', 'positive integer', erode); | ||
| throw is.invalidParameterError('width', 'integer between 1 and 65536', width); | ||
| } | ||
@@ -457,0 +457,0 @@ return this; |
+16
-16
| { | ||
| "name": "sharp", | ||
| "description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images", | ||
| "version": "0.35.2-rc.0", | ||
| "version": "0.35.2-rc.1", | ||
| "author": "Lovell Fuller <npm@lovell.info>", | ||
@@ -166,5 +166,5 @@ "homepage": "https://sharp.pixelplumbing.com", | ||
| "optionalDependencies": { | ||
| "@img/sharp-darwin-arm64": "0.35.2-rc.0", | ||
| "@img/sharp-darwin-x64": "0.35.2-rc.0", | ||
| "@img/sharp-freebsd-wasm32": "0.35.2-rc.0", | ||
| "@img/sharp-darwin-arm64": "0.35.2-rc.1", | ||
| "@img/sharp-darwin-x64": "0.35.2-rc.1", | ||
| "@img/sharp-freebsd-wasm32": "0.35.2-rc.1", | ||
| "@img/sharp-libvips-darwin-arm64": "1.3.0", | ||
@@ -180,14 +180,14 @@ "@img/sharp-libvips-darwin-x64": "1.3.0", | ||
| "@img/sharp-libvips-linuxmusl-x64": "1.3.0", | ||
| "@img/sharp-linux-arm": "0.35.2-rc.0", | ||
| "@img/sharp-linux-arm64": "0.35.2-rc.0", | ||
| "@img/sharp-linux-ppc64": "0.35.2-rc.0", | ||
| "@img/sharp-linux-riscv64": "0.35.2-rc.0", | ||
| "@img/sharp-linux-s390x": "0.35.2-rc.0", | ||
| "@img/sharp-linux-x64": "0.35.2-rc.0", | ||
| "@img/sharp-linuxmusl-arm64": "0.35.2-rc.0", | ||
| "@img/sharp-linuxmusl-x64": "0.35.2-rc.0", | ||
| "@img/sharp-webcontainers-wasm32": "0.35.2-rc.0", | ||
| "@img/sharp-win32-arm64": "0.35.2-rc.0", | ||
| "@img/sharp-win32-ia32": "0.35.2-rc.0", | ||
| "@img/sharp-win32-x64": "0.35.2-rc.0" | ||
| "@img/sharp-linux-arm": "0.35.2-rc.1", | ||
| "@img/sharp-linux-arm64": "0.35.2-rc.1", | ||
| "@img/sharp-linux-ppc64": "0.35.2-rc.1", | ||
| "@img/sharp-linux-riscv64": "0.35.2-rc.1", | ||
| "@img/sharp-linux-s390x": "0.35.2-rc.1", | ||
| "@img/sharp-linux-x64": "0.35.2-rc.1", | ||
| "@img/sharp-linuxmusl-arm64": "0.35.2-rc.1", | ||
| "@img/sharp-linuxmusl-x64": "0.35.2-rc.1", | ||
| "@img/sharp-webcontainers-wasm32": "0.35.2-rc.1", | ||
| "@img/sharp-win32-arm64": "0.35.2-rc.1", | ||
| "@img/sharp-win32-ia32": "0.35.2-rc.1", | ||
| "@img/sharp-win32-x64": "0.35.2-rc.1" | ||
| }, | ||
@@ -194,0 +194,0 @@ "devDependencies": { |
950410
0.01%