mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-04-28 07:57:58 +00:00
1 line
7.2 KiB
Plaintext
1 line
7.2 KiB
Plaintext
{"dependencies":[{"name":"@babel/runtime/helpers/asyncToGenerator","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"YisBBiy2Xm9DEVdFebZ2nbgAHBo=","exportNames":["*"],"imports":1}},{"name":"@react-native-async-storage/async-storage","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}}],"key":"0kSRlooyBOaYM9tlTtK91nq+uds=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"StorageUtil\", {\n enumerable: true,\n get: function () {\n return StorageUtil;\n }\n });\n var _babelRuntimeHelpersAsyncToGenerator = require(_dependencyMap[0], \"@babel/runtime/helpers/asyncToGenerator\");\n var _asyncToGenerator = _interopDefault(_babelRuntimeHelpersAsyncToGenerator);\n var _reactNativeAsyncStorageAsyncStorage = require(_dependencyMap[1], \"@react-native-async-storage/async-storage\");\n var AsyncStorage = _interopDefault(_reactNativeAsyncStorageAsyncStorage);\n var StorageUtil = {\n WALLETCONNECT_DEEPLINK_CHOICE: 'WALLETCONNECT_DEEPLINK_CHOICE',\n W3M_RECENT_WALLET_INFO: 'W3M_RECENT_WALLET_INFO',\n setDeepLinkWallet(link) {\n return AsyncStorage.default.setItem(StorageUtil.WALLETCONNECT_DEEPLINK_CHOICE, JSON.stringify({\n href: link\n }));\n },\n removeDeepLinkWallet() {\n return AsyncStorage.default.removeItem(StorageUtil.WALLETCONNECT_DEEPLINK_CHOICE);\n },\n setRecentWallet(wallet) {\n try {\n AsyncStorage.default.setItem(StorageUtil.W3M_RECENT_WALLET_INFO, JSON.stringify(wallet));\n } catch (error) {\n console.info('Unable to set recent wallet');\n }\n },\n getRecentWallet() {\n return (0, _asyncToGenerator.default)(function* () {\n try {\n var wallet = yield AsyncStorage.default.getItem(StorageUtil.W3M_RECENT_WALLET_INFO);\n if (wallet) {\n var parsedWallet = JSON.parse(wallet);\n if (typeof parsedWallet.app === 'object') {\n // Wallet from old api. Discard it\n yield AsyncStorage.default.removeItem(StorageUtil.W3M_RECENT_WALLET_INFO);\n return undefined;\n }\n return parsedWallet;\n }\n return undefined;\n } catch (error) {\n console.info('Unable to get recent wallet');\n }\n return undefined;\n })();\n }\n };\n});","lineCount":61,"map":[[12,2,4,0,"Object"],[12,8,4,0],[12,9,4,0,"defineProperty"],[12,23,4,0],[12,24,4,0,"exports"],[12,31,4,0],[13,4,4,0,"enumerable"],[13,14,4,0],[14,4,4,0,"get"],[14,7,4,0],[14,18,4,0,"get"],[14,19,4,0],[15,6,4,0],[15,13,4,0,"StorageUtil"],[15,24,4,0],[16,4,4,0],[17,2,4,0],[18,2,52,2],[18,6,52,2,"_babelRuntimeHelpersAsyncToGenerator"],[18,42,52,2],[18,45,52,2,"require"],[18,52,52,2],[18,53,52,2,"_dependencyMap"],[18,67,52,2],[19,2,52,2],[19,6,52,2,"_asyncToGenerator"],[19,23,52,2],[19,26,52,2,"_interopDefault"],[19,41,52,2],[19,42,52,2,"_babelRuntimeHelpersAsyncToGenerator"],[19,78,52,2],[20,2,1,0],[20,6,1,0,"_reactNativeAsyncStorageAsyncStorage"],[20,42,1,0],[20,45,1,0,"require"],[20,52,1,0],[20,53,1,0,"_dependencyMap"],[20,67,1,0],[21,2,1,0],[21,6,1,0,"AsyncStorage"],[21,18,1,0],[21,21,1,0,"_interopDefault"],[21,36,1,0],[21,37,1,0,"_reactNativeAsyncStorageAsyncStorage"],[21,73,1,0],[22,2,4,7],[22,6,4,13,"StorageUtil"],[22,17,4,24],[22,20,4,27],[23,4,5,2,"WALLETCONNECT_DEEPLINK_CHOICE"],[23,33,5,31],[23,35,5,33],[23,66,5,64],[24,4,6,2,"W3M_RECENT_WALLET_INFO"],[24,26,6,24],[24,28,6,26],[24,52,6,50],[25,4,8,2,"setDeepLinkWallet"],[25,21,8,19,"setDeepLinkWallet"],[25,22,8,20,"link"],[25,26,8,32],[25,28,8,34],[26,6,9,4],[26,13,9,11,"AsyncStorage"],[26,25,9,23],[26,26,9,23,"default"],[26,33,9,23],[26,34,9,24,"setItem"],[26,41,9,31],[26,42,10,6,"StorageUtil"],[26,53,10,17],[26,54,10,18,"WALLETCONNECT_DEEPLINK_CHOICE"],[26,83,10,47],[26,85,11,6,"JSON"],[26,89,11,10],[26,90,11,11,"stringify"],[26,99,11,20],[26,100,11,21],[27,8,11,23,"href"],[27,12,11,27],[27,14,11,29,"link"],[28,6,11,34],[28,7,11,35],[28,8,12,4],[28,9,12,5],[29,4,13,2],[29,5,13,3],[30,4,15,2,"removeDeepLinkWallet"],[30,24,15,22,"removeDeepLinkWallet"],[30,25,15,22],[30,27,15,25],[31,6,16,4],[31,13,16,11,"AsyncStorage"],[31,25,16,23],[31,26,16,23,"default"],[31,33,16,23],[31,34,16,24,"removeItem"],[31,44,16,34],[31,45,16,35,"StorageUtil"],[31,56,16,46],[31,57,16,47,"WALLETCONNECT_DEEPLINK_CHOICE"],[31,86,16,76],[31,87,16,77],[32,4,17,2],[32,5,17,3],[33,4,19,2,"setRecentWallet"],[33,19,19,17,"setRecentWallet"],[33,20,19,18,"wallet"],[33,26,19,34],[33,28,19,36],[34,6,20,4],[34,10,20,8],[35,8,21,6,"AsyncStorage"],[35,20,21,18],[35,21,21,18,"default"],[35,28,21,18],[35,29,21,19,"setItem"],[35,36,21,26],[35,37,22,8,"StorageUtil"],[35,48,22,19],[35,49,22,20,"W3M_RECENT_WALLET_INFO"],[35,71,22,42],[35,73,23,8,"JSON"],[35,77,23,12],[35,78,23,13,"stringify"],[35,87,23,22],[35,88,23,23,"wallet"],[35,94,23,29],[35,95,24,6],[35,96,24,7],[36,6,25,4],[36,7,25,5],[36,8,25,6],[36,15,25,13,"error"],[36,20,25,18],[36,22,25,20],[37,8,26,6,"console"],[37,15,26,13],[37,16,26,14,"info"],[37,20,26,18],[37,21,26,19],[37,50,26,48],[37,51,26,49],[38,6,27,4],[39,4,28,2],[39,5,28,3],[40,4,30,8,"getRecentWallet"],[40,19,30,23,"getRecentWallet"],[40,20,30,23],[40,22,30,57],[41,6,30,57],[41,17,30,57,"_asyncToGenerator"],[41,34,30,57],[41,35,30,57,"default"],[41,42,30,57],[42,8,31,4],[42,12,31,8],[43,10,32,6],[43,14,32,12,"wallet"],[43,20,32,18],[43,29,32,27,"AsyncStorage"],[43,41,32,39],[43,42,32,39,"default"],[43,49,32,39],[43,50,32,40,"getItem"],[43,57,32,47],[43,58,33,8,"StorageUtil"],[43,69,33,19],[43,70,33,20,"W3M_RECENT_WALLET_INFO"],[43,92,34,6],[43,93,34,7],[44,10,36,6],[44,14,36,10,"wallet"],[44,20,36,16],[44,22,36,18],[45,12,37,8],[45,16,37,14,"parsedWallet"],[45,28,37,26],[45,31,37,29,"JSON"],[45,35,37,33],[45,36,37,34,"parse"],[45,41,37,39],[45,42,37,40,"wallet"],[45,48,37,46],[45,49,37,47],[46,12,38,8],[46,16,38,12],[46,23,38,19,"parsedWallet"],[46,35,38,31],[46,36,38,32,"app"],[46,39,38,35],[46,44,38,40],[46,52,38,48],[46,54,38,50],[47,14,39,10],[48,14,40,10],[48,20,40,16,"AsyncStorage"],[48,32,40,28],[48,33,40,28,"default"],[48,40,40,28],[48,41,40,29,"removeItem"],[48,51,40,39],[48,52,40,40,"StorageUtil"],[48,63,40,51],[48,64,40,52,"W3M_RECENT_WALLET_INFO"],[48,86,40,74],[48,87,40,75],[49,14,41,10],[49,21,41,17,"undefined"],[49,30,41,26],[50,12,42,8],[51,12,43,8],[51,19,43,15,"parsedWallet"],[51,31,43,27],[52,10,44,6],[53,10,46,6],[53,17,46,13,"undefined"],[53,26,46,22],[54,8,47,4],[54,9,47,5],[54,10,47,6],[54,17,47,13,"error"],[54,22,47,18],[54,24,47,20],[55,10,48,6,"console"],[55,17,48,13],[55,18,48,14,"info"],[55,22,48,18],[55,23,48,19],[55,52,48,48],[55,53,48,49],[56,8,49,4],[57,8,50,4],[57,15,50,11,"undefined"],[57,24,50,20],[58,6,50,21],[59,4,51,2],[60,2,52,0],[60,3,52,1],[61,0,52,2],[61,3]],"functionMap":{"names":["<global>","setDeepLinkWallet","removeDeepLinkWallet","setRecentWallet","getRecentWallet"],"mappings":"AAA;ECO;GDK;EEE;GFE;EGE;GHS;EIE;GJqB"},"hasCjsExports":false},"type":"js/module"}]} |