@metamask/snaps-simulation 1.0.0 → 1.1.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/package.json CHANGED
@@ -1,11 +1,21 @@
1
1
  {
2
2
  "name": "@metamask/snaps-simulation",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "A simulation framework for MetaMask Snaps, enabling headless testing of Snaps in a controlled environment",
5
+ "keywords": [
6
+ "MetaMask",
7
+ "Snaps",
8
+ "Ethereum"
9
+ ],
10
+ "homepage": "https://github.com/MetaMask/snaps/tree/main/packages/snaps-simulation#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": "ISC",
9
19
  "sideEffects": false,
10
20
  "exports": {
11
21
  ".": {
@@ -14,8 +24,8 @@
14
24
  "default": "./dist/index.mjs"
15
25
  },
16
26
  "require": {
17
- "default": "./dist/index.cjs",
18
- "types": "./dist/index.d.cts"
27
+ "types": "./dist/index.d.cts",
28
+ "default": "./dist/index.cjs"
19
29
  }
20
30
  },
21
31
  "./package.json": "./package.json"
@@ -27,18 +37,22 @@
27
37
  "dist"
28
38
  ],
29
39
  "scripts": {
30
- "test": "jest && yarn posttest",
31
- "posttest": "jest-it-up --margin 0.25",
32
- "test:ci": "yarn test",
40
+ "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
41
+ "changelog:update": "../../scripts/update-changelog.sh @metamask/snaps-simulation",
42
+ "changelog:validate": "../../scripts/validate-changelog.sh @metamask/snaps-simulation",
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:changelog": "../../scripts/validate-changelog.sh @metamask/snaps-simulation",
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
- "lint:ci": "yarn lint",
41
- "lint:dependencies": "depcheck"
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/base-controller": "^6.0.2",
@@ -48,10 +62,10 @@
48
62
  "@metamask/key-tree": "^9.1.2",
49
63
  "@metamask/permission-controller": "^11.0.0",
50
64
  "@metamask/phishing-controller": "^12.0.2",
51
- "@metamask/snaps-controllers": "^9.7.0",
52
- "@metamask/snaps-rpc-methods": "^11.1.1",
53
- "@metamask/snaps-sdk": "^6.5.0",
54
- "@metamask/snaps-utils": "^8.1.1",
65
+ "@metamask/snaps-controllers": "^9.10.0",
66
+ "@metamask/snaps-rpc-methods": "^11.3.0",
67
+ "@metamask/snaps-sdk": "^6.7.0",
68
+ "@metamask/snaps-utils": "^8.3.0",
55
69
  "@metamask/superstruct": "^3.1.0",
56
70
  "@metamask/utils": "^9.2.1",
57
71
  "@reduxjs/toolkit": "^1.9.5",
@@ -86,8 +100,9 @@
86
100
  "express": "^4.18.2",
87
101
  "jest": "^29.0.2",
88
102
  "jest-it-up": "^2.0.0",
89
- "prettier": "^2.7.1",
90
- "prettier-plugin-packagejson": "^2.2.11",
103
+ "jest-silent-reporter": "^0.6.0",
104
+ "prettier": "^2.8.8",
105
+ "prettier-plugin-packagejson": "^2.5.2",
91
106
  "ts-jest": "^29.1.1",
92
107
  "typescript": "~5.3.3"
93
108
  },