playwright-msw
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,2 +5,12 @@ # Changelog | ||
## [1.0.3](https://github.com/valendres/playwright-msw/compare/playwright-msw@1.0.2...playwright-msw@1.0.3) "playwright-msw" (2022-10-28)<a name="1.0.3"></a> | ||
### Bug Fixes | ||
* trying to get headers after page is closed (#27) ([d222fbb](https://github.com/valendres/playwright-msw/commits/d222fbb)) | ||
* cookies not being sent for webkit ([26d3902](https://github.com/valendres/playwright-msw/commits/26d3902)) | ||
## [1.0.2](https://github.com/valendres/playwright-msw/compare/playwright-msw@1.0.1...playwright-msw@1.0.2) "playwright-msw" (2022-10-04)<a name="1.0.2"></a> | ||
@@ -7,0 +17,0 @@ |
@@ -28,3 +28,2 @@ "use strict"; | ||
headers, | ||
credentials: "omit", | ||
body: postData ? Buffer.from(postData) : undefined, | ||
@@ -55,5 +54,5 @@ }); | ||
let cachedHandlers = originalHandlers; | ||
yield page.route("**/*", (route) => { | ||
yield page.route("**/*", (route) => __awaiter(void 0, void 0, void 0, function* () { | ||
try { | ||
void handleRoute(route, cachedHandlers); | ||
yield handleRoute(route, cachedHandlers); | ||
} | ||
@@ -66,3 +65,3 @@ catch (error) { | ||
} | ||
}); | ||
})); | ||
return { | ||
@@ -69,0 +68,0 @@ use: (...customHandlers) => __awaiter(void 0, void 0, void 0, function* () { |
{ | ||
"name": "playwright-msw", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A Mock Service Worker API for Playwright.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
16975
141