@revizly/sharp 0.35.0-revizly34 → 0.35.0-revizly35
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/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/package.json +9 -9
package/dist/input.cjs
CHANGED
|
@@ -125,7 +125,7 @@ function _createInputDescriptor (input, inputOptions, containerOptions) {
|
|
|
125
125
|
}
|
|
126
126
|
// Density
|
|
127
127
|
if (is.defined(inputOptions.density)) {
|
|
128
|
-
if (is.inRange(inputOptions.density, 1, 100000)) {
|
|
128
|
+
if (is.number(inputOptions.density) && is.inRange(inputOptions.density, 1, 100000)) {
|
|
129
129
|
inputDescriptor.density = inputOptions.density;
|
|
130
130
|
} else {
|
|
131
131
|
throw is.invalidParameterError('density', 'number between 1 and 100000', inputOptions.density);
|
package/dist/input.mjs
CHANGED
|
@@ -125,7 +125,7 @@ function _createInputDescriptor (input, inputOptions, containerOptions) {
|
|
|
125
125
|
}
|
|
126
126
|
// Density
|
|
127
127
|
if (is.defined(inputOptions.density)) {
|
|
128
|
-
if (is.inRange(inputOptions.density, 1, 100000)) {
|
|
128
|
+
if (is.number(inputOptions.density) && is.inRange(inputOptions.density, 1, 100000)) {
|
|
129
129
|
inputDescriptor.density = inputOptions.density;
|
|
130
130
|
} else {
|
|
131
131
|
throw is.invalidParameterError('density', 'number between 1 and 100000', inputOptions.density);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revizly/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.0-
|
|
4
|
+
"version": "0.35.0-revizly35",
|
|
5
5
|
"author": "Lovell Fuller <npm@lovell.info>",
|
|
6
6
|
"homepage": "https://sharp.pixelplumbing.com",
|
|
7
7
|
"contributors": [
|
|
@@ -152,21 +152,21 @@
|
|
|
152
152
|
"dependencies": {
|
|
153
153
|
"@img/colour": "^1.1.0",
|
|
154
154
|
"detect-libc": "^2.1.2",
|
|
155
|
-
"semver": "^7.8.
|
|
155
|
+
"semver": "^7.8.3"
|
|
156
156
|
},
|
|
157
157
|
"optionalDependencies": {
|
|
158
|
-
"@revizly/sharp-libvips-linux-arm64": "1.0.
|
|
159
|
-
"@revizly/sharp-libvips-linux-x64": "1.0.
|
|
160
|
-
"@revizly/sharp-linux-arm64": "0.35.0-
|
|
161
|
-
"@revizly/sharp-linux-x64": "0.35.0-
|
|
158
|
+
"@revizly/sharp-libvips-linux-arm64": "1.0.38",
|
|
159
|
+
"@revizly/sharp-libvips-linux-x64": "1.0.38",
|
|
160
|
+
"@revizly/sharp-linux-arm64": "0.35.0-revizly35",
|
|
161
|
+
"@revizly/sharp-linux-x64": "0.35.0-revizly35"
|
|
162
162
|
},
|
|
163
163
|
"devDependencies": {
|
|
164
164
|
"@biomejs/biome": "^2.4.16",
|
|
165
165
|
"@cpplint/cli": "^0.1.0",
|
|
166
|
-
"@emnapi/runtime": "^1.
|
|
167
|
-
"@revizly/sharp-libvips-dev": "1.0.
|
|
166
|
+
"@emnapi/runtime": "^1.11.0",
|
|
167
|
+
"@revizly/sharp-libvips-dev": "1.0.38",
|
|
168
168
|
"@types/node": "*",
|
|
169
|
-
"emnapi": "^1.
|
|
169
|
+
"emnapi": "^1.11.0",
|
|
170
170
|
"exif-reader": "^2.0.3",
|
|
171
171
|
"extract-zip": "^2.0.1",
|
|
172
172
|
"icc": "^4.0.0",
|