arn-browser 0.1.45 → 0.1.47

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": "arn-browser",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "description": "A lightweight, browser autmation helper.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -497,7 +497,7 @@ export async function pwRoute(options = {}) {
497
497
  currentConfig.useFullUrl,
498
498
  currentConfig.logger,
499
499
  agentToUse,
500
- currentConfig.stripGotHeaders,
500
+ isXhrOrFetch ? false : currentConfig.stripGotHeaders,
501
501
  currentConfig.stripGotLogger
502
502
  );
503
503
 
@@ -1,4 +1,4 @@
1
- import ProxyChain from "proxy-chain";
1
+ import { Server } from "proxy-chain";
2
2
  import net from "net";
3
3
  import https from "https";
4
4
  import http from "http";
@@ -269,7 +269,7 @@ export async function startProxyServer({
269
269
  return null;
270
270
  }
271
271
 
272
- server = new ProxyChain.Server({
272
+ server = new Server({
273
273
  port: candidatePort,
274
274
  host: "127.0.0.1",
275
275
  verbose: debug,
@@ -504,7 +504,7 @@ export async function ppRoute(options = {}) {
504
504
  currentConfig.useFullUrl,
505
505
  currentConfig.logger,
506
506
  agentToUse,
507
- currentConfig.stripGotHeaders,
507
+ isXhrOrFetch ? false : currentConfig.stripGotHeaders,
508
508
  currentConfig.stripGotLogger
509
509
  );
510
510