🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

sharp

Package Overview
Dependencies
Maintainers
1
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sharp - npm Package Compare versions

Comparing version
0.35.1
to
0.35.2-rc.0
+4
-1
dist/operation.cjs

@@ -865,6 +865,9 @@ /*!

}
const recombMatrix = inputMatrix.flat().map(Number);
const recombMatrix = inputMatrix.flat();
if (recombMatrix.length !== 9 && recombMatrix.length !== 16) {
throw is.invalidParameterError('inputMatrix', 'cardinality of 9 or 16', recombMatrix.length);
}
if (!recombMatrix.every(is.number)) {
throw is.invalidParameterError('inputMatrix', 'array of numbers', recombMatrix);
}
this.options.recombMatrix = recombMatrix;

@@ -871,0 +874,0 @@ return this;

@@ -865,6 +865,9 @@ /*!

}
const recombMatrix = inputMatrix.flat().map(Number);
const recombMatrix = inputMatrix.flat();
if (recombMatrix.length !== 9 && recombMatrix.length !== 16) {
throw is.invalidParameterError('inputMatrix', 'cardinality of 9 or 16', recombMatrix.length);
}
if (!recombMatrix.every(is.number)) {
throw is.invalidParameterError('inputMatrix', 'array of numbers', recombMatrix);
}
this.options.recombMatrix = recombMatrix;

@@ -871,0 +874,0 @@ return this;

+8
-4

@@ -85,7 +85,4 @@ /*!

break;
default:
sharp = require("@img/sharp-wasm32/sharp.node");
break;
}
if (["linux-x64", "linuxmusl-x64"].includes(runtimePlatform) && !sharp._isUsingX64V2()) {
if (sharp && ["linux-x64", "linuxmusl-x64"].includes(runtimePlatform) && !sharp._isUsingX64V2()) {
const err = new Error("Prebuilt binaries for Linux x64 require v2 microarchitecture");

@@ -100,2 +97,9 @@ err.code = "Unsupported CPU";

}
if (!sharp) {
try {
sharp = require("@img/sharp-wasm32/sharp.node");
} catch (err) {
errors.push(err);
}
}

@@ -102,0 +106,0 @@ if (!sharp) {

@@ -85,7 +85,4 @@ /*!

break;
default:
sharp = require("@img/sharp-wasm32/sharp.node");
break;
}
if (["linux-x64", "linuxmusl-x64"].includes(runtimePlatform) && !sharp._isUsingX64V2()) {
if (sharp && ["linux-x64", "linuxmusl-x64"].includes(runtimePlatform) && !sharp._isUsingX64V2()) {
const err = new Error("Prebuilt binaries for Linux x64 require v2 microarchitecture");

@@ -100,2 +97,9 @@ err.code = "Unsupported CPU";

}
if (!sharp) {
try {
sharp = require("@img/sharp-wasm32/sharp.node");
} catch (err) {
errors.push(err);
}
}

@@ -102,0 +106,0 @@ if (!sharp) {

{
"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.1",
"version": "0.35.2-rc.0",
"author": "Lovell Fuller <npm@lovell.info>",

@@ -105,3 +105,3 @@ "homepage": "https://sharp.pixelplumbing.com",

"lint-publish": "publint --strict",
"lint-types": "tsd --files ./test/types/sharp.test-d.ts",
"lint-types": "tsd --files ./test/types/sharp.test-d.{cts,mts}",
"test-leak": "./test/leak/leak.sh",

@@ -167,5 +167,5 @@ "test-unit": "node --experimental-test-coverage test/unit.mjs",

"optionalDependencies": {
"@img/sharp-darwin-arm64": "0.35.1",
"@img/sharp-darwin-x64": "0.35.1",
"@img/sharp-freebsd-wasm32": "0.35.1",
"@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-libvips-darwin-arm64": "1.3.0",

@@ -181,17 +181,17 @@ "@img/sharp-libvips-darwin-x64": "1.3.0",

"@img/sharp-libvips-linuxmusl-x64": "1.3.0",
"@img/sharp-linux-arm": "0.35.1",
"@img/sharp-linux-arm64": "0.35.1",
"@img/sharp-linux-ppc64": "0.35.1",
"@img/sharp-linux-riscv64": "0.35.1",
"@img/sharp-linux-s390x": "0.35.1",
"@img/sharp-linux-x64": "0.35.1",
"@img/sharp-linuxmusl-arm64": "0.35.1",
"@img/sharp-linuxmusl-x64": "0.35.1",
"@img/sharp-webcontainers-wasm32": "0.35.1",
"@img/sharp-win32-arm64": "0.35.1",
"@img/sharp-win32-ia32": "0.35.1",
"@img/sharp-win32-x64": "0.35.1"
"@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"
},
"devDependencies": {
"@biomejs/biome": "^2.4.16",
"@biomejs/biome": "^2.5.0",
"@cpplint/cli": "^0.1.0",

@@ -198,0 +198,0 @@ "@emnapi/runtime": "^1.11.0",

# sharp
<img src="https://sharp.pixelplumbing.com/sharp-logo.svg" width="160" height="160" alt="sharp logo" align="right">
<picture><img src="https://sharp.pixelplumbing.com/sharp-logo.svg" width="160" height="160" alt="sharp logo" align="right"></picture>

@@ -5,0 +5,0 @@ The typical use case for this high speed Node-API module

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display