Socket
Socket
Sign inDemoInstall

gatsby-image

Package Overview
Dependencies
Maintainers
2
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-image - npm Package Compare versions

Comparing version 1.0.27 to 1.0.28

2

package.json
{
"name": "gatsby-image",
"version": "1.0.27",
"version": "1.0.28",
"description": "Lazy-loading React image component with optional support for the blur-up effect.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,2 +11,6 @@ # gatsby-image

_Warning: gatsby-image is **not** a drop-in replacement for `<img/>`. It's
optimized for fixed width/height images and images that stretch the full-width
of a container. Some ways you can use `<img/>` won't work with gatsby-image._
**[Demo](https://using-gatsby-image.gatsbyjs.org)**

@@ -59,4 +63,4 @@

```jsx
import React from "react"
import Img from "gatsby-image"
import React from "react";
import Img from "gatsby-image";

@@ -68,3 +72,3 @@ export default ({ data }) => (

</div>
)
);

@@ -83,3 +87,3 @@ export const query = graphql`

}
`
`;
```

@@ -121,4 +125,4 @@

Plugins supporting `gatsby-image` currently include
[gatsby-transformer-sharp](/packages/gatsby-transformer-sharp/) and
[gatsby-source-contentful](/packages/gatsby-source-contentful/).
[gatsby-transformer-sharp](/packages/gatsby-transformer-sharp/),
[gatsby-source-contentful](/packages/gatsby-source-contentful/) and [gatsby-source-datocms](https://github.com/datocms/gatsby-source-datocms).

@@ -149,2 +153,9 @@ Their fragments are:

### gatsby-source-datocms
* `GatsbyDatoCmsResolutions`
* `GatsbyDatoCmsResolutions_noBase64`
* `GatsbyDatoCmsSizes`
* `GatsbyDatoCmsSizes_noBase64`
If you don't want to use the blur-up effect, choose the fragment with `noBase64`

@@ -151,0 +162,0 @@ at the end. If you want to use the traced placeholder SVGs, choose the fragment

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