Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LavaMoat Webpack test branch #2662

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class NodeProcessExecutionService extends AbstractExecutionService<ChildP
}> {
const worker = fork(
require.resolve(
'@metamask/snaps-execution-environments/dist/browserify/node-process/bundle.js',
'@metamask/snaps-execution-environments/dist/webpack/node-process/bundle.js',
),
{
stdio: 'pipe',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class NodeThreadExecutionService extends AbstractExecutionService<Worker>
}> {
const worker = new Worker(
require.resolve(
'@metamask/snaps-execution-environments/dist/browserify/node-thread/bundle.js',
'@metamask/snaps-execution-environments/dist/webpack/node-thread/bundle.js',
),
{
stdout: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-controllers/wdio.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const config = {
mount: '/',
path: resolve(
__dirname,
'../snaps-execution-environments/dist/browserify/iframe',
'../snaps-execution-environments/dist/webpack/iframe',
),
},

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
{
"resources": {
"@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/rpc-errors": true,
"@metamask/utils": true
}
},
"@metamask/object-multiplex": {
"globals": {
"console.warn": true
},
"packages": {
"@metamask/object-multiplex>once": true,
"readable-stream": true
}
},
"@metamask/object-multiplex>once": {
"packages": {
"@metamask/object-multiplex>once>wrappy": true
}
},
"@metamask/post-message-stream": {
"globals": {
"MessageEvent.prototype": true,
"WorkerGlobalScope": true,
"addEventListener": true,
"browser": true,
"chrome": true,
"location.origin": true,
"postMessage": true,
"removeEventListener": true
},
"packages": {
"@metamask/post-message-stream>@metamask/utils": true,
"readable-stream": true
}
},
"@metamask/post-message-stream>@metamask/utils": {
"globals": {
"Buffer": true,
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/superstruct": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"depcheck>semver": true,
"eslint>debug": true
}
},
"@metamask/providers": {
"globals": {
"console": true
},
"packages": {
"@metamask/json-rpc-engine": true,
"@metamask/object-multiplex": true,
"@metamask/providers>@metamask/json-rpc-middleware-stream": true,
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/providers>is-stream": true,
"@metamask/rpc-errors": true,
"eslint>fast-deep-equal": true,
"readable-stream": true
}
},
"@metamask/providers>@metamask/json-rpc-middleware-stream": {
"globals": {
"console.warn": true,
"setTimeout": true
},
"packages": {
"@metamask/providers>@metamask/safe-event-emitter": true,
"@metamask/utils": true,
"readable-stream": true
}
},
"@metamask/providers>@metamask/safe-event-emitter": {
"globals": {
"setTimeout": true
},
"packages": {
"webpack>events": true
}
},
"@metamask/providers>extension-port-stream>readable-stream>buffer": {
"globals": {
"console": true
},
"packages": {
"browserify>buffer>base64-js": true,
"browserify>buffer>ieee754": true
}
},
"@metamask/rpc-errors": {
"packages": {
"@metamask/rpc-errors>fast-safe-stringify": true,
"@metamask/utils": true
}
},
"@metamask/snaps-sdk": {
"packages": {
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils": {
"globals": {
"URL": true,
"console.error": true,
"console.log": true,
"console.warn": true
},
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/utils": {
"globals": {
"TextEncoder": true
},
"packages": {
"@metamask/superstruct": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>pony-cause": true,
"depcheck>semver": true,
"eslint>debug": true
}
},
"@metamask/utils>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@metamask/utils>@scure/base": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
}
},
"browserify>browser-pack>safe-buffer": {
"packages": {
"@metamask/providers>extension-port-stream>readable-stream>buffer": true
}
},
"browserify>string_decoder": {
"packages": {
"browserify>browser-pack>safe-buffer": true
}
},
"depcheck>semver": {
"globals": {
"console.error": true,
"process": true
},
"packages": {
"process": true
}
},
"eslint>debug": {
"globals": {
"console": true,
"document": true,
"localStorage": true,
"navigator": true,
"process": true
},
"packages": {
"eslint>debug>ms": true,
"process": true
}
},
"process": {
"globals": {
"clearTimeout": true,
"setTimeout": true
}
},
"readable-stream": {
"globals": {
"process.nextTick": true,
"process.stderr": true,
"process.stdout": true
},
"packages": {
"@metamask/providers>extension-port-stream>readable-stream>buffer": true,
"browserify>inherits": true,
"browserify>string_decoder": true,
"process": true,
"readable-stream>util-deprecate": true,
"webpack>events": true
}
},
"readable-stream>util-deprecate": {
"globals": {
"console.trace": true,
"console.warn": true,
"localStorage": true
}
},
"webpack>events": {
"globals": {
"console": true
}
}
}
}
Loading
Loading