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

nftstorage.link

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nftstorage.link - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

2

package.json
{
"name": "nftstorage.link",
"version": "1.0.2",
"version": "1.1.0",
"description": "Utilities for working with the NFT.Storage IPFS Edge Gateway",

@@ -5,0 +5,0 @@ "type": "module",

@@ -114,3 +114,5 @@ # nftstorage.link client utilities

const [url, setUrl] = useState('')
useEffect(async () => setUrl(await getGatewayURL(cid)), [cid])
useEffect(() => {
getGatewayURL(cid).then(setUrl)
}, [cid])
return url ? <a href={url}>{title}</a> : null

@@ -121,3 +123,5 @@ }

const [url, setUrl] = useState('')
useEffect(async () => setUrl(await getGatewayURL(cid)), [cid])
useEffect(() => {
getGatewayURL(cid).then(setUrl)
}, [cid])
return url ? <img src={url} alt={alt} /> : null

@@ -127,2 +131,4 @@ }

See the full example here: https://github.com/nftstorage/react-nftstorage.link-fallback-example
##### Node.js usage

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