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.42 to 1.0.43

2

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

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

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

ntfile.id = sresult === null || sresult === void 0 ? void 0 : sresult.id;
ntfile.props = sresult === null || sresult === void 0 ? void 0 : sresult.props;
ntfile.src = tfile.src;

@@ -607,15 +606,15 @@ ntfile.origSrc = tfile.origSrc;

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

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

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

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

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

@@ -643,6 +642,7 @@ case 6:

case 7:
sresult = _g.sent();
sresult = _j.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;

@@ -654,3 +654,3 @@ if (sresult.props)

case 8:
_e.src = _g.sent();
_e.src = _j.sent();
if (!result[unit])

@@ -664,3 +664,6 @@ result[unit] = [];

ntfile.id = sresult === null || sresult === void 0 ? void 0 : sresult.id;
ntfile.props = sresult === null || sresult === void 0 ? void 0 : sresult.props;
ntfile.props = __assign({}, tfile.props);
if (sresult === null || sresult === void 0 ? void 0 : sresult.props)
Object.assign(ntfile.props, sresult.props);
(_g = ntfile.props) === null || _g === void 0 ? true : delete _g.src;
ntfile.src = tfile.src;

@@ -676,6 +679,6 @@ ntfile.origSrc = tfile.origSrc;

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

@@ -686,5 +689,5 @@ result.error = [];

case 11:
if (((_f = result[unit]) === null || _f === void 0 ? void 0 : _f.length) > 5)
if (((_h = result[unit]) === null || _h === void 0 ? void 0 : _h.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
_g.label = 12;
_j.label = 12;
case 12:

@@ -767,5 +770,5 @@ _i++;

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

@@ -792,3 +795,3 @@ ensureInit();

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

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

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

@@ -820,3 +823,3 @@ if (!file) {

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

@@ -827,2 +830,4 @@ origProps = result.props;

Object.assign(result.props, origProps);
(_e = result === null || result === void 0 ? void 0 : result.props) === null || _e === void 0 ? true : delete _e.buffer;
(_f = result === null || result === void 0 ? void 0 : result.props) === null || _f === void 0 ? true : delete _f.src;
if (!result.unit)

@@ -829,0 +834,0 @@ result.unit = unit;

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