Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudimage-responsive-utils

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudimage-responsive-utils - npm Package Compare versions

Comparing version 2.3.0-beta.1 to 2.3.0-beta.2

6

dist/utils/get-ratio.js

@@ -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;

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