Huge News!Announcing our $40M Series B led by Abstract Ventures.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.9 to 0.9.10

4

lib/HelperUtils.js

@@ -42,7 +42,7 @@ "use strict";

if (fluid && (0, _MediaUtils.hasArtDirectionFluidArray)(props)) {
if (fluid && (0, _MediaUtils.hasArtDirectionSupport)(props, 'fluid')) {
convertedProps.fluid = (0, _MediaUtils.groupByMedia)(convertedProps.fluid);
}
if (fixed && (0, _MediaUtils.hasArtDirectionFixedArray)(props)) {
if (fixed && (0, _MediaUtils.hasArtDirectionSupport)(props, 'fixed')) {
convertedProps.fixed = (0, _MediaUtils.groupByMedia)(convertedProps.fixed);

@@ -49,0 +49,0 @@ }

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

exports.__esModule = true;
exports.matchesMedia = exports.hasArtDirectionArray = exports.hasArtDirectionFixedArray = exports.hasArtDirectionFluidArray = exports.createArtDirectionSources = exports.groupByMedia = void 0;
exports.matchesMedia = exports.hasArtDirectionArray = exports.hasArtDirectionSupport = exports.createArtDirectionSources = exports.groupByMedia = void 0;

@@ -67,24 +67,14 @@ var _some = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/some"));

var hasArtDirectionFluidArray = function hasArtDirectionFluidArray(props) {
var hasArtDirectionSupport = function hasArtDirectionSupport(props, prop) {
var _context;
return props.fluid && (0, _isArray["default"])(props.fluid) && (0, _some["default"])(_context = props.fluid).call(_context, function (fluidImage) {
return typeof fluidImage.media !== 'undefined';
return props[prop] && (0, _isArray["default"])(props[prop]) && (0, _some["default"])(_context = props[prop]).call(_context, function (image) {
return typeof image.media !== 'undefined';
});
};
exports.hasArtDirectionFluidArray = hasArtDirectionFluidArray;
exports.hasArtDirectionSupport = hasArtDirectionSupport;
var hasArtDirectionFixedArray = function hasArtDirectionFixedArray(props) {
var _context2;
return props.fixed && (0, _isArray["default"])(props.fixed) && (0, _some["default"])(_context2 = props.fixed).call(_context2, function (fixedImage) {
return typeof fixedImage.media !== 'undefined';
});
};
exports.hasArtDirectionFixedArray = hasArtDirectionFixedArray;
var hasArtDirectionArray = function hasArtDirectionArray(props) {
return hasArtDirectionFluidArray(props) || hasArtDirectionFixedArray(props);
return hasArtDirectionSupport(props, 'fluid') || hasArtDirectionSupport(props, 'fixed');
};

@@ -91,0 +81,0 @@

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

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

},
"gitHead": "fb8b1006304dbb0b92c942649897d3707f96945c"
"gitHead": "da2e7431a4300aa82e17a270766a37bf4b2938ba"
}

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

>
<h2>Hello gatsby-background-image-es5</h2>
<h2>gatsby-background-image-es5</h2>
</BackgroundImage>

@@ -236,0 +236,0 @@ )

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