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.19 to 1.0.20

9

index.js

@@ -277,3 +277,4 @@ "use strict";

onLoad: function onLoad() {
return _this3.state.IOSupported && _this3.setState({ imgLoaded: true });
_this3.state.IOSupported && _this3.setState({ imgLoaded: true });
_this3.props.onLoad && _this3.props.onLoad();
}

@@ -359,3 +360,4 @@ })

onLoad: function onLoad() {
return _this3.setState({ imgLoaded: true });
_this3.setState({ imgLoaded: true });
_this3.props.onLoad && _this3.props.onLoad();
}

@@ -390,5 +392,6 @@ })

position: _propTypes2.default.string,
backgroundColor: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.bool])
backgroundColor: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.bool]),
onLoad: _propTypes2.default.func
};
exports.default = Image;
{
"name": "gatsby-image",
"version": "1.0.19",
"version": "1.0.20",
"description": "Lazy-loading React image component with optional support for the blur-up effect.",

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

@@ -179,2 +179,3 @@ # gatsby-image

| `backgroundColor` | `string|bool` | Set a colored background placeholder. If true, uses "lightgray" for the color. You can also pass in any valid color string. |
| `onLoad` | `func` | A callback that is called when the full-size image has loaded.

@@ -181,0 +182,0 @@ ## Some other stuff to be aware of

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc