sharp 0.35.2-rc.0 → 0.35.2-rc.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/operation.cjs +4 -4
- package/dist/operation.mjs +4 -4
- package/package.json +16 -16
package/dist/operation.cjs
CHANGED
|
@@ -424,10 +424,10 @@ function blur (options) {
|
|
|
424
424
|
function dilate (width) {
|
|
425
425
|
if (!is.defined(width)) {
|
|
426
426
|
this.options.dilateWidth = 1;
|
|
427
|
-
} else if (is.integer(width) && width
|
|
427
|
+
} else if (is.integer(width) && is.inRange(width, 1, 65536)) {
|
|
428
428
|
this.options.dilateWidth = width;
|
|
429
429
|
} else {
|
|
430
|
-
throw is.invalidParameterError('
|
|
430
|
+
throw is.invalidParameterError('width', 'integer between 1 and 65536', width);
|
|
431
431
|
}
|
|
432
432
|
return this;
|
|
433
433
|
}
|
|
@@ -447,10 +447,10 @@ function dilate (width) {
|
|
|
447
447
|
function erode (width) {
|
|
448
448
|
if (!is.defined(width)) {
|
|
449
449
|
this.options.erodeWidth = 1;
|
|
450
|
-
} else if (is.integer(width) && width
|
|
450
|
+
} else if (is.integer(width) && is.inRange(width, 1, 65536)) {
|
|
451
451
|
this.options.erodeWidth = width;
|
|
452
452
|
} else {
|
|
453
|
-
throw is.invalidParameterError('
|
|
453
|
+
throw is.invalidParameterError('width', 'integer between 1 and 65536', width);
|
|
454
454
|
}
|
|
455
455
|
return this;
|
|
456
456
|
}
|
package/dist/operation.mjs
CHANGED
|
@@ -424,10 +424,10 @@ function blur (options) {
|
|
|
424
424
|
function dilate (width) {
|
|
425
425
|
if (!is.defined(width)) {
|
|
426
426
|
this.options.dilateWidth = 1;
|
|
427
|
-
} else if (is.integer(width) && width
|
|
427
|
+
} else if (is.integer(width) && is.inRange(width, 1, 65536)) {
|
|
428
428
|
this.options.dilateWidth = width;
|
|
429
429
|
} else {
|
|
430
|
-
throw is.invalidParameterError('
|
|
430
|
+
throw is.invalidParameterError('width', 'integer between 1 and 65536', width);
|
|
431
431
|
}
|
|
432
432
|
return this;
|
|
433
433
|
}
|
|
@@ -447,10 +447,10 @@ function dilate (width) {
|
|
|
447
447
|
function erode (width) {
|
|
448
448
|
if (!is.defined(width)) {
|
|
449
449
|
this.options.erodeWidth = 1;
|
|
450
|
-
} else if (is.integer(width) && width
|
|
450
|
+
} else if (is.integer(width) && is.inRange(width, 1, 65536)) {
|
|
451
451
|
this.options.erodeWidth = width;
|
|
452
452
|
} else {
|
|
453
|
-
throw is.invalidParameterError('
|
|
453
|
+
throw is.invalidParameterError('width', 'integer between 1 and 65536', width);
|
|
454
454
|
}
|
|
455
455
|
return this;
|
|
456
456
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sharp",
|
|
3
3
|
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
|
|
4
|
-
"version": "0.35.2-rc.
|
|
4
|
+
"version": "0.35.2-rc.1",
|
|
5
5
|
"author": "Lovell Fuller <npm@lovell.info>",
|
|
6
6
|
"homepage": "https://sharp.pixelplumbing.com",
|
|
7
7
|
"contributors": [
|
|
@@ -163,9 +163,9 @@
|
|
|
163
163
|
"semver": "^7.8.4"
|
|
164
164
|
},
|
|
165
165
|
"optionalDependencies": {
|
|
166
|
-
"@img/sharp-darwin-arm64": "0.35.2-rc.
|
|
167
|
-
"@img/sharp-darwin-x64": "0.35.2-rc.
|
|
168
|
-
"@img/sharp-freebsd-wasm32": "0.35.2-rc.
|
|
166
|
+
"@img/sharp-darwin-arm64": "0.35.2-rc.1",
|
|
167
|
+
"@img/sharp-darwin-x64": "0.35.2-rc.1",
|
|
168
|
+
"@img/sharp-freebsd-wasm32": "0.35.2-rc.1",
|
|
169
169
|
"@img/sharp-libvips-darwin-arm64": "1.3.0",
|
|
170
170
|
"@img/sharp-libvips-darwin-x64": "1.3.0",
|
|
171
171
|
"@img/sharp-libvips-linux-arm": "1.3.0",
|
|
@@ -176,18 +176,18 @@
|
|
|
176
176
|
"@img/sharp-libvips-linux-x64": "1.3.0",
|
|
177
177
|
"@img/sharp-libvips-linuxmusl-arm64": "1.3.0",
|
|
178
178
|
"@img/sharp-libvips-linuxmusl-x64": "1.3.0",
|
|
179
|
-
"@img/sharp-linux-arm": "0.35.2-rc.
|
|
180
|
-
"@img/sharp-linux-arm64": "0.35.2-rc.
|
|
181
|
-
"@img/sharp-linux-ppc64": "0.35.2-rc.
|
|
182
|
-
"@img/sharp-linux-riscv64": "0.35.2-rc.
|
|
183
|
-
"@img/sharp-linux-s390x": "0.35.2-rc.
|
|
184
|
-
"@img/sharp-linux-x64": "0.35.2-rc.
|
|
185
|
-
"@img/sharp-linuxmusl-arm64": "0.35.2-rc.
|
|
186
|
-
"@img/sharp-linuxmusl-x64": "0.35.2-rc.
|
|
187
|
-
"@img/sharp-webcontainers-wasm32": "0.35.2-rc.
|
|
188
|
-
"@img/sharp-win32-arm64": "0.35.2-rc.
|
|
189
|
-
"@img/sharp-win32-ia32": "0.35.2-rc.
|
|
190
|
-
"@img/sharp-win32-x64": "0.35.2-rc.
|
|
179
|
+
"@img/sharp-linux-arm": "0.35.2-rc.1",
|
|
180
|
+
"@img/sharp-linux-arm64": "0.35.2-rc.1",
|
|
181
|
+
"@img/sharp-linux-ppc64": "0.35.2-rc.1",
|
|
182
|
+
"@img/sharp-linux-riscv64": "0.35.2-rc.1",
|
|
183
|
+
"@img/sharp-linux-s390x": "0.35.2-rc.1",
|
|
184
|
+
"@img/sharp-linux-x64": "0.35.2-rc.1",
|
|
185
|
+
"@img/sharp-linuxmusl-arm64": "0.35.2-rc.1",
|
|
186
|
+
"@img/sharp-linuxmusl-x64": "0.35.2-rc.1",
|
|
187
|
+
"@img/sharp-webcontainers-wasm32": "0.35.2-rc.1",
|
|
188
|
+
"@img/sharp-win32-arm64": "0.35.2-rc.1",
|
|
189
|
+
"@img/sharp-win32-ia32": "0.35.2-rc.1",
|
|
190
|
+
"@img/sharp-win32-x64": "0.35.2-rc.1"
|
|
191
191
|
},
|
|
192
192
|
"devDependencies": {
|
|
193
193
|
"@biomejs/biome": "^2.5.0",
|