gatsby-background-image-es5
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -7,2 +7,2 @@ # Change Log | ||
<a name="0.8.0"></a> | ||
<a name="0.8.5"></a> |
@@ -431,4 +431,4 @@ "use strict"; | ||
).call(data, function (dataElement) { | ||
// If `currentSrc` is needed, check image load completion first. | ||
if (propName === "currentSrc") { | ||
// If `currentSrc` or `src` is needed, check image load completion first. | ||
if (propName === "currentSrc" || propName === 'src') { | ||
return imageLoaded(dataElement) && dataElement[propName] || ""; | ||
@@ -452,3 +452,4 @@ } // Check if CSS strings should be parsed. | ||
} else { | ||
if (propName === "currentSrc" && propName in data) { | ||
// If `currentSrc` or `src` is needed, check image load completion first. | ||
if ((propName === "currentSrc" || propName === 'src') && propName in data) { | ||
return getUrlString({ | ||
@@ -455,0 +456,0 @@ imageString: imageLoaded(data) && data[propName] || "" |
@@ -368,3 +368,4 @@ "use strict"; | ||
srcWebp: _propTypes["default"].string, | ||
srcSetWebp: _propTypes["default"].string | ||
srcSetWebp: _propTypes["default"].string, | ||
media: _propTypes["default"].string | ||
}); | ||
@@ -380,3 +381,4 @@ | ||
srcWebp: _propTypes["default"].string, | ||
srcSetWebp: _propTypes["default"].string | ||
srcSetWebp: _propTypes["default"].string, | ||
media: _propTypes["default"].string | ||
}); | ||
@@ -383,0 +385,0 @@ |
{ | ||
"name": "gatsby-background-image-es5", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"description": "Lazy-loading React background-image component with optional support for the blur-up effect. Transpiled to ES5.", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "105828e23cf28e626fbfaa5f2fa82edbe0d0693f" | ||
"gitHead": "48319f0a0e4d1870140be5f14f41b47c0900c302" | ||
} |
@@ -468,2 +468,2 @@ <h1 align="center"> | ||
*For anything else tell me by opening an issue or a PR : )!* | ||
*For anything else tell me by opening an issue or a PR : )!* |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87262
1512