@metamask/snaps-execution-environments 5.0.0 → 5.0.2
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 +11 -1
- package/dist/browserify/iframe/bundle.js +5 -5
- package/dist/browserify/iframe/index.html +3 -0
- package/dist/browserify/node-process/bundle.js +6 -3
- package/dist/browserify/node-thread/bundle.js +6 -3
- package/dist/browserify/webview/bundle.js +4 -4
- package/dist/browserify/webview/index.html +3 -0
- package/dist/browserify/worker-executor/bundle.js +8 -5
- package/dist/browserify/worker-pool/bundle.js +4 -4
- package/dist/browserify/worker-pool/index.html +3 -0
- package/dist/chunk-2VA6RAEE.js +30 -0
- package/dist/{chunk-M2OYI2NS.js → chunk-3JCT4MWT.js} +1 -1
- package/dist/{chunk-IXYNAYMQ.js → chunk-3Y4ZRKNE.js} +5 -5
- package/dist/{chunk-QYFJ2LLW.js → chunk-44XYIN4N.js} +21 -21
- package/dist/{chunk-XGCWN6ZD.mjs → chunk-4CGJF3BT.mjs} +2 -2
- package/dist/{chunk-BE4YFFMX.js → chunk-4XRZLEKU.js} +1 -1
- package/dist/{chunk-FQBU72MW.mjs → chunk-53ZULHPK.mjs} +1 -1
- package/dist/{chunk-VL3VNUT4.mjs → chunk-5DEV3QQU.mjs} +1 -1
- package/dist/{chunk-G3NCGVCC.mjs → chunk-5FG5IBYT.mjs} +3 -3
- package/dist/{chunk-HSZIPZHO.js → chunk-5STN3QCA.js} +3 -3
- package/dist/{chunk-KWFB2KH2.mjs → chunk-7AJWXSDQ.mjs} +1 -1
- package/dist/{chunk-26EFJQDW.mjs → chunk-ACK2JBSO.mjs} +1 -1
- package/dist/{chunk-XMCETCVM.js → chunk-B3JZNNZD.js} +3 -3
- package/dist/{chunk-Z7FBBBME.mjs → chunk-BCBKEUCG.mjs} +3 -3
- package/dist/{chunk-FNRATYYY.mjs → chunk-BTEAZZKP.mjs} +1 -1
- package/dist/{chunk-RWBJNNGH.js → chunk-CV5LC4PP.js} +1 -1
- package/dist/{chunk-YC3HWHJV.mjs → chunk-CWCVTRNZ.mjs} +1 -1
- package/dist/{chunk-ZMDJRC2Z.js → chunk-CWIFVPLR.js} +13 -13
- package/dist/{chunk-SWINKAMI.js → chunk-DFPM46ZF.js} +1 -1
- package/dist/{chunk-L5U2LMZR.js → chunk-DLLLH5HN.js} +1 -1
- package/dist/{chunk-L4G6IIWG.js → chunk-DTF6YTIS.js} +31 -31
- package/dist/{chunk-ETXAWW65.mjs → chunk-ERB7OLAB.mjs} +11 -11
- package/dist/{chunk-5RKYO2Y5.js → chunk-F37LPBJS.js} +5 -5
- package/dist/{chunk-LX5LQXYU.js → chunk-FOEAIF5U.js} +1 -1
- package/dist/{chunk-LGC7HQR4.js → chunk-HGLRZZ56.js} +5 -5
- package/dist/{chunk-AZCRNZ5W.js → chunk-HKHW6TTX.js} +3 -3
- package/dist/{chunk-RCPCISJD.mjs → chunk-HWS4QSOC.mjs} +1 -1
- package/dist/{chunk-N7URTBJV.js → chunk-I5G4YFHM.js} +1 -1
- package/dist/{chunk-Y7IEFWZU.mjs → chunk-IX5S3V47.mjs} +1 -1
- package/dist/{chunk-OWG545LQ.js → chunk-JW3JHJ7S.js} +5 -5
- package/dist/{chunk-RO347OMD.js → chunk-LO5ORVRC.js} +1 -1
- package/dist/chunk-MCXWFCGV.js +1 -0
- package/dist/{chunk-VZS2LXDP.mjs → chunk-MIWGLICQ.mjs} +1 -1
- package/dist/{chunk-TVV27HGP.mjs → chunk-MM6ZSW4E.mjs} +2 -2
- package/dist/{chunk-IU54VPNO.js → chunk-MOXNHXPG.js} +6 -6
- package/dist/{chunk-S7LRB72P.js → chunk-MS2LQQYH.js} +6 -6
- package/dist/{chunk-XYRWHY3K.mjs → chunk-MXNMMTJW.mjs} +1 -1
- package/dist/{chunk-EBECHU6M.js → chunk-OBT45IWW.js} +6 -6
- package/dist/{chunk-4NOF6TN6.js → chunk-OCNPLHS2.js} +1 -1
- package/dist/{chunk-AJFPA6MI.js → chunk-OLASO3O4.js} +9 -9
- package/dist/{chunk-GH6FPDY5.mjs → chunk-PTCQ2I47.mjs} +2 -2
- package/dist/{chunk-A7NJQLUA.mjs → chunk-Q42NNJFY.mjs} +2 -2
- package/dist/{chunk-XBKAIK2K.mjs → chunk-QJB4J7WL.mjs} +3 -3
- package/dist/{chunk-OW4IXJ5J.mjs → chunk-QVIHE3WB.mjs} +8 -8
- package/dist/{chunk-IY3CYGH7.js → chunk-QZC2X6NG.js} +6 -6
- package/dist/{chunk-WA7K3P4D.js → chunk-RZNKZRAD.js} +5 -5
- package/dist/{chunk-TWF4RAXL.mjs → chunk-S7257EN3.mjs} +1 -1
- package/dist/chunk-TSEAPB7L.mjs +1 -0
- package/dist/{chunk-6GHFAQ54.mjs → chunk-UOPIRTJX.mjs} +2 -2
- package/dist/{chunk-XL5BQOEI.mjs → chunk-USHNZDGV.mjs} +3 -3
- package/dist/{chunk-CINBMYIQ.mjs → chunk-V76DI2XM.mjs} +1 -1
- package/dist/{chunk-KQNKD7G5.mjs → chunk-VKFZ4EB5.mjs} +3 -3
- package/dist/{chunk-MOWPAP2K.mjs → chunk-W7EDURT5.mjs} +2 -2
- package/dist/{chunk-RDFGQYG6.mjs → chunk-WV3CXIKN.mjs} +1 -1
- package/dist/{chunk-B3ASGNVQ.mjs → chunk-Y7MVNOPY.mjs} +3 -3
- package/dist/{chunk-CCBKFCGG.js → chunk-Z4WSS7YZ.js} +5 -5
- package/dist/{chunk-XKY46YTJ.js → chunk-Z7BOREC4.js} +1 -1
- package/dist/{chunk-BOCIYCLE.mjs → chunk-ZNTCZK7J.mjs} +2 -2
- package/dist/common/BaseSnapExecutor.js +20 -20
- package/dist/common/BaseSnapExecutor.mjs +19 -19
- package/dist/common/commands.js +3 -3
- package/dist/common/commands.mjs +2 -2
- package/dist/common/endowments/commonEndowmentFactory.js +14 -14
- package/dist/common/endowments/commonEndowmentFactory.mjs +13 -13
- package/dist/common/endowments/console.js +3 -3
- package/dist/common/endowments/console.mjs +2 -2
- package/dist/common/endowments/crypto.js +3 -3
- package/dist/common/endowments/crypto.mjs +2 -2
- package/dist/common/endowments/date.js +3 -3
- package/dist/common/endowments/date.mjs +2 -2
- package/dist/common/endowments/index.js +15 -15
- package/dist/common/endowments/index.mjs +14 -14
- package/dist/common/endowments/interval.js +2 -2
- package/dist/common/endowments/interval.mjs +1 -1
- package/dist/common/endowments/math.js +4 -4
- package/dist/common/endowments/math.mjs +3 -3
- package/dist/common/endowments/network.js +4 -4
- package/dist/common/endowments/network.mjs +3 -3
- package/dist/common/endowments/textDecoder.js +2 -2
- package/dist/common/endowments/textDecoder.mjs +1 -1
- package/dist/common/endowments/textEncoder.js +2 -2
- package/dist/common/endowments/textEncoder.mjs +1 -1
- package/dist/common/endowments/timeout.js +2 -2
- package/dist/common/endowments/timeout.mjs +1 -1
- package/dist/common/globalEvents.js +3 -3
- package/dist/common/globalEvents.mjs +2 -2
- package/dist/common/globalObject.js +2 -2
- package/dist/common/globalObject.mjs +1 -1
- package/dist/common/lockdown/lockdown-events.js +2 -2
- package/dist/common/lockdown/lockdown-events.mjs +1 -1
- package/dist/common/lockdown/lockdown-more.js +2 -2
- package/dist/common/lockdown/lockdown-more.mjs +1 -1
- package/dist/common/sortParams.js +2 -2
- package/dist/common/sortParams.mjs +1 -1
- package/dist/common/utils.js +3 -3
- package/dist/common/utils.mjs +2 -2
- package/dist/common/validation.js +2 -2
- package/dist/common/validation.mjs +1 -1
- package/dist/iframe/IFrameSnapExecutor.js +21 -21
- package/dist/iframe/IFrameSnapExecutor.mjs +20 -20
- package/dist/iframe/index.js +25 -25
- package/dist/iframe/index.mjs +22 -22
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/logging.js +2 -2
- package/dist/logging.mjs +1 -1
- package/dist/node-process/ChildProcessSnapExecutor.js +21 -21
- package/dist/node-process/ChildProcessSnapExecutor.mjs +20 -20
- package/dist/node-process/index.js +23 -23
- package/dist/node-process/index.mjs +21 -21
- package/dist/node-thread/ThreadSnapExecutor.js +21 -21
- package/dist/node-thread/ThreadSnapExecutor.mjs +20 -20
- package/dist/node-thread/index.js +23 -23
- package/dist/node-thread/index.mjs +21 -21
- package/dist/proxy/ProxySnapExecutor.js +2 -2
- package/dist/proxy/ProxySnapExecutor.mjs +1 -1
- package/dist/proxy/index.js +3 -3
- package/dist/proxy/index.mjs +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/common/validation.d.ts +8 -0
- package/dist/webview/WebViewExecutorStream.js +2 -2
- package/dist/webview/WebViewExecutorStream.mjs +1 -1
- package/dist/webview/index.js +8 -8
- package/dist/webview/index.mjs +4 -4
- package/dist/webworker/executor/WebWorkerSnapExecutor.js +21 -21
- package/dist/webworker/executor/WebWorkerSnapExecutor.mjs +20 -20
- package/dist/webworker/executor/index.js +25 -25
- package/dist/webworker/executor/index.mjs +22 -22
- package/dist/webworker/pool/WebWorkerPool.js +2 -2
- package/dist/webworker/pool/WebWorkerPool.mjs +1 -1
- package/dist/webworker/pool/index.js +6 -6
- package/dist/webworker/pool/index.mjs +3 -3
- package/package.json +7 -7
- package/dist/chunk-5DIRYAYO.js +0 -30
- package/dist/chunk-AQNACKO6.js +0 -1
- package/dist/chunk-YMAK7TUO.mjs +0 -1
- /package/dist/{chunk-5DIRYAYO.js.map → chunk-2VA6RAEE.js.map} +0 -0
- /package/dist/{chunk-M2OYI2NS.js.map → chunk-3JCT4MWT.js.map} +0 -0
- /package/dist/{chunk-IXYNAYMQ.js.map → chunk-3Y4ZRKNE.js.map} +0 -0
- /package/dist/{chunk-QYFJ2LLW.js.map → chunk-44XYIN4N.js.map} +0 -0
- /package/dist/{chunk-XGCWN6ZD.mjs.map → chunk-4CGJF3BT.mjs.map} +0 -0
- /package/dist/{chunk-BE4YFFMX.js.map → chunk-4XRZLEKU.js.map} +0 -0
- /package/dist/{chunk-FQBU72MW.mjs.map → chunk-53ZULHPK.mjs.map} +0 -0
- /package/dist/{chunk-VL3VNUT4.mjs.map → chunk-5DEV3QQU.mjs.map} +0 -0
- /package/dist/{chunk-G3NCGVCC.mjs.map → chunk-5FG5IBYT.mjs.map} +0 -0
- /package/dist/{chunk-HSZIPZHO.js.map → chunk-5STN3QCA.js.map} +0 -0
- /package/dist/{chunk-KWFB2KH2.mjs.map → chunk-7AJWXSDQ.mjs.map} +0 -0
- /package/dist/{chunk-26EFJQDW.mjs.map → chunk-ACK2JBSO.mjs.map} +0 -0
- /package/dist/{chunk-XMCETCVM.js.map → chunk-B3JZNNZD.js.map} +0 -0
- /package/dist/{chunk-Z7FBBBME.mjs.map → chunk-BCBKEUCG.mjs.map} +0 -0
- /package/dist/{chunk-FNRATYYY.mjs.map → chunk-BTEAZZKP.mjs.map} +0 -0
- /package/dist/{chunk-RWBJNNGH.js.map → chunk-CV5LC4PP.js.map} +0 -0
- /package/dist/{chunk-YC3HWHJV.mjs.map → chunk-CWCVTRNZ.mjs.map} +0 -0
- /package/dist/{chunk-ZMDJRC2Z.js.map → chunk-CWIFVPLR.js.map} +0 -0
- /package/dist/{chunk-SWINKAMI.js.map → chunk-DFPM46ZF.js.map} +0 -0
- /package/dist/{chunk-L5U2LMZR.js.map → chunk-DLLLH5HN.js.map} +0 -0
- /package/dist/{chunk-L4G6IIWG.js.map → chunk-DTF6YTIS.js.map} +0 -0
- /package/dist/{chunk-ETXAWW65.mjs.map → chunk-ERB7OLAB.mjs.map} +0 -0
- /package/dist/{chunk-5RKYO2Y5.js.map → chunk-F37LPBJS.js.map} +0 -0
- /package/dist/{chunk-LX5LQXYU.js.map → chunk-FOEAIF5U.js.map} +0 -0
- /package/dist/{chunk-LGC7HQR4.js.map → chunk-HGLRZZ56.js.map} +0 -0
- /package/dist/{chunk-AZCRNZ5W.js.map → chunk-HKHW6TTX.js.map} +0 -0
- /package/dist/{chunk-RCPCISJD.mjs.map → chunk-HWS4QSOC.mjs.map} +0 -0
- /package/dist/{chunk-N7URTBJV.js.map → chunk-I5G4YFHM.js.map} +0 -0
- /package/dist/{chunk-Y7IEFWZU.mjs.map → chunk-IX5S3V47.mjs.map} +0 -0
- /package/dist/{chunk-OWG545LQ.js.map → chunk-JW3JHJ7S.js.map} +0 -0
- /package/dist/{chunk-RO347OMD.js.map → chunk-LO5ORVRC.js.map} +0 -0
- /package/dist/{chunk-AQNACKO6.js.map → chunk-MCXWFCGV.js.map} +0 -0
- /package/dist/{chunk-VZS2LXDP.mjs.map → chunk-MIWGLICQ.mjs.map} +0 -0
- /package/dist/{chunk-TVV27HGP.mjs.map → chunk-MM6ZSW4E.mjs.map} +0 -0
- /package/dist/{chunk-IU54VPNO.js.map → chunk-MOXNHXPG.js.map} +0 -0
- /package/dist/{chunk-S7LRB72P.js.map → chunk-MS2LQQYH.js.map} +0 -0
- /package/dist/{chunk-XYRWHY3K.mjs.map → chunk-MXNMMTJW.mjs.map} +0 -0
- /package/dist/{chunk-EBECHU6M.js.map → chunk-OBT45IWW.js.map} +0 -0
- /package/dist/{chunk-4NOF6TN6.js.map → chunk-OCNPLHS2.js.map} +0 -0
- /package/dist/{chunk-AJFPA6MI.js.map → chunk-OLASO3O4.js.map} +0 -0
- /package/dist/{chunk-GH6FPDY5.mjs.map → chunk-PTCQ2I47.mjs.map} +0 -0
- /package/dist/{chunk-A7NJQLUA.mjs.map → chunk-Q42NNJFY.mjs.map} +0 -0
- /package/dist/{chunk-XBKAIK2K.mjs.map → chunk-QJB4J7WL.mjs.map} +0 -0
- /package/dist/{chunk-OW4IXJ5J.mjs.map → chunk-QVIHE3WB.mjs.map} +0 -0
- /package/dist/{chunk-IY3CYGH7.js.map → chunk-QZC2X6NG.js.map} +0 -0
- /package/dist/{chunk-WA7K3P4D.js.map → chunk-RZNKZRAD.js.map} +0 -0
- /package/dist/{chunk-TWF4RAXL.mjs.map → chunk-S7257EN3.mjs.map} +0 -0
- /package/dist/{chunk-YMAK7TUO.mjs.map → chunk-TSEAPB7L.mjs.map} +0 -0
- /package/dist/{chunk-6GHFAQ54.mjs.map → chunk-UOPIRTJX.mjs.map} +0 -0
- /package/dist/{chunk-XL5BQOEI.mjs.map → chunk-USHNZDGV.mjs.map} +0 -0
- /package/dist/{chunk-CINBMYIQ.mjs.map → chunk-V76DI2XM.mjs.map} +0 -0
- /package/dist/{chunk-KQNKD7G5.mjs.map → chunk-VKFZ4EB5.mjs.map} +0 -0
- /package/dist/{chunk-MOWPAP2K.mjs.map → chunk-W7EDURT5.mjs.map} +0 -0
- /package/dist/{chunk-RDFGQYG6.mjs.map → chunk-WV3CXIKN.mjs.map} +0 -0
- /package/dist/{chunk-B3ASGNVQ.mjs.map → chunk-Y7MVNOPY.mjs.map} +0 -0
- /package/dist/{chunk-CCBKFCGG.js.map → chunk-Z4WSS7YZ.js.map} +0 -0
- /package/dist/{chunk-XKY46YTJ.js.map → chunk-Z7BOREC4.js.map} +0 -0
- /package/dist/{chunk-BOCIYCLE.mjs.map → chunk-ZNTCZK7J.mjs.map} +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
interval_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ACK2JBSO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
math_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BCBKEUCG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
network_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4CGJF3BT.mjs";
|
|
10
10
|
import {
|
|
11
11
|
textDecoder_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-53ZULHPK.mjs";
|
|
13
13
|
import {
|
|
14
14
|
textEncoder_default
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HWS4QSOC.mjs";
|
|
16
16
|
import {
|
|
17
17
|
timeout_default
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CWCVTRNZ.mjs";
|
|
19
19
|
import {
|
|
20
20
|
console_default
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W7EDURT5.mjs";
|
|
22
22
|
import {
|
|
23
23
|
crypto_default
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Q42NNJFY.mjs";
|
|
25
25
|
import {
|
|
26
26
|
date_default
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UOPIRTJX.mjs";
|
|
28
28
|
import {
|
|
29
29
|
rootRealmGlobal
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IX5S3V47.mjs";
|
|
31
31
|
|
|
32
32
|
// src/common/endowments/commonEndowmentFactory.ts
|
|
33
33
|
var commonEndowments = [
|
|
@@ -83,4 +83,4 @@ var commonEndowmentFactory_default = buildCommonEndowments;
|
|
|
83
83
|
export {
|
|
84
84
|
commonEndowmentFactory_default
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-ERB7OLAB.mjs.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDTF6YTISjs = require('./chunk-DTF6YTIS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZ7BOREC4js = require('./chunk-Z7BOREC4.js');
|
|
7
7
|
|
|
8
8
|
// src/node-process/ChildProcessSnapExecutor.ts
|
|
9
9
|
var _objectmultiplex = require('@metamask/object-multiplex'); var _objectmultiplex2 = _interopRequireDefault(_objectmultiplex);
|
|
10
10
|
var _postmessagestream = require('@metamask/post-message-stream');
|
|
11
11
|
var _snapsutils = require('@metamask/snaps-utils');
|
|
12
12
|
var _readablestream = require('readable-stream');
|
|
13
|
-
var ChildProcessSnapExecutor = class _ChildProcessSnapExecutor extends
|
|
13
|
+
var ChildProcessSnapExecutor = class _ChildProcessSnapExecutor extends _chunkDTF6YTISjs.BaseSnapExecutor {
|
|
14
14
|
static initialize() {
|
|
15
|
-
|
|
15
|
+
_chunkZ7BOREC4js.log.call(void 0, "Worker: Connecting to parent.");
|
|
16
16
|
const parentStream = new (0, _postmessagestream.ProcessMessageStream)();
|
|
17
17
|
const mux = new (0, _objectmultiplex2.default)();
|
|
18
18
|
_readablestream.pipeline.call(void 0, parentStream, mux, parentStream, (error) => {
|
|
@@ -30,4 +30,4 @@ var ChildProcessSnapExecutor = class _ChildProcessSnapExecutor extends _chunkL4G
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
exports.ChildProcessSnapExecutor = ChildProcessSnapExecutor;
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-F37LPBJS.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDLLLH5HNjs = require('./chunk-DLLLH5HN.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkEXN2TFDJjs = require('./chunk-EXN2TFDJ.js');
|
|
7
7
|
|
|
8
8
|
// src/common/endowments/crypto.ts
|
|
9
9
|
var createCrypto = () => {
|
|
10
|
-
if ("crypto" in
|
|
10
|
+
if ("crypto" in _chunkDLLLH5HNjs.rootRealmGlobal && typeof _chunkDLLLH5HNjs.rootRealmGlobal.crypto === "object" && "SubtleCrypto" in _chunkDLLLH5HNjs.rootRealmGlobal && typeof _chunkDLLLH5HNjs.rootRealmGlobal.SubtleCrypto === "function") {
|
|
11
11
|
return {
|
|
12
|
-
crypto: harden(
|
|
13
|
-
SubtleCrypto: harden(
|
|
12
|
+
crypto: harden(_chunkDLLLH5HNjs.rootRealmGlobal.crypto),
|
|
13
|
+
SubtleCrypto: harden(_chunkDLLLH5HNjs.rootRealmGlobal.SubtleCrypto)
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
const crypto = _chunkEXN2TFDJjs.__require.call(void 0, "crypto").webcrypto;
|
|
@@ -29,4 +29,4 @@ var crypto_default = endowmentModule;
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
exports.createCrypto = createCrypto; exports.crypto_default = crypto_default;
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-HGLRZZ56.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true})
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/common/endowments/interval.ts
|
|
2
2
|
var _rpcerrors = require('@metamask/rpc-errors');
|
|
3
3
|
var MINIMUM_INTERVAL = 10;
|
|
4
4
|
var createInterval = () => {
|
|
@@ -13,7 +13,7 @@ var createInterval = () => {
|
|
|
13
13
|
const handle = Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
14
14
|
const platformHandle = setInterval(
|
|
15
15
|
handler,
|
|
16
|
-
Math.max(MINIMUM_INTERVAL,
|
|
16
|
+
Math.max(MINIMUM_INTERVAL, timeout ?? 0)
|
|
17
17
|
);
|
|
18
18
|
registeredHandles.set(handle, platformHandle);
|
|
19
19
|
return handle;
|
|
@@ -46,4 +46,4 @@ var interval_default = endowmentModule;
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
exports.interval_default = interval_default;
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-HKHW6TTX.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDTF6YTISjs = require('./chunk-DTF6YTIS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZ7BOREC4js = require('./chunk-Z7BOREC4.js');
|
|
7
7
|
|
|
8
8
|
// src/iframe/IFrameSnapExecutor.ts
|
|
9
9
|
var _objectmultiplex = require('@metamask/object-multiplex'); var _objectmultiplex2 = _interopRequireDefault(_objectmultiplex);
|
|
10
10
|
var _postmessagestream = require('@metamask/post-message-stream');
|
|
11
11
|
var _snapsutils = require('@metamask/snaps-utils');
|
|
12
12
|
var _readablestream = require('readable-stream');
|
|
13
|
-
var IFrameSnapExecutor = class _IFrameSnapExecutor extends
|
|
13
|
+
var IFrameSnapExecutor = class _IFrameSnapExecutor extends _chunkDTF6YTISjs.BaseSnapExecutor {
|
|
14
14
|
/**
|
|
15
15
|
* Initialize the IFrameSnapExecutor. This creates a post message stream from
|
|
16
16
|
* and to the parent window, for two-way communication with the iframe.
|
|
@@ -25,7 +25,7 @@ var IFrameSnapExecutor = class _IFrameSnapExecutor extends _chunkL4G6IIWGjs.Base
|
|
|
25
25
|
targetWindow: self.parent,
|
|
26
26
|
targetOrigin: "*"
|
|
27
27
|
})) {
|
|
28
|
-
|
|
28
|
+
_chunkZ7BOREC4js.log.call(void 0, "Worker: Connecting to parent.");
|
|
29
29
|
const mux = new (0, _objectmultiplex2.default)();
|
|
30
30
|
_readablestream.pipeline.call(void 0, stream, mux, stream, (error) => {
|
|
31
31
|
if (error) {
|
|
@@ -42,4 +42,4 @@ var IFrameSnapExecutor = class _IFrameSnapExecutor extends _chunkL4G6IIWGjs.Base
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
exports.IFrameSnapExecutor = IFrameSnapExecutor;
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-JW3JHJ7S.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=chunk-MCXWFCGV.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
assertIsOnSignatureRequestArguments,
|
|
4
4
|
assertIsOnTransactionRequestArguments,
|
|
5
5
|
assertIsOnUserInputRequestArguments
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WV3CXIKN.mjs";
|
|
7
7
|
|
|
8
8
|
// src/common/commands.ts
|
|
9
9
|
import { HandlerType } from "@metamask/snaps-utils";
|
|
@@ -78,4 +78,4 @@ export {
|
|
|
78
78
|
getHandlerArguments,
|
|
79
79
|
getCommandMethodImplementations
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
81
|
+
//# sourceMappingURL=chunk-MM6ZSW4E.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk44XYIN4Njs = require('./chunk-44XYIN4N.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDLLLH5HNjs = require('./chunk-DLLLH5HN.js');
|
|
7
7
|
|
|
8
8
|
// src/common/endowments/index.ts
|
|
9
9
|
var _rpcerrors = require('@metamask/rpc-errors');
|
|
10
10
|
var _snapsutils = require('@metamask/snaps-utils');
|
|
11
11
|
var _utils = require('@metamask/utils');
|
|
12
|
-
var registeredEndowments =
|
|
12
|
+
var registeredEndowments = _chunk44XYIN4Njs.commonEndowmentFactory_default.call(void 0, );
|
|
13
13
|
var endowmentFactories = registeredEndowments.reduce((factories, builder) => {
|
|
14
14
|
builder.names.forEach((name) => {
|
|
15
15
|
factories.set(name, builder.factory);
|
|
@@ -39,9 +39,9 @@ function createEndowments({
|
|
|
39
39
|
allEndowments[endowmentName] = attenuatedEndowments[endowmentName];
|
|
40
40
|
} else if (endowmentName === "ethereum") {
|
|
41
41
|
allEndowments[endowmentName] = ethereum;
|
|
42
|
-
} else if (endowmentName in
|
|
42
|
+
} else if (endowmentName in _chunkDLLLH5HNjs.rootRealmGlobal) {
|
|
43
43
|
_snapsutils.logWarning.call(void 0, `Access to unhardened global ${endowmentName}.`);
|
|
44
|
-
const globalValue =
|
|
44
|
+
const globalValue = _chunkDLLLH5HNjs.rootRealmGlobal[endowmentName];
|
|
45
45
|
allEndowments[endowmentName] = globalValue;
|
|
46
46
|
} else {
|
|
47
47
|
throw _rpcerrors.rpcErrors.internal(`Unknown endowment: "${endowmentName}".`);
|
|
@@ -64,4 +64,4 @@ function createEndowments({
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
exports.createEndowments = createEndowments;
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-MOXNHXPG.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkHGLRZZ56js = require('./chunk-HGLRZZ56.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDLLLH5HNjs = require('./chunk-DLLLH5HN.js');
|
|
7
7
|
|
|
8
8
|
// src/common/endowments/math.ts
|
|
9
9
|
function createMath() {
|
|
10
10
|
const keys = Object.getOwnPropertyNames(
|
|
11
|
-
|
|
11
|
+
_chunkDLLLH5HNjs.rootRealmGlobal.Math
|
|
12
12
|
);
|
|
13
13
|
const math = keys.reduce((target, key) => {
|
|
14
14
|
if (key === "random") {
|
|
15
15
|
return target;
|
|
16
16
|
}
|
|
17
|
-
return { ...target, [key]:
|
|
17
|
+
return { ...target, [key]: _chunkDLLLH5HNjs.rootRealmGlobal.Math[key] };
|
|
18
18
|
}, {});
|
|
19
|
-
const { crypto: hardenedCrypto } =
|
|
19
|
+
const { crypto: hardenedCrypto } = _chunkHGLRZZ56js.createCrypto.call(void 0, );
|
|
20
20
|
return harden({
|
|
21
21
|
Math: {
|
|
22
22
|
...math,
|
|
@@ -35,4 +35,4 @@ var math_default = endowmentModule;
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
exports.math_default = math_default;
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-MS2LQQYH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDLLLH5HNjs = require('./chunk-DLLLH5HN.js');
|
|
4
4
|
|
|
5
5
|
// src/common/endowments/console.ts
|
|
6
6
|
var _utils = require('@metamask/utils');
|
|
@@ -48,11 +48,11 @@ function getMessage(snapId, message, ...args) {
|
|
|
48
48
|
function createConsole({ snapId } = {}) {
|
|
49
49
|
_utils.assert.call(void 0, snapId !== void 0);
|
|
50
50
|
const keys = Object.getOwnPropertyNames(
|
|
51
|
-
|
|
51
|
+
_chunkDLLLH5HNjs.rootRealmGlobal.console
|
|
52
52
|
);
|
|
53
53
|
const attenuatedConsole = keys.reduce((target, key) => {
|
|
54
54
|
if (consoleMethods.has(key) && !consoleAttenuatedMethods.has(key)) {
|
|
55
|
-
return { ...target, [key]:
|
|
55
|
+
return { ...target, [key]: _chunkDLLLH5HNjs.rootRealmGlobal.console[key] };
|
|
56
56
|
}
|
|
57
57
|
return target;
|
|
58
58
|
}, {});
|
|
@@ -60,7 +60,7 @@ function createConsole({ snapId } = {}) {
|
|
|
60
60
|
console: {
|
|
61
61
|
...attenuatedConsole,
|
|
62
62
|
assert: (value, message, ...optionalParams) => {
|
|
63
|
-
|
|
63
|
+
_chunkDLLLH5HNjs.rootRealmGlobal.console.assert(
|
|
64
64
|
value,
|
|
65
65
|
...getMessage(snapId, message, ...optionalParams)
|
|
66
66
|
);
|
|
@@ -69,7 +69,7 @@ function createConsole({ snapId } = {}) {
|
|
|
69
69
|
return {
|
|
70
70
|
...target,
|
|
71
71
|
[key]: (message, ...optionalParams) => {
|
|
72
|
-
|
|
72
|
+
_chunkDLLLH5HNjs.rootRealmGlobal.console[key](
|
|
73
73
|
...getMessage(snapId, message, ...optionalParams)
|
|
74
74
|
);
|
|
75
75
|
}
|
|
@@ -89,4 +89,4 @@ var console_default = endowmentModule;
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
exports.consoleAttenuatedMethods = consoleAttenuatedMethods; exports.consoleMethods = consoleMethods; exports.console_default = console_default;
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-OBT45IWW.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDFPM46ZFjs = require('./chunk-DFPM46ZF.js');
|
|
7
7
|
|
|
8
8
|
// src/common/commands.ts
|
|
9
9
|
var _snapsutils = require('@metamask/snaps-utils');
|
|
@@ -11,7 +11,7 @@ var _utils = require('@metamask/utils');
|
|
|
11
11
|
function getHandlerArguments(origin, handler, request) {
|
|
12
12
|
switch (handler) {
|
|
13
13
|
case _snapsutils.HandlerType.OnTransaction: {
|
|
14
|
-
|
|
14
|
+
_chunkDFPM46ZFjs.assertIsOnTransactionRequestArguments.call(void 0, request.params);
|
|
15
15
|
const { transaction, chainId, transactionOrigin } = request.params;
|
|
16
16
|
return {
|
|
17
17
|
transaction,
|
|
@@ -20,12 +20,12 @@ function getHandlerArguments(origin, handler, request) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
case _snapsutils.HandlerType.OnSignature: {
|
|
23
|
-
|
|
23
|
+
_chunkDFPM46ZFjs.assertIsOnSignatureRequestArguments.call(void 0, request.params);
|
|
24
24
|
const { signature, signatureOrigin } = request.params;
|
|
25
25
|
return { signature, signatureOrigin };
|
|
26
26
|
}
|
|
27
27
|
case _snapsutils.HandlerType.OnNameLookup: {
|
|
28
|
-
|
|
28
|
+
_chunkDFPM46ZFjs.assertIsOnNameLookupRequestArguments.call(void 0, request.params);
|
|
29
29
|
const { chainId, domain, address } = request.params;
|
|
30
30
|
return domain ? {
|
|
31
31
|
chainId,
|
|
@@ -45,7 +45,7 @@ function getHandlerArguments(origin, handler, request) {
|
|
|
45
45
|
case _snapsutils.HandlerType.OnHomePage:
|
|
46
46
|
return {};
|
|
47
47
|
case _snapsutils.HandlerType.OnUserInput: {
|
|
48
|
-
|
|
48
|
+
_chunkDFPM46ZFjs.assertIsOnUserInputRequestArguments.call(void 0, request.params);
|
|
49
49
|
const { id, event } = request.params;
|
|
50
50
|
return { id, event };
|
|
51
51
|
}
|
|
@@ -65,11 +65,11 @@ function getCommandMethodImplementations(startSnap, invokeSnap, onTerminate) {
|
|
|
65
65
|
return "OK";
|
|
66
66
|
},
|
|
67
67
|
snapRpc: async (target, handler, origin, request) => {
|
|
68
|
-
return await
|
|
68
|
+
return await invokeSnap(
|
|
69
69
|
target,
|
|
70
70
|
handler,
|
|
71
71
|
getHandlerArguments(origin, handler, request)
|
|
72
|
-
)
|
|
72
|
+
) ?? null;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
}
|
|
@@ -78,4 +78,4 @@ function getCommandMethodImplementations(startSnap, invokeSnap, onTerminate) {
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
exports.getHandlerArguments = getHandlerArguments; exports.getCommandMethodImplementations = getCommandMethodImplementations;
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
81
|
+
//# sourceMappingURL=chunk-OLASO3O4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5DEV3QQU.mjs";
|
|
4
4
|
|
|
5
5
|
// src/common/utils.ts
|
|
6
6
|
import { rpcErrors } from "@metamask/rpc-errors";
|
|
@@ -144,4 +144,4 @@ export {
|
|
|
144
144
|
sanitizeRequestArguments,
|
|
145
145
|
isValidResponse
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-PTCQ2I47.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rootRealmGlobal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IX5S3V47.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__require
|
|
6
6
|
} from "./chunk-YRZVIDCF.mjs";
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
createCrypto,
|
|
30
30
|
crypto_default
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-Q42NNJFY.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
commonEndowmentFactory_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ERB7OLAB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
rootRealmGlobal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IX5S3V47.mjs";
|
|
7
7
|
|
|
8
8
|
// src/common/endowments/index.ts
|
|
9
9
|
import { rpcErrors } from "@metamask/rpc-errors";
|
|
@@ -64,4 +64,4 @@ function createEndowments({
|
|
|
64
64
|
export {
|
|
65
65
|
createEndowments
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-QJB4J7WL.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createEndowments
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QJB4J7WL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
assertEthereumOutboundRequest,
|
|
6
6
|
assertSnapOutboundRequest,
|
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
proxyStreamProvider,
|
|
9
9
|
sanitizeRequestArguments,
|
|
10
10
|
withTeardown
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PTCQ2I47.mjs";
|
|
12
12
|
import {
|
|
13
13
|
log
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5DEV3QQU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getCommandMethodImplementations
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MM6ZSW4E.mjs";
|
|
18
18
|
import {
|
|
19
19
|
ExecuteSnapRequestArgumentsStruct,
|
|
20
20
|
PingRequestArgumentsStruct,
|
|
21
21
|
SnapRpcRequestArgumentsStruct,
|
|
22
22
|
TerminateRequestArgumentsStruct
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WV3CXIKN.mjs";
|
|
24
24
|
import {
|
|
25
25
|
addEventListener,
|
|
26
26
|
removeEventListener
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZNTCZK7J.mjs";
|
|
28
28
|
import {
|
|
29
29
|
sortParamKeys
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BTEAZZKP.mjs";
|
|
31
31
|
import {
|
|
32
32
|
__privateAdd,
|
|
33
33
|
__privateMethod
|
|
@@ -481,4 +481,4 @@ respond_fn = async function(id, response) {
|
|
|
481
481
|
export {
|
|
482
482
|
BaseSnapExecutor
|
|
483
483
|
};
|
|
484
|
-
//# sourceMappingURL=chunk-
|
|
484
|
+
//# sourceMappingURL=chunk-QVIHE3WB.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDLLLH5HNjs = require('./chunk-DLLLH5HN.js');
|
|
4
4
|
|
|
5
5
|
// src/common/endowments/date.ts
|
|
6
6
|
function createDate() {
|
|
7
7
|
const keys = Object.getOwnPropertyNames(
|
|
8
|
-
|
|
8
|
+
_chunkDLLLH5HNjs.rootRealmGlobal.Date
|
|
9
9
|
);
|
|
10
10
|
let currentTime = 0;
|
|
11
11
|
const now = () => {
|
|
12
|
-
const actual =
|
|
12
|
+
const actual = _chunkDLLLH5HNjs.rootRealmGlobal.Date.now();
|
|
13
13
|
const newTime = Math.round(actual + Math.random());
|
|
14
14
|
if (newTime > currentTime) {
|
|
15
15
|
currentTime = newTime;
|
|
@@ -18,7 +18,7 @@ function createDate() {
|
|
|
18
18
|
};
|
|
19
19
|
const NewDate = function(...args) {
|
|
20
20
|
return Reflect.construct(
|
|
21
|
-
|
|
21
|
+
_chunkDLLLH5HNjs.rootRealmGlobal.Date,
|
|
22
22
|
args.length === 0 ? [now()] : args,
|
|
23
23
|
new.target
|
|
24
24
|
);
|
|
@@ -27,7 +27,7 @@ function createDate() {
|
|
|
27
27
|
Reflect.defineProperty(NewDate, key, {
|
|
28
28
|
configurable: false,
|
|
29
29
|
writable: false,
|
|
30
|
-
value: key === "now" ? now :
|
|
30
|
+
value: key === "now" ? now : _chunkDLLLH5HNjs.rootRealmGlobal.Date[key]
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
return { Date: harden(NewDate) };
|
|
@@ -41,4 +41,4 @@ var date_default = endowmentModule;
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
exports.date_default = date_default;
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
44
|
+
//# sourceMappingURL=chunk-QZC2X6NG.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDTF6YTISjs = require('./chunk-DTF6YTIS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZ7BOREC4js = require('./chunk-Z7BOREC4.js');
|
|
7
7
|
|
|
8
8
|
// src/webworker/executor/WebWorkerSnapExecutor.ts
|
|
9
9
|
var _objectmultiplex = require('@metamask/object-multiplex'); var _objectmultiplex2 = _interopRequireDefault(_objectmultiplex);
|
|
10
10
|
var _postmessagestream = require('@metamask/post-message-stream');
|
|
11
11
|
var _snapsutils = require('@metamask/snaps-utils');
|
|
12
12
|
var _readablestream = require('readable-stream');
|
|
13
|
-
var WebWorkerSnapExecutor = class _WebWorkerSnapExecutor extends
|
|
13
|
+
var WebWorkerSnapExecutor = class _WebWorkerSnapExecutor extends _chunkDTF6YTISjs.BaseSnapExecutor {
|
|
14
14
|
/**
|
|
15
15
|
* Initialize the WebWorkerSnapExecutor. This creates a post message stream
|
|
16
16
|
* from and to the parent window, for two-way communication with the iframe.
|
|
@@ -20,7 +20,7 @@ var WebWorkerSnapExecutor = class _WebWorkerSnapExecutor extends _chunkL4G6IIWGj
|
|
|
20
20
|
* message streams.
|
|
21
21
|
*/
|
|
22
22
|
static initialize(stream = new (0, _postmessagestream.WebWorkerPostMessageStream)()) {
|
|
23
|
-
|
|
23
|
+
_chunkZ7BOREC4js.log.call(void 0, "Worker: Connecting to parent.");
|
|
24
24
|
const mux = new (0, _objectmultiplex2.default)();
|
|
25
25
|
_readablestream.pipeline.call(void 0, stream, mux, stream, (error) => {
|
|
26
26
|
if (error) {
|
|
@@ -37,4 +37,4 @@ var WebWorkerSnapExecutor = class _WebWorkerSnapExecutor extends _chunkL4G6IIWGj
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
exports.WebWorkerSnapExecutor = WebWorkerSnapExecutor;
|
|
40
|
-
//# sourceMappingURL=chunk-
|
|
40
|
+
//# sourceMappingURL=chunk-RZNKZRAD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-TSEAPB7L.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rootRealmGlobal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IX5S3V47.mjs";
|
|
4
4
|
|
|
5
5
|
// src/common/endowments/date.ts
|
|
6
6
|
function createDate() {
|
|
@@ -41,4 +41,4 @@ var date_default = endowmentModule;
|
|
|
41
41
|
export {
|
|
42
42
|
date_default
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
44
|
+
//# sourceMappingURL=chunk-UOPIRTJX.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseSnapExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QVIHE3WB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5DEV3QQU.mjs";
|
|
7
7
|
|
|
8
8
|
// src/node-process/ChildProcessSnapExecutor.ts
|
|
9
9
|
import ObjectMultiplex from "@metamask/object-multiplex";
|
|
@@ -30,4 +30,4 @@ var ChildProcessSnapExecutor = class _ChildProcessSnapExecutor extends BaseSnapE
|
|
|
30
30
|
export {
|
|
31
31
|
ChildProcessSnapExecutor
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-USHNZDGV.mjs.map
|