unprint 0.19.6 → 0.19.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.
- package/.nvmrc +1 -0
- package/README.md +1 -0
- package/package.json +1 -1
- package/src/app.js +0 -1
- package/src/server.js +1 -1
- package/tests/remote.js +6 -0
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//registry.npmjs.org/:_authToken=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
|
package/README.md
CHANGED
|
@@ -306,6 +306,7 @@ Environment variables (optional, .env is supported):
|
|
|
306
306
|
* `UNPRINT_KEY`: Key required for authentication
|
|
307
307
|
* `UNPRINT_MEMORY_LIMIT`: Memory threshold at which to cycle the browser in MB
|
|
308
308
|
* `UNPRINT_LOG_LEVEL`: Verbosity of the console output, `info` (default), `debug`, `silly`, `warn`, `error`
|
|
309
|
+
* `UNPRINT_HEADLESS`: Hide the browser window, `1` (yes, default) or `0` (no)
|
|
309
310
|
|
|
310
311
|
#### Client
|
|
311
312
|
```
|
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -1309,7 +1309,6 @@ async function closeAllBrowsers() {
|
|
|
1309
1309
|
|
|
1310
1310
|
async function closeBrowser(client, options = {}) {
|
|
1311
1311
|
if (options.client === null // this browser is single-use
|
|
1312
|
-
|| client.isRemote
|
|
1313
1312
|
|| (client.retired && client.active === 0)) { // this browser is retired to minimize garbage build-up
|
|
1314
1313
|
// this browser won't be reused, browser close DOES NOT automatically close context https://github.com/microsoft/playwright/issues/15163
|
|
1315
1314
|
await client.context.close();
|
package/src/server.js
CHANGED
package/tests/remote.js
CHANGED