unprint 0.18.6 → 0.18.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/app.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unprint",
3
- "version": "0.18.6",
3
+ "version": "0.18.7",
4
4
  "description": "Simplify common web scraping tasks while staying in control of the data.",
5
5
  "main": "src/app.js",
6
6
  "scripts": {},
package/src/app.js CHANGED
@@ -1434,6 +1434,7 @@ async function request(url, body, customOptions = {}, method = 'GET', redirects
1434
1434
  method,
1435
1435
  body: curatedBody.body,
1436
1436
  headers,
1437
+ redirect: options.followRedirects ? 'follow' : 'manual',
1437
1438
  signal: options.abortSignal,
1438
1439
  })).catch((error) => ({ // tends to happen when proxy can't reach host
1439
1440
  status: 500,