msw 0.46.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/README.md +70 -76
- package/lib/{glossary-c690f512.d.ts → glossary-3d04462e.d.ts} +1 -1
- package/lib/iife/index.js +3968 -12772
- package/lib/iife/index.js.map +1 -1
- package/lib/index.d.ts +4 -9
- package/lib/index.js +73 -19
- package/lib/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/lib/native/index.d.ts +1 -1
- package/lib/native/index.js +7 -9
- package/lib/native/index.mjs +7 -9
- package/lib/node/index.d.ts +2 -2
- package/lib/node/index.js +7 -9
- package/lib/node/index.js.map +1 -1
- package/lib/node/index.mjs +7 -9
- package/lib/node/index.mjs.map +1 -1
- package/package.json +27 -11
package/package.json
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "msw",
|
|
3
|
-
"version": "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",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"default": "./lib/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./native": {
|
|
12
|
+
"default": "./lib/native/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./node": {
|
|
15
|
+
"require": "./lib/node/index.js",
|
|
16
|
+
"default": "./lib/node/index.mjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
7
19
|
"bin": {
|
|
8
20
|
"msw": "cli/index.js"
|
|
9
21
|
},
|
|
@@ -26,8 +38,11 @@
|
|
|
26
38
|
"postinstall": "node -e \"try{require('./config/scripts/postinstall')}catch(e){}\""
|
|
27
39
|
},
|
|
28
40
|
"lint-staged": {
|
|
29
|
-
"
|
|
30
|
-
"eslint"
|
|
41
|
+
"**/*.ts": [
|
|
42
|
+
"eslint --fix"
|
|
43
|
+
],
|
|
44
|
+
"**/*.{ts,json}": [
|
|
45
|
+
"prettier --write"
|
|
31
46
|
]
|
|
32
47
|
},
|
|
33
48
|
"homepage": "https://mswjs.io",
|
|
@@ -77,6 +92,7 @@
|
|
|
77
92
|
"chalk": "4.1.1",
|
|
78
93
|
"chokidar": "^3.4.2",
|
|
79
94
|
"cookie": "^0.4.2",
|
|
95
|
+
"graphql": "^15.0.0 || ^16.0.0",
|
|
80
96
|
"headers-polyfill": "^3.0.4",
|
|
81
97
|
"inquirer": "^8.2.0",
|
|
82
98
|
"is-node-process": "^1.0.1",
|
|
@@ -115,15 +131,14 @@
|
|
|
115
131
|
"eslint-plugin-prettier": "^3.4.0",
|
|
116
132
|
"fs-extra": "^10.0.0",
|
|
117
133
|
"fs-teardown": "^0.3.0",
|
|
118
|
-
"graphql": "^16.3.0",
|
|
119
134
|
"jest": "26",
|
|
120
135
|
"json-bigint": "^1.0.0",
|
|
121
|
-
"lint-staged": "^
|
|
136
|
+
"lint-staged": "^13.0.3",
|
|
122
137
|
"page-with": "^0.5.0",
|
|
123
|
-
"prettier": "^2.
|
|
138
|
+
"prettier": "^2.7.1",
|
|
124
139
|
"regenerator-runtime": "^0.13.9",
|
|
125
140
|
"rimraf": "^3.0.2",
|
|
126
|
-
"simple-git-hooks": "^2.
|
|
141
|
+
"simple-git-hooks": "^2.8.0",
|
|
127
142
|
"ts-jest": "26",
|
|
128
143
|
"ts-loader": "^9.2.6",
|
|
129
144
|
"ts-node": "^10.1.0",
|
|
@@ -134,13 +149,9 @@
|
|
|
134
149
|
"webpack-dev-server": "^3.11.2"
|
|
135
150
|
},
|
|
136
151
|
"peerDependencies": {
|
|
137
|
-
"graphql": "^15.0.0 || ^16.0.0",
|
|
138
152
|
"typescript": ">= 4.2.x <= 4.8.x"
|
|
139
153
|
},
|
|
140
154
|
"peerDependenciesMeta": {
|
|
141
|
-
"graphql": {
|
|
142
|
-
"optional": true
|
|
143
|
-
},
|
|
144
155
|
"typescript": {
|
|
145
156
|
"optional": true
|
|
146
157
|
}
|
|
@@ -152,5 +163,10 @@
|
|
|
152
163
|
"commitizen": {
|
|
153
164
|
"path": "./node_modules/cz-conventional-changelog"
|
|
154
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"
|
|
155
171
|
}
|
|
156
172
|
}
|