cloudimage-responsive-utils
Advanced tools
Comparing version 2.3.0-beta.1 to 2.3.0-beta.2
@@ -30,6 +30,6 @@ "use strict"; | ||
if (!ignoreNodeRatio && imgNodeRatio) { | ||
if (!ignoreNodeRatio && imgNodeWidth && imgNodeHeight) { | ||
return imgNodeWidth / imgNodeHeight; | ||
} else if (!ignoreNodeRatio && imgNodeRatio) { | ||
return imgNodeRatio; | ||
} else if (saveNodeImgRatio && imgNodeWidth && imgNodeHeight) { | ||
return imgNodeWidth / imgNodeHeight; | ||
} else if (width && height) { | ||
@@ -36,0 +36,0 @@ return width / height; |
{ | ||
"name": "cloudimage-responsive-utils", | ||
"version": "2.3.0-beta.1", | ||
"version": "2.3.0-beta.2", | ||
"description": "cloudimage responsive utils", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -15,6 +15,6 @@ export const getRatio = ({ imgNodeRatio, width, height, size, config, imgNodeWidth, imgNodeHeight }) => { | ||
if (!ignoreNodeRatio && imgNodeRatio) { | ||
if (!ignoreNodeRatio && imgNodeWidth && imgNodeHeight) { | ||
return imgNodeWidth / imgNodeHeight; | ||
} else if (!ignoreNodeRatio && imgNodeRatio) { | ||
return imgNodeRatio; | ||
} else if (saveNodeImgRatio && imgNodeWidth && imgNodeHeight) { | ||
return imgNodeWidth / imgNodeHeight; | ||
} else if (width && height) { | ||
@@ -21,0 +21,0 @@ return width / height; |
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
102859