@imagekit/react
Advanced tools
@@ -774,5 +774,7 @@ import React, { createContext, useContext } from 'react'; | ||
| sizes, | ||
| responsive = true | ||
| responsive = true, | ||
| deviceBreakpoints, | ||
| imageBreakpoints | ||
| } = _a, | ||
| nonIKParams = __rest(_a, ["transformation", "src", "loading", "queryParameters", "urlEndpoint", "transformationPosition", "sizes", "responsive"]); | ||
| nonIKParams = __rest(_a, ["transformation", "src", "loading", "queryParameters", "urlEndpoint", "transformationPosition", "sizes", "responsive", "deviceBreakpoints", "imageBreakpoints"]); | ||
| // Fail fast in development if the mandatory urlEndpoint is missing. | ||
@@ -796,3 +798,5 @@ if (!urlEndpoint || urlEndpoint.trim() === "") { | ||
| urlEndpoint, | ||
| transformationPosition | ||
| transformationPosition, | ||
| deviceBreakpoints, | ||
| imageBreakpoints | ||
| }); | ||
@@ -799,0 +803,0 @@ if (!responsive) { |
@@ -782,5 +782,7 @@ 'use strict'; | ||
| sizes, | ||
| responsive = true | ||
| responsive = true, | ||
| deviceBreakpoints, | ||
| imageBreakpoints | ||
| } = _a, | ||
| nonIKParams = __rest(_a, ["transformation", "src", "loading", "queryParameters", "urlEndpoint", "transformationPosition", "sizes", "responsive"]); | ||
| nonIKParams = __rest(_a, ["transformation", "src", "loading", "queryParameters", "urlEndpoint", "transformationPosition", "sizes", "responsive", "deviceBreakpoints", "imageBreakpoints"]); | ||
| // Fail fast in development if the mandatory urlEndpoint is missing. | ||
@@ -804,3 +806,5 @@ if (!urlEndpoint || urlEndpoint.trim() === "") { | ||
| urlEndpoint, | ||
| transformationPosition | ||
| transformationPosition, | ||
| deviceBreakpoints, | ||
| imageBreakpoints | ||
| }); | ||
@@ -807,0 +811,0 @@ if (!responsive) { |
@@ -0,4 +1,5 @@ | ||
| import { type GetImageAttributesOptions } from "@imagekit/javascript"; | ||
| import React from "react"; | ||
| import type { SrcProps } from "../interface"; | ||
| export type IKImageProps = Omit<JSX.IntrinsicElements["img"], "src" | "srcSet" | "width"> & SrcProps & { | ||
| export type IKImageProps = Omit<JSX.IntrinsicElements["img"], "src" | "srcSet" | "width"> & SrcProps & Pick<GetImageAttributesOptions, "deviceBreakpoints" | "imageBreakpoints"> & { | ||
| /** | ||
@@ -5,0 +6,0 @@ * Set to `false` to disable automatic responsive `srcSet` generation. |
+1
-1
| { | ||
| "name": "@imagekit/react", | ||
| "version": "5.0.0-beta.1", | ||
| "version": "5.0.0-beta.2", | ||
| "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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
218760
0.29%1844
0.49%