New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-background-image-es5

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-background-image-es5 - npm Package Compare versions

Comparing version 0.9.15 to 0.9.16

2

index.js

@@ -197,3 +197,3 @@ "use strict";

(0, _forEach.default)(_context3 = this.imageRef).call(_context3, function (currentImageRef) {
return currentImageRef.onload = null;
return !!currentImageRef && (currentImageRef.onload = null);
});

@@ -200,0 +200,0 @@ } else {

@@ -177,5 +177,5 @@ "use strict";

var hasPictureRef = function hasPictureRef(imageRef) {
return (0, _SimpleUtils.isString)(imageRef) || !!imageRef.currentSrc;
return (0, _SimpleUtils.isString)(imageRef) || !!imageRef && !!imageRef.currentSrc;
};
exports.hasPictureRef = hasPictureRef;

@@ -70,3 +70,3 @@ "use strict";

return props[prop] && (0, _isArray.default)(props[prop]) && (0, _some.default)(_context = props[prop]).call(_context, function (image) {
return typeof image.media !== 'undefined';
return !!image && typeof image.media !== 'undefined';
});

@@ -73,0 +73,0 @@ };

{
"name": "gatsby-background-image-es5",
"version": "0.9.15",
"version": "0.9.16",
"description": "Lazy-loading React background-image component with optional support for the blur-up effect. Transpiled to ES5.",

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

},
"gitHead": "d4c1f485c4041b022ef296e69178415f449239e9"
"gitHead": "39034b454153e78ef0582b68c305c81dfb2ac888"
}

@@ -663,3 +663,3 @@ <h1 align="center">

_For anything you may think necessary tell me by opening an issue or a PR : )!_
_For anything you may think necessary tell me by opening an issue or a PR : )!_

@@ -666,0 +666,0 @@ ## Acknowledgements

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