@metamask/snaps-execution-environments 0.36.1-flask.1 → 0.37.1-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 +11 -1
- package/dist/browserify/iframe/bundle.js +6 -4
- package/dist/browserify/node-process/bundle.js +4 -2
- package/dist/browserify/node-thread/bundle.js +4 -2
- package/dist/browserify/offscreen/bundle.js +5 -3
- package/dist/browserify/worker-executor/bundle.js +6 -4
- package/dist/browserify/worker-pool/bundle.js +5 -3
- package/dist/cjs/common/BaseSnapExecutor.js.map +1 -1
- package/dist/cjs/common/commands.js.map +1 -1
- package/dist/cjs/common/endowments/commonEndowmentFactory.js.map +1 -1
- package/dist/cjs/common/endowments/console.js.map +1 -1
- package/dist/cjs/common/endowments/crypto.js +1 -1
- package/dist/cjs/common/endowments/crypto.js.map +1 -1
- package/dist/cjs/common/endowments/index.js.map +1 -1
- package/dist/cjs/common/sortParams.js.map +1 -1
- package/dist/cjs/common/utils.js.map +1 -1
- package/dist/cjs/common/validation.js.map +1 -1
- package/dist/cjs/iframe/IFrameSnapExecutor.js.map +1 -1
- package/dist/cjs/offscreen/OffscreenSnapExecutor.js.map +1 -1
- package/dist/cjs/webworker/executor/WebWorkerSnapExecutor.js.map +1 -1
- package/dist/cjs/webworker/pool/WebWorkerPool.js.map +1 -1
- package/dist/esm/common/BaseSnapExecutor.js.map +1 -1
- package/dist/esm/common/commands.js.map +1 -1
- package/dist/esm/common/endowments/commonEndowmentFactory.js.map +1 -1
- package/dist/esm/common/endowments/console.js.map +1 -1
- package/dist/esm/common/endowments/crypto.js +1 -1
- package/dist/esm/common/endowments/crypto.js.map +1 -1
- package/dist/esm/common/endowments/index.js.map +1 -1
- package/dist/esm/common/sortParams.js.map +1 -1
- package/dist/esm/common/utils.js.map +1 -1
- package/dist/esm/common/validation.js.map +1 -1
- package/dist/esm/iframe/IFrameSnapExecutor.js.map +1 -1
- package/dist/esm/offscreen/OffscreenSnapExecutor.js.map +1 -1
- package/dist/esm/webworker/executor/WebWorkerSnapExecutor.js.map +1 -1
- package/dist/esm/webworker/pool/WebWorkerPool.js.map +1 -1
- package/dist/types/common/BaseSnapExecutor.d.ts +3 -3
- package/dist/types/common/commands.d.ts +2 -2
- package/dist/types/common/endowments/commonEndowmentFactory.d.ts +1 -1
- package/dist/types/common/endowments/console.d.ts +1 -1
- package/dist/types/common/endowments/index.d.ts +3 -3
- package/dist/types/common/sortParams.d.ts +1 -1
- package/dist/types/common/utils.d.ts +4 -4
- package/dist/types/common/validation.d.ts +2 -2
- package/dist/types/iframe/IFrameSnapExecutor.d.ts +1 -1
- package/dist/types/offscreen/OffscreenSnapExecutor.d.ts +2 -1
- package/dist/types/webworker/executor/WebWorkerSnapExecutor.d.ts +1 -1
- package/dist/types/webworker/pool/WebWorkerPool.d.ts +2 -1
- package/package.json +9 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StreamProvider } from '@metamask/providers';
|
|
2
|
-
import { RequestArguments } from '@metamask/providers/dist/BaseProvider';
|
|
1
|
+
import type { StreamProvider } from '@metamask/providers';
|
|
2
|
+
import type { RequestArguments } from '@metamask/providers/dist/BaseProvider';
|
|
3
3
|
/**
|
|
4
4
|
* Takes an error that was thrown, determines if it is
|
|
5
5
|
* an error object. If it is then it will return that. Otherwise,
|
|
@@ -19,9 +19,9 @@ export declare function constructError(originalError: unknown): Error | undefine
|
|
|
19
19
|
* @param teardownRef.lastTeardown - Number of the last teardown.
|
|
20
20
|
* @returns New proxy promise.
|
|
21
21
|
*/
|
|
22
|
-
export declare function withTeardown<
|
|
22
|
+
export declare function withTeardown<Type>(originalPromise: Promise<Type>, teardownRef: {
|
|
23
23
|
lastTeardown: number;
|
|
24
|
-
}): Promise<
|
|
24
|
+
}): Promise<Type>;
|
|
25
25
|
/**
|
|
26
26
|
* Returns a Proxy that narrows down (attenuates) the fields available on
|
|
27
27
|
* the StreamProvider and replaces the request implementation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HandlerType } from '@metamask/snaps-utils';
|
|
2
|
-
import { Json, JsonRpcSuccess } from '@metamask/utils';
|
|
3
|
-
import { Infer } from 'superstruct';
|
|
2
|
+
import type { Json, JsonRpcSuccess } from '@metamask/utils';
|
|
3
|
+
import type { Infer } from 'superstruct';
|
|
4
4
|
/**
|
|
5
5
|
* Validates a given snap export.
|
|
6
6
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasePostMessageStream } from '@metamask/post-message-stream';
|
|
1
|
+
import type { BasePostMessageStream } from '@metamask/post-message-stream';
|
|
2
2
|
import { BaseSnapExecutor } from '../common/BaseSnapExecutor';
|
|
3
3
|
export declare class IFrameSnapExecutor extends BaseSnapExecutor {
|
|
4
4
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BasePostMessageStream
|
|
1
|
+
import type { BasePostMessageStream } from '@metamask/post-message-stream';
|
|
2
|
+
import { WindowPostMessageStream } from '@metamask/post-message-stream';
|
|
2
3
|
declare type ExecutorJob = {
|
|
3
4
|
id: string;
|
|
4
5
|
window: Window;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasePostMessageStream } from '@metamask/post-message-stream';
|
|
1
|
+
import type { BasePostMessageStream } from '@metamask/post-message-stream';
|
|
2
2
|
import { BaseSnapExecutor } from '../../common/BaseSnapExecutor';
|
|
3
3
|
export declare class WebWorkerSnapExecutor extends BaseSnapExecutor {
|
|
4
4
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BasePostMessageStream
|
|
1
|
+
import type { BasePostMessageStream } from '@metamask/post-message-stream';
|
|
2
|
+
import { WebWorkerParentPostMessageStream } from '@metamask/post-message-stream';
|
|
2
3
|
declare type ExecutorJob = {
|
|
3
4
|
id: string;
|
|
4
5
|
worker: Worker;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/snaps-execution-environments",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.1-flask.1",
|
|
4
4
|
"description": "Snap sandbox environments for executing SES javascript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@metamask/object-multiplex": "^1.2.0",
|
|
48
48
|
"@metamask/post-message-stream": "^6.1.2",
|
|
49
49
|
"@metamask/providers": "^11.0.0",
|
|
50
|
-
"@metamask/rpc-methods": "^0.
|
|
51
|
-
"@metamask/snaps-utils": "^0.
|
|
50
|
+
"@metamask/rpc-methods": "^0.37.1-flask.1",
|
|
51
|
+
"@metamask/snaps-utils": "^0.37.1-flask.1",
|
|
52
52
|
"@metamask/utils": "^6.0.1",
|
|
53
53
|
"eth-rpc-errors": "^4.0.3",
|
|
54
54
|
"json-rpc-engine": "^6.1.0",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"@lavamoat/lavapack": "^5.1.2",
|
|
69
69
|
"@lavamoat/lavatube": "^0.0.1",
|
|
70
70
|
"@metamask/auto-changelog": "^3.1.0",
|
|
71
|
-
"@metamask/eslint-config": "^
|
|
72
|
-
"@metamask/eslint-config-jest": "^
|
|
73
|
-
"@metamask/eslint-config-nodejs": "^
|
|
74
|
-
"@metamask/eslint-config-typescript": "^
|
|
71
|
+
"@metamask/eslint-config": "^12.1.0",
|
|
72
|
+
"@metamask/eslint-config-jest": "^12.1.0",
|
|
73
|
+
"@metamask/eslint-config-nodejs": "^12.1.0",
|
|
74
|
+
"@metamask/eslint-config-typescript": "^12.1.0",
|
|
75
75
|
"@swc/cli": "^0.1.62",
|
|
76
76
|
"@swc/core": "^1.3.66",
|
|
77
77
|
"@swc/jest": "^0.2.26",
|
|
@@ -97,8 +97,9 @@
|
|
|
97
97
|
"eslint-plugin-import": "^2.26.0",
|
|
98
98
|
"eslint-plugin-jest": "^27.1.5",
|
|
99
99
|
"eslint-plugin-jsdoc": "^39.6.2",
|
|
100
|
-
"eslint-plugin-
|
|
100
|
+
"eslint-plugin-n": "^15.7.0",
|
|
101
101
|
"eslint-plugin-prettier": "^4.2.1",
|
|
102
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
102
103
|
"expect-webdriverio": "^4.1.2",
|
|
103
104
|
"istanbul-lib-coverage": "^3.2.0",
|
|
104
105
|
"istanbul-lib-report": "^3.0.0",
|