msw 0.36.8 → 0.38.2
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/lib/esm/fetch-deps.js +14 -11
- package/lib/esm/graphql-deps.js +1980 -1804
- package/lib/esm/index.js +60 -45
- package/lib/esm/mockServiceWorker.js +1 -1
- package/lib/iife/index.js +3 -3
- package/lib/iife/mockServiceWorker.js +1 -1
- package/lib/types/handlers/RequestHandler.d.ts +1 -1
- package/lib/types/response.d.ts +1 -1
- package/lib/types/setupWorker/glossary.d.ts +1 -1
- package/lib/types/utils/logging/prepareResponse.d.ts +1 -1
- package/lib/types/utils/request/onUnhandledRequest.d.ts +5 -1
- package/lib/umd/index.js +18038 -15294
- package/lib/umd/mockServiceWorker.js +1 -1
- package/native/lib/index.js +2028 -1834
- package/node/lib/index.js +2028 -1834
- package/package.json +23 -22
- package/CHANGELOG.md +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "msw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.2",
|
|
4
4
|
"description": "Seamless REST/GraphQL API mocking library for browser and Node.js.",
|
|
5
5
|
"main": "lib/umd/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"test:smoke": "config/scripts/smoke.sh",
|
|
20
20
|
"test:ts": "tsc -p test/typings/tsconfig.json",
|
|
21
21
|
"prepare": "yarn simple-git-hooks init",
|
|
22
|
+
"release": "semantic-release",
|
|
22
23
|
"prepublishOnly": "yarn lint && yarn test:unit && yarn build && yarn test:integration",
|
|
23
24
|
"postinstall": "node -e \"try{require('./config/scripts/postinstall')}catch(e){}\""
|
|
24
25
|
},
|
|
@@ -64,16 +65,15 @@
|
|
|
64
65
|
"sideEffects": false,
|
|
65
66
|
"dependencies": {
|
|
66
67
|
"@mswjs/cookies": "^0.1.7",
|
|
67
|
-
"@mswjs/interceptors": "^0.
|
|
68
|
+
"@mswjs/interceptors": "^0.13.5",
|
|
68
69
|
"@open-draft/until": "^1.0.3",
|
|
69
70
|
"@types/cookie": "^0.4.1",
|
|
70
|
-
"@types/
|
|
71
|
-
"@types/js-levenshtein": "^1.1.0",
|
|
71
|
+
"@types/js-levenshtein": "^1.1.1",
|
|
72
72
|
"chalk": "4.1.1",
|
|
73
73
|
"chokidar": "^3.4.2",
|
|
74
|
-
"cookie": "^0.4.
|
|
75
|
-
"graphql": "^
|
|
76
|
-
"headers-
|
|
74
|
+
"cookie": "^0.4.2",
|
|
75
|
+
"graphql": "^16.3.0",
|
|
76
|
+
"headers-polyfill": "^3.0.4",
|
|
77
77
|
"inquirer": "^8.2.0",
|
|
78
78
|
"is-node-process": "^1.0.1",
|
|
79
79
|
"js-levenshtein": "^1.1.6",
|
|
@@ -82,32 +82,32 @@
|
|
|
82
82
|
"statuses": "^2.0.0",
|
|
83
83
|
"strict-event-emitter": "^0.2.0",
|
|
84
84
|
"type-fest": "^1.2.2",
|
|
85
|
-
"yargs": "^17.3.
|
|
85
|
+
"yargs": "^17.3.1"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@babel/core": "^7.
|
|
89
|
-
"@babel/preset-env": "^7.16.
|
|
90
|
-
"@commitlint/cli": "^16.0
|
|
88
|
+
"@babel/core": "^7.17.2",
|
|
89
|
+
"@babel/preset-env": "^7.16.11",
|
|
90
|
+
"@commitlint/cli": "^16.1.0",
|
|
91
91
|
"@commitlint/config-conventional": "^16.0.0",
|
|
92
92
|
"@open-draft/test-server": "^0.2.3",
|
|
93
|
-
"@rollup/plugin-commonjs": "^
|
|
94
|
-
"@rollup/plugin-inject": "^4.0.
|
|
93
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
94
|
+
"@rollup/plugin-inject": "^4.0.4",
|
|
95
95
|
"@rollup/plugin-json": "^4.1.0",
|
|
96
|
-
"@rollup/plugin-node-resolve": "^13.
|
|
97
|
-
"@rollup/plugin-replace": "^3.
|
|
98
|
-
"@types/fs-extra": "^9.0.
|
|
96
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
97
|
+
"@rollup/plugin-replace": "^3.1.0",
|
|
98
|
+
"@types/fs-extra": "^9.0.13",
|
|
99
99
|
"@types/jest": "26",
|
|
100
100
|
"@types/json-bigint": "^1.0.1",
|
|
101
101
|
"@types/node": "^14.14.31",
|
|
102
102
|
"@types/node-fetch": "^2.5.11",
|
|
103
103
|
"@types/puppeteer": "^5.4.4",
|
|
104
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
105
|
-
"@typescript-eslint/parser": "^
|
|
104
|
+
"@typescript-eslint/eslint-plugin": "^5.11.0",
|
|
105
|
+
"@typescript-eslint/parser": "^5.11.0",
|
|
106
106
|
"babel-loader": "^8.2.3",
|
|
107
107
|
"babel-minify": "^0.5.1",
|
|
108
108
|
"commitizen": "^4.2.4",
|
|
109
109
|
"cross-env": "^7.0.3",
|
|
110
|
-
"cross-fetch": "^3.1.
|
|
110
|
+
"cross-fetch": "^3.1.5",
|
|
111
111
|
"cz-conventional-changelog": "3.3.0",
|
|
112
112
|
"eslint": "^7.30.0",
|
|
113
113
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -122,16 +122,17 @@
|
|
|
122
122
|
"prettier": "^2.3.2",
|
|
123
123
|
"regenerator-runtime": "^0.13.9",
|
|
124
124
|
"rimraf": "^3.0.2",
|
|
125
|
-
"rollup": "^2.
|
|
125
|
+
"rollup": "^2.67.2",
|
|
126
126
|
"rollup-plugin-terser": "^7.0.2",
|
|
127
|
-
"rollup-plugin-typescript2": "^0.
|
|
127
|
+
"rollup-plugin-typescript2": "^0.31.2",
|
|
128
|
+
"semantic-release": "^19.0.2",
|
|
128
129
|
"simple-git-hooks": "^2.7.0",
|
|
129
130
|
"ts-jest": "26",
|
|
130
131
|
"ts-loader": "^9.2.6",
|
|
131
132
|
"ts-node": "^10.1.0",
|
|
132
133
|
"typescript": "^4.3.5",
|
|
133
134
|
"url-loader": "^4.1.1",
|
|
134
|
-
"webpack": "^5.
|
|
135
|
+
"webpack": "^5.68.0",
|
|
135
136
|
"webpack-dev-server": "^3.11.2"
|
|
136
137
|
},
|
|
137
138
|
"resolutions": {
|
package/CHANGELOG.md
DELETED