@imagekit/react
Advanced tools
@@ -787,2 +787,15 @@ import React, { createContext, useContext } from 'react'; | ||
| const widthInt = getInt(nonIKParams.width); | ||
| if (!responsive) { | ||
| const nonResponsiveSrc = buildSrc({ | ||
| src, | ||
| transformation, | ||
| queryParameters, | ||
| urlEndpoint, | ||
| transformationPosition | ||
| }); | ||
| return React.createElement("img", Object.assign({}, nonIKParams, { | ||
| loading: loading, | ||
| src: nonResponsiveSrc | ||
| })); | ||
| } | ||
| const { | ||
@@ -802,8 +815,2 @@ src: newSrc, | ||
| }); | ||
| if (!responsive) { | ||
| return React.createElement("img", Object.assign({}, nonIKParams, { | ||
| loading: loading, | ||
| src: newSrc | ||
| })); | ||
| } | ||
| return React.createElement("img", Object.assign({}, nonIKParams, { | ||
@@ -810,0 +817,0 @@ loading: loading, |
@@ -795,2 +795,15 @@ 'use strict'; | ||
| const widthInt = getInt(nonIKParams.width); | ||
| if (!responsive) { | ||
| const nonResponsiveSrc = buildSrc({ | ||
| src, | ||
| transformation, | ||
| queryParameters, | ||
| urlEndpoint, | ||
| transformationPosition | ||
| }); | ||
| return React__default["default"].createElement("img", Object.assign({}, nonIKParams, { | ||
| loading: loading, | ||
| src: nonResponsiveSrc | ||
| })); | ||
| } | ||
| const { | ||
@@ -810,8 +823,2 @@ src: newSrc, | ||
| }); | ||
| if (!responsive) { | ||
| return React__default["default"].createElement("img", Object.assign({}, nonIKParams, { | ||
| loading: loading, | ||
| src: newSrc | ||
| })); | ||
| } | ||
| return React__default["default"].createElement("img", Object.assign({}, nonIKParams, { | ||
@@ -818,0 +825,0 @@ loading: loading, |
+1
-1
| { | ||
| "name": "@imagekit/react", | ||
| "version": "5.0.0", | ||
| "version": "5.0.1", | ||
| "description": "React SDK for ImageKit.io which implements client-side upload and URL generation for use inside a react application.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
219354
0.28%1858
0.76%