@ethereansos/interfaces-core 0.4.148 → 0.4.151
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs.js +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -64102,7 +64102,10 @@ function setItem(key, value) {
|
|
64102
64102
|
db = _context2.sent;
|
64103
64103
|
txn = db.transaction(dbTable, 'readwrite');
|
64104
64104
|
store = txn.objectStore(dbTable);
|
64105
|
-
query = store.put(
|
64105
|
+
query = store.put({
|
64106
|
+
key: key,
|
64107
|
+
value: value && _typeof(value).toLowerCase() === 'string' ? value : JSON.stringify(value || null)
|
64108
|
+
}, key);
|
64106
64109
|
|
64107
64110
|
query.onsuccess = function (event) {
|
64108
64111
|
return ok(event.target.result);
|
@@ -64315,7 +64318,7 @@ function cleanLink(linkToClean) {
|
|
64315
64318
|
|
64316
64319
|
var split = cleanedLink.split('/ipfs/');
|
64317
64320
|
var ipfsLink = split[split.length - 1];
|
64318
|
-
cleanedLink = '//
|
64321
|
+
cleanedLink = '//ipfs.io/ipfs/' + ipfsLink;
|
64319
64322
|
return cleanedLink;
|
64320
64323
|
}
|
64321
64324
|
|