Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-sharp

Package Overview
Dependencies
Maintainers
17
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-sharp - npm Package Compare versions

Comparing version 1.4.0-next.0 to 1.4.0-next.1

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Changelog: `gatsby-sharp`

## [1.3.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-sharp@1.3.0/packages/gatsby-sharp) (2022-12-13)
[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.3)
#### Chores
- update dependency typescript to ^4.9.3 [#37192](https://github.com/gatsbyjs/gatsby/issues/37192) ([204ed0e](https://github.com/gatsbyjs/gatsby/commit/204ed0e220eb9c1c5cdec692e82bce8e3e82e915))
- update sharp [#37131](https://github.com/gatsbyjs/gatsby/issues/37131) ([5a5e419](https://github.com/gatsbyjs/gatsby/commit/5a5e419709cd4cf39ae344a887249b0630756baf))
## [1.2.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-sharp@1.2.0/packages/gatsby-sharp) (2022-11-25)

@@ -8,0 +17,0 @@

15

dist/index.js

@@ -6,9 +6,6 @@ "use strict";

} = require(`child_process`);
const {
createRequire
} = require(`module`);
let sharpInstance;
module.exports = async function getSharpInstance() {

@@ -18,8 +15,8 @@ try {

} catch (err) {
await rebuildSharp(); // Try importing again now we have rebuilt sharp
await rebuildSharp();
// Try importing again now we have rebuilt sharp
return importSharp();
}
};
function importSharp() {

@@ -29,11 +26,9 @@ if (!sharpInstance) {

const sharp = cleanRequire(`sharp`);
sharp.simd(true); // Concurrency is handled by gatsby
sharp.simd(true);
// Concurrency is handled by gatsby
sharp.concurrency(1);
sharpInstance = sharp;
}
return sharpInstance;
}
function rebuildSharp() {

@@ -48,6 +43,4 @@ return new Promise((resolve, reject) => {

}
return reject(stderr);
}
return setImmediate(() => resolve(stdout));

@@ -54,0 +47,0 @@ });

{
"name": "gatsby-sharp",
"version": "1.4.0-next.0",
"version": "1.4.0-next.1",
"sideEffects": false,

@@ -18,3 +18,3 @@ "keywords": [

"@types/sharp": "^0.31.0",
"sharp": "^0.31.2"
"sharp": "^0.31.3"
},

@@ -44,3 +44,3 @@ "devDependencies": {

},
"gitHead": "7938eb07143c06953ae0197d26533ba34eecfc29"
"gitHead": "5df8a99b7fd6de53a8f3088138cc574f55f4cfd5"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc