Comparing version 1.1.25 to 1.1.26
{ | ||
"name": "libcip54", | ||
"version": "1.1.25", | ||
"version": "1.1.26", | ||
"description": "Cardano Smart NFT Library", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
@@ -237,3 +237,3 @@ "use strict"; | ||
if (handle) { | ||
handle = base64ToUnicode(handle); | ||
handle = hexToAscii(handle); | ||
handle = punycode_1.default.toUnicode(handle); | ||
@@ -1140,2 +1140,10 @@ } | ||
}; | ||
function hexToAscii(str1) { | ||
const hex = str1.toString(); | ||
let str = ''; | ||
for (let n = 0; n < hex.length; n += 2) { | ||
str += String.fromCharCode(parseInt(hex.substr(n, 2), 16)); | ||
} | ||
return str; | ||
} | ||
function unicodeToBase64(str) { | ||
@@ -1142,0 +1150,0 @@ return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function toSolidBytes(match, p1) { |
{ | ||
"name": "libcip54", | ||
"version": "1.1.25", | ||
"version": "1.1.26", | ||
"description": "Cardano Smart NFT Library", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
62226
1341