cloudimage-responsive-utils
Advanced tools
Comparing version 2.0.15 to 2.0.16
@@ -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 @@ } |
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
100738
2429