@manifoldxyz/marketplace-sdk 3.0.5 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1013,7 +1013,7 @@ class MarketplaceListing {
|
|
|
1013
1013
|
tokenData = JSON.parse(tokenURI.slice(27));
|
|
1014
1014
|
}
|
|
1015
1015
|
catch (error) {
|
|
1016
|
-
tokenData = JSON.parse(
|
|
1016
|
+
tokenData = JSON.parse(decodeURIComponent(tokenURI.slice(27)));
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
else if (tokenURI.startsWith('data:application/json;base64,')) {
|
|
@@ -1022,7 +1022,7 @@ class MarketplaceListing {
|
|
|
1022
1022
|
tokenData = JSON.parse(tokenURIDecoded);
|
|
1023
1023
|
}
|
|
1024
1024
|
catch (error) {
|
|
1025
|
-
tokenData = JSON.parse(
|
|
1025
|
+
tokenData = JSON.parse(decodeURIComponent(tokenURIDecoded));
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
1028
|
else if (tokenURI.startsWith('data:application/json,')) {
|
|
@@ -1030,7 +1030,7 @@ class MarketplaceListing {
|
|
|
1030
1030
|
tokenData = JSON.parse(tokenURI.slice(22));
|
|
1031
1031
|
}
|
|
1032
1032
|
catch (error) {
|
|
1033
|
-
tokenData = JSON.parse(
|
|
1033
|
+
tokenData = JSON.parse(decodeURIComponent(tokenURI.slice(22)));
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
1036
|
else {
|
package/package.json
CHANGED
|
@@ -983,20 +983,20 @@ class MarketplaceListing {
|
|
|
983
983
|
try {
|
|
984
984
|
tokenData = JSON.parse(tokenURI.slice(27))
|
|
985
985
|
} catch (error) {
|
|
986
|
-
tokenData = JSON.parse(
|
|
986
|
+
tokenData = JSON.parse(decodeURIComponent(tokenURI.slice(27)))
|
|
987
987
|
}
|
|
988
988
|
} else if (tokenURI.startsWith('data:application/json;base64,')) {
|
|
989
989
|
const tokenURIDecoded = atob(tokenURI.slice(29))
|
|
990
990
|
try {
|
|
991
991
|
tokenData = JSON.parse(tokenURIDecoded)
|
|
992
992
|
} catch (error) {
|
|
993
|
-
tokenData = JSON.parse(
|
|
993
|
+
tokenData = JSON.parse(decodeURIComponent(tokenURIDecoded))
|
|
994
994
|
}
|
|
995
995
|
} else if (tokenURI.startsWith('data:application/json,')) {
|
|
996
996
|
try {
|
|
997
997
|
tokenData = JSON.parse(tokenURI.slice(22))
|
|
998
998
|
} catch (error) {
|
|
999
|
-
tokenData = JSON.parse(
|
|
999
|
+
tokenData = JSON.parse(decodeURIComponent(tokenURI.slice(22)))
|
|
1000
1000
|
}
|
|
1001
1001
|
} else {
|
|
1002
1002
|
throw new Error(`Unknown format for tokenURI`)
|