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

@nextui-org/use-image

Package Overview
Dependencies
Maintainers
1
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextui-org/use-image - npm Package Compare versions

Comparing version 0.0.0-canary-20240719151825 to 0.0.0-canary-20241130124528

4

dist/index.d.ts

@@ -59,5 +59,3 @@ import { ImgHTMLAttributes } from 'react';

declare function useImage(props?: UseImageProps): Status;
declare const shouldShowFallbackImage: (status: Status, fallbackStrategy: FallbackStrategy) => boolean;
type UseImageReturn = ReturnType<typeof useImage>;
export { FallbackStrategy, UseImageProps, UseImageReturn, shouldShowFallbackImage, useImage };
export { FallbackStrategy, UseImageProps, useImage };

@@ -23,3 +23,2 @@ "use strict";

__export(src_exports, {
shouldShowFallbackImage: () => shouldShowFallbackImage,
useImage: () => useImage

@@ -82,7 +81,5 @@ });

}
var shouldShowFallbackImage = (status, fallbackStrategy) => status !== "loaded" && fallbackStrategy === "beforeLoadOrError" || status === "failed" && fallbackStrategy === "onError";
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
shouldShowFallbackImage,
useImage
});
{
"name": "@nextui-org/use-image",
"version": "0.0.0-canary-20240719151825",
"version": "0.0.0-canary-20241130124528",
"description": "React hook for progressing image loading",

@@ -28,6 +28,6 @@ "keywords": [

"dependencies": {
"@nextui-org/use-safe-layout-effect": "0.0.0-canary-20240719151825"
"@nextui-org/use-safe-layout-effect": "2.0.7-beta.5"
},
"peerDependencies": {
"react": ">=18"
"react": ">=18 || >=19.0.0-rc.0"
},

@@ -34,0 +34,0 @@ "clean-package": "../../../clean-package.config.json",

Sorry, the diff of this file is not supported yet

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