Comparing version 0.30.6 to 0.30.7
@@ -360,3 +360,3 @@ 'use strict'; | ||
* function getNormalSize({ width, height, orientation }) { | ||
* return orientation || 0 >= 5 | ||
* return (orientation || 0) >= 5 | ||
* ? { width: height, height: width } | ||
@@ -363,0 +363,0 @@ * : { width, height }; |
@@ -498,3 +498,3 @@ 'use strict'; | ||
} | ||
const effort = options.effort || options.reductionEffort; | ||
const effort = is.defined(options.effort) ? options.effort : options.reductionEffort; | ||
if (is.defined(effort)) { | ||
@@ -501,0 +501,0 @@ if (is.integer(effort) && is.inRange(effort, 0, 6)) { |
@@ -214,3 +214,3 @@ 'use strict'; | ||
* @param {String} [options.position='centre'] - position, gravity or strategy to use when `fit` is `cover` or `contain`. | ||
* @param {String|Object} [options.background={r: 0, g: 0, b: 0, alpha: 1}] - background colour when using a `fit` of `contain`, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to black without transparency. | ||
* @param {String|Object} [options.background={r: 0, g: 0, b: 0, alpha: 1}] - background colour when `fit` is `contain`, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to black without transparency. | ||
* @param {String} [options.kernel='lanczos3'] - the kernel to use for image reduction. | ||
@@ -217,0 +217,0 @@ * @param {Boolean} [options.withoutEnlargement=false] - do not enlarge if the width *or* height are already less than the specified dimensions, equivalent to GraphicsMagick's `>` geometry option. |
@@ -15,2 +15,5 @@ 'use strict'; | ||
const [platform, arch] = platformAndArch.split('-'); | ||
if (platform === 'linux' && /Module did not self-register/.test(err.message)) { | ||
help.push('- Using worker threads? See https://sharp.pixelplumbing.com/install#worker-threads'); | ||
} | ||
help.push( | ||
@@ -17,0 +20,0 @@ '- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose 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.30.6", | ||
"version": "0.30.7", | ||
"author": "Lovell Fuller <npm@lovell.info>", | ||
@@ -134,3 +134,3 @@ "homepage": "https://github.com/lovell/sharp", | ||
"node-addon-api": "^5.0.0", | ||
"prebuild-install": "^7.1.0", | ||
"prebuild-install": "^7.1.1", | ||
"semver": "^7.3.7", | ||
@@ -142,3 +142,3 @@ "simple-get": "^4.0.1", | ||
"devDependencies": { | ||
"async": "^3.2.3", | ||
"async": "^3.2.4", | ||
"cc": "^3.0.1", | ||
@@ -145,0 +145,0 @@ "decompress-zip": "^0.3.3", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
493438
4632
Updatedprebuild-install@^7.1.1