@metamask/snaps-rpc-methods 11.1.0 → 11.2.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 +93 -1
- package/dist/endowments/index.d.cts +22 -22
- package/dist/endowments/index.d.mts +22 -22
- package/dist/permitted/createInterface.d.cts +14 -2
- package/dist/permitted/createInterface.d.cts.map +1 -1
- package/dist/permitted/createInterface.d.mts +14 -2
- package/dist/permitted/createInterface.d.mts.map +1 -1
- package/dist/permitted/handlers.d.cts +13 -13
- package/dist/permitted/handlers.d.mts +13 -13
- package/dist/restricted/dialog.d.cts +56 -0
- package/dist/restricted/dialog.d.cts.map +1 -1
- package/dist/restricted/dialog.d.mts +56 -0
- package/dist/restricted/dialog.d.mts.map +1 -1
- package/dist/restricted/index.d.cts +12 -12
- package/dist/restricted/index.d.mts +12 -12
- package/dist/restricted/notify.cjs +61 -5
- package/dist/restricted/notify.cjs.map +1 -1
- package/dist/restricted/notify.d.cts +96 -15
- package/dist/restricted/notify.d.cts.map +1 -1
- package/dist/restricted/notify.d.mts +96 -15
- package/dist/restricted/notify.d.mts.map +1 -1
- package/dist/restricted/notify.mjs +64 -8
- package/dist/restricted/notify.mjs.map +1 -1
- package/package.json +31 -16
package/package.json
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/snaps-rpc-methods",
|
|
3
|
-
"version": "11.
|
|
4
|
-
"description": "MetaMask Snaps JSON-RPC method implementations
|
|
3
|
+
"version": "11.2.0",
|
|
4
|
+
"description": "MetaMask Snaps JSON-RPC method implementations",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"MetaMask",
|
|
7
|
+
"Snaps",
|
|
8
|
+
"Ethereum"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/MetaMask/snaps/tree/main/packages/snaps-rpc-methods#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
|
".": {
|
|
@@ -27,25 +37,29 @@
|
|
|
27
37
|
"dist"
|
|
28
38
|
],
|
|
29
39
|
"scripts": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
40
|
+
"build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
|
|
41
|
+
"changelog:update": "../../scripts/update-changelog.sh @metamask/snaps-rpc-methods",
|
|
42
|
+
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/snaps-rpc-methods",
|
|
43
|
+
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn changelog:validate && yarn lint:dependencies",
|
|
44
|
+
"lint:ci": "yarn lint",
|
|
45
|
+
"lint:dependencies": "depcheck",
|
|
33
46
|
"lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx",
|
|
34
|
-
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore",
|
|
35
|
-
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:changelog && yarn lint:dependencies",
|
|
36
47
|
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
|
|
37
|
-
"lint:
|
|
38
|
-
"build": "ts-bridge --project tsconfig.build.json --verbose --no-references",
|
|
48
|
+
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore",
|
|
39
49
|
"publish:preview": "yarn npm publish --tag preview",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
50
|
+
"since-latest-release": "../../scripts/since-latest-release.sh",
|
|
51
|
+
"test": "jest --reporters=jest-silent-reporter",
|
|
52
|
+
"test:clean": "jest --clearCache",
|
|
53
|
+
"test:post": "jest-it-up",
|
|
54
|
+
"test:verbose": "jest --verbose",
|
|
55
|
+
"test:watch": "jest --watch"
|
|
42
56
|
},
|
|
43
57
|
"dependencies": {
|
|
44
58
|
"@metamask/key-tree": "^9.1.2",
|
|
45
59
|
"@metamask/permission-controller": "^11.0.0",
|
|
46
60
|
"@metamask/rpc-errors": "^6.3.1",
|
|
47
|
-
"@metamask/snaps-sdk": "^6.
|
|
48
|
-
"@metamask/snaps-utils": "^8.
|
|
61
|
+
"@metamask/snaps-sdk": "^6.6.0",
|
|
62
|
+
"@metamask/snaps-utils": "^8.2.0",
|
|
49
63
|
"@metamask/superstruct": "^3.1.0",
|
|
50
64
|
"@metamask/utils": "^9.2.1",
|
|
51
65
|
"@noble/hashes": "^1.3.1"
|
|
@@ -60,7 +74,7 @@
|
|
|
60
74
|
"@metamask/json-rpc-engine": "^9.0.2",
|
|
61
75
|
"@swc/core": "1.3.78",
|
|
62
76
|
"@swc/jest": "^0.2.26",
|
|
63
|
-
"@ts-bridge/cli": "^0.
|
|
77
|
+
"@ts-bridge/cli": "^0.5.1",
|
|
64
78
|
"@types/node": "18.14.2",
|
|
65
79
|
"@typescript-eslint/eslint-plugin": "^5.42.1",
|
|
66
80
|
"@typescript-eslint/parser": "^6.21.0",
|
|
@@ -76,8 +90,9 @@
|
|
|
76
90
|
"eslint-plugin-promise": "^6.1.1",
|
|
77
91
|
"jest": "^29.0.2",
|
|
78
92
|
"jest-it-up": "^2.0.0",
|
|
79
|
-
"
|
|
80
|
-
"prettier
|
|
93
|
+
"jest-silent-reporter": "^0.6.0",
|
|
94
|
+
"prettier": "^2.8.8",
|
|
95
|
+
"prettier-plugin-packagejson": "^2.5.2",
|
|
81
96
|
"typescript": "~5.3.3"
|
|
82
97
|
},
|
|
83
98
|
"engines": {
|