@metamask/snaps-execution-environments 4.0.0 → 5.0.0
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.
- package/CHANGELOG.md +15 -1
- package/dist/browserify/iframe/bundle.js +4 -4
- package/dist/browserify/iframe/index.html +201 -110
- package/dist/browserify/node-process/bundle.js +204 -113
- package/dist/browserify/node-thread/bundle.js +204 -113
- package/dist/browserify/webview/bundle.js +4 -4
- package/dist/browserify/webview/index.html +201 -110
- package/dist/browserify/worker-executor/bundle.js +205 -114
- package/dist/browserify/worker-pool/bundle.js +4 -4
- package/dist/browserify/worker-pool/index.html +201 -110
- package/dist/chunk-26EFJQDW.mjs +49 -0
- package/dist/chunk-26EFJQDW.mjs.map +1 -0
- package/dist/chunk-4NOF6TN6.js +51 -0
- package/dist/chunk-4NOF6TN6.js.map +1 -0
- package/dist/chunk-5DIRYAYO.js +30 -0
- package/dist/chunk-5DIRYAYO.js.map +1 -0
- package/dist/chunk-5RKYO2Y5.js +33 -0
- package/dist/chunk-5RKYO2Y5.js.map +1 -0
- package/dist/chunk-6GHFAQ54.mjs +44 -0
- package/dist/chunk-6GHFAQ54.mjs.map +1 -0
- package/dist/chunk-A7NJQLUA.mjs +32 -0
- package/dist/chunk-A7NJQLUA.mjs.map +1 -0
- package/dist/chunk-AJFPA6MI.js +81 -0
- package/dist/chunk-AJFPA6MI.js.map +1 -0
- package/dist/chunk-AQNACKO6.js +1 -0
- package/dist/chunk-AQNACKO6.js.map +1 -0
- package/dist/chunk-AZCRNZ5W.js +49 -0
- package/dist/chunk-AZCRNZ5W.js.map +1 -0
- package/dist/chunk-B3ASGNVQ.mjs +45 -0
- package/dist/chunk-B3ASGNVQ.mjs.map +1 -0
- package/dist/chunk-BE4YFFMX.js +49 -0
- package/dist/chunk-BE4YFFMX.js.map +1 -0
- package/dist/chunk-BOCIYCLE.mjs +30 -0
- package/dist/chunk-BOCIYCLE.mjs.map +1 -0
- package/dist/chunk-CCBKFCGG.js +147 -0
- package/dist/chunk-CCBKFCGG.js.map +1 -0
- package/dist/chunk-CINBMYIQ.mjs +183 -0
- package/dist/chunk-CINBMYIQ.mjs.map +1 -0
- package/dist/chunk-EBECHU6M.js +92 -0
- package/dist/chunk-EBECHU6M.js.map +1 -0
- package/dist/chunk-ETXAWW65.mjs +86 -0
- package/dist/chunk-ETXAWW65.mjs.map +1 -0
- package/dist/chunk-EXN2TFDJ.js +38 -0
- package/dist/chunk-EXN2TFDJ.js.map +1 -0
- package/dist/chunk-FNRATYYY.mjs +24 -0
- package/dist/chunk-FNRATYYY.mjs.map +1 -0
- package/dist/chunk-FQBU72MW.mjs +16 -0
- package/dist/chunk-FQBU72MW.mjs.map +1 -0
- package/dist/chunk-G3NCGVCC.mjs +33 -0
- package/dist/chunk-G3NCGVCC.mjs.map +1 -0
- package/dist/chunk-GH6FPDY5.mjs +147 -0
- package/dist/chunk-GH6FPDY5.mjs.map +1 -0
- package/dist/chunk-HSZIPZHO.js +183 -0
- package/dist/chunk-HSZIPZHO.js.map +1 -0
- package/dist/chunk-IU54VPNO.js +67 -0
- package/dist/chunk-IU54VPNO.js.map +1 -0
- package/dist/chunk-IXYNAYMQ.js +33 -0
- package/dist/chunk-IXYNAYMQ.js.map +1 -0
- package/dist/chunk-IY3CYGH7.js +44 -0
- package/dist/chunk-IY3CYGH7.js.map +1 -0
- package/dist/chunk-KQNKD7G5.mjs +40 -0
- package/dist/chunk-KQNKD7G5.mjs.map +1 -0
- package/dist/chunk-KWFB2KH2.mjs +73 -0
- package/dist/chunk-KWFB2KH2.mjs.map +1 -0
- package/dist/chunk-L4G6IIWG.js +484 -0
- package/dist/chunk-L4G6IIWG.js.map +1 -0
- package/dist/chunk-L5U2LMZR.js +26 -0
- package/dist/chunk-L5U2LMZR.js.map +1 -0
- package/dist/chunk-LGC7HQR4.js +32 -0
- package/dist/chunk-LGC7HQR4.js.map +1 -0
- package/dist/chunk-LX5LQXYU.js +16 -0
- package/dist/chunk-LX5LQXYU.js.map +1 -0
- package/dist/chunk-M2OYI2NS.js +108 -0
- package/dist/chunk-M2OYI2NS.js.map +1 -0
- package/dist/chunk-MOWPAP2K.mjs +92 -0
- package/dist/chunk-MOWPAP2K.mjs.map +1 -0
- package/dist/chunk-N7URTBJV.js +73 -0
- package/dist/chunk-N7URTBJV.js.map +1 -0
- package/dist/chunk-OW4IXJ5J.mjs +484 -0
- package/dist/chunk-OW4IXJ5J.mjs.map +1 -0
- package/dist/chunk-OWG545LQ.js +45 -0
- package/dist/chunk-OWG545LQ.js.map +1 -0
- package/dist/chunk-QYFJ2LLW.js +86 -0
- package/dist/chunk-QYFJ2LLW.js.map +1 -0
- package/dist/chunk-RCPCISJD.mjs +16 -0
- package/dist/chunk-RCPCISJD.mjs.map +1 -0
- package/dist/chunk-RDFGQYG6.mjs +147 -0
- package/dist/chunk-RDFGQYG6.mjs.map +1 -0
- package/dist/chunk-RO347OMD.js +16 -0
- package/dist/chunk-RO347OMD.js.map +1 -0
- package/dist/chunk-RWBJNNGH.js +24 -0
- package/dist/chunk-RWBJNNGH.js.map +1 -0
- package/dist/chunk-S7LRB72P.js +38 -0
- package/dist/chunk-S7LRB72P.js.map +1 -0
- package/dist/chunk-SWINKAMI.js +147 -0
- package/dist/chunk-SWINKAMI.js.map +1 -0
- package/dist/chunk-TVV27HGP.mjs +81 -0
- package/dist/chunk-TVV27HGP.mjs.map +1 -0
- package/dist/chunk-TWF4RAXL.mjs +49 -0
- package/dist/chunk-TWF4RAXL.mjs.map +1 -0
- package/dist/chunk-VL3VNUT4.mjs +12 -0
- package/dist/chunk-VL3VNUT4.mjs.map +1 -0
- package/dist/chunk-VZS2LXDP.mjs +108 -0
- package/dist/chunk-VZS2LXDP.mjs.map +1 -0
- package/dist/chunk-WA7K3P4D.js +40 -0
- package/dist/chunk-WA7K3P4D.js.map +1 -0
- package/dist/chunk-XBKAIK2K.mjs +67 -0
- package/dist/chunk-XBKAIK2K.mjs.map +1 -0
- package/dist/chunk-XGCWN6ZD.mjs +262 -0
- package/dist/chunk-XGCWN6ZD.mjs.map +1 -0
- package/dist/chunk-XKY46YTJ.js +12 -0
- package/dist/chunk-XKY46YTJ.js.map +1 -0
- package/dist/chunk-XL5BQOEI.mjs +33 -0
- package/dist/chunk-XL5BQOEI.mjs.map +1 -0
- package/dist/chunk-XMCETCVM.js +48 -0
- package/dist/chunk-XMCETCVM.js.map +1 -0
- package/dist/chunk-XYRWHY3K.mjs +51 -0
- package/dist/chunk-XYRWHY3K.mjs.map +1 -0
- package/dist/chunk-Y7IEFWZU.mjs +26 -0
- package/dist/chunk-Y7IEFWZU.mjs.map +1 -0
- package/dist/chunk-YC3HWHJV.mjs +48 -0
- package/dist/chunk-YC3HWHJV.mjs.map +1 -0
- package/dist/chunk-YMAK7TUO.mjs +1 -0
- package/dist/chunk-YMAK7TUO.mjs.map +1 -0
- package/dist/chunk-YRZVIDCF.mjs +38 -0
- package/dist/chunk-YRZVIDCF.mjs.map +1 -0
- package/dist/chunk-Z7FBBBME.mjs +38 -0
- package/dist/chunk-Z7FBBBME.mjs.map +1 -0
- package/dist/chunk-ZMDJRC2Z.js +262 -0
- package/dist/chunk-ZMDJRC2Z.js.map +1 -0
- package/dist/common/BaseSnapExecutor.js +26 -0
- package/dist/common/BaseSnapExecutor.js.map +1 -0
- package/dist/common/BaseSnapExecutor.mjs +26 -0
- package/dist/common/BaseSnapExecutor.mjs.map +1 -0
- package/dist/common/commands.js +11 -0
- package/dist/common/commands.js.map +1 -0
- package/dist/common/commands.mjs +11 -0
- package/dist/common/commands.mjs.map +1 -0
- package/dist/common/endowments/commonEndowmentFactory.js +20 -0
- package/dist/common/endowments/commonEndowmentFactory.js.map +1 -0
- package/dist/common/endowments/commonEndowmentFactory.mjs +20 -0
- package/dist/common/endowments/commonEndowmentFactory.mjs.map +1 -0
- package/dist/common/endowments/console.js +13 -0
- package/dist/common/endowments/console.js.map +1 -0
- package/dist/common/endowments/console.mjs +13 -0
- package/dist/common/endowments/console.mjs.map +1 -0
- package/dist/common/endowments/crypto.js +11 -0
- package/dist/common/endowments/crypto.js.map +1 -0
- package/dist/common/endowments/crypto.mjs +11 -0
- package/dist/common/endowments/crypto.mjs.map +1 -0
- package/dist/common/endowments/date.js +9 -0
- package/dist/common/endowments/date.js.map +1 -0
- package/dist/common/endowments/date.mjs +9 -0
- package/dist/common/endowments/date.mjs.map +1 -0
- package/dist/common/endowments/index.js +21 -0
- package/dist/common/endowments/index.js.map +1 -0
- package/dist/common/endowments/index.mjs +21 -0
- package/dist/common/endowments/index.mjs.map +1 -0
- package/dist/common/endowments/interval.js +8 -0
- package/dist/common/endowments/interval.js.map +1 -0
- package/dist/common/endowments/interval.mjs +8 -0
- package/dist/common/endowments/interval.mjs.map +1 -0
- package/dist/common/endowments/math.js +10 -0
- package/dist/common/endowments/math.js.map +1 -0
- package/dist/common/endowments/math.mjs +10 -0
- package/dist/common/endowments/math.mjs.map +1 -0
- package/dist/common/endowments/network.js +10 -0
- package/dist/common/endowments/network.js.map +1 -0
- package/dist/common/endowments/network.mjs +10 -0
- package/dist/common/endowments/network.mjs.map +1 -0
- package/dist/common/endowments/textDecoder.js +8 -0
- package/dist/common/endowments/textDecoder.js.map +1 -0
- package/dist/common/endowments/textDecoder.mjs +8 -0
- package/dist/common/endowments/textDecoder.mjs.map +1 -0
- package/dist/common/endowments/textEncoder.js +8 -0
- package/dist/common/endowments/textEncoder.js.map +1 -0
- package/dist/common/endowments/textEncoder.mjs +8 -0
- package/dist/common/endowments/textEncoder.mjs.map +1 -0
- package/dist/common/endowments/timeout.js +8 -0
- package/dist/common/endowments/timeout.js.map +1 -0
- package/dist/common/endowments/timeout.mjs +8 -0
- package/dist/common/endowments/timeout.mjs.map +1 -0
- package/dist/common/globalEvents.js +11 -0
- package/dist/common/globalEvents.js.map +1 -0
- package/dist/common/globalEvents.mjs +11 -0
- package/dist/common/globalEvents.mjs.map +1 -0
- package/dist/common/globalObject.js +10 -0
- package/dist/common/globalObject.js.map +1 -0
- package/dist/common/globalObject.mjs +10 -0
- package/dist/common/globalObject.mjs.map +1 -0
- package/dist/common/lockdown/lockdown-events.js +8 -0
- package/dist/common/lockdown/lockdown-events.js.map +1 -0
- package/dist/common/lockdown/lockdown-events.mjs +8 -0
- package/dist/common/lockdown/lockdown-events.mjs.map +1 -0
- package/dist/common/lockdown/lockdown-more.js +8 -0
- package/dist/common/lockdown/lockdown-more.js.map +1 -0
- package/dist/common/lockdown/lockdown-more.mjs +8 -0
- package/dist/common/lockdown/lockdown-more.mjs.map +1 -0
- package/dist/common/lockdown/lockdown.js +22 -0
- package/dist/common/lockdown/lockdown.js.map +1 -0
- package/dist/common/lockdown/lockdown.mjs +22 -0
- package/dist/common/lockdown/lockdown.mjs.map +1 -0
- package/dist/common/sortParams.js +8 -0
- package/dist/common/sortParams.js.map +1 -0
- package/dist/common/sortParams.mjs +8 -0
- package/dist/common/sortParams.mjs.map +1 -0
- package/dist/common/utils.js +21 -0
- package/dist/common/utils.js.map +1 -0
- package/dist/common/utils.mjs +21 -0
- package/dist/common/utils.mjs.map +1 -0
- package/dist/common/validation.js +38 -0
- package/dist/common/validation.js.map +1 -0
- package/dist/common/validation.mjs +38 -0
- package/dist/common/validation.mjs.map +1 -0
- package/dist/globals.d.js +1 -0
- package/dist/globals.d.js.map +1 -0
- package/dist/globals.d.mjs +1 -0
- package/dist/globals.d.mjs.map +1 -0
- package/dist/iframe/IFrameSnapExecutor.js +27 -0
- package/dist/iframe/IFrameSnapExecutor.js.map +1 -0
- package/dist/iframe/IFrameSnapExecutor.mjs +27 -0
- package/dist/iframe/IFrameSnapExecutor.mjs.map +1 -0
- package/dist/iframe/index.js +35 -0
- package/dist/iframe/index.js.map +1 -0
- package/dist/iframe/index.mjs +35 -0
- package/dist/iframe/index.mjs.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -0
- package/dist/logging.js +8 -0
- package/dist/logging.js.map +1 -0
- package/dist/logging.mjs +8 -0
- package/dist/logging.mjs.map +1 -0
- package/dist/node-process/ChildProcessSnapExecutor.js +27 -0
- package/dist/node-process/ChildProcessSnapExecutor.js.map +1 -0
- package/dist/node-process/ChildProcessSnapExecutor.mjs +27 -0
- package/dist/node-process/ChildProcessSnapExecutor.mjs.map +1 -0
- package/dist/node-process/index.js +31 -0
- package/dist/node-process/index.js.map +1 -0
- package/dist/node-process/index.mjs +31 -0
- package/dist/node-process/index.mjs.map +1 -0
- package/dist/node-thread/ThreadSnapExecutor.js +27 -0
- package/dist/node-thread/ThreadSnapExecutor.js.map +1 -0
- package/dist/node-thread/ThreadSnapExecutor.mjs +27 -0
- package/dist/node-thread/ThreadSnapExecutor.mjs.map +1 -0
- package/dist/node-thread/index.js +31 -0
- package/dist/node-thread/index.js.map +1 -0
- package/dist/node-thread/index.mjs +31 -0
- package/dist/node-thread/index.mjs.map +1 -0
- package/dist/proxy/ProxySnapExecutor.js +8 -0
- package/dist/proxy/ProxySnapExecutor.js.map +1 -0
- package/dist/proxy/ProxySnapExecutor.mjs +8 -0
- package/dist/proxy/ProxySnapExecutor.mjs.map +1 -0
- package/dist/proxy/index.js +9 -0
- package/dist/proxy/index.js.map +1 -0
- package/dist/proxy/index.mjs +9 -0
- package/dist/proxy/index.mjs.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/common/utils.d.ts +7 -0
- package/dist/types/vendor/global.d.js +1 -0
- package/dist/types/vendor/global.d.js.map +1 -0
- package/dist/types/vendor/global.d.mjs +1 -0
- package/dist/types/vendor/global.d.mjs.map +1 -0
- package/dist/types/vendor/readable-stream.d.js +1 -0
- package/dist/types/vendor/readable-stream.d.js.map +1 -0
- package/dist/types/vendor/readable-stream.d.mjs +1 -0
- package/dist/types/vendor/readable-stream.d.mjs.map +1 -0
- package/dist/webview/WebViewExecutorStream.js +8 -0
- package/dist/webview/WebViewExecutorStream.js.map +1 -0
- package/dist/webview/WebViewExecutorStream.mjs +8 -0
- package/dist/webview/WebViewExecutorStream.mjs.map +1 -0
- package/dist/webview/index.js +26 -0
- package/dist/webview/index.js.map +1 -0
- package/dist/webview/index.mjs +26 -0
- package/dist/webview/index.mjs.map +1 -0
- package/dist/webworker/executor/WebWorkerSnapExecutor.js +27 -0
- package/dist/webworker/executor/WebWorkerSnapExecutor.js.map +1 -0
- package/dist/webworker/executor/WebWorkerSnapExecutor.mjs +27 -0
- package/dist/webworker/executor/WebWorkerSnapExecutor.mjs.map +1 -0
- package/dist/webworker/executor/index.js +35 -0
- package/dist/webworker/executor/index.js.map +1 -0
- package/dist/webworker/executor/index.mjs +35 -0
- package/dist/webworker/executor/index.mjs.map +1 -0
- package/dist/webworker/pool/WebWorkerPool.js +8 -0
- package/dist/webworker/pool/WebWorkerPool.js.map +1 -0
- package/dist/webworker/pool/WebWorkerPool.mjs +8 -0
- package/dist/webworker/pool/WebWorkerPool.mjs.map +1 -0
- package/dist/webworker/pool/index.js +16 -0
- package/dist/webworker/pool/index.js.map +1 -0
- package/dist/webworker/pool/index.mjs +16 -0
- package/dist/webworker/pool/index.mjs.map +1 -0
- package/package.json +29 -22
- package/dist/cjs/common/BaseSnapExecutor.js +0 -496
- package/dist/cjs/common/BaseSnapExecutor.js.map +0 -1
- package/dist/cjs/common/commands.js +0 -102
- package/dist/cjs/common/commands.js.map +0 -1
- package/dist/cjs/common/endowments/commonEndowmentFactory.js +0 -147
- package/dist/cjs/common/endowments/commonEndowmentFactory.js.map +0 -1
- package/dist/cjs/common/endowments/console.js +0 -134
- package/dist/cjs/common/endowments/console.js.map +0 -1
- package/dist/cjs/common/endowments/crypto.js +0 -44
- package/dist/cjs/common/endowments/crypto.js.map +0 -1
- package/dist/cjs/common/endowments/date.js +0 -53
- package/dist/cjs/common/endowments/date.js.map +0 -1
- package/dist/cjs/common/endowments/index.js +0 -93
- package/dist/cjs/common/endowments/index.js.map +0 -1
- package/dist/cjs/common/endowments/interval.js +0 -62
- package/dist/cjs/common/endowments/interval.js.map +0 -1
- package/dist/cjs/common/endowments/math.js +0 -67
- package/dist/cjs/common/endowments/math.js.map +0 -1
- package/dist/cjs/common/endowments/network.js +0 -303
- package/dist/cjs/common/endowments/network.js.map +0 -1
- package/dist/cjs/common/endowments/textDecoder.js +0 -28
- package/dist/cjs/common/endowments/textDecoder.js.map +0 -1
- package/dist/cjs/common/endowments/textEncoder.js +0 -28
- package/dist/cjs/common/endowments/textEncoder.js.map +0 -1
- package/dist/cjs/common/endowments/timeout.js +0 -64
- package/dist/cjs/common/endowments/timeout.js.map +0 -1
- package/dist/cjs/common/globalEvents.js +0 -40
- package/dist/cjs/common/globalEvents.js.map +0 -1
- package/dist/cjs/common/globalObject.js +0 -53
- package/dist/cjs/common/globalObject.js.map +0 -1
- package/dist/cjs/common/lockdown/lockdown-events.js +0 -74
- package/dist/cjs/common/lockdown/lockdown-events.js.map +0 -1
- package/dist/cjs/common/lockdown/lockdown-more.js +0 -73
- package/dist/cjs/common/lockdown/lockdown-more.js.map +0 -1
- package/dist/cjs/common/lockdown/lockdown.js +0 -30
- package/dist/cjs/common/lockdown/lockdown.js.map +0 -1
- package/dist/cjs/common/sortParams.js +0 -26
- package/dist/cjs/common/sortParams.js.map +0 -1
- package/dist/cjs/common/utils.js +0 -128
- package/dist/cjs/common/utils.js.map +0 -1
- package/dist/cjs/common/validation.js +0 -149
- package/dist/cjs/common/validation.js.map +0 -1
- package/dist/cjs/iframe/IFrameSnapExecutor.js +0 -50
- package/dist/cjs/iframe/IFrameSnapExecutor.js.map +0 -1
- package/dist/cjs/iframe/index.js +0 -13
- package/dist/cjs/iframe/index.js.map +0 -1
- package/dist/cjs/index.js +0 -20
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/logging.js +0 -15
- package/dist/cjs/logging.js.map +0 -1
- package/dist/cjs/node-process/ChildProcessSnapExecutor.js +0 -39
- package/dist/cjs/node-process/ChildProcessSnapExecutor.js.map +0 -1
- package/dist/cjs/node-process/index.js +0 -11
- package/dist/cjs/node-process/index.js.map +0 -1
- package/dist/cjs/node-thread/ThreadSnapExecutor.js +0 -39
- package/dist/cjs/node-thread/ThreadSnapExecutor.js.map +0 -1
- package/dist/cjs/node-thread/index.js +0 -11
- package/dist/cjs/node-thread/index.js.map +0 -1
- package/dist/cjs/proxy/ProxySnapExecutor.js +0 -183
- package/dist/cjs/proxy/ProxySnapExecutor.js.map +0 -1
- package/dist/cjs/proxy/index.js +0 -20
- package/dist/cjs/proxy/index.js.map +0 -1
- package/dist/cjs/webview/WebViewExecutorStream.js +0 -121
- package/dist/cjs/webview/WebViewExecutorStream.js.map +0 -1
- package/dist/cjs/webview/index.js +0 -19
- package/dist/cjs/webview/index.js.map +0 -1
- package/dist/cjs/webworker/executor/WebWorkerSnapExecutor.js +0 -45
- package/dist/cjs/webworker/executor/WebWorkerSnapExecutor.js.map +0 -1
- package/dist/cjs/webworker/executor/index.js +0 -13
- package/dist/cjs/webworker/executor/index.js.map +0 -1
- package/dist/cjs/webworker/pool/WebWorkerPool.js +0 -248
- package/dist/cjs/webworker/pool/WebWorkerPool.js.map +0 -1
- package/dist/cjs/webworker/pool/index.js +0 -13
- package/dist/cjs/webworker/pool/index.js.map +0 -1
- package/dist/esm/common/BaseSnapExecutor.js +0 -486
- package/dist/esm/common/BaseSnapExecutor.js.map +0 -1
- package/dist/esm/common/commands.js +0 -101
- package/dist/esm/common/commands.js.map +0 -1
- package/dist/esm/common/endowments/commonEndowmentFactory.js +0 -132
- package/dist/esm/common/endowments/commonEndowmentFactory.js.map +0 -1
- package/dist/esm/common/endowments/console.js +0 -116
- package/dist/esm/common/endowments/console.js.map +0 -1
- package/dist/esm/common/endowments/crypto.js +0 -26
- package/dist/esm/common/endowments/crypto.js.map +0 -1
- package/dist/esm/common/endowments/date.js +0 -43
- package/dist/esm/common/endowments/date.js.map +0 -1
- package/dist/esm/common/endowments/index.js +0 -92
- package/dist/esm/common/endowments/index.js.map +0 -1
- package/dist/esm/common/endowments/interval.js +0 -52
- package/dist/esm/common/endowments/interval.js.map +0 -1
- package/dist/esm/common/endowments/math.js +0 -57
- package/dist/esm/common/endowments/math.js.map +0 -1
- package/dist/esm/common/endowments/network.js +0 -293
- package/dist/esm/common/endowments/network.js.map +0 -1
- package/dist/esm/common/endowments/textDecoder.js +0 -18
- package/dist/esm/common/endowments/textDecoder.js.map +0 -1
- package/dist/esm/common/endowments/textEncoder.js +0 -18
- package/dist/esm/common/endowments/textEncoder.js.map +0 -1
- package/dist/esm/common/endowments/timeout.js +0 -54
- package/dist/esm/common/endowments/timeout.js.map +0 -1
- package/dist/esm/common/globalEvents.js +0 -36
- package/dist/esm/common/globalEvents.js.map +0 -1
- package/dist/esm/common/globalObject.js +0 -36
- package/dist/esm/common/globalObject.js.map +0 -1
- package/dist/esm/common/lockdown/lockdown-events.js +0 -66
- package/dist/esm/common/lockdown/lockdown-events.js.map +0 -1
- package/dist/esm/common/lockdown/lockdown-more.js +0 -82
- package/dist/esm/common/lockdown/lockdown-more.js.map +0 -1
- package/dist/esm/common/lockdown/lockdown.js +0 -24
- package/dist/esm/common/lockdown/lockdown.js.map +0 -1
- package/dist/esm/common/sortParams.js +0 -29
- package/dist/esm/common/sortParams.js.map +0 -1
- package/dist/esm/common/utils.js +0 -128
- package/dist/esm/common/utils.js.map +0 -1
- package/dist/esm/common/validation.js +0 -127
- package/dist/esm/common/validation.js.map +0 -1
- package/dist/esm/iframe/IFrameSnapExecutor.js +0 -35
- package/dist/esm/iframe/IFrameSnapExecutor.js.map +0 -1
- package/dist/esm/iframe/index.js +0 -9
- package/dist/esm/iframe/index.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/logging.js +0 -10
- package/dist/esm/logging.js.map +0 -1
- package/dist/esm/node-process/ChildProcessSnapExecutor.js +0 -24
- package/dist/esm/node-process/ChildProcessSnapExecutor.js.map +0 -1
- package/dist/esm/node-process/index.js +0 -7
- package/dist/esm/node-process/index.js.map +0 -1
- package/dist/esm/node-thread/ThreadSnapExecutor.js +0 -24
- package/dist/esm/node-thread/ThreadSnapExecutor.js.map +0 -1
- package/dist/esm/node-thread/index.js +0 -7
- package/dist/esm/node-thread/index.js.map +0 -1
- package/dist/esm/proxy/ProxySnapExecutor.js +0 -181
- package/dist/esm/proxy/ProxySnapExecutor.js.map +0 -1
- package/dist/esm/proxy/index.js +0 -3
- package/dist/esm/proxy/index.js.map +0 -1
- package/dist/esm/webview/WebViewExecutorStream.js +0 -111
- package/dist/esm/webview/WebViewExecutorStream.js.map +0 -1
- package/dist/esm/webview/index.js +0 -15
- package/dist/esm/webview/index.js.map +0 -1
- package/dist/esm/webworker/executor/WebWorkerSnapExecutor.js +0 -30
- package/dist/esm/webworker/executor/WebWorkerSnapExecutor.js.map +0 -1
- package/dist/esm/webworker/executor/index.js +0 -9
- package/dist/esm/webworker/executor/index.js.map +0 -1
- package/dist/esm/webworker/pool/WebWorkerPool.js +0 -245
- package/dist/esm/webworker/pool/WebWorkerPool.js.map +0 -1
- package/dist/esm/webworker/pool/index.js +0 -9
- package/dist/esm/webworker/pool/index.js.map +0 -1
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
JsonRpcRequestWithoutIdStruct: function() {
|
|
13
|
-
return JsonRpcRequestWithoutIdStruct;
|
|
14
|
-
},
|
|
15
|
-
EndowmentStruct: function() {
|
|
16
|
-
return EndowmentStruct;
|
|
17
|
-
},
|
|
18
|
-
isEndowment: function() {
|
|
19
|
-
return isEndowment;
|
|
20
|
-
},
|
|
21
|
-
isEndowmentsArray: function() {
|
|
22
|
-
return isEndowmentsArray;
|
|
23
|
-
},
|
|
24
|
-
PingRequestArgumentsStruct: function() {
|
|
25
|
-
return PingRequestArgumentsStruct;
|
|
26
|
-
},
|
|
27
|
-
TerminateRequestArgumentsStruct: function() {
|
|
28
|
-
return TerminateRequestArgumentsStruct;
|
|
29
|
-
},
|
|
30
|
-
ExecuteSnapRequestArgumentsStruct: function() {
|
|
31
|
-
return ExecuteSnapRequestArgumentsStruct;
|
|
32
|
-
},
|
|
33
|
-
SnapRpcRequestArgumentsStruct: function() {
|
|
34
|
-
return SnapRpcRequestArgumentsStruct;
|
|
35
|
-
},
|
|
36
|
-
OnTransactionRequestArgumentsStruct: function() {
|
|
37
|
-
return OnTransactionRequestArgumentsStruct;
|
|
38
|
-
},
|
|
39
|
-
assertIsOnTransactionRequestArguments: function() {
|
|
40
|
-
return assertIsOnTransactionRequestArguments;
|
|
41
|
-
},
|
|
42
|
-
OnSignatureRequestArgumentsStruct: function() {
|
|
43
|
-
return OnSignatureRequestArgumentsStruct;
|
|
44
|
-
},
|
|
45
|
-
assertIsOnSignatureRequestArguments: function() {
|
|
46
|
-
return assertIsOnSignatureRequestArguments;
|
|
47
|
-
},
|
|
48
|
-
OnNameLookupRequestArgumentsStruct: function() {
|
|
49
|
-
return OnNameLookupRequestArgumentsStruct;
|
|
50
|
-
},
|
|
51
|
-
assertIsOnNameLookupRequestArguments: function() {
|
|
52
|
-
return assertIsOnNameLookupRequestArguments;
|
|
53
|
-
},
|
|
54
|
-
OnUserInputArgumentsStruct: function() {
|
|
55
|
-
return OnUserInputArgumentsStruct;
|
|
56
|
-
},
|
|
57
|
-
assertIsOnUserInputRequestArguments: function() {
|
|
58
|
-
return assertIsOnUserInputRequestArguments;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
const _rpcerrors = require("@metamask/rpc-errors");
|
|
62
|
-
const _snapssdk = require("@metamask/snaps-sdk");
|
|
63
|
-
const _snapsutils = require("@metamask/snaps-utils");
|
|
64
|
-
const _utils = require("@metamask/utils");
|
|
65
|
-
const _superstruct = require("superstruct");
|
|
66
|
-
const JsonRpcRequestWithoutIdStruct = (0, _superstruct.object)({
|
|
67
|
-
jsonrpc: (0, _superstruct.optional)(_utils.JsonRpcVersionStruct),
|
|
68
|
-
id: (0, _superstruct.optional)(_utils.JsonRpcIdStruct),
|
|
69
|
-
method: (0, _superstruct.string)(),
|
|
70
|
-
params: (0, _superstruct.optional)(_utils.JsonRpcParamsStruct)
|
|
71
|
-
});
|
|
72
|
-
const EndowmentStruct = (0, _superstruct.string)();
|
|
73
|
-
function isEndowment(value) {
|
|
74
|
-
return (0, _superstruct.is)(value, EndowmentStruct);
|
|
75
|
-
}
|
|
76
|
-
function isEndowmentsArray(value) {
|
|
77
|
-
return Array.isArray(value) && value.every(isEndowment);
|
|
78
|
-
}
|
|
79
|
-
const OkStruct = (0, _superstruct.literal)('OK');
|
|
80
|
-
const PingRequestArgumentsStruct = (0, _superstruct.optional)((0, _superstruct.union)([
|
|
81
|
-
(0, _superstruct.literal)(undefined),
|
|
82
|
-
(0, _superstruct.array)()
|
|
83
|
-
]));
|
|
84
|
-
const TerminateRequestArgumentsStruct = (0, _superstruct.union)([
|
|
85
|
-
(0, _superstruct.literal)(undefined),
|
|
86
|
-
(0, _superstruct.array)()
|
|
87
|
-
]);
|
|
88
|
-
const ExecuteSnapRequestArgumentsStruct = (0, _superstruct.tuple)([
|
|
89
|
-
(0, _superstruct.string)(),
|
|
90
|
-
(0, _superstruct.string)(),
|
|
91
|
-
(0, _superstruct.array)(EndowmentStruct)
|
|
92
|
-
]);
|
|
93
|
-
const SnapRpcRequestArgumentsStruct = (0, _superstruct.tuple)([
|
|
94
|
-
(0, _superstruct.string)(),
|
|
95
|
-
(0, _superstruct.enums)(Object.values(_snapsutils.HandlerType)),
|
|
96
|
-
(0, _superstruct.string)(),
|
|
97
|
-
(0, _superstruct.assign)(JsonRpcRequestWithoutIdStruct, (0, _superstruct.object)({
|
|
98
|
-
params: (0, _superstruct.optional)((0, _superstruct.record)((0, _superstruct.string)(), _utils.JsonStruct))
|
|
99
|
-
}))
|
|
100
|
-
]);
|
|
101
|
-
const OnTransactionRequestArgumentsStruct = (0, _superstruct.object)({
|
|
102
|
-
// TODO: Improve `transaction` type.
|
|
103
|
-
transaction: (0, _superstruct.record)((0, _superstruct.string)(), _utils.JsonStruct),
|
|
104
|
-
chainId: _snapsutils.ChainIdStruct,
|
|
105
|
-
transactionOrigin: (0, _superstruct.nullable)((0, _superstruct.string)())
|
|
106
|
-
});
|
|
107
|
-
function assertIsOnTransactionRequestArguments(value) {
|
|
108
|
-
(0, _utils.assertStruct)(value, OnTransactionRequestArgumentsStruct, 'Invalid request params', _rpcerrors.rpcErrors.invalidParams);
|
|
109
|
-
}
|
|
110
|
-
const OnSignatureRequestArgumentsStruct = (0, _superstruct.object)({
|
|
111
|
-
signature: (0, _superstruct.record)((0, _superstruct.string)(), _utils.JsonStruct),
|
|
112
|
-
signatureOrigin: (0, _superstruct.nullable)((0, _superstruct.string)())
|
|
113
|
-
});
|
|
114
|
-
function assertIsOnSignatureRequestArguments(value) {
|
|
115
|
-
(0, _utils.assertStruct)(value, OnSignatureRequestArgumentsStruct, 'Invalid request params', _rpcerrors.rpcErrors.invalidParams);
|
|
116
|
-
}
|
|
117
|
-
const baseNameLookupArgs = {
|
|
118
|
-
chainId: _snapsutils.ChainIdStruct
|
|
119
|
-
};
|
|
120
|
-
const domainRequestStruct = (0, _superstruct.object)({
|
|
121
|
-
...baseNameLookupArgs,
|
|
122
|
-
address: (0, _superstruct.string)()
|
|
123
|
-
});
|
|
124
|
-
const addressRequestStruct = (0, _superstruct.object)({
|
|
125
|
-
...baseNameLookupArgs,
|
|
126
|
-
domain: (0, _superstruct.string)()
|
|
127
|
-
});
|
|
128
|
-
const OnNameLookupRequestArgumentsStruct = (0, _superstruct.union)([
|
|
129
|
-
domainRequestStruct,
|
|
130
|
-
addressRequestStruct
|
|
131
|
-
]);
|
|
132
|
-
function assertIsOnNameLookupRequestArguments(value) {
|
|
133
|
-
(0, _utils.assertStruct)(value, OnNameLookupRequestArgumentsStruct, 'Invalid request params', _rpcerrors.rpcErrors.invalidParams);
|
|
134
|
-
}
|
|
135
|
-
const OnUserInputArgumentsStruct = (0, _superstruct.object)({
|
|
136
|
-
id: (0, _superstruct.string)(),
|
|
137
|
-
event: _snapssdk.UserInputEventStruct
|
|
138
|
-
});
|
|
139
|
-
function assertIsOnUserInputRequestArguments(value) {
|
|
140
|
-
(0, _utils.assertStruct)(value, OnUserInputArgumentsStruct, 'Invalid request params', _rpcerrors.rpcErrors.invalidParams);
|
|
141
|
-
}
|
|
142
|
-
const OkResponseStruct = (0, _superstruct.object)({
|
|
143
|
-
id: _utils.JsonRpcIdStruct,
|
|
144
|
-
jsonrpc: _utils.JsonRpcVersionStruct,
|
|
145
|
-
result: OkStruct
|
|
146
|
-
});
|
|
147
|
-
const SnapRpcResponse = _utils.JsonRpcSuccessStruct;
|
|
148
|
-
|
|
149
|
-
//# sourceMappingURL=validation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/common/validation.ts"],"sourcesContent":["import { rpcErrors } from '@metamask/rpc-errors';\nimport { UserInputEventStruct } from '@metamask/snaps-sdk';\nimport { ChainIdStruct, HandlerType } from '@metamask/snaps-utils';\nimport type { Json, JsonRpcSuccess } from '@metamask/utils';\nimport {\n assertStruct,\n JsonRpcIdStruct,\n JsonRpcParamsStruct,\n JsonRpcSuccessStruct,\n JsonRpcVersionStruct,\n JsonStruct,\n} from '@metamask/utils';\nimport type { Infer } from 'superstruct';\nimport {\n array,\n assign,\n enums,\n is,\n literal,\n nullable,\n object,\n optional,\n record,\n string,\n tuple,\n union,\n} from 'superstruct';\n\nexport const JsonRpcRequestWithoutIdStruct = object({\n jsonrpc: optional(JsonRpcVersionStruct),\n id: optional(JsonRpcIdStruct),\n method: string(),\n params: optional(JsonRpcParamsStruct),\n});\n\nexport type JsonRpcRequestWithoutId = Infer<\n typeof JsonRpcRequestWithoutIdStruct\n>;\n\nexport const EndowmentStruct = string();\nexport type Endowment = Infer<typeof EndowmentStruct>;\n\n/**\n * Check if the given value is an endowment.\n *\n * @param value - The value to check.\n * @returns Whether the value is an endowment.\n */\nexport function isEndowment(value: unknown): value is Endowment {\n return is(value, EndowmentStruct);\n}\n\n/**\n * Check if the given value is an array of endowments.\n *\n * @param value - The value to check.\n * @returns Whether the value is an array of endowments.\n */\nexport function isEndowmentsArray(value: unknown): value is Endowment[] {\n return Array.isArray(value) && value.every(isEndowment);\n}\n\nconst OkStruct = literal('OK');\n\nexport const PingRequestArgumentsStruct = optional(\n union([literal(undefined), array()]),\n);\n\nexport const TerminateRequestArgumentsStruct = union([\n literal(undefined),\n array(),\n]);\n\nexport const ExecuteSnapRequestArgumentsStruct = tuple([\n string(),\n string(),\n array(EndowmentStruct),\n]);\n\nexport const SnapRpcRequestArgumentsStruct = tuple([\n string(),\n enums(Object.values(HandlerType)),\n string(),\n assign(\n JsonRpcRequestWithoutIdStruct,\n object({\n params: optional(record(string(), JsonStruct)),\n }),\n ),\n]);\n\nexport type PingRequestArguments = Infer<typeof PingRequestArgumentsStruct>;\nexport type TerminateRequestArguments = Infer<\n typeof TerminateRequestArgumentsStruct\n>;\n\nexport type ExecuteSnapRequestArguments = Infer<\n typeof ExecuteSnapRequestArgumentsStruct\n>;\n\nexport type SnapRpcRequestArguments = Infer<\n typeof SnapRpcRequestArgumentsStruct\n>;\n\nexport type RequestArguments =\n | PingRequestArguments\n | TerminateRequestArguments\n | ExecuteSnapRequestArguments\n | SnapRpcRequestArguments;\n\nexport const OnTransactionRequestArgumentsStruct = object({\n // TODO: Improve `transaction` type.\n transaction: record(string(), JsonStruct),\n chainId: ChainIdStruct,\n transactionOrigin: nullable(string()),\n});\n\nexport type OnTransactionRequestArguments = Infer<\n typeof OnTransactionRequestArgumentsStruct\n>;\n\n/**\n * Asserts that the given value is a valid {@link OnTransactionRequestArguments}\n * object.\n *\n * @param value - The value to validate.\n * @throws If the value is not a valid {@link OnTransactionRequestArguments}\n * object.\n */\nexport function assertIsOnTransactionRequestArguments(\n value: unknown,\n): asserts value is OnTransactionRequestArguments {\n assertStruct(\n value,\n OnTransactionRequestArgumentsStruct,\n 'Invalid request params',\n rpcErrors.invalidParams,\n );\n}\n\nexport const OnSignatureRequestArgumentsStruct = object({\n signature: record(string(), JsonStruct),\n signatureOrigin: nullable(string()),\n});\n\nexport type OnSignatureRequestArguments = Infer<\n typeof OnSignatureRequestArgumentsStruct\n>;\n\n/**\n * Asserts that the given value is a valid {@link OnSignatureRequestArguments}\n * object.\n *\n * @param value - The value to validate.\n * @throws If the value is not a valid {@link OnSignatureRequestArguments}\n * object.\n */\nexport function assertIsOnSignatureRequestArguments(\n value: unknown,\n): asserts value is OnSignatureRequestArguments {\n assertStruct(\n value,\n OnSignatureRequestArgumentsStruct,\n 'Invalid request params',\n rpcErrors.invalidParams,\n );\n}\n\nconst baseNameLookupArgs = { chainId: ChainIdStruct };\nconst domainRequestStruct = object({\n ...baseNameLookupArgs,\n address: string(),\n});\nconst addressRequestStruct = object({\n ...baseNameLookupArgs,\n domain: string(),\n});\n\nexport const OnNameLookupRequestArgumentsStruct = union([\n domainRequestStruct,\n addressRequestStruct,\n]);\n\nexport type OnNameLookupRequestArguments = Infer<\n typeof OnNameLookupRequestArgumentsStruct\n>;\n\nexport type PossibleLookupRequestArgs = typeof baseNameLookupArgs & {\n address?: string;\n domain?: string;\n};\n\n/**\n * Asserts that the given value is a valid {@link OnNameLookupRequestArguments}\n * object.\n *\n * @param value - The value to validate.\n * @throws If the value is not a valid {@link OnNameLookupRequestArguments}\n * object.\n */\nexport function assertIsOnNameLookupRequestArguments(\n value: unknown,\n): asserts value is OnNameLookupRequestArguments {\n assertStruct(\n value,\n OnNameLookupRequestArgumentsStruct,\n 'Invalid request params',\n rpcErrors.invalidParams,\n );\n}\n\nexport const OnUserInputArgumentsStruct = object({\n id: string(),\n event: UserInputEventStruct,\n});\n\nexport type OnUserInputArguments = Infer<typeof OnUserInputArgumentsStruct>;\n\n/**\n * Asserts that the given value is a valid {@link OnUserInputArguments}\n * object.\n *\n * @param value - The value to validate.\n * @throws If the value is not a valid {@link OnUserInputArguments}\n * object.\n */\nexport function assertIsOnUserInputRequestArguments(\n value: unknown,\n): asserts value is OnUserInputArguments {\n assertStruct(\n value,\n OnUserInputArgumentsStruct,\n 'Invalid request params',\n rpcErrors.invalidParams,\n );\n}\n\nconst OkResponseStruct = object({\n id: JsonRpcIdStruct,\n jsonrpc: JsonRpcVersionStruct,\n result: OkStruct,\n});\n\nconst SnapRpcResponse = JsonRpcSuccessStruct;\n\nexport type OkResponse = Infer<typeof OkResponseStruct>;\nexport type SnapRpcResponse = Infer<typeof SnapRpcResponse>;\n\nexport type Response = OkResponse | SnapRpcResponse;\n\ntype RequestParams<Params extends unknown[] | undefined> =\n Params extends undefined ? [] : Params;\n\ntype RequestFunction<\n Args extends RequestArguments,\n ResponseType extends JsonRpcSuccess<Json>,\n> = (...args: RequestParams<Args>) => Promise<ResponseType['result']>;\n\nexport type Ping = RequestFunction<PingRequestArguments, OkResponse>;\nexport type Terminate = RequestFunction<TerminateRequestArguments, OkResponse>;\nexport type ExecuteSnap = RequestFunction<\n ExecuteSnapRequestArguments,\n OkResponse\n>;\nexport type SnapRpc = RequestFunction<SnapRpcRequestArguments, SnapRpcResponse>;\n"],"names":["JsonRpcRequestWithoutIdStruct","EndowmentStruct","isEndowment","isEndowmentsArray","PingRequestArgumentsStruct","TerminateRequestArgumentsStruct","ExecuteSnapRequestArgumentsStruct","SnapRpcRequestArgumentsStruct","OnTransactionRequestArgumentsStruct","assertIsOnTransactionRequestArguments","OnSignatureRequestArgumentsStruct","assertIsOnSignatureRequestArguments","OnNameLookupRequestArgumentsStruct","assertIsOnNameLookupRequestArguments","OnUserInputArgumentsStruct","assertIsOnUserInputRequestArguments","object","jsonrpc","optional","JsonRpcVersionStruct","id","JsonRpcIdStruct","method","string","params","JsonRpcParamsStruct","value","is","Array","isArray","every","OkStruct","literal","union","undefined","array","tuple","enums","Object","values","HandlerType","assign","record","JsonStruct","transaction","chainId","ChainIdStruct","transactionOrigin","nullable","assertStruct","rpcErrors","invalidParams","signature","signatureOrigin","baseNameLookupArgs","domainRequestStruct","address","addressRequestStruct","domain","event","UserInputEventStruct","OkResponseStruct","result","SnapRpcResponse","JsonRpcSuccessStruct"],"mappings":";;;;;;;;;;;IA4BaA,6BAA6B;eAA7BA;;IAWAC,eAAe;eAAfA;;IASGC,WAAW;eAAXA;;IAUAC,iBAAiB;eAAjBA;;IAMHC,0BAA0B;eAA1BA;;IAIAC,+BAA+B;eAA/BA;;IAKAC,iCAAiC;eAAjCA;;IAMAC,6BAA6B;eAA7BA;;IA+BAC,mCAAmC;eAAnCA;;IAmBGC,qCAAqC;eAArCA;;IAWHC,iCAAiC;eAAjCA;;IAiBGC,mCAAmC;eAAnCA;;IAqBHC,kCAAkC;eAAlCA;;IAsBGC,oCAAoC;eAApCA;;IAWHC,0BAA0B;eAA1BA;;IAeGC,mCAAmC;eAAnCA;;;2BAlOU;0BACW;4BACM;uBASpC;6BAeA;AAEA,MAAMf,gCAAgCgB,IAAAA,mBAAM,EAAC;IAClDC,SAASC,IAAAA,qBAAQ,EAACC,2BAAoB;IACtCC,IAAIF,IAAAA,qBAAQ,EAACG,sBAAe;IAC5BC,QAAQC,IAAAA,mBAAM;IACdC,QAAQN,IAAAA,qBAAQ,EAACO,0BAAmB;AACtC;AAMO,MAAMxB,kBAAkBsB,IAAAA,mBAAM;AAS9B,SAASrB,YAAYwB,KAAc;IACxC,OAAOC,IAAAA,eAAE,EAACD,OAAOzB;AACnB;AAQO,SAASE,kBAAkBuB,KAAc;IAC9C,OAAOE,MAAMC,OAAO,CAACH,UAAUA,MAAMI,KAAK,CAAC5B;AAC7C;AAEA,MAAM6B,WAAWC,IAAAA,oBAAO,EAAC;AAElB,MAAM5B,6BAA6Bc,IAAAA,qBAAQ,EAChDe,IAAAA,kBAAK,EAAC;IAACD,IAAAA,oBAAO,EAACE;IAAYC,IAAAA,kBAAK;CAAG;AAG9B,MAAM9B,kCAAkC4B,IAAAA,kBAAK,EAAC;IACnDD,IAAAA,oBAAO,EAACE;IACRC,IAAAA,kBAAK;CACN;AAEM,MAAM7B,oCAAoC8B,IAAAA,kBAAK,EAAC;IACrDb,IAAAA,mBAAM;IACNA,IAAAA,mBAAM;IACNY,IAAAA,kBAAK,EAAClC;CACP;AAEM,MAAMM,gCAAgC6B,IAAAA,kBAAK,EAAC;IACjDb,IAAAA,mBAAM;IACNc,IAAAA,kBAAK,EAACC,OAAOC,MAAM,CAACC,uBAAW;IAC/BjB,IAAAA,mBAAM;IACNkB,IAAAA,mBAAM,EACJzC,+BACAgB,IAAAA,mBAAM,EAAC;QACLQ,QAAQN,IAAAA,qBAAQ,EAACwB,IAAAA,mBAAM,EAACnB,IAAAA,mBAAM,KAAIoB,iBAAU;IAC9C;CAEH;AAqBM,MAAMnC,sCAAsCQ,IAAAA,mBAAM,EAAC;IACxD,oCAAoC;IACpC4B,aAAaF,IAAAA,mBAAM,EAACnB,IAAAA,mBAAM,KAAIoB,iBAAU;IACxCE,SAASC,yBAAa;IACtBC,mBAAmBC,IAAAA,qBAAQ,EAACzB,IAAAA,mBAAM;AACpC;AAcO,SAASd,sCACdiB,KAAc;IAEduB,IAAAA,mBAAY,EACVvB,OACAlB,qCACA,0BACA0C,oBAAS,CAACC,aAAa;AAE3B;AAEO,MAAMzC,oCAAoCM,IAAAA,mBAAM,EAAC;IACtDoC,WAAWV,IAAAA,mBAAM,EAACnB,IAAAA,mBAAM,KAAIoB,iBAAU;IACtCU,iBAAiBL,IAAAA,qBAAQ,EAACzB,IAAAA,mBAAM;AAClC;AAcO,SAASZ,oCACde,KAAc;IAEduB,IAAAA,mBAAY,EACVvB,OACAhB,mCACA,0BACAwC,oBAAS,CAACC,aAAa;AAE3B;AAEA,MAAMG,qBAAqB;IAAET,SAASC,yBAAa;AAAC;AACpD,MAAMS,sBAAsBvC,IAAAA,mBAAM,EAAC;IACjC,GAAGsC,kBAAkB;IACrBE,SAASjC,IAAAA,mBAAM;AACjB;AACA,MAAMkC,uBAAuBzC,IAAAA,mBAAM,EAAC;IAClC,GAAGsC,kBAAkB;IACrBI,QAAQnC,IAAAA,mBAAM;AAChB;AAEO,MAAMX,qCAAqCqB,IAAAA,kBAAK,EAAC;IACtDsB;IACAE;CACD;AAmBM,SAAS5C,qCACda,KAAc;IAEduB,IAAAA,mBAAY,EACVvB,OACAd,oCACA,0BACAsC,oBAAS,CAACC,aAAa;AAE3B;AAEO,MAAMrC,6BAA6BE,IAAAA,mBAAM,EAAC;IAC/CI,IAAIG,IAAAA,mBAAM;IACVoC,OAAOC,8BAAoB;AAC7B;AAYO,SAAS7C,oCACdW,KAAc;IAEduB,IAAAA,mBAAY,EACVvB,OACAZ,4BACA,0BACAoC,oBAAS,CAACC,aAAa;AAE3B;AAEA,MAAMU,mBAAmB7C,IAAAA,mBAAM,EAAC;IAC9BI,IAAIC,sBAAe;IACnBJ,SAASE,2BAAoB;IAC7B2C,QAAQ/B;AACV;AAEA,MAAMgC,kBAAkBC,2BAAoB"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "IFrameSnapExecutor", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return IFrameSnapExecutor;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _objectmultiplex = /*#__PURE__*/ _interop_require_default(require("@metamask/object-multiplex"));
|
|
12
|
-
const _postmessagestream = require("@metamask/post-message-stream");
|
|
13
|
-
const _snapsutils = require("@metamask/snaps-utils");
|
|
14
|
-
const _readablestream = require("readable-stream");
|
|
15
|
-
const _BaseSnapExecutor = require("../common/BaseSnapExecutor");
|
|
16
|
-
const _logging = require("../logging");
|
|
17
|
-
function _interop_require_default(obj) {
|
|
18
|
-
return obj && obj.__esModule ? obj : {
|
|
19
|
-
default: obj
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
class IFrameSnapExecutor extends _BaseSnapExecutor.BaseSnapExecutor {
|
|
23
|
-
/**
|
|
24
|
-
* Initialize the IFrameSnapExecutor. This creates a post message stream from
|
|
25
|
-
* and to the parent window, for two-way communication with the iframe.
|
|
26
|
-
*
|
|
27
|
-
* @param stream - The stream to use for communication.
|
|
28
|
-
* @returns An instance of `IFrameSnapExecutor`, with the initialized post
|
|
29
|
-
* message streams.
|
|
30
|
-
*/ static initialize(stream = new _postmessagestream.WindowPostMessageStream({
|
|
31
|
-
name: 'child',
|
|
32
|
-
target: 'parent',
|
|
33
|
-
targetWindow: self.parent,
|
|
34
|
-
targetOrigin: '*'
|
|
35
|
-
})) {
|
|
36
|
-
(0, _logging.log)('Worker: Connecting to parent.');
|
|
37
|
-
const mux = new _objectmultiplex.default();
|
|
38
|
-
(0, _readablestream.pipeline)(stream, mux, stream, (error)=>{
|
|
39
|
-
if (error) {
|
|
40
|
-
(0, _snapsutils.logError)(`Parent stream failure, closing worker.`, error);
|
|
41
|
-
}
|
|
42
|
-
self.close();
|
|
43
|
-
});
|
|
44
|
-
const commandStream = mux.createStream(_snapsutils.SNAP_STREAM_NAMES.COMMAND);
|
|
45
|
-
const rpcStream = mux.createStream(_snapsutils.SNAP_STREAM_NAMES.JSON_RPC);
|
|
46
|
-
return new IFrameSnapExecutor(commandStream, rpcStream);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
//# sourceMappingURL=IFrameSnapExecutor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/iframe/IFrameSnapExecutor.ts"],"sourcesContent":["import ObjectMultiplex from '@metamask/object-multiplex';\nimport type { BasePostMessageStream } from '@metamask/post-message-stream';\nimport { WindowPostMessageStream } from '@metamask/post-message-stream';\nimport { logError, SNAP_STREAM_NAMES } from '@metamask/snaps-utils';\nimport { pipeline } from 'readable-stream';\n\nimport { BaseSnapExecutor } from '../common/BaseSnapExecutor';\nimport { log } from '../logging';\n\nexport class IFrameSnapExecutor extends BaseSnapExecutor {\n /**\n * Initialize the IFrameSnapExecutor. This creates a post message stream from\n * and to the parent window, for two-way communication with the iframe.\n *\n * @param stream - The stream to use for communication.\n * @returns An instance of `IFrameSnapExecutor`, with the initialized post\n * message streams.\n */\n static initialize(\n stream: BasePostMessageStream = new WindowPostMessageStream({\n name: 'child',\n target: 'parent',\n targetWindow: self.parent,\n targetOrigin: '*',\n }),\n ) {\n log('Worker: Connecting to parent.');\n\n const mux = new ObjectMultiplex();\n pipeline(stream, mux, stream, (error) => {\n if (error) {\n logError(`Parent stream failure, closing worker.`, error);\n }\n self.close();\n });\n\n const commandStream = mux.createStream(SNAP_STREAM_NAMES.COMMAND);\n const rpcStream = mux.createStream(SNAP_STREAM_NAMES.JSON_RPC);\n\n return new IFrameSnapExecutor(commandStream, rpcStream);\n }\n}\n"],"names":["IFrameSnapExecutor","BaseSnapExecutor","initialize","stream","WindowPostMessageStream","name","target","targetWindow","self","parent","targetOrigin","log","mux","ObjectMultiplex","pipeline","error","logError","close","commandStream","createStream","SNAP_STREAM_NAMES","COMMAND","rpcStream","JSON_RPC"],"mappings":";;;;+BASaA;;;eAAAA;;;wEATe;mCAEY;4BACI;gCACnB;kCAEQ;yBACb;;;;;;AAEb,MAAMA,2BAA2BC,kCAAgB;IACtD;;;;;;;GAOC,GACD,OAAOC,WACLC,SAAgC,IAAIC,0CAAuB,CAAC;QAC1DC,MAAM;QACNC,QAAQ;QACRC,cAAcC,KAAKC,MAAM;QACzBC,cAAc;IAChB,EAAE,EACF;QACAC,IAAAA,YAAG,EAAC;QAEJ,MAAMC,MAAM,IAAIC,wBAAe;QAC/BC,IAAAA,wBAAQ,EAACX,QAAQS,KAAKT,QAAQ,CAACY;YAC7B,IAAIA,OAAO;gBACTC,IAAAA,oBAAQ,EAAC,CAAC,sCAAsC,CAAC,EAAED;YACrD;YACAP,KAAKS,KAAK;QACZ;QAEA,MAAMC,gBAAgBN,IAAIO,YAAY,CAACC,6BAAiB,CAACC,OAAO;QAChE,MAAMC,YAAYV,IAAIO,YAAY,CAACC,6BAAiB,CAACG,QAAQ;QAE7D,OAAO,IAAIvB,mBAAmBkB,eAAeI;IAC/C;AACF"}
|
package/dist/cjs/iframe/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
const _lockdownevents = require("../common/lockdown/lockdown-events");
|
|
6
|
-
const _lockdownmore = require("../common/lockdown/lockdown-more");
|
|
7
|
-
const _IFrameSnapExecutor = require("./IFrameSnapExecutor");
|
|
8
|
-
// Lockdown is already applied in LavaMoat
|
|
9
|
-
(0, _lockdownmore.executeLockdownMore)();
|
|
10
|
-
(0, _lockdownevents.executeLockdownEvents)();
|
|
11
|
-
_IFrameSnapExecutor.IFrameSnapExecutor.initialize();
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/iframe/index.ts"],"sourcesContent":["import { executeLockdownEvents } from '../common/lockdown/lockdown-events';\nimport { executeLockdownMore } from '../common/lockdown/lockdown-more';\nimport { IFrameSnapExecutor } from './IFrameSnapExecutor';\n\n// Lockdown is already applied in LavaMoat\nexecuteLockdownMore();\nexecuteLockdownEvents();\n\nIFrameSnapExecutor.initialize();\n"],"names":["executeLockdownMore","executeLockdownEvents","IFrameSnapExecutor","initialize"],"mappings":";;;;gCAAsC;8BACF;oCACD;AAEnC,0CAA0C;AAC1CA,IAAAA,iCAAmB;AACnBC,IAAAA,qCAAqB;AAErBC,sCAAkB,CAACC,UAAU"}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
_export_star(require("./proxy"), exports);
|
|
6
|
-
function _export_star(from, to) {
|
|
7
|
-
Object.keys(from).forEach(function(k) {
|
|
8
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
9
|
-
Object.defineProperty(to, k, {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return from[k];
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
return from;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './proxy';\n"],"names":[],"mappings":";;;;qBAAc"}
|
package/dist/cjs/logging.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "log", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return log;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _snapsutils = require("@metamask/snaps-utils");
|
|
12
|
-
const _utils = require("@metamask/utils");
|
|
13
|
-
const log = (0, _utils.createModuleLogger)(_snapsutils.snapsLogger, 'snaps-execution-environments');
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=logging.js.map
|
package/dist/cjs/logging.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/logging.ts"],"sourcesContent":["import { snapsLogger } from '@metamask/snaps-utils';\nimport { createModuleLogger } from '@metamask/utils';\n\n/**\n * A logging function specific to this package. The log messages don't show up\n * by default, but they can be enabled by setting the environment variable:\n * - `DEBUG=metamask:snaps:snaps-execution-environments`, or\n * - `DEBUG=metamask:snaps:*` to enable all logs from `@metamask/snaps-*`.\n */\nexport const log = createModuleLogger(\n snapsLogger,\n 'snaps-execution-environments',\n);\n"],"names":["log","createModuleLogger","snapsLogger"],"mappings":";;;;+BASaA;;;eAAAA;;;4BATe;uBACO;AAQ5B,MAAMA,MAAMC,IAAAA,yBAAkB,EACnCC,uBAAW,EACX"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "ChildProcessSnapExecutor", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return ChildProcessSnapExecutor;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _objectmultiplex = /*#__PURE__*/ _interop_require_default(require("@metamask/object-multiplex"));
|
|
12
|
-
const _postmessagestream = require("@metamask/post-message-stream");
|
|
13
|
-
const _snapsutils = require("@metamask/snaps-utils");
|
|
14
|
-
const _readablestream = require("readable-stream");
|
|
15
|
-
const _BaseSnapExecutor = require("../common/BaseSnapExecutor");
|
|
16
|
-
const _logging = require("../logging");
|
|
17
|
-
function _interop_require_default(obj) {
|
|
18
|
-
return obj && obj.__esModule ? obj : {
|
|
19
|
-
default: obj
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
class ChildProcessSnapExecutor extends _BaseSnapExecutor.BaseSnapExecutor {
|
|
23
|
-
static initialize() {
|
|
24
|
-
(0, _logging.log)('Worker: Connecting to parent.');
|
|
25
|
-
const parentStream = new _postmessagestream.ProcessMessageStream();
|
|
26
|
-
const mux = new _objectmultiplex.default();
|
|
27
|
-
(0, _readablestream.pipeline)(parentStream, mux, parentStream, (error)=>{
|
|
28
|
-
if (error) {
|
|
29
|
-
(0, _snapsutils.logError)(`Parent stream failure, closing worker.`, error);
|
|
30
|
-
}
|
|
31
|
-
self.close();
|
|
32
|
-
});
|
|
33
|
-
const commandStream = mux.createStream(_snapsutils.SNAP_STREAM_NAMES.COMMAND);
|
|
34
|
-
const rpcStream = mux.createStream(_snapsutils.SNAP_STREAM_NAMES.JSON_RPC);
|
|
35
|
-
return new ChildProcessSnapExecutor(commandStream, rpcStream);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=ChildProcessSnapExecutor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/node-process/ChildProcessSnapExecutor.ts"],"sourcesContent":["import ObjectMultiplex from '@metamask/object-multiplex';\nimport { ProcessMessageStream } from '@metamask/post-message-stream';\nimport { logError, SNAP_STREAM_NAMES } from '@metamask/snaps-utils';\nimport { pipeline } from 'readable-stream';\n\nimport { BaseSnapExecutor } from '../common/BaseSnapExecutor';\nimport { log } from '../logging';\n\nexport class ChildProcessSnapExecutor extends BaseSnapExecutor {\n static initialize() {\n log('Worker: Connecting to parent.');\n\n const parentStream = new ProcessMessageStream();\n const mux = new ObjectMultiplex();\n pipeline(parentStream, mux as any, parentStream, (error) => {\n if (error) {\n logError(`Parent stream failure, closing worker.`, error);\n }\n self.close();\n });\n\n const commandStream = mux.createStream(SNAP_STREAM_NAMES.COMMAND);\n const rpcStream = mux.createStream(SNAP_STREAM_NAMES.JSON_RPC) as any;\n return new ChildProcessSnapExecutor(commandStream, rpcStream);\n }\n}\n"],"names":["ChildProcessSnapExecutor","BaseSnapExecutor","initialize","log","parentStream","ProcessMessageStream","mux","ObjectMultiplex","pipeline","error","logError","self","close","commandStream","createStream","SNAP_STREAM_NAMES","COMMAND","rpcStream","JSON_RPC"],"mappings":";;;;+BAQaA;;;eAAAA;;;wEARe;mCACS;4BACO;gCACnB;kCAEQ;yBACb;;;;;;AAEb,MAAMA,iCAAiCC,kCAAgB;IAC5D,OAAOC,aAAa;QAClBC,IAAAA,YAAG,EAAC;QAEJ,MAAMC,eAAe,IAAIC,uCAAoB;QAC7C,MAAMC,MAAM,IAAIC,wBAAe;QAC/BC,IAAAA,wBAAQ,EAACJ,cAAcE,KAAYF,cAAc,CAACK;YAChD,IAAIA,OAAO;gBACTC,IAAAA,oBAAQ,EAAC,CAAC,sCAAsC,CAAC,EAAED;YACrD;YACAE,KAAKC,KAAK;QACZ;QAEA,MAAMC,gBAAgBP,IAAIQ,YAAY,CAACC,6BAAiB,CAACC,OAAO;QAChE,MAAMC,YAAYX,IAAIQ,YAAY,CAACC,6BAAiB,CAACG,QAAQ;QAC7D,OAAO,IAAIlB,yBAAyBa,eAAeI;IACrD;AACF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
const _lockdownmore = require("../common/lockdown/lockdown-more");
|
|
6
|
-
const _ChildProcessSnapExecutor = require("./ChildProcessSnapExecutor");
|
|
7
|
-
// Lockdown is already applied in LavaMoat
|
|
8
|
-
(0, _lockdownmore.executeLockdownMore)();
|
|
9
|
-
_ChildProcessSnapExecutor.ChildProcessSnapExecutor.initialize();
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/node-process/index.ts"],"sourcesContent":["import { executeLockdownMore } from '../common/lockdown/lockdown-more';\nimport { ChildProcessSnapExecutor } from './ChildProcessSnapExecutor';\n\n// Lockdown is already applied in LavaMoat\nexecuteLockdownMore();\n\nChildProcessSnapExecutor.initialize();\n"],"names":["executeLockdownMore","ChildProcessSnapExecutor","initialize"],"mappings":";;;;8BAAoC;0CACK;AAEzC,0CAA0C;AAC1CA,IAAAA,iCAAmB;AAEnBC,kDAAwB,CAACC,UAAU"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "ThreadSnapExecutor", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return ThreadSnapExecutor;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _objectmultiplex = /*#__PURE__*/ _interop_require_default(require("@metamask/object-multiplex"));
|
|
12
|
-
const _postmessagestream = require("@metamask/post-message-stream");
|
|
13
|
-
const _snapsutils = require("@metamask/snaps-utils");
|
|
14
|
-
const _readablestream = require("readable-stream");
|
|
15
|
-
const _BaseSnapExecutor = require("../common/BaseSnapExecutor");
|
|
16
|
-
const _logging = require("../logging");
|
|
17
|
-
function _interop_require_default(obj) {
|
|
18
|
-
return obj && obj.__esModule ? obj : {
|
|
19
|
-
default: obj
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
class ThreadSnapExecutor extends _BaseSnapExecutor.BaseSnapExecutor {
|
|
23
|
-
static initialize() {
|
|
24
|
-
(0, _logging.log)('Worker: Connecting to parent.');
|
|
25
|
-
const parentStream = new _postmessagestream.ThreadMessageStream();
|
|
26
|
-
const mux = new _objectmultiplex.default();
|
|
27
|
-
(0, _readablestream.pipeline)(parentStream, mux, parentStream, (error)=>{
|
|
28
|
-
if (error) {
|
|
29
|
-
(0, _snapsutils.logError)(`Parent stream failure, closing worker.`, error);
|
|
30
|
-
}
|
|
31
|
-
self.close();
|
|
32
|
-
});
|
|
33
|
-
const commandStream = mux.createStream(_snapsutils.SNAP_STREAM_NAMES.COMMAND);
|
|
34
|
-
const rpcStream = mux.createStream(_snapsutils.SNAP_STREAM_NAMES.JSON_RPC);
|
|
35
|
-
return new ThreadSnapExecutor(commandStream, rpcStream);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=ThreadSnapExecutor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/node-thread/ThreadSnapExecutor.ts"],"sourcesContent":["import ObjectMultiplex from '@metamask/object-multiplex';\nimport { ThreadMessageStream } from '@metamask/post-message-stream';\nimport { logError, SNAP_STREAM_NAMES } from '@metamask/snaps-utils';\nimport { pipeline } from 'readable-stream';\n\nimport { BaseSnapExecutor } from '../common/BaseSnapExecutor';\nimport { log } from '../logging';\n\nexport class ThreadSnapExecutor extends BaseSnapExecutor {\n static initialize() {\n log('Worker: Connecting to parent.');\n\n const parentStream = new ThreadMessageStream();\n const mux = new ObjectMultiplex();\n pipeline(parentStream, mux as any, parentStream, (error) => {\n if (error) {\n logError(`Parent stream failure, closing worker.`, error);\n }\n self.close();\n });\n\n const commandStream = mux.createStream(SNAP_STREAM_NAMES.COMMAND);\n const rpcStream = mux.createStream(SNAP_STREAM_NAMES.JSON_RPC) as any;\n return new ThreadSnapExecutor(commandStream, rpcStream);\n }\n}\n"],"names":["ThreadSnapExecutor","BaseSnapExecutor","initialize","log","parentStream","ThreadMessageStream","mux","ObjectMultiplex","pipeline","error","logError","self","close","commandStream","createStream","SNAP_STREAM_NAMES","COMMAND","rpcStream","JSON_RPC"],"mappings":";;;;+BAQaA;;;eAAAA;;;wEARe;mCACQ;4BACQ;gCACnB;kCAEQ;yBACb;;;;;;AAEb,MAAMA,2BAA2BC,kCAAgB;IACtD,OAAOC,aAAa;QAClBC,IAAAA,YAAG,EAAC;QAEJ,MAAMC,eAAe,IAAIC,sCAAmB;QAC5C,MAAMC,MAAM,IAAIC,wBAAe;QAC/BC,IAAAA,wBAAQ,EAACJ,cAAcE,KAAYF,cAAc,CAACK;YAChD,IAAIA,OAAO;gBACTC,IAAAA,oBAAQ,EAAC,CAAC,sCAAsC,CAAC,EAAED;YACrD;YACAE,KAAKC,KAAK;QACZ;QAEA,MAAMC,gBAAgBP,IAAIQ,YAAY,CAACC,6BAAiB,CAACC,OAAO;QAChE,MAAMC,YAAYX,IAAIQ,YAAY,CAACC,6BAAiB,CAACG,QAAQ;QAC7D,OAAO,IAAIlB,mBAAmBa,eAAeI;IAC/C;AACF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
const _lockdownmore = require("../common/lockdown/lockdown-more");
|
|
6
|
-
const _ThreadSnapExecutor = require("./ThreadSnapExecutor");
|
|
7
|
-
// Lockdown is already applied in LavaMoat
|
|
8
|
-
(0, _lockdownmore.executeLockdownMore)();
|
|
9
|
-
_ThreadSnapExecutor.ThreadSnapExecutor.initialize();
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/node-thread/index.ts"],"sourcesContent":["import { executeLockdownMore } from '../common/lockdown/lockdown-more';\nimport { ThreadSnapExecutor } from './ThreadSnapExecutor';\n\n// Lockdown is already applied in LavaMoat\nexecuteLockdownMore();\n\nThreadSnapExecutor.initialize();\n"],"names":["executeLockdownMore","ThreadSnapExecutor","initialize"],"mappings":";;;;8BAAoC;oCACD;AAEnC,0CAA0C;AAC1CA,IAAAA,iCAAmB;AAEnBC,sCAAkB,CAACC,UAAU"}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "ProxySnapExecutor", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return ProxySnapExecutor;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _postmessagestream = require("@metamask/post-message-stream");
|
|
12
|
-
const _packagejson = /*#__PURE__*/ _interop_require_default(require("@metamask/snaps-execution-environments/package.json"));
|
|
13
|
-
const _snapsutils = require("@metamask/snaps-utils");
|
|
14
|
-
const _utils = require("@metamask/utils");
|
|
15
|
-
function _check_private_redeclaration(obj, privateCollection) {
|
|
16
|
-
if (privateCollection.has(obj)) {
|
|
17
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
21
|
-
if (descriptor.get) {
|
|
22
|
-
return descriptor.get.call(receiver);
|
|
23
|
-
}
|
|
24
|
-
return descriptor.value;
|
|
25
|
-
}
|
|
26
|
-
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
27
|
-
if (descriptor.set) {
|
|
28
|
-
descriptor.set.call(receiver, value);
|
|
29
|
-
} else {
|
|
30
|
-
if (!descriptor.writable) {
|
|
31
|
-
throw new TypeError("attempted to set read only private field");
|
|
32
|
-
}
|
|
33
|
-
descriptor.value = value;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
37
|
-
if (!privateMap.has(receiver)) {
|
|
38
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
39
|
-
}
|
|
40
|
-
return privateMap.get(receiver);
|
|
41
|
-
}
|
|
42
|
-
function _class_private_field_get(receiver, privateMap) {
|
|
43
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get");
|
|
44
|
-
return _class_apply_descriptor_get(receiver, descriptor);
|
|
45
|
-
}
|
|
46
|
-
function _class_private_field_init(obj, privateMap, value) {
|
|
47
|
-
_check_private_redeclaration(obj, privateMap);
|
|
48
|
-
privateMap.set(obj, value);
|
|
49
|
-
}
|
|
50
|
-
function _class_private_field_set(receiver, privateMap, value) {
|
|
51
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
|
|
52
|
-
_class_apply_descriptor_set(receiver, descriptor, value);
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
function _class_private_method_get(receiver, privateSet, fn) {
|
|
56
|
-
if (!privateSet.has(receiver)) {
|
|
57
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
58
|
-
}
|
|
59
|
-
return fn;
|
|
60
|
-
}
|
|
61
|
-
function _class_private_method_init(obj, privateSet) {
|
|
62
|
-
_check_private_redeclaration(obj, privateSet);
|
|
63
|
-
privateSet.add(obj);
|
|
64
|
-
}
|
|
65
|
-
function _define_property(obj, key, value) {
|
|
66
|
-
if (key in obj) {
|
|
67
|
-
Object.defineProperty(obj, key, {
|
|
68
|
-
value: value,
|
|
69
|
-
enumerable: true,
|
|
70
|
-
configurable: true,
|
|
71
|
-
writable: true
|
|
72
|
-
});
|
|
73
|
-
} else {
|
|
74
|
-
obj[key] = value;
|
|
75
|
-
}
|
|
76
|
-
return obj;
|
|
77
|
-
}
|
|
78
|
-
function _interop_require_default(obj) {
|
|
79
|
-
return obj && obj.__esModule ? obj : {
|
|
80
|
-
default: obj
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
const IFRAME_URL = `https://execution.metamask.io/iframe/${_packagejson.default.version}/index.html`;
|
|
84
|
-
var _stream = /*#__PURE__*/ new WeakMap(), _frameUrl = /*#__PURE__*/ new WeakMap(), /**
|
|
85
|
-
* Handle an incoming message from a `ProxyExecutionService`. This
|
|
86
|
-
* assumes that the message contains a `jobId` property, and a JSON-RPC
|
|
87
|
-
* request in the `data` property.
|
|
88
|
-
*
|
|
89
|
-
* @param data - The message data.
|
|
90
|
-
* @param data.data - The JSON-RPC request.
|
|
91
|
-
* @param data.jobId - The job ID.
|
|
92
|
-
*/ _onData = /*#__PURE__*/ new WeakSet(), _initializeJob = /*#__PURE__*/ new WeakSet(), /**
|
|
93
|
-
* Terminate the job with the given ID. This will close the iframe and delete
|
|
94
|
-
* the job from the internal job map.
|
|
95
|
-
*
|
|
96
|
-
* @param jobId - The job ID.
|
|
97
|
-
*/ _terminateJob = /*#__PURE__*/ new WeakSet();
|
|
98
|
-
class ProxySnapExecutor {
|
|
99
|
-
/**
|
|
100
|
-
* Initialize the executor with the given stream. This is a wrapper around the
|
|
101
|
-
* constructor.
|
|
102
|
-
*
|
|
103
|
-
* @param stream - The stream to use for communication.
|
|
104
|
-
* @param frameUrl - An optional URL for the iframe to use.
|
|
105
|
-
* @returns The initialized executor.
|
|
106
|
-
*/ static initialize(stream, frameUrl = IFRAME_URL) {
|
|
107
|
-
return new ProxySnapExecutor(stream, frameUrl);
|
|
108
|
-
}
|
|
109
|
-
constructor(stream, frameUrl){
|
|
110
|
-
_class_private_method_init(this, _onData);
|
|
111
|
-
/**
|
|
112
|
-
* Create a new iframe and set up a stream to communicate with it.
|
|
113
|
-
*
|
|
114
|
-
* @param jobId - The job ID.
|
|
115
|
-
*/ _class_private_method_init(this, _initializeJob);
|
|
116
|
-
_class_private_method_init(this, _terminateJob);
|
|
117
|
-
_class_private_field_init(this, _stream, {
|
|
118
|
-
writable: true,
|
|
119
|
-
value: void 0
|
|
120
|
-
});
|
|
121
|
-
_class_private_field_init(this, _frameUrl, {
|
|
122
|
-
writable: true,
|
|
123
|
-
value: void 0
|
|
124
|
-
});
|
|
125
|
-
_define_property(this, "jobs", {});
|
|
126
|
-
_class_private_field_set(this, _stream, stream);
|
|
127
|
-
_class_private_field_get(this, _stream).on('data', _class_private_method_get(this, _onData, onData).bind(this));
|
|
128
|
-
_class_private_field_set(this, _frameUrl, frameUrl);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
function onData(data) {
|
|
132
|
-
const { jobId, data: request } = data;
|
|
133
|
-
if (!this.jobs[jobId]) {
|
|
134
|
-
// This ensures that a job is initialized before it is used. To avoid
|
|
135
|
-
// code duplication, we call the `#onData` method again, which will
|
|
136
|
-
// run the rest of the logic after initialization.
|
|
137
|
-
_class_private_method_get(this, _initializeJob, initializeJob).call(this, jobId).then(()=>{
|
|
138
|
-
_class_private_method_get(this, _onData, onData).call(this, data);
|
|
139
|
-
}).catch((error)=>{
|
|
140
|
-
(0, _snapsutils.logError)('[Worker] Error initializing job:', error);
|
|
141
|
-
});
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
// This is a method specific to the `OffscreenSnapExecutor`, as the service
|
|
145
|
-
// itself does not have access to the iframes directly.
|
|
146
|
-
if (request.method === 'terminateJob') {
|
|
147
|
-
_class_private_method_get(this, _terminateJob, terminateJob).call(this, jobId);
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
this.jobs[jobId].stream.write(request);
|
|
151
|
-
}
|
|
152
|
-
async function initializeJob(jobId) {
|
|
153
|
-
const window = await (0, _snapsutils.createWindow)(_class_private_field_get(this, _frameUrl), jobId);
|
|
154
|
-
const jobStream = new _postmessagestream.WindowPostMessageStream({
|
|
155
|
-
name: 'parent',
|
|
156
|
-
target: 'child',
|
|
157
|
-
targetWindow: window,
|
|
158
|
-
targetOrigin: '*'
|
|
159
|
-
});
|
|
160
|
-
// Write messages from the iframe to the parent, wrapped with the job ID.
|
|
161
|
-
jobStream.on('data', (data)=>{
|
|
162
|
-
_class_private_field_get(this, _stream).write({
|
|
163
|
-
data,
|
|
164
|
-
jobId
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
this.jobs[jobId] = {
|
|
168
|
-
id: jobId,
|
|
169
|
-
window,
|
|
170
|
-
stream: jobStream
|
|
171
|
-
};
|
|
172
|
-
return this.jobs[jobId];
|
|
173
|
-
}
|
|
174
|
-
function terminateJob(jobId) {
|
|
175
|
-
(0, _utils.assert)(this.jobs[jobId], `Job "${jobId}" not found.`);
|
|
176
|
-
const iframe = document.getElementById(jobId);
|
|
177
|
-
(0, _utils.assert)(iframe, `Iframe with ID "${jobId}" not found.`);
|
|
178
|
-
iframe.remove();
|
|
179
|
-
this.jobs[jobId].stream.destroy();
|
|
180
|
-
delete this.jobs[jobId];
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
//# sourceMappingURL=ProxySnapExecutor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/proxy/ProxySnapExecutor.ts"],"sourcesContent":["import type { BasePostMessageStream } from '@metamask/post-message-stream';\nimport { WindowPostMessageStream } from '@metamask/post-message-stream';\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport packageJson from '@metamask/snaps-execution-environments/package.json';\nimport { createWindow, logError } from '@metamask/snaps-utils';\nimport type { JsonRpcRequest } from '@metamask/utils';\nimport { assert } from '@metamask/utils';\n\ntype ExecutorJob = {\n id: string;\n window: Window;\n stream: WindowPostMessageStream;\n};\n\nconst IFRAME_URL = `https://execution.metamask.io/iframe/${packageJson.version}/index.html`;\n\n/**\n * A \"proxy\" snap executor that uses a level of indirection to execute snaps.\n *\n * Useful for multiple execution environments.\n *\n * This is not a traditional snap executor, as it does not execute snaps itself.\n * Instead, it creates an iframe window for each snap execution, and sends the\n * snap execution request to the iframe window. The iframe window is responsible\n * for executing the snap.\n *\n * This executor is persisted between snap executions. The executor essentially\n * acts as a proxy between the client and the iframe execution environment.\n */\nexport class ProxySnapExecutor {\n readonly #stream: BasePostMessageStream;\n\n readonly #frameUrl: string;\n\n readonly jobs: Record<string, ExecutorJob> = {};\n\n /**\n * Initialize the executor with the given stream. This is a wrapper around the\n * constructor.\n *\n * @param stream - The stream to use for communication.\n * @param frameUrl - An optional URL for the iframe to use.\n * @returns The initialized executor.\n */\n static initialize(stream: BasePostMessageStream, frameUrl = IFRAME_URL) {\n return new ProxySnapExecutor(stream, frameUrl);\n }\n\n constructor(stream: BasePostMessageStream, frameUrl: string) {\n this.#stream = stream;\n this.#stream.on('data', this.#onData.bind(this));\n this.#frameUrl = frameUrl;\n }\n\n /**\n * Handle an incoming message from a `ProxyExecutionService`. This\n * assumes that the message contains a `jobId` property, and a JSON-RPC\n * request in the `data` property.\n *\n * @param data - The message data.\n * @param data.data - The JSON-RPC request.\n * @param data.jobId - The job ID.\n */\n #onData(data: { data: JsonRpcRequest; jobId: string }) {\n const { jobId, data: request } = data;\n\n if (!this.jobs[jobId]) {\n // This ensures that a job is initialized before it is used. To avoid\n // code duplication, we call the `#onData` method again, which will\n // run the rest of the logic after initialization.\n this.#initializeJob(jobId)\n .then(() => {\n this.#onData(data);\n })\n .catch((error) => {\n logError('[Worker] Error initializing job:', error);\n });\n\n return;\n }\n\n // This is a method specific to the `OffscreenSnapExecutor`, as the service\n // itself does not have access to the iframes directly.\n if (request.method === 'terminateJob') {\n this.#terminateJob(jobId);\n return;\n }\n\n this.jobs[jobId].stream.write(request);\n }\n\n /**\n * Create a new iframe and set up a stream to communicate with it.\n *\n * @param jobId - The job ID.\n */\n async #initializeJob(jobId: string): Promise<ExecutorJob> {\n const window = await createWindow(this.#frameUrl, jobId);\n const jobStream = new WindowPostMessageStream({\n name: 'parent',\n target: 'child',\n targetWindow: window, // iframe's internal window\n targetOrigin: '*',\n });\n\n // Write messages from the iframe to the parent, wrapped with the job ID.\n jobStream.on('data', (data) => {\n this.#stream.write({ data, jobId });\n });\n\n this.jobs[jobId] = { id: jobId, window, stream: jobStream };\n return this.jobs[jobId];\n }\n\n /**\n * Terminate the job with the given ID. This will close the iframe and delete\n * the job from the internal job map.\n *\n * @param jobId - The job ID.\n */\n #terminateJob(jobId: string) {\n assert(this.jobs[jobId], `Job \"${jobId}\" not found.`);\n\n const iframe = document.getElementById(jobId);\n assert(iframe, `Iframe with ID \"${jobId}\" not found.`);\n\n iframe.remove();\n this.jobs[jobId].stream.destroy();\n delete this.jobs[jobId];\n }\n}\n"],"names":["ProxySnapExecutor","IFRAME_URL","packageJson","version","initialize","stream","frameUrl","constructor","jobs","on","onData","bind","data","jobId","request","initializeJob","then","catch","error","logError","method","terminateJob","write","window","createWindow","jobStream","WindowPostMessageStream","name","target","targetWindow","targetOrigin","id","assert","iframe","document","getElementById","remove","destroy"],"mappings":";;;;+BA6BaA;;;eAAAA;;;mCA5B2B;oEAEhB;4BACe;uBAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQvB,MAAMC,aAAa,CAAC,qCAAqC,EAAEC,oBAAW,CAACC,OAAO,CAAC,WAAW,CAAC;IAgBhF,uCAEA,yCAsBT;;;;;;;;GAQC,GACD,uCAiCM,8CAkBN;;;;;GAKC,GACD;AA3FK,MAAMH;IAOX;;;;;;;GAOC,GACD,OAAOI,WAAWC,MAA6B,EAAEC,WAAWL,UAAU,EAAE;QACtE,OAAO,IAAID,kBAAkBK,QAAQC;IACvC;IAEAC,YAAYF,MAA6B,EAAEC,QAAgB,CAAE;QAe7D,iCAAA;QA4BA;;;;GAIC,GACD,iCAAM;QAwBN,iCAAA;QA1FA,gCAAS;;mBAAT,KAAA;;QAEA,gCAAS;;mBAAT,KAAA;;QAEA,uBAASE,QAAoC,CAAC;uCAetCH,SAASA;QACf,yBAAA,IAAI,EAAEA,SAAOI,EAAE,CAAC,QAAQ,0BAAA,IAAI,EAAEC,SAAAA,QAAOC,IAAI,CAAC,IAAI;uCACxCL,WAAWA;IACnB;AA8EF;AAnEE,SAAA,OAAQM,IAA6C;IACnD,MAAM,EAAEC,KAAK,EAAED,MAAME,OAAO,EAAE,GAAGF;IAEjC,IAAI,CAAC,IAAI,CAACJ,IAAI,CAACK,MAAM,EAAE;QACrB,qEAAqE;QACrE,mEAAmE;QACnE,kDAAkD;QAClD,0BAAA,IAAI,EAAEE,gBAAAA,oBAAN,IAAI,EAAgBF,OACjBG,IAAI,CAAC;YACJ,0BAAA,IAAI,EAAEN,SAAAA,aAAN,IAAI,EAASE;QACf,GACCK,KAAK,CAAC,CAACC;YACNC,IAAAA,oBAAQ,EAAC,oCAAoCD;QAC/C;QAEF;IACF;IAEA,2EAA2E;IAC3E,uDAAuD;IACvD,IAAIJ,QAAQM,MAAM,KAAK,gBAAgB;QACrC,0BAAA,IAAI,EAAEC,eAAAA,mBAAN,IAAI,EAAeR;QACnB;IACF;IAEA,IAAI,CAACL,IAAI,CAACK,MAAM,CAACR,MAAM,CAACiB,KAAK,CAACR;AAChC;AAOA,eAAA,cAAqBD,KAAa;IAChC,MAAMU,SAAS,MAAMC,IAAAA,wBAAY,2BAAC,IAAI,EAAElB,YAAUO;IAClD,MAAMY,YAAY,IAAIC,0CAAuB,CAAC;QAC5CC,MAAM;QACNC,QAAQ;QACRC,cAAcN;QACdO,cAAc;IAChB;IAEA,yEAAyE;IACzEL,UAAUhB,EAAE,CAAC,QAAQ,CAACG;QACpB,yBAAA,IAAI,EAAEP,SAAOiB,KAAK,CAAC;YAAEV;YAAMC;QAAM;IACnC;IAEA,IAAI,CAACL,IAAI,CAACK,MAAM,GAAG;QAAEkB,IAAIlB;QAAOU;QAAQlB,QAAQoB;IAAU;IAC1D,OAAO,IAAI,CAACjB,IAAI,CAACK,MAAM;AACzB;AAQA,SAAA,aAAcA,KAAa;IACzBmB,IAAAA,aAAM,EAAC,IAAI,CAACxB,IAAI,CAACK,MAAM,EAAE,CAAC,KAAK,EAAEA,MAAM,YAAY,CAAC;IAEpD,MAAMoB,SAASC,SAASC,cAAc,CAACtB;IACvCmB,IAAAA,aAAM,EAACC,QAAQ,CAAC,gBAAgB,EAAEpB,MAAM,YAAY,CAAC;IAErDoB,OAAOG,MAAM;IACb,IAAI,CAAC5B,IAAI,CAACK,MAAM,CAACR,MAAM,CAACgC,OAAO;IAC/B,OAAO,IAAI,CAAC7B,IAAI,CAACK,MAAM;AACzB"}
|
package/dist/cjs/proxy/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
_export_star(require("./ProxySnapExecutor"), exports);
|
|
6
|
-
function _export_star(from, to) {
|
|
7
|
-
Object.keys(from).forEach(function(k) {
|
|
8
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
9
|
-
Object.defineProperty(to, k, {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return from[k];
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
return from;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/proxy/index.ts"],"sourcesContent":["export * from './ProxySnapExecutor';\n"],"names":[],"mappings":";;;;qBAAc"}
|