sharp 0.35.2-rc.2 → 0.35.2

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.
@@ -706,7 +706,8 @@ function convolve (kernel) {
706
706
  if (!is.object(kernel) || !Array.isArray(kernel.kernel) ||
707
707
  !is.integer(kernel.width) || !is.integer(kernel.height) ||
708
708
  !is.inRange(kernel.width, 3, 1001) || !is.inRange(kernel.height, 3, 1001) ||
709
- kernel.height * kernel.width !== kernel.kernel.length
709
+ kernel.height * kernel.width !== kernel.kernel.length ||
710
+ !kernel.kernel.every(is.number)
710
711
  ) {
711
712
  // must pass in a kernel
712
713
  throw new Error('Invalid convolution kernel');
@@ -706,7 +706,8 @@ function convolve (kernel) {
706
706
  if (!is.object(kernel) || !Array.isArray(kernel.kernel) ||
707
707
  !is.integer(kernel.width) || !is.integer(kernel.height) ||
708
708
  !is.inRange(kernel.width, 3, 1001) || !is.inRange(kernel.height, 3, 1001) ||
709
- kernel.height * kernel.width !== kernel.kernel.length
709
+ kernel.height * kernel.width !== kernel.kernel.length ||
710
+ !kernel.kernel.every(is.number)
710
711
  ) {
711
712
  // must pass in a kernel
712
713
  throw new Error('Invalid convolution kernel');
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.2",
4
+ "version": "0.35.2",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
7
7
  "contributors": [
@@ -163,43 +163,43 @@
163
163
  "semver": "^7.8.4"
164
164
  },
165
165
  "optionalDependencies": {
166
- "@img/sharp-darwin-arm64": "0.35.2-rc.2",
167
- "@img/sharp-darwin-x64": "0.35.2-rc.2",
168
- "@img/sharp-freebsd-wasm32": "0.35.2-rc.2",
169
- "@img/sharp-libvips-darwin-arm64": "1.3.1-rc.0",
170
- "@img/sharp-libvips-darwin-x64": "1.3.1-rc.0",
171
- "@img/sharp-libvips-linux-arm": "1.3.1-rc.0",
172
- "@img/sharp-libvips-linux-arm64": "1.3.1-rc.0",
173
- "@img/sharp-libvips-linux-ppc64": "1.3.1-rc.0",
174
- "@img/sharp-libvips-linux-riscv64": "1.3.1-rc.0",
175
- "@img/sharp-libvips-linux-s390x": "1.3.1-rc.0",
176
- "@img/sharp-libvips-linux-x64": "1.3.1-rc.0",
177
- "@img/sharp-libvips-linuxmusl-arm64": "1.3.1-rc.0",
178
- "@img/sharp-libvips-linuxmusl-x64": "1.3.1-rc.0",
179
- "@img/sharp-linux-arm": "0.35.2-rc.2",
180
- "@img/sharp-linux-arm64": "0.35.2-rc.2",
181
- "@img/sharp-linux-ppc64": "0.35.2-rc.2",
182
- "@img/sharp-linux-riscv64": "0.35.2-rc.2",
183
- "@img/sharp-linux-s390x": "0.35.2-rc.2",
184
- "@img/sharp-linux-x64": "0.35.2-rc.2",
185
- "@img/sharp-linuxmusl-arm64": "0.35.2-rc.2",
186
- "@img/sharp-linuxmusl-x64": "0.35.2-rc.2",
187
- "@img/sharp-webcontainers-wasm32": "0.35.2-rc.2",
188
- "@img/sharp-win32-arm64": "0.35.2-rc.2",
189
- "@img/sharp-win32-ia32": "0.35.2-rc.2",
190
- "@img/sharp-win32-x64": "0.35.2-rc.2"
166
+ "@img/sharp-darwin-arm64": "0.35.2",
167
+ "@img/sharp-darwin-x64": "0.35.2",
168
+ "@img/sharp-freebsd-wasm32": "0.35.2",
169
+ "@img/sharp-libvips-darwin-arm64": "1.3.1",
170
+ "@img/sharp-libvips-darwin-x64": "1.3.1",
171
+ "@img/sharp-libvips-linux-arm": "1.3.1",
172
+ "@img/sharp-libvips-linux-arm64": "1.3.1",
173
+ "@img/sharp-libvips-linux-ppc64": "1.3.1",
174
+ "@img/sharp-libvips-linux-riscv64": "1.3.1",
175
+ "@img/sharp-libvips-linux-s390x": "1.3.1",
176
+ "@img/sharp-libvips-linux-x64": "1.3.1",
177
+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.1",
178
+ "@img/sharp-libvips-linuxmusl-x64": "1.3.1",
179
+ "@img/sharp-linux-arm": "0.35.2",
180
+ "@img/sharp-linux-arm64": "0.35.2",
181
+ "@img/sharp-linux-ppc64": "0.35.2",
182
+ "@img/sharp-linux-riscv64": "0.35.2",
183
+ "@img/sharp-linux-s390x": "0.35.2",
184
+ "@img/sharp-linux-x64": "0.35.2",
185
+ "@img/sharp-linuxmusl-arm64": "0.35.2",
186
+ "@img/sharp-linuxmusl-x64": "0.35.2",
187
+ "@img/sharp-webcontainers-wasm32": "0.35.2",
188
+ "@img/sharp-win32-arm64": "0.35.2",
189
+ "@img/sharp-win32-ia32": "0.35.2",
190
+ "@img/sharp-win32-x64": "0.35.2"
191
191
  },
192
192
  "devDependencies": {
193
193
  "@biomejs/biome": "^2.5.0",
194
194
  "@cpplint/cli": "^0.1.0",
195
- "@emnapi/runtime": "^1.11.0",
196
- "@img/sharp-libvips-dev": "1.3.1-rc.0",
197
- "@img/sharp-libvips-dev-wasm32": "1.3.1-rc.0",
198
- "@img/sharp-libvips-win32-arm64": "1.3.1-rc.0",
199
- "@img/sharp-libvips-win32-ia32": "1.3.1-rc.0",
200
- "@img/sharp-libvips-win32-x64": "1.3.1-rc.0",
195
+ "@emnapi/runtime": "^1.11.1",
196
+ "@img/sharp-libvips-dev": "1.3.1",
197
+ "@img/sharp-libvips-dev-wasm32": "1.3.1",
198
+ "@img/sharp-libvips-win32-arm64": "1.3.1",
199
+ "@img/sharp-libvips-win32-ia32": "1.3.1",
200
+ "@img/sharp-libvips-win32-x64": "1.3.1",
201
201
  "@types/node": "*",
202
- "emnapi": "^1.11.0",
202
+ "emnapi": "^1.11.1",
203
203
  "exif-reader": "^2.0.3",
204
204
  "extract-zip": "^2.0.1",
205
205
  "icc": "^4.0.0",