capture-website
Advanced tools
Comparing version 0.6.0 to 0.7.0
{ | ||
"name": "capture-website", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Capture screenshots of websites", | ||
@@ -39,7 +39,7 @@ "license": "MIT", | ||
"file-url": "^3.0.0", | ||
"puppeteer": "^1.20.0", | ||
"puppeteer": "^2.0.0", | ||
"tough-cookie": "^3.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/puppeteer": "^1.12.3", | ||
"@types/puppeteer": "^1.20.2", | ||
"ava": "^2.0.0", | ||
@@ -54,5 +54,5 @@ "create-test-server": "^3.0.1", | ||
"tempy": "^0.3.0", | ||
"tsd": "^0.9.0", | ||
"tsd": "^0.10.0", | ||
"xo": "^0.25.3" | ||
} | ||
} |
@@ -16,3 +16,3 @@ # capture-website [![Build Status](https://travis-ci.com/sindresorhus/capture-website.svg?branch=master)](https://travis-ci.com/sindresorhus/capture-website) | ||
Note to Linux users: If you get a "No usable sandbox!" error, you need to enable [system sandboxing](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#setting-up-chrome-linux-sandbox). | ||
Note to Linux users: If you get a sandbox-related error, you need to enable [system sandboxing](#im-getting-a-sandbox-related-error). | ||
@@ -480,2 +480,23 @@ | ||
### I'm getting a sandbox-related error | ||
If you get an error like `No usable sandbox!` or `Running as root without --no-sandbox is not supported`, you need to properly [set up sandboxing](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#setting-up-chrome-linux-sandbox) on your Linux instance. | ||
Alternatively, if you completely trust the content, you can disable sandboxing (strongly discouraged): | ||
```js | ||
const captureWebsite = require('capture-website'); | ||
(async () => { | ||
await captureWebsite.file('…', '…', { | ||
launchOptions: { | ||
args: [ | ||
'--no-sandbox', | ||
'--disable-setuid-sandbox' | ||
] | ||
} | ||
}); | ||
})(); | ||
``` | ||
### How is this different from your [Pageres](https://github.com/sindresorhus/pageres) project? | ||
@@ -482,0 +503,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31367
509
+ Added@types/mime-types@2.1.4(transitive)
+ Addedagent-base@5.1.1(transitive)
+ Addedhttps-proxy-agent@4.0.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedpuppeteer@2.1.1(transitive)
- Removedagent-base@4.3.0(transitive)
- Removeddebug@3.2.7(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedes6-promisify@5.0.0(transitive)
- Removedhttps-proxy-agent@2.2.4(transitive)
- Removedpuppeteer@1.20.0(transitive)
Updatedpuppeteer@^2.0.0