test-proxy-recorder 0.3.5 → 0.3.6
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 +295 -100
- package/dist/{index-BlBWqSE4.d.cts → index-BloXCw69.d.cts} +4 -0
- package/dist/{index-BlBWqSE4.d.ts → index-BloXCw69.d.ts} +4 -0
- package/dist/index.cjs +488 -400
- package/dist/index.d.cts +10 -42
- package/dist/index.d.ts +10 -42
- package/dist/index.mjs +486 -398
- package/dist/playwright/index.cjs +8 -0
- package/dist/playwright/index.d.cts +1 -1
- package/dist/playwright/index.d.ts +1 -1
- package/dist/playwright/index.mjs +8 -0
- package/dist/proxy.js +478 -398
- package/package.json +13 -17
- package/skills/nextjs-ssr/SKILL.md +377 -0
- package/skills/proxy-setup/SKILL.md +458 -0
|
@@ -176,6 +176,14 @@ var playwrightProxy = {
|
|
|
176
176
|
await page.setExtraHTTPHeaders({
|
|
177
177
|
[RECORDING_ID_HEADER]: sessionId
|
|
178
178
|
});
|
|
179
|
+
const fallbackProxyPort = getProxyPort();
|
|
180
|
+
await page.context().addCookies([
|
|
181
|
+
{
|
|
182
|
+
name: "proxy-recording-id",
|
|
183
|
+
value: encodeURIComponent(sessionId),
|
|
184
|
+
url: `http://localhost:${fallbackProxyPort}`
|
|
185
|
+
}
|
|
186
|
+
]);
|
|
179
187
|
await setProxyMode(mode, sessionId, timeout);
|
|
180
188
|
if (clientSideOptions?.url) {
|
|
181
189
|
await setupClientSideRecording(
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@playwright/test';
|
|
2
|
-
export { f as ClientSideRecordingOptions, P as PlaywrightTestInfo, e as cleanupSession, g as generateSessionId, p as playwrightProxy, s as setProxyMode, b as startRecording, c as startReplay, d as stopProxy } from '../index-
|
|
2
|
+
export { f as ClientSideRecordingOptions, P as PlaywrightTestInfo, e as cleanupSession, g as generateSessionId, p as playwrightProxy, s as setProxyMode, b as startRecording, c as startReplay, d as stopProxy } from '../index-BloXCw69.cjs';
|
|
3
3
|
import 'node:http';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@playwright/test';
|
|
2
|
-
export { f as ClientSideRecordingOptions, P as PlaywrightTestInfo, e as cleanupSession, g as generateSessionId, p as playwrightProxy, s as setProxyMode, b as startRecording, c as startReplay, d as stopProxy } from '../index-
|
|
2
|
+
export { f as ClientSideRecordingOptions, P as PlaywrightTestInfo, e as cleanupSession, g as generateSessionId, p as playwrightProxy, s as setProxyMode, b as startRecording, c as startReplay, d as stopProxy } from '../index-BloXCw69.js';
|
|
3
3
|
import 'node:http';
|
|
@@ -170,6 +170,14 @@ var playwrightProxy = {
|
|
|
170
170
|
await page.setExtraHTTPHeaders({
|
|
171
171
|
[RECORDING_ID_HEADER]: sessionId
|
|
172
172
|
});
|
|
173
|
+
const fallbackProxyPort = getProxyPort();
|
|
174
|
+
await page.context().addCookies([
|
|
175
|
+
{
|
|
176
|
+
name: "proxy-recording-id",
|
|
177
|
+
value: encodeURIComponent(sessionId),
|
|
178
|
+
url: `http://localhost:${fallbackProxyPort}`
|
|
179
|
+
}
|
|
180
|
+
]);
|
|
173
181
|
await setProxyMode(mode, sessionId, timeout);
|
|
174
182
|
if (clientSideOptions?.url) {
|
|
175
183
|
await setupClientSideRecording(
|