{"_id":"@metamask/detect-provider","_rev":"34-579e48d30cc9e0d7e1aaae9c96ba2b20","name":"@metamask/detect-provider","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@metamask/detect-provider","version":"1.0.0","author":{"name":"Erik Marks","email":"rekmarks@protonmail.com"},"license":"ISC","_id":"@metamask/detect-provider@1.0.0","maintainers":[{"name":"estebanmino","email":"efmino@uc.cl"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"whymarrh","email":"whymarrh.whitby@gmail.com"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"}],"homepage":"https://github.com/MetaMask/detect-provider#readme","bugs":{"url":"https://github.com/MetaMask/detect-provider/issues"},"dist":{"shasum":"7aca47051b950c56d45d946e6e9f811900f9f235","tarball":"https://registry.npmjs.org/@metamask/detect-provider/-/detect-provider-1.0.0.tgz","fileCount":6,"integrity":"sha512-dEk/sZdFnajex+yLq39V22qUxLWi4hxg8kfe06ORvVxzCfgkHgQQ8PwGxAMcnsTF3ypJpoXTnSUDGrMV1e2NMQ==","signatures":[{"sig":"MEQCIAn3vUssXs6hhrW6hWvJMt3iTmgtbpfZArxCUxY9AswYAiAqxd1iGutgk196opI6XH2/+77jQY4NfB37/pnDLNVW1g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe89v0CRA9TVsSAnZWagAAMmEQAIkcrnNvUxfY4sMGtS4Q\ny448U1aj7KssY4sZbQnLadXbMgZDwDA1wa3UUX4vsvZw3WHWs4lY3EEyYSQU\nHgvmSoqU/v6HPLGy80ZdVM8Jz4REuilfviYuz4JZgoI4Tvt4aHSQUhglZ3sj\ns0cVg/kk24nDLUW1VQYyLpULMExUnqxGPA66+Ygr38V22f932tSto1gZFglM\nC6wugheEGt4qOuASu3KAd1CbQXavOG4/MnckoWQNZP4yCglk0ZKWwYRHbqwE\nSMVcEV5Oz+W45lbgmG50/IJCO1MrZ9oewgKx8Oe0KgMO8P4ie9qW2AxY1595\nKv3lWJUT/J538yKmWJ4wQOWpS5uDRG3K74ibp/zSZy6sl7tiXtcagP/dtQR/\nyFHMjUNNqBJLLv0oM5Hf9+5V9OY11UUlKUmLYYHv06sTvf8i9EEBl9XTN5ik\nTE5Kq34zRBtKggcpV6EKCldthRz3Iy0DSpC4lxBQGGMTxL500ZHPnG9Scw9w\nKOZhoAuo5fKZkonluuHpvliv5BD0KYymvO+2DIrIt6y51dlMUqjElrdQEKpj\no5noO7z5m6noKwWxU11GBY3kxYwfAp27WGhmz+aIl89FPakH2jgBaAtcj1aV\nUhDE1vyosaKI5VrzrUXOtdRCtbgmIahIJG6CpXNmQgbNVDNKcVtlfguO+vte\nb9JE\r\n=Adkd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"642b7a5614f91b80c8bc28e97f2e8f3159cbc490","private":false,"scripts":{"lint":"eslint . --ext js,json","test":"node test/*","build":"mkdir -p dist && yarn build:browser && yarn build:browser:min","prepare":"yarn build","lint:fix":"eslint . --ext js,json --fix","build:browser":"browserify index.js > dist/detect-provider.js","build:browser:min":"browserify -g uglifyify index.js > dist/detect-provider.min.js"},"_npmUser":{"name":"rekmarks","email":"rekmarks@protonmail.com"},"repository":{"url":"git+https://github.com/MetaMask/detect-provider.git","type":"git"},"_npmVersion":"6.13.4","description":"A tiny utility for detecting the MetaMask Ethereum provider, or any EIP 1193-compliant provider.","directories":{},"_nodeVersion":"10.18.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.0.0","sinon":"^9.0.2","eslint":"^6.8.0","uglifyify":"^5.0.2","browserify":"^16.5.1","eslint-plugin-json":"^2.1.1","eslint-plugin-import":"^2.20.2","@metamask/eslint-config":"^2.1.1"},"_npmOperationalInternal":{"tmp":"tmp/detect-provider_1.0.0_1593039860029_0.3065330024639912","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@metamask/detect-provider","version":"1.0.1","keywords":["ethereum","provider","metamask","web3"],"author":{"name":"Erik Marks","email":"rekmarks@protonmail.com"},"license":"ISC","_id":"@metamask/detect-provider@1.0.1","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"estebanmino","email":"efmino@uc.cl"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"whymarrh","email":"whymarrh.whitby@gmail.com"}],"homepage":"https://github.com/MetaMask/detect-provider#readme","bugs":{"url":"https://github.com/MetaMask/detect-provider/issues"},"dist":{"shasum":"494f701a48a8b2d032a5178f243b925fe14c1d2d","tarball":"https://registry.npmjs.org/@metamask/detect-provider/-/detect-provider-1.0.1.tgz","fileCount":6,"integrity":"sha512-cqLLxpYx66Gmm6YiVy92FXMQs3EuZ51obXB4Gi+sAbCBEHPK4FN/2fED7laGP9XVVj6X+h/4PyUGN5rPV4s6Lw==","signatures":[{"sig":"MEUCIQC4YzsYxC7wtMujpThSGgoUO8bW4hyBgWzZNcVm40/1jQIgW5legZmfK8nP2258fNsy91HquOCVWdPKFR/M1IJPlw0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11578,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8+y3CRA9TVsSAnZWagAATLIP/17CIoDb3KufOfo0boN6\nXxZT5m7DPcRRXamIthK1ahHaxpOGA5bEKvL8lRSVjU3bbecENrb0FU0YvBZV\n+MXGJm0dcJa0FQuC9zAASje0NrFJ4bVFgzdM8VWr7FB8dH78Jpyd2Sr57FyF\nHLC2MK56ysrP7QlmAS4CyV1j2jxQc6+544CcH2/MoPm3FBRplnnhySmS6Glx\nRdSrQTAUnLNsTXe1v5YRE/Bp0h1u7Nvw7CSXPIxyv0YjD4B3Z5iR/gb8iaSZ\nayeIYIPzXG8Zk1PwJ1gEWvvMoXngZoK116oxBmXpBDX9tlUX0Y1mI7XdeoeY\nnyB7hH4jjhpVbbxMuQWt9GthhQYz0o0A2E/o/J+S+ke+oxAjfHNZ7Vu+zwsF\nCBWJpJCJO2dSvJPQp5TTB9QvBq1iH14lI5a57GhP5yWL8OwwBb7nOGhp1H+S\njEFwx71EwhP3J6i8PQ0adAvgeeevYgr5yxAScypGGq2Y+m3i4FdK/GjZAYcj\nD/hdkC2FhJdm05m56kpM9QftLaL2MLCNm5sOjMS0Z5o+DYpDjdUbGCSYR8aR\nWVaQXc0BUXmf6itj2FRbOslwSRBNIonSUIj9n5CznSrU+ktZ6h7chf7h0o5k\njCNtAOJEmuliRpI2WOjYfyRteMR0leD1V6NGB9ymCXwP81oL6CWUi4mks6CW\nMEhi\r\n=2Vhf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"66659914afcde7ba773fe93eff042830d9120631","private":false,"scripts":{"lint":"eslint . --ext js,json","test":"node test/*","build":"./build.sh","prepare":"yarn build","lint:fix":"eslint . --ext js,json --fix"},"_npmUser":{"name":"rekmarks","email":"rekmarks@protonmail.com"},"repository":{"url":"git+https://github.com/MetaMask/detect-provider.git","type":"git"},"_npmVersion":"6.13.4","description":"A tiny utility for detecting the MetaMask Ethereum provider, or any EIP 1193-compliant provider.","directories":{},"_nodeVersion":"10.18.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.0.0","sinon":"^9.0.2","eslint":"^6.8.0","uglifyify":"^5.0.2","browserify":"^16.5.1","eslint-plugin-json":"^2.1.1","eslint-plugin-import":"^2.20.2","@metamask/eslint-config":"^2.1.1"},"_npmOperationalInternal":{"tmp":"tmp/detect-provider_1.0.1_1593044151010_0.992547352049389","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@metamask/detect-provider","version":"1.1.0","keywords":["ethereum","provider","metamask","web3"],"author":{"name":"Erik Marks","email":"rekmarks@protonmail.com"},"license":"ISC","_id":"@metamask/detect-provider@1.1.0","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"estebanmino","email":"efmino@uc.cl"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"whymarrh","email":"whymarrh.whitby@gmail.com"}],"homepage":"https://github.com/MetaMask/detect-provider#readme","bugs":{"url":"https://github.com/MetaMask/detect-provider/issues"},"dist":{"shasum":"3200883de5d739bd0f7edfd1c9bb2bd01011ea49","tarball":"https://registry.npmjs.org/@metamask/detect-provider/-/detect-provider-1.1.0.tgz","fileCount":6,"integrity":"sha512-7klN00NjDWPNUG4m5chX7LwUgnQ/L1r1m2+5VNx4zJsbD7oXsqQtkFyGwXe3msYUIvuRFeyH2kK94zeNEidxpw==","signatures":[{"sig":"MEQCIHkpcWrpOMasmJkuz3Rj3iNbcrrw1fMjvTSsVMROKhPNAiBKhJFqKGBYK8RWfL9nZP2s1mdCe6A6NiMPusvD5J0aNQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+2+tCRA9TVsSAnZWagAAkDYQAJw/GSMNj8cYAxXnMoA0\nBD3KpBbu0rF3PKfs+eaSP11NJDJObxcG069CbamhAGLbfCtaaBWcBgF/5KVc\n2S0V1S3gEAaUndBLHvKcna4QRYtjCx0aQEubZn+em4wQq/m+gXB64WFObDxP\n7nA3sSxhXye1m2Vc0hQV7F1SzCkip3oQ3+He6QC/D6Aya6q9PJAYAFfLkGUX\nTRqQ2Ujt8xPAtgEgvndnfFBYY764mZ/2xGeLs8SuB8xkKOSyjfiUJDFPfi7y\nHzmVNE0q6QkKQ1RXYXWFPB9f48Fh5Pue9gPew+ibve94VymlCr7ZPqQJQsMt\nlPweeT+kMSYZaJHWKxqXxtbSx/HhI+ozzsVpll3ABuJuu7GvcAbzIN9uHlNC\nedmS8zBLUxUQtCdIrRpy4SROyxnKSJgb4etnMjwKUhFSMCFU8cNXD2GgZ5l2\noKPsml6e3x7NWQqSQUrsJeu5bEvo5Yi0u1ipx6wdkOI5V6QJ91AUsJyVPC+E\nXxraGFeyNjMgRG0nf6ZoiAwFHyvQY0k8b0ZBeQK+m8+YGmD2+c9Bz9CrC8/g\nadUzTOpg+HcK/SPdgD3CpDlj4ALLa39YvnIgYWKZrMbPXYXdn1mfPN0P1srl\nK87en38KNQJXObRCCz+Kz3gTgFzgQ4SwLlCphJ4PomlkZq2+2KX+gZqFgmuO\nZFUw\r\n=XYxL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"2d64e4e961c2532b9900b5f005a9640a0135131d","private":false,"scripts":{"lint":"eslint . --ext js,json","test":"node test/*","build":"./build.sh","prepare":"yarn build","lint:fix":"eslint . --ext js,json --fix"},"_npmUser":{"name":"rekmarks","email":"rekmarks@protonmail.com"},"repository":{"url":"git+https://github.com/MetaMask/detect-provider.git","type":"git"},"_npmVersion":"6.13.4","description":"A tiny utility for detecting the MetaMask Ethereum provider, or any EIP 1193-compliant provider.","directories":{},"_nodeVersion":"10.18.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.0.0","sinon":"^9.0.2","eslint":"^6.8.0","uglifyify":"^5.0.2","browserify":"^16.5.1","eslint-plugin-json":"^2.1.1","eslint-plugin-import":"^2.20.2","@metamask/eslint-config":"^2.1.1"},"_npmOperationalInternal":{"tmp":"tmp/detect-provider_1.1.0_1593536428650_0.7531413305196621","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@metamask/detect-provider","version":"1.2.0","keywords":["ethereum","provider","metamask","web3"],"author":{"name":"Erik Marks","email":"rekmarks@protonmail.com"},"license":"ISC","_id":"@metamask/detect-provider@1.2.0","maintainers":[{"name":"metamaskbot","email":"security@metamask.io"},{"name":"estebanmino","email":"efmino@uc.cl"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"whymarrh","email":"whymarrh.whitby@gmail.com"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"}],"homepage":"https://github.com/MetaMask/detect-provider#readme","bugs":{"url":"https://github.com/MetaMask/detect-provider/issues"},"dist":{"shasum":"3667a7531f2a682e3c3a43eaf3a1958bdb42a696","tarball":"https://registry.npmjs.org/@metamask/detect-provider/-/detect-provider-1.2.0.tgz","fileCount":8,"integrity":"sha512-ocA76vt+8D0thgXZ7LxFPyqw3H7988qblgzddTDA6B8a/yU0uKV42QR/DhA+Jh11rJjxW0jKvwb5htA6krNZDQ==","signatures":[{"sig":"MEUCIQCrnf4+fIUu55P2FzDRC7jPXB7H5wzcAVNMAoKWjTSfbgIgOXt75eRuHNRXwrhvLAv6YL/GmhP+L0Vd8jS42yBYukw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflujqCRA9TVsSAnZWagAAUPQQAIc5Jsp+cqdf+Arqu8c8\nHPzVlhMtHJ1DYhZKT5iuNtiUAlyqtTXriopY0VOwM5FZ0xyJECqiC7BNbPcA\noSa2nQtxeWOV5NQISmnRFOXSu80nkk9vHq92hyF2rHldrbdFrBIjWhh0GSPS\nq95eQEyK20O1gLYcILUY7L1ZFtL4t3xHPuGoytdhXNTQXj0EvSD3Ml8RuICc\ng4oWVTnclE/DluS8vTpY1Lt86IKOl21EjDP8wqkM0OTo7Bygxtj8a/9ajf/5\nxhkfZwX3VgtTKKeeb2lf+Nwh4fmu3sXIujaCxlRefjz/UGCqarf28/v9pwpN\ncN/pDolQEP080LoGDc6rmvj4p0gKLcflbGKcpjuDyq8hlA4ruV2T9RA7iu4q\niTMk2zlWh4fl3txKwkRfS7vKRbeaRQi7x+XBy2VMnyR/Kiy5xtzVf6GqilS/\nwoiexiXIa7lOPIucWjgMVbIhlJ5ClfTDPOaNhe7ZmYF5olmyORpO2oGyTCcK\noKwHAaaI1LMxSXm+fBIqF6+zy1kOFq2oM5Qxth2G/KlcV+fiuo94swGxYYNn\nTy1LknUEQHf0Hf2twaikNOFOBQELlFGpFnhPUHsHnq6jUG71n3kLly+59OYc\nwm7G1ljDcN8HX+3yfvl4khZV7618D+GBLBPIda/zTm+JTnZlUBCpztjo+o6Q\nvu6g\r\n=z5jo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","engines":{"node":">= 10"},"gitHead":"d1f86405ebf53fb273a1a1228c134e2a3989e892","private":false,"scripts":{"lint":"eslint . --ext ts,js,json","test":"node test/*","build":"./build.sh","prepare":"yarn build","pretest":"yarn build","lint:fix":"yarn lint --fix"},"typings":"dist/index.d.ts","_npmUser":{"name":"rekmarks","email":"rekmarks@protonmail.com"},"repository":{"url":"git+https://github.com/MetaMask/detect-provider.git","type":"git"},"_npmVersion":"6.13.4","description":"A tiny utility for detecting the MetaMask Ethereum provider, or any EIP 1193-compliant provider.","directories":{},"_nodeVersion":"10.18.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.0.0","sinon":"^9.0.2","eslint":"^7.7.0","tinyify":"^3.0.0","browserify":"^16.5.1","typescript":"^4.0.3","eslint-plugin-json":"^2.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.0","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.5.0","@typescript-eslint/eslint-plugin":"^4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/detect-provider_1.2.0_1603725546024_0.7699702955980676","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@metamask/detect-provider","version":"2.0.0","keywords":["ethereum","provider","metamask","web3"],"author":{"name":"Erik Marks","email":"rekmarks@protonmail.com"},"license":"ISC","_id":"@metamask/detect-provider@2.0.0","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"metamaskbot","email":"security@metamask.io"},{"name":"gudahtt","email":"markjstacey@gmail.com"},{"name":"brad.decker","email":"bhdecker84@gmail.com"},{"name":"sethkfman","email":"sethkfman@gmail.com"}],"homepage":"https://github.com/MetaMask/detect-provider#readme","bugs":{"url":"https://github.com/MetaMask/detect-provider/issues"},"dist":{"shasum":"4bc2795e5e6f7d8b84b2e845058d2f222c99917d","tarball":"https://registry.npmjs.org/@metamask/detect-provider/-/detect-provider-2.0.0.tgz","fileCount":7,"integrity":"sha512-sFpN+TX13E9fdBDh9lvQeZdJn4qYoRb/6QF2oZZK/Pn559IhCFacPMU1rMuqyXoFQF3JSJfii2l98B87QDPeCQ==","signatures":[{"sig":"MEUCICEc7PcLQcN0fHqSQo/98vcRqdUghTMvwmuTanVdcfXlAiEA/ifHKgEa7dkNjEpG9ZIFx/khnjnVPG6NEVl0fnvj+Ns=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjOzDCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmonow/+JmArwmahba88mK3/IQe54QjTtvRoklAnnCFs07oRgbFGVlCj\r\ngi1T6XCqDqJ7pWsU0k8QjlCEFR/CRoY3EBfSLTlevuCSFBAlPrQPPnoOcG11\r\n/h43wkRcEILS9pjl+rl5cZxo5UWCJBT2Yhiu1iazXAgR9ohu2+81xFWekc5D\r\nMwuR0EKwzPnV0llvRoqkY3b0FlpzZgRp2IJF4XXeYZe4FeVBzAVgoJTWML+8\r\nL8p5sV0FsL0uMSOzr1IdA2dFzxSHsgTokWPbigEedobhSl/ybpvTA8H0AxBi\r\n1i0BGiGE+d0MGSyEsQNnQovWLhcU9Ae5nawQfa8maa5XyD/m+ZDmrCVFvMTf\r\nSnFfCpgCqA5QHlkqqvkpsRLsO/VY/BpSruTUbRZJYqQwWXiCVzSebvogOoid\r\n3xLFzdwDmuAiNFEoEmmdOT68qiOXkXdzIgKeMXGBgOkygu7K9G2POYGctIlw\r\nEKGdmidDvJVmWoMEqLNEkuw6tWNNldcphXXsns6KbYMW1xs8qHhUIZERlDWo\r\ntn4IuUn4DniNOf6nWiRFfkKvQAqblTE+xyuhAwvU4LayhjJNiqF0CO1tcnMx\r\nRzMlFWt1vUBc3kQn/Vg63K/p4J/vPfWm8MGoio6x2Si5B4Hxqk7Ia7C+BHG4\r\nmUNF2s2X2WFlF8nyCN8iEZDzQ/Vus31jsuA=\r\n=TvCC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","engines":{"node":">=14.0.0"},"gitHead":"10f504ef80ea44b8a7ea73885a2b8840753353f2","private":false,"scripts":{"lint":"eslint . --ext ts,js,json","test":"node test/*","build":"./build.sh","setup":"yarn install && yarn allow-scripts","pretest":"yarn build","lint:fix":"yarn lint --fix"},"typings":"dist/index.d.ts","_npmUser":{"name":"rekmarks","email":"rekmarks@protonmail.com"},"lavamoat":{"allowScripts":{"@lavamoat/preinstall-always-fail":false}},"repository":{"url":"git+https://github.com/MetaMask/detect-provider.git","type":"git"},"_npmVersion":"8.13.2","description":"A tiny utility for detecting the MetaMask Ethereum provider, or any EIP 1193-compliant provider.","directories":{},"_nodeVersion":"14.19.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.0.0","sinon":"^9.0.2","eslint":"^7.7.0","tinyify":"^3.0.0","browserify":"^16.5.1","typescript":"^4.0.3","eslint-plugin-json":"^2.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.0","@lavamoat/allow-scripts":"^2.0.3","@metamask/eslint-config":"^4.1.0","@metamask/auto-changelog":"^2.6.0","@typescript-eslint/parser":"^4.5.0","@typescript-eslint/eslint-plugin":"^4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/detect-provider_2.0.0_1664823490447_0.8998156446576644","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-06-24T23:04:19.805Z","modified":"2026-08-26T12:48:59.925Z","1.0.0":"2020-06-24T23:04:20.218Z","1.0.1":"2020-06-25T00:15:51.241Z","1.1.0":"2020-06-30T17:00:28.756Z","1.2.0":"2020-10-26T15:19:06.235Z","2.0.0":"2022-10-03T18:58:10.638Z"},"bugs":{"url":"https://github.com/MetaMask/detect-provider/issues"},"author":{"name":"Erik Marks","email":"rekmarks@protonmail.com"},"license":"ISC","homepage":"https://github.com/MetaMask/detect-provider#readme","keywords":["ethereum","provider","metamask","web3"],"repository":{"url":"git+https://github.com/MetaMask/detect-provider.git","type":"git"},"description":"A tiny utility for detecting the MetaMask Ethereum provider, or any EIP 1193-compliant provider.","maintainers":[{"email":"frederik.bolding@consensys.net","name":"frederikbolding"},{"email":"metamask-npm@consensys.net","name":"metamaskbot"},{"email":"markjstacey@gmail.com","name":"gudahtt"},{"email":"maarten@zuidhoorn.com","name":"mrten"},{"email":"elliot.winkler@gmail.com","name":"mcmire"},{"email":"naugtur@gmail.com","name":"naugtur"}],"readme":"# @metamask/detect-provider\n\nA tiny utility for detecting the MetaMask Ethereum provider, or any provider injected at `window.ethereum`.\n\nIt has 0 dependencies and works out of the box in any modern browser, for synchronously and asynchronously injected providers.\n\n## Usage\n\nKeep in mind that the providers detected by this package may or may not support [the Ethereum JavaScript Provider API](https://eips.ethereum.org/EIPS/eip-1193).\nPlease consult [the MetaMask documentation](https://docs.metamask.io/guide/ethereum-provider.html) to learn how to use our provider.\n\n### Node.js\n\n```javascript\nimport detectEthereumProvider from '@metamask/detect-provider'\n\nconst provider = await detectEthereumProvider()\n\nif (provider) {\n\n  console.log('Ethereum successfully detected!')\n\n  // From now on, this should always be true:\n  // provider === window.ethereum\n\n  // Access the decentralized web!\n\n  // Legacy providers may only have ethereum.sendAsync\n  const chainId = await provider.request({\n    method: 'eth_chainId'\n  })\n} else {\n\n  // if the provider is not detected, detectEthereumProvider resolves to null\n  console.error('Please install MetaMask!', error)\n}\n```\n\n### HTML\n\n```html\n<script src=\"https://unpkg.com/@metamask/detect-provider/dist/detect-provider.min.js\"></script>\n<script type=\"text/javascript\">\n  const provider = await detectEthereumProvider()\n\n  if (provider) {\n    // handle provider\n  } else {\n    // handle no provider\n  }\n</script>\n```\n\n### Options\n\nThe exported function takes an optional `options` object.\nIf invalid options are provided, an error will be thrown.\nAll options have default values.\n\n#### `options.mustBeMetaMask`\n\nType: `boolean`\n\nDefault: `false`\n\nWhether `window.ethereum.isMetaMask === true` is required for the returned Promise to resolve.\n\n#### `options.silent`\n\nType: `boolean`\n\nDefault: `false`\n\nWhether error messages should be logged to the console.\nDoes not affect errors thrown due to invalid options.\n\n#### `options.timeout`\n\nType: `number`\n\nDefault: `3000`\n\nHow many milliseconds to wait for asynchronously injected providers.\n\n## Advanced Topics\n\n### Synchronous and Asynchronous Injection\n\nProviders can be either synchronously or asynchronously injected:\n\n- _Synchronously_ injected providers will be available by the time website code starts executing.\n- _Asynchronously_ injected providers may not become available until later in the page lifecycle.\n\nThe MetaMask _extension_ provider is synchronously injected, while the MetaMask _mobile_ provider is asynchronously injected.\n\nTo notify sites of asynchronous injection, MetaMask dispatches the `ethereum#initialized` event on `window` immediately after the provider has been set as `window.ethereum`.\nThis package relies on that event to detect asynchronous injection.\n\n### Overwriting or Modifying `window.ethereum`\n\nThe detected provider object returned by this package will strictly equal (`===`) `window.ethereum` for the entire page lifecycle, unless `window.ethereum` is overwritten.\nIn general, consumers should never overwrite `window.ethereum` or attempt to modify the provider object.\n\nIf, as a dapp developer, you notice that the provider returned by this package does not strictly equal `window.ethereum`, something is wrong.\nThis may happen, for example, if the user has multiple wallets installed.\nAfter confirming that your code and dependencies are not modifying or overwriting `window.ethereum`, you should ask the user to ensure that they only have a single provider-injecting wallet enabled at any one time.\n","readmeFilename":"README.md"}