msw 0.36.4 → 0.38.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,6 +1,6 @@
1
1
  {
2
2
  "name": "msw",
3
- "version": "0.36.4",
3
+ "version": "0.38.0",
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",
@@ -18,9 +18,8 @@
18
18
  "test:integration": "jest --config=test/jest.config.js --maxWorkers=3",
19
19
  "test:smoke": "config/scripts/smoke.sh",
20
20
  "test:ts": "tsc -p test/typings/tsconfig.json",
21
- "test:focused": "node node_modules/ts-node/dist/bin.js --project=test/tsconfig.json test/focusedTest.ts",
21
+ "prepare": "yarn simple-git-hooks init",
22
22
  "prepublishOnly": "yarn lint && yarn test:unit && yarn build && yarn test:integration",
23
- "prepare": "husky install",
24
23
  "postinstall": "node -e \"try{require('./config/scripts/postinstall')}catch(e){}\""
25
24
  },
26
25
  "lint-staged": {
@@ -64,73 +63,82 @@
64
63
  ],
65
64
  "sideEffects": false,
66
65
  "dependencies": {
67
- "@mswjs/cookies": "^0.1.6",
68
- "@mswjs/interceptors": "^0.12.7",
66
+ "@mswjs/cookies": "^0.1.7",
67
+ "@mswjs/interceptors": "^0.13.3",
69
68
  "@open-draft/until": "^1.0.3",
70
69
  "@types/cookie": "^0.4.1",
71
- "@types/inquirer": "^8.1.3",
72
- "@types/js-levenshtein": "^1.1.0",
70
+ "@types/js-levenshtein": "^1.1.1",
73
71
  "chalk": "4.1.1",
74
72
  "chokidar": "^3.4.2",
75
- "cookie": "^0.4.1",
76
- "graphql": "^15.5.1",
77
- "headers-utils": "^3.0.2",
73
+ "cookie": "^0.4.2",
74
+ "graphql": "^16.3.0",
75
+ "headers-polyfill": "^3.0.3",
78
76
  "inquirer": "^8.2.0",
79
77
  "is-node-process": "^1.0.1",
80
78
  "js-levenshtein": "^1.1.6",
81
- "node-fetch": "^2.6.1",
79
+ "node-fetch": "^2.6.7",
82
80
  "path-to-regexp": "^6.2.0",
83
81
  "statuses": "^2.0.0",
84
82
  "strict-event-emitter": "^0.2.0",
85
83
  "type-fest": "^1.2.2",
86
- "yargs": "^17.3.0"
84
+ "yargs": "^17.3.1"
87
85
  },
88
86
  "devDependencies": {
89
- "@babel/core": "^7.16.0",
90
- "@babel/preset-env": "^7.16.4",
87
+ "@babel/core": "^7.17.2",
88
+ "@babel/preset-env": "^7.16.11",
89
+ "@commitlint/cli": "^16.1.0",
90
+ "@commitlint/config-conventional": "^16.0.0",
91
91
  "@open-draft/test-server": "^0.2.3",
92
- "@rollup/plugin-commonjs": "^19.0.0",
93
- "@rollup/plugin-inject": "^4.0.3",
92
+ "@rollup/plugin-commonjs": "^21.0.1",
93
+ "@rollup/plugin-inject": "^4.0.4",
94
94
  "@rollup/plugin-json": "^4.1.0",
95
- "@rollup/plugin-node-resolve": "^13.0.6",
96
- "@rollup/plugin-replace": "^3.0.0",
97
- "@types/fs-extra": "^9.0.12",
95
+ "@rollup/plugin-node-resolve": "^13.1.3",
96
+ "@rollup/plugin-replace": "^3.1.0",
97
+ "@types/fs-extra": "^9.0.13",
98
98
  "@types/jest": "26",
99
99
  "@types/json-bigint": "^1.0.1",
100
100
  "@types/node": "^14.14.31",
101
101
  "@types/node-fetch": "^2.5.11",
102
102
  "@types/puppeteer": "^5.4.4",
103
- "@typescript-eslint/eslint-plugin": "^4.28.3",
104
- "@typescript-eslint/parser": "^4.28.3",
103
+ "@typescript-eslint/eslint-plugin": "^5.11.0",
104
+ "@typescript-eslint/parser": "^5.11.0",
105
105
  "babel-loader": "^8.2.3",
106
106
  "babel-minify": "^0.5.1",
107
+ "commitizen": "^4.2.4",
107
108
  "cross-env": "^7.0.3",
108
- "cross-fetch": "^3.1.4",
109
+ "cross-fetch": "^3.1.5",
110
+ "cz-conventional-changelog": "3.3.0",
109
111
  "eslint": "^7.30.0",
110
112
  "eslint-config-prettier": "^8.3.0",
111
113
  "eslint-plugin-prettier": "^3.4.0",
112
114
  "fs-extra": "^10.0.0",
113
115
  "fs-teardown": "^0.3.0",
114
- "husky": "^5.1.1",
115
116
  "jest": "26",
116
117
  "json-bigint": "^1.0.0",
117
118
  "lint-staged": "^11.0.1",
119
+ "outvariant": "^1.2.1",
118
120
  "page-with": "^0.5.0",
119
121
  "prettier": "^2.3.2",
120
122
  "regenerator-runtime": "^0.13.9",
121
123
  "rimraf": "^3.0.2",
122
- "rollup": "^2.60.2",
124
+ "rollup": "^2.67.2",
123
125
  "rollup-plugin-terser": "^7.0.2",
124
- "rollup-plugin-typescript2": "^0.30.0",
126
+ "rollup-plugin-typescript2": "^0.31.2",
127
+ "simple-git-hooks": "^2.7.0",
125
128
  "ts-jest": "26",
126
129
  "ts-loader": "^9.2.6",
127
130
  "ts-node": "^10.1.0",
128
131
  "typescript": "^4.3.5",
129
132
  "url-loader": "^4.1.1",
130
- "webpack": "^5.64.4",
133
+ "webpack": "^5.68.0",
131
134
  "webpack-dev-server": "^3.11.2"
132
135
  },
133
136
  "resolutions": {
134
137
  "chokidar": "3.4.1"
138
+ },
139
+ "config": {
140
+ "commitizen": {
141
+ "path": "./node_modules/cz-conventional-changelog"
142
+ }
135
143
  }
136
144
  }