@metamask/snaps-controllers 9.6.0 → 9.8.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 +143 -1
- package/dist/services/node-js/NodeProcessExecutionService.mjs +3 -1
- package/dist/services/node-js/NodeProcessExecutionService.mjs.map +1 -1
- package/dist/services/node-js/NodeThreadExecutionService.mjs +3 -1
- package/dist/services/node-js/NodeThreadExecutionService.mjs.map +1 -1
- package/dist/services/offscreen/OffscreenExecutionService.d.cts +1 -1
- package/dist/services/offscreen/OffscreenExecutionService.d.mts +1 -1
- package/dist/services/webview/WebViewExecutionService.d.cts +1 -1
- package/dist/services/webview/WebViewExecutionService.d.mts +1 -1
- package/dist/services/webview/WebViewMessageStream.cjs.map +1 -1
- package/dist/services/webview/WebViewMessageStream.d.cts +1 -2
- package/dist/services/webview/WebViewMessageStream.d.cts.map +1 -1
- package/dist/services/webview/WebViewMessageStream.d.mts +1 -2
- package/dist/services/webview/WebViewMessageStream.d.mts.map +1 -1
- package/dist/services/webview/WebViewMessageStream.mjs.map +1 -1
- package/dist/services/webview/index.cjs +1 -0
- package/dist/services/webview/index.cjs.map +1 -1
- package/dist/services/webview/index.d.cts +1 -0
- package/dist/services/webview/index.d.cts.map +1 -1
- package/dist/services/webview/index.d.mts +1 -0
- package/dist/services/webview/index.d.mts.map +1 -1
- package/dist/services/webview/index.mjs +1 -0
- package/dist/services/webview/index.mjs.map +1 -1
- package/dist/snaps/SnapController.cjs +4 -2
- package/dist/snaps/SnapController.cjs.map +1 -1
- package/dist/snaps/SnapController.d.cts +1 -0
- package/dist/snaps/SnapController.d.cts.map +1 -1
- package/dist/snaps/SnapController.d.mts +1 -0
- package/dist/snaps/SnapController.d.mts.map +1 -1
- package/dist/snaps/SnapController.mjs +4 -2
- package/dist/snaps/SnapController.mjs.map +1 -1
- package/package.json +39 -24
package/package.json
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/snaps-controllers",
|
|
3
|
-
"version": "9.
|
|
4
|
-
"description": "Controllers for MetaMask Snaps
|
|
3
|
+
"version": "9.8.0",
|
|
4
|
+
"description": "Controllers for MetaMask Snaps",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"MetaMask",
|
|
7
|
+
"Snaps",
|
|
8
|
+
"Ethereum"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/MetaMask/snaps/tree/main/packages/snaps-controllers#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/MetaMask/snaps/issues"
|
|
13
|
+
},
|
|
5
14
|
"repository": {
|
|
6
15
|
"type": "git",
|
|
7
16
|
"url": "https://github.com/MetaMask/snaps.git"
|
|
8
17
|
},
|
|
18
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
9
19
|
"sideEffects": false,
|
|
10
20
|
"exports": {
|
|
11
21
|
".": {
|
|
@@ -20,21 +30,21 @@
|
|
|
20
30
|
},
|
|
21
31
|
"./node": {
|
|
22
32
|
"import": {
|
|
23
|
-
"types": "./dist/
|
|
33
|
+
"types": "./dist/node.d.mts",
|
|
24
34
|
"default": "./dist/node.mjs"
|
|
25
35
|
},
|
|
26
36
|
"require": {
|
|
27
|
-
"types": "./dist/
|
|
37
|
+
"types": "./dist/node.d.cts",
|
|
28
38
|
"default": "./dist/node.cjs"
|
|
29
39
|
}
|
|
30
40
|
},
|
|
31
41
|
"./react-native": {
|
|
32
42
|
"import": {
|
|
33
|
-
"types": "./dist/
|
|
43
|
+
"types": "./dist/react-native.d.mts",
|
|
34
44
|
"default": "./dist/react-native.mjs"
|
|
35
45
|
},
|
|
36
46
|
"require": {
|
|
37
|
-
"types": "./dist/
|
|
47
|
+
"types": "./dist/react-native.d.cts",
|
|
38
48
|
"default": "./dist/react-native.cjs"
|
|
39
49
|
}
|
|
40
50
|
},
|
|
@@ -49,20 +59,24 @@
|
|
|
49
59
|
"react-native.js"
|
|
50
60
|
],
|
|
51
61
|
"scripts": {
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
62
|
+
"build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
|
|
63
|
+
"changelog:update": "../../scripts/update-changelog.sh @metamask/snaps-controllers",
|
|
64
|
+
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/snaps-controllers",
|
|
65
|
+
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn changelog:validate && yarn lint:dependencies",
|
|
66
|
+
"lint:ci": "yarn lint",
|
|
67
|
+
"lint:dependencies": "depcheck",
|
|
58
68
|
"lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx",
|
|
59
|
-
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore",
|
|
60
|
-
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:changelog && yarn lint:dependencies",
|
|
61
69
|
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
|
|
62
|
-
"lint:
|
|
70
|
+
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore",
|
|
63
71
|
"publish:preview": "yarn npm publish --tag preview",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
72
|
+
"since-latest-release": "../../scripts/since-latest-release.sh",
|
|
73
|
+
"test": "jest --reporters=jest-silent-reporter && yarn test:browser",
|
|
74
|
+
"test:browser": "wdio run wdio.config.js",
|
|
75
|
+
"test:clean": "jest --clearCache",
|
|
76
|
+
"test:post": "ts-node scripts/coverage.ts && rimraf coverage/jest coverage/wdio",
|
|
77
|
+
"test:pre": "yarn mkdirp test/fixtures && ./scripts/generate-fixtures.sh",
|
|
78
|
+
"test:verbose": "jest --verbose",
|
|
79
|
+
"test:watch": "jest --watch"
|
|
66
80
|
},
|
|
67
81
|
"dependencies": {
|
|
68
82
|
"@metamask/approval-controller": "^7.0.2",
|
|
@@ -75,9 +89,9 @@
|
|
|
75
89
|
"@metamask/post-message-stream": "^8.1.1",
|
|
76
90
|
"@metamask/rpc-errors": "^6.3.1",
|
|
77
91
|
"@metamask/snaps-registry": "^3.2.1",
|
|
78
|
-
"@metamask/snaps-rpc-methods": "^11.1.
|
|
79
|
-
"@metamask/snaps-sdk": "^6.
|
|
80
|
-
"@metamask/snaps-utils": "^8.1.
|
|
92
|
+
"@metamask/snaps-rpc-methods": "^11.1.1",
|
|
93
|
+
"@metamask/snaps-sdk": "^6.5.1",
|
|
94
|
+
"@metamask/snaps-utils": "^8.1.1",
|
|
81
95
|
"@metamask/utils": "^9.2.1",
|
|
82
96
|
"@xstate/fsm": "^2.0.0",
|
|
83
97
|
"browserify-zlib": "^0.2.0",
|
|
@@ -103,7 +117,7 @@
|
|
|
103
117
|
"@metamask/template-snap": "^0.7.0",
|
|
104
118
|
"@swc/core": "1.3.78",
|
|
105
119
|
"@swc/jest": "^0.2.26",
|
|
106
|
-
"@ts-bridge/cli": "^0.
|
|
120
|
+
"@ts-bridge/cli": "^0.5.1",
|
|
107
121
|
"@types/chrome": "^0.0.237",
|
|
108
122
|
"@types/concat-stream": "^2.0.0",
|
|
109
123
|
"@types/gunzip-maybe": "^1.4.0",
|
|
@@ -137,9 +151,10 @@
|
|
|
137
151
|
"istanbul-reports": "^3.1.5",
|
|
138
152
|
"jest": "^29.0.2",
|
|
139
153
|
"jest-fetch-mock": "^3.0.3",
|
|
154
|
+
"jest-silent-reporter": "^0.6.0",
|
|
140
155
|
"mkdirp": "^1.0.4",
|
|
141
|
-
"prettier": "^2.
|
|
142
|
-
"prettier-plugin-packagejson": "^2.2
|
|
156
|
+
"prettier": "^2.8.8",
|
|
157
|
+
"prettier-plugin-packagejson": "^2.5.2",
|
|
143
158
|
"rimraf": "^4.1.2",
|
|
144
159
|
"ts-node": "^10.9.1",
|
|
145
160
|
"typescript": "~5.3.3",
|
|
@@ -150,7 +165,7 @@
|
|
|
150
165
|
"webdriverio": "^8.19.0"
|
|
151
166
|
},
|
|
152
167
|
"peerDependencies": {
|
|
153
|
-
"@metamask/snaps-execution-environments": "^6.7.
|
|
168
|
+
"@metamask/snaps-execution-environments": "^6.7.2"
|
|
154
169
|
},
|
|
155
170
|
"peerDependenciesMeta": {
|
|
156
171
|
"@metamask/snaps-execution-environments": {
|