Socket
Socket
Sign inDemoInstall

@zoralabs/nft-components

Package Overview
Dependencies
Maintainers
14
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zoralabs/nft-components - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

11

dist/content-components/MediaLoader.js

@@ -25,2 +25,11 @@ "use strict";

const react_1 = __importStar(require("react"));
function getNormalizedURI(uri) {
if (uri.startsWith("ipfs://")) {
return uri.replace("ipfs://", "https://ipfs.io/ipfs/");
}
if (uri.startsWith("arweave://")) {
return uri.replace("arweave://", "https://arweave.net/");
}
return uri;
}
function useMediaObjectProps({ uri, request, a11yIdPrefix, getStyles, }) {

@@ -38,3 +47,3 @@ const [loading, setLoading] = react_1.useState(true);

onError: () => setError("Error loading"),
src: uri,
src: uri ? getNormalizedURI(uri) : uri,
...getStyles("mediaObject", {

@@ -41,0 +50,0 @@ mediaLoaded: !loading,

2

package.json
{
"name": "@zoralabs/nft-components",
"version": "0.1.9",
"version": "0.1.10",
"description": "NFT Media Rendering Components",

@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts",

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