msw 0.47.0 → 0.47.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "msw",
3
- "version": "0.47.0",
3
+ "version": "0.47.1",
4
4
  "description": "Seamless REST/GraphQL API mocking library for browser and Node.js.",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -38,8 +38,11 @@
38
38
  "postinstall": "node -e \"try{require('./config/scripts/postinstall')}catch(e){}\""
39
39
  },
40
40
  "lint-staged": {
41
- "*.ts": [
42
- "eslint"
41
+ "**/*.ts": [
42
+ "eslint --fix"
43
+ ],
44
+ "**/*.{ts,json}": [
45
+ "prettier --write"
43
46
  ]
44
47
  },
45
48
  "homepage": "https://mswjs.io",
@@ -130,12 +133,12 @@
130
133
  "fs-teardown": "^0.3.0",
131
134
  "jest": "26",
132
135
  "json-bigint": "^1.0.0",
133
- "lint-staged": "^11.0.1",
136
+ "lint-staged": "^13.0.3",
134
137
  "page-with": "^0.5.0",
135
- "prettier": "^2.3.2",
138
+ "prettier": "^2.7.1",
136
139
  "regenerator-runtime": "^0.13.9",
137
140
  "rimraf": "^3.0.2",
138
- "simple-git-hooks": "^2.7.0",
141
+ "simple-git-hooks": "^2.8.0",
139
142
  "ts-jest": "26",
140
143
  "ts-loader": "^9.2.6",
141
144
  "ts-node": "^10.1.0",
@@ -160,5 +163,10 @@
160
163
  "commitizen": {
161
164
  "path": "./node_modules/cz-conventional-changelog"
162
165
  }
166
+ },
167
+ "simple-git-hooks": {
168
+ "pre-commit": "yarn lint-staged",
169
+ "prepare-commit-msg": "grep -qE '^[^#]' .git/COMMIT_EDITMSG || (exec < /dev/tty && yarn cz --hook || true)",
170
+ "commit-msg": "yarn commitlint --edit $1"
163
171
  }
164
172
  }