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.0.15 to 2.0.16

24

dist/utils/process-react-node.js

@@ -40,4 +40,2 @@ "use strict";

function _readOnlyError(name) { throw new Error("\"" + name + "\" is read-only"); }
var processReactNode = function processReactNode(props, imgNode, isUpdate, windowScreenBecomesBigger) {

@@ -69,8 +67,8 @@ var lowQualityPreview = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;

if (size.params.src) {
var _ref = (_readOnlyError("src"), (0, _getImgSrc.getImgSRC)(size.params.src, baseURL));
var _getImgSRC3 = (0, _getImgSrc.getImgSRC)(size.params.src, baseURL);
var _ref2 = _slicedToArray(_ref, 2);
var _getImgSRC4 = _slicedToArray(_getImgSRC3, 2);
src = _ref2[0];
isSVG = _ref2[1];
src = _getImgSRC4[0];
svg = _getImgSRC4[1];
}

@@ -131,9 +129,9 @@ }

var getProps = function getProps(_ref3) {
var src = _ref3.src,
width = _ref3.width,
height = _ref3.height,
ratio = _ref3.ratio,
params = _ref3.params,
sizes = _ref3.sizes;
var getProps = function getProps(_ref) {
var src = _ref.src,
width = _ref.width,
height = _ref.height,
ratio = _ref.ratio,
params = _ref.params,
sizes = _ref.sizes;
return {

@@ -140,0 +138,0 @@ imgNodeSRC: src || '',

{
"name": "cloudimage-responsive-utils",
"version": "2.0.15",
"version": "2.0.16",
"description": "cloudimage responsive utils",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -18,5 +18,5 @@ import { generateURL } from '../utils/generate-url';

const [src, svg] = getImgSRC(imgNodeSRC, baseURL);
let [src, svg] = getImgSRC(imgNodeSRC, baseURL);
let previewCloudimgURL, size;
if (adaptive) {

@@ -26,3 +26,3 @@ size = getBreakpoint(sizes, presets);

if(size.params.src){
[src, isSVG] = getImgSRC(size.params.src, baseURL);
[src, svg] = getImgSRC(size.params.src, baseURL);
}

@@ -29,0 +29,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