@metamask/snaps-execution-environments 0.32.2 → 0.33.0-flask.1
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 +298 -0
- package/dist/browserify/iframe/bundle.js +453 -665
- package/dist/browserify/iframe/index.html +2 -2
- package/dist/browserify/node-process/bundle.js +276 -488
- package/dist/browserify/node-thread/bundle.js +276 -488
- package/dist/browserify/offscreen/bundle.js +162 -416
- package/dist/browserify/offscreen/index.html +2 -2
- package/dist/browserify/worker-executor/bundle.js +17874 -0
- package/dist/browserify/worker-pool/bundle.js +2026 -0
- package/dist/browserify/worker-pool/index.html +11660 -0
- package/dist/common/BaseSnapExecutor.d.ts +4 -4
- package/dist/common/BaseSnapExecutor.js +22 -22
- package/dist/common/BaseSnapExecutor.js.map +1 -1
- package/dist/common/commands.js +2 -2
- package/dist/common/commands.js.map +1 -1
- package/dist/common/endowments/commonEndowmentFactory.d.ts +5 -1
- package/dist/common/endowments/commonEndowmentFactory.js +2 -1
- package/dist/common/endowments/commonEndowmentFactory.js.map +1 -1
- package/dist/common/endowments/console.d.ts +45 -0
- package/dist/common/endowments/console.js +103 -0
- package/dist/common/endowments/console.js.map +1 -0
- package/dist/common/endowments/crypto.d.ts +4 -0
- package/dist/common/endowments/crypto.js +3 -1
- package/dist/common/endowments/crypto.js.map +1 -1
- package/dist/common/endowments/index.d.ts +3 -1
- package/dist/common/endowments/index.js +3 -3
- package/dist/common/endowments/index.js.map +1 -1
- package/dist/common/endowments/math.js +4 -1
- package/dist/common/endowments/math.js.map +1 -1
- package/dist/common/utils.js +2 -1
- package/dist/common/utils.js.map +1 -1
- package/dist/offscreen/OffscreenSnapExecutor.js +1 -1
- package/dist/offscreen/OffscreenSnapExecutor.js.map +1 -1
- package/dist/openrpc.json +2 -2
- package/dist/webworker/executor/WebWorkerSnapExecutor.d.ts +13 -0
- package/dist/webworker/executor/WebWorkerSnapExecutor.js +37 -0
- package/dist/webworker/executor/WebWorkerSnapExecutor.js.map +1 -0
- package/dist/webworker/executor/index.d.ts +1 -0
- package/dist/webworker/executor/index.js +10 -0
- package/dist/webworker/executor/index.js.map +1 -0
- package/dist/webworker/pool/WebWorkerPool.d.ts +22 -0
- package/dist/webworker/pool/WebWorkerPool.js +168 -0
- package/dist/webworker/pool/WebWorkerPool.js.map +1 -0
- package/dist/webworker/pool/index.d.ts +1 -0
- package/dist/webworker/pool/index.js +10 -0
- package/dist/webworker/pool/index.js.map +1 -0
- package/package.json +21 -20
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
const {
|
|
94
94
|
scuttleGlobalThis,
|
|
95
95
|
scuttleGlobalThisExceptions,
|
|
96
|
-
} = {"scuttleGlobalThis":true,"scuttleGlobalThisExceptions":["postMessage","removeEventListener"]}
|
|
96
|
+
} = {"scuttleGlobalThis":true,"scuttleGlobalThisExceptions":["postMessage","removeEventListener","isSecureContext"]}
|
|
97
97
|
|
|
98
98
|
// identify the globalRef
|
|
99
99
|
const globalRef = (typeof globalThis !== 'undefined') ? globalThis : (typeof self !== 'undefined') ? self : (typeof global !== 'undefined') ? global : undefined
|
|
@@ -11564,7 +11564,7 @@ module.exports = {
|
|
|
11564
11564
|
|
|
11565
11565
|
|
|
11566
11566
|
function loadModuleData (moduleId) {
|
|
11567
|
-
if (typeof window === 'undefined' && require('node:module').isBuiltin(moduleId)) {
|
|
11567
|
+
if (typeof window === 'undefined' && typeof require === 'function' && require('node:module').isBuiltin(moduleId)) {
|
|
11568
11568
|
return {
|
|
11569
11569
|
type: 'builtin',
|
|
11570
11570
|
package: moduleId,
|