msw 0.45.0 → 0.47.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,9 +1,21 @@
1
1
  {
2
2
  "name": "msw",
3
- "version": "0.45.0",
3
+ "version": "0.47.0",
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
  },
@@ -77,6 +89,7 @@
77
89
  "chalk": "4.1.1",
78
90
  "chokidar": "^3.4.2",
79
91
  "cookie": "^0.4.2",
92
+ "graphql": "^15.0.0 || ^16.0.0",
80
93
  "headers-polyfill": "^3.0.4",
81
94
  "inquirer": "^8.2.0",
82
95
  "is-node-process": "^1.0.1",
@@ -86,7 +99,7 @@
86
99
  "path-to-regexp": "^6.2.0",
87
100
  "statuses": "^2.0.0",
88
101
  "strict-event-emitter": "^0.2.0",
89
- "type-fest": "^1.2.2",
102
+ "type-fest": "^2.19.0",
90
103
  "yargs": "^17.3.1"
91
104
  },
92
105
  "devDependencies": {
@@ -115,7 +128,6 @@
115
128
  "eslint-plugin-prettier": "^3.4.0",
116
129
  "fs-extra": "^10.0.0",
117
130
  "fs-teardown": "^0.3.0",
118
- "graphql": "^16.3.0",
119
131
  "jest": "26",
120
132
  "json-bigint": "^1.0.0",
121
133
  "lint-staged": "^11.0.1",
@@ -128,19 +140,15 @@
128
140
  "ts-loader": "^9.2.6",
129
141
  "ts-node": "^10.1.0",
130
142
  "tsup": "^5.12.8",
131
- "typescript": "^4.7.2",
143
+ "typescript": "^4.8.2",
132
144
  "url-loader": "^4.1.1",
133
145
  "webpack": "^5.68.0",
134
146
  "webpack-dev-server": "^3.11.2"
135
147
  },
136
148
  "peerDependencies": {
137
- "graphql": "^15.0.0 || ^16.0.0",
138
- "typescript": ">= 4.2.x <= 4.7.x"
149
+ "typescript": ">= 4.2.x <= 4.8.x"
139
150
  },
140
151
  "peerDependenciesMeta": {
141
- "graphql": {
142
- "optional": true
143
- },
144
152
  "typescript": {
145
153
  "optional": true
146
154
  }