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.0.43 to 1.0.44

2

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

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

@@ -548,2 +548,4 @@ "use strict";

tobj.props = __assign({}, tokenMetadata === null || tokenMetadata === void 0 ? void 0 : tokenMetadata.files[c]);
delete tobj.props.src;
delete tobj.props.mediaType;
tobj.unit = unit;

@@ -606,15 +608,15 @@ if (sresult.props)

var result, _i, files_2, file, _a, _b, _c, _d, tfile, sresult, blob, _e, ntfile, e_1;
var _f, _g, _h;
return __generator(this, function (_j) {
switch (_j.label) {
var _f, _g, _h, _j, _k;
return __generator(this, function (_l) {
switch (_l.label) {
case 0:
result = {};
_i = 0, files_2 = files;
_j.label = 1;
_l.label = 1;
case 1:
if (!(_i < files_2.length)) return [3 /*break*/, 13];
file = files_2[_i];
_j.label = 2;
_l.label = 2;
case 2:
_j.trys.push([2, 10, , 11]);
_l.trys.push([2, 10, , 11]);
if (!(file === 'own')) return [3 /*break*/, 4];

@@ -625,3 +627,3 @@ _a = result;

case 3:
_a[_b] = _j.sent();
_a[_b] = _l.sent();
return [3 /*break*/, 9];

@@ -634,3 +636,3 @@ case 4:

case 5:
_c[_d] = _j.sent();
_c[_d] = _l.sent();
return [3 /*break*/, 9];

@@ -642,14 +644,15 @@ case 6:

case 7:
sresult = _j.sent();
sresult = _l.sent();
blob = new Blob([sresult.buffer], { type: sresult.mediaType });
tfile.origSrc = tfile.src;
tfile.props = __assign({}, file);
(_f = tfile.props) === null || _f === void 0 ? true : delete _f.src;
tfile.unit = unit;
if (sresult.props)
Object.assign(tfile.props, sresult.props);
(_f = tfile.props) === null || _f === void 0 ? true : delete _f.src;
(_g = tfile.props) === null || _g === void 0 ? true : delete _g.mediaType;
_e = tfile;
return [4 /*yield*/, (0, exports.getDataURLFromBlob)(blob)];
case 8:
_e.src = _j.sent();
_e.src = _l.sent();
if (!result[unit])

@@ -666,3 +669,4 @@ result[unit] = [];

Object.assign(ntfile.props, sresult.props);
(_g = ntfile.props) === null || _g === void 0 ? true : delete _g.src;
(_h = ntfile.props) === null || _h === void 0 ? true : delete _h.src;
(_j = ntfile.props) === null || _j === void 0 ? true : delete _j.mediaType;
ntfile.src = tfile.src;

@@ -678,6 +682,6 @@ ntfile.origSrc = tfile.origSrc;

result[unit].push(tfile);
_j.label = 9;
_l.label = 9;
case 9: return [3 /*break*/, 11];
case 10:
e_1 = _j.sent();
e_1 = _l.sent();
if (!result.error)

@@ -688,5 +692,5 @@ result.error = [];

case 11:
if (((_h = result[unit]) === null || _h === void 0 ? void 0 : _h.length) > 5)
if (((_k = result[unit]) === null || _k === void 0 ? void 0 : _k.length) > 5)
return [3 /*break*/, 13]; // limit from downloading too many files, the front end api will always download them individually if it needs to
_j.label = 12;
_l.label = 12;
case 12:

@@ -769,5 +773,5 @@ _i++;

var file, tokenMetadata, src, result, origProps;
var _a, _b, _c, _d, _e, _f;
return __generator(this, function (_g) {
switch (_g.label) {
var _a, _b, _c, _d, _e, _f, _g;
return __generator(this, function (_h) {
switch (_h.label) {
case 0:

@@ -794,3 +798,3 @@ ensureInit();

case 2:
tokenMetadata = _g.sent();
tokenMetadata = _h.sent();
try {

@@ -810,3 +814,3 @@ file = tokenMetadata === null || tokenMetadata === void 0 ? void 0 : tokenMetadata.files.filter(function (f) { return f.id === id; })[0];

}
_g.label = 3;
_h.label = 3;
case 3:

@@ -822,3 +826,3 @@ if (!file) {

case 4:
result = _g.sent();
result = _h.sent();
result.src = src;

@@ -831,2 +835,3 @@ origProps = result.props;

(_f = result === null || result === void 0 ? void 0 : result.props) === null || _f === void 0 ? true : delete _f.src;
(_g = result === null || result === void 0 ? void 0 : result.props) === null || _g === void 0 ? true : delete _g.mediaType;
if (!result.unit)

@@ -833,0 +838,0 @@ result.unit = unit;

{
"name": "libcip54",
"version": "1.0.43",
"version": "1.0.44",
"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