Comparing version 1.0.44 to 1.0.45
{ | ||
"name": "libcip54", | ||
"version": "1.0.44", | ||
"version": "1.0.45", | ||
"description": "Cardano Smart NFT Library", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
@@ -73,3 +73,3 @@ import pgCon from 'pg'; | ||
export declare const getCIP68Metadata: (unit: string) => Promise<any>; | ||
export declare const getFiles: (unit: string, metadata?: any) => Promise<{ | ||
export declare const getFiles: (unit: string, metadata?: any, actualUnit?: string) => Promise<{ | ||
src: string; | ||
@@ -76,0 +76,0 @@ mediaType: string; |
@@ -512,3 +512,3 @@ "use strict"; | ||
exports.getCIP68Metadata = getCIP68Metadata; | ||
var getFiles = function (unit, metadata) { return __awaiter(void 0, void 0, void 0, function () { | ||
var getFiles = function (unit, metadata, actualUnit) { return __awaiter(void 0, void 0, void 0, function () { | ||
var files, tokenMetadata, c, tfile, sresult, blob, fileSrc, tobj, ntfile; | ||
@@ -526,2 +526,3 @@ var _a; | ||
tokenMetadata = _b.sent(); | ||
actualUnit = unit; | ||
_b.label = 2; | ||
@@ -552,3 +553,3 @@ case 2: | ||
delete tobj.props.mediaType; | ||
tobj.unit = unit; | ||
tobj.unit = actualUnit; | ||
if (sresult.props) | ||
@@ -564,3 +565,3 @@ Object.assign(tobj.props, sresult.props); | ||
ntfile.unit = sresult.unit; | ||
ntfile.origUnit = unit; | ||
ntfile.origUnit = actualUnit; | ||
ntfile.mediaType = sresult.mediaType; | ||
@@ -627,3 +628,3 @@ ntfile.origMediaType = tfile.mediaType; | ||
_b = unit; | ||
return [4 /*yield*/, (0, exports.getFiles)('own', metadata)]; | ||
return [4 /*yield*/, (0, exports.getFiles)('own', metadata, unit)]; | ||
case 3: | ||
@@ -630,0 +631,0 @@ _a[_b] = _l.sent(); |
{ | ||
"name": "libcip54", | ||
"version": "1.0.44", | ||
"version": "1.0.45", | ||
"description": "Cardano Smart NFT Library", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
69748
1220