New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

libcip54

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libcip54 - npm Package Compare versions

Comparing version 1.1.28 to 1.1.29

2

lib/package.json
{
"name": "libcip54",
"version": "1.1.28",
"version": "1.1.29",
"description": "Cardano Smart NFT Library",

@@ -5,0 +5,0 @@ "main": "lib/src/index.js",

@@ -287,3 +287,3 @@ "use strict";

defaultGroup = "GROUP BY encode(multi_asset.policy, 'hex')";
defaultSelect = "encode(multi_asset.policy, 'hex') AS UNIT";
defaultSelect = "encode(multi_asset.policy, 'hex') AS UNIT, ";
defaultCache = 'getUniquePoliciesFromStake';

@@ -791,2 +791,4 @@ }

};
if (!src)
return null;
if (src.substring(0, 5) === 'cnft:') {

@@ -807,2 +809,14 @@ // Here we actually recurse

}
else if (src.substring(0, 14) === 'ipfs://ipfs://') {
const res = await axios_1.default.get(IPFS_GATEWAY + src.substring(14), { responseType: 'arraybuffer' });
if (!result.mediaType)
result.mediaType = res.headers['content-type'];
result.buffer = res.data;
}
else if (src.substring(0, 12) === 'ipfs://ipfs:' || src.substring(0, 12) === 'ipfs:ipfs://') {
const res = await axios_1.default.get(IPFS_GATEWAY + src.substring(12), { responseType: 'arraybuffer' });
if (!result.mediaType)
result.mediaType = res.headers['content-type'];
result.buffer = res.data;
}
else if (src.substring(0, 5) === 'ar://') {

@@ -844,2 +858,15 @@ const res = await axios_1.default.get(ARWEAVE_GATEWAY + src.substring(5), { responseType: 'arraybuffer' });

}
else if (src.substring(0, 5) === 'ipfs/') {
const res = await axios_1.default.get(IPFS_GATEWAY + src.substring(5), { responseType: 'arraybuffer' });
if (!result.mediaType)
result.mediaType = res.headers['content-type'];
result.buffer = res.data;
}
else if (src.length === 46) {
// ipfs hash is 46 bytes long, sometimes people get confused
const res = await axios_1.default.get(IPFS_GATEWAY + src, { responseType: 'arraybuffer' });
if (!result.mediaType)
result.mediaType = res.headers['content-type'];
result.buffer = res.data;
}
return result;

@@ -846,0 +873,0 @@ };

{
"name": "libcip54",
"version": "1.1.28",
"version": "1.1.29",
"description": "Cardano Smart NFT Library",

@@ -5,0 +5,0 @@ "main": "lib/src/index.js",

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