bits-to-dead-trees 2.2.1 → 2.3.0
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/.tool-versions +1 -1
- package/CHANGELOG.md +18 -0
- package/Dockerfile +1 -1
- package/package.json +8 -8
- package/pdf_request_body.json +15 -11
package/.tool-versions
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
nodejs 18.
|
|
1
|
+
nodejs 18.16.0
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# bits-to-dead-trees
|
|
2
2
|
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5e11653`](https://github.com/rmehner/bits-to-dead-trees/commit/5e11653dd4b23c9b795071e404a4c22080202ca1) Thanks [@rmehner](https://github.com/rmehner)! - Update schemas to allow new origin option for HTTPCredentials in playwright.
|
|
8
|
+
|
|
9
|
+
- [`2a46e1b`](https://github.com/rmehner/bits-to-dead-trees/commit/2a46e1b99a70e1c02365d97cf1af795a5e2a04eb) Thanks [@rmehner](https://github.com/rmehner)! - Upgrade to Playwright 1.33.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`4b628d1`](https://github.com/rmehner/bits-to-dead-trees/commit/4b628d1eea285e48a2c9fe276835dfb297d4546e) Thanks [@rmehner](https://github.com/rmehner)! - Upgrade fastify to 4.17.0
|
|
14
|
+
|
|
15
|
+
## 2.2.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#182](https://github.com/rmehner/bits-to-dead-trees/pull/182) [`89173ef`](https://github.com/rmehner/bits-to-dead-trees/commit/89173ef13ea2b5d17d21dff5f02a5eee0e3c486b) Thanks [@depfu](https://github.com/apps/depfu)! - Upgrade to Playwright 1.32.3
|
|
20
|
+
|
|
3
21
|
## 2.2.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/Dockerfile
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bits-to-dead-trees",
|
|
3
3
|
"author": "Robin Mehner <robin@coding-robin.de>",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"description": "Turn HTML into PDF files",
|
|
6
6
|
"repository": "github:rmehner/bits-to-dead-trees",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"ts-check": "npx tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"fastify": "^4.
|
|
34
|
-
"playwright-core": "^1.
|
|
33
|
+
"fastify": "^4.17.0",
|
|
34
|
+
"playwright-core": "^1.33.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@changesets/changelog-github": "^0.4.8",
|
|
38
38
|
"@changesets/cli": "^2.26.1",
|
|
39
|
-
"@types/lodash": "^4.14.
|
|
40
|
-
"eslint": "^8.
|
|
39
|
+
"@types/lodash": "^4.14.194",
|
|
40
|
+
"eslint": "^8.39.0",
|
|
41
41
|
"eslint-config-prettier": "^8.8.0",
|
|
42
42
|
"nodemon": "^2.0.22",
|
|
43
43
|
"pino-pretty": "^10.0.0",
|
|
44
|
-
"prettier": "^2.8.
|
|
44
|
+
"prettier": "^2.8.8",
|
|
45
45
|
"tslib": "^2.5.0",
|
|
46
|
-
"typescript-json-schema": "^0.
|
|
47
|
-
"vitest": "^0.
|
|
46
|
+
"typescript-json-schema": "^0.56.0",
|
|
47
|
+
"vitest": "^0.30.1"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/pdf_request_body.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See\n[page.emulateMedia([options])](https://playwright.dev/docs/api/class-page#page-emulate-media) for more details.\nPassing `null` resets emulation to system defaults. Defaults to `'light'`."
|
|
31
31
|
},
|
|
32
32
|
"deviceScaleFactor": {
|
|
33
|
-
"description": "Specify device scale factor (can be thought of as dpr). Defaults to `1`.",
|
|
33
|
+
"description": "Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn more about\n[emulating devices with device scale factor](https://playwright.dev/docs/emulation#devices).",
|
|
34
34
|
"type": "number"
|
|
35
35
|
},
|
|
36
36
|
"extraHTTPHeaders": {
|
|
@@ -56,27 +56,27 @@
|
|
|
56
56
|
"$ref": "#/definitions/Geolocation"
|
|
57
57
|
},
|
|
58
58
|
"hasTouch": {
|
|
59
|
-
"description": "Specifies if viewport supports touch events. Defaults to false.",
|
|
59
|
+
"description": "Specifies if viewport supports touch events. Defaults to false. Learn more about\n[mobile emulation](https://playwright.dev/docs/emulation#devices).",
|
|
60
60
|
"type": "boolean"
|
|
61
61
|
},
|
|
62
62
|
"httpCredentials": {
|
|
63
63
|
"$ref": "#/definitions/HTTPCredentials",
|
|
64
|
-
"description": "Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication)."
|
|
64
|
+
"description": "Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). If no\norigin is specified, the username and password are sent to any servers upon unauthorized responses."
|
|
65
65
|
},
|
|
66
66
|
"ignoreHTTPSErrors": {
|
|
67
67
|
"description": "Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.",
|
|
68
68
|
"type": "boolean"
|
|
69
69
|
},
|
|
70
70
|
"isMobile": {
|
|
71
|
-
"description": "Whether the `meta viewport` tag is taken into account and touch events are enabled. Defaults to `false
|
|
71
|
+
"description": "Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,\nso you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more\nabout [mobile emulation](https://playwright.dev/docs/emulation#isMobile).",
|
|
72
72
|
"type": "boolean"
|
|
73
73
|
},
|
|
74
74
|
"javaScriptEnabled": {
|
|
75
|
-
"description": "Whether or not to enable JavaScript in the context. Defaults to `true`.",
|
|
75
|
+
"description": "Whether or not to enable JavaScript in the context. Defaults to `true`. Learn more about\n[disabling JavaScript](https://playwright.dev/docs/emulation#javascript-enabled).",
|
|
76
76
|
"type": "boolean"
|
|
77
77
|
},
|
|
78
78
|
"locale": {
|
|
79
|
-
"description": "Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value,\n`Accept-Language` request header value as well as number and date formatting rules.",
|
|
79
|
+
"description": "Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value,\n`Accept-Language` request header value as well as number and date formatting rules. Learn more about emulation in\nour [emulation guide](https://playwright.dev/docs/emulation#locale--timezone).",
|
|
80
80
|
"type": "string"
|
|
81
81
|
},
|
|
82
82
|
"logger": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"description": "Logger sink for Playwright logging."
|
|
85
85
|
},
|
|
86
86
|
"offline": {
|
|
87
|
-
"description": "Whether to emulate network being offline. Defaults to `false`.",
|
|
87
|
+
"description": "Whether to emulate network being offline. Defaults to `false`. Learn more about\n[network emulation](https://playwright.dev/docs/emulation#offline).",
|
|
88
88
|
"type": "boolean"
|
|
89
89
|
},
|
|
90
90
|
"permissions": {
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
"type": "string"
|
|
309
309
|
}
|
|
310
310
|
],
|
|
311
|
-
"description": "
|
|
311
|
+
"description": "Learn more about [storage state and auth](https://playwright.dev/docs/auth).\n\nPopulates context with given storage state. This option can be used to initialize context with logged-in\ninformation obtained via\n[browserContext.storageState([options])](https://playwright.dev/docs/api/class-browsercontext#browser-context-storage-state).\nEither a path to the file with saved storage, or an object with the following fields:"
|
|
312
312
|
},
|
|
313
313
|
"strictSelectors": {
|
|
314
314
|
"description": "If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on\nselectors that imply single target DOM element will throw when more than one element matches the selector. This\noption does not affect any Locator APIs (Locators are always strict). See [Locator] to learn more about the strict\nmode.",
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
"type": "null"
|
|
350
350
|
}
|
|
351
351
|
],
|
|
352
|
-
"description": "Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. `null`
|
|
352
|
+
"description": "Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use `null` to disable the consistent\nviewport emulation. Learn more about [viewport emulation](https://playwright.dev/docs/emulation#viewport).\n\n**NOTE** The `null` value opts out from the default presets, makes viewport depend on the host window size defined\nby the operating system. It makes the execution of the tests non-deterministic."
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
355
|
"type": "object"
|
|
@@ -376,6 +376,10 @@
|
|
|
376
376
|
"HTTPCredentials": {
|
|
377
377
|
"additionalProperties": false,
|
|
378
378
|
"properties": {
|
|
379
|
+
"origin": {
|
|
380
|
+
"description": "Restrain sending http credentials on specific origin (scheme://host:port).",
|
|
381
|
+
"type": "string"
|
|
382
|
+
},
|
|
379
383
|
"password": {
|
|
380
384
|
"type": "string"
|
|
381
385
|
},
|
|
@@ -472,11 +476,11 @@
|
|
|
472
476
|
"type": "string"
|
|
473
477
|
},
|
|
474
478
|
"timeout": {
|
|
475
|
-
"description": "Maximum operation time in milliseconds
|
|
479
|
+
"description": "Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via\n`navigationTimeout` option in the config, or by using the\n[browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-navigation-timeout),\n[browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout),\n[page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-navigation-timeout)\nor [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.",
|
|
476
480
|
"type": "number"
|
|
477
481
|
},
|
|
478
482
|
"waitUntil": {
|
|
479
|
-
"description": "When to consider operation succeeded, defaults to `load`. Events can be either:\n- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.\n- `'load'` - consider operation to be finished when the `load` event is fired.\n- `'networkidle'` - consider operation to be finished when there are no network connections for
|
|
483
|
+
"description": "When to consider operation succeeded, defaults to `load`. Events can be either:\n- `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.\n- `'load'` - consider operation to be finished when the `load` event is fired.\n- `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for\n at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.\n- `'commit'` - consider operation to be finished when network response is received and the document started\n loading.",
|
|
480
484
|
"enum": ["commit", "domcontentloaded", "load", "networkidle"],
|
|
481
485
|
"type": "string"
|
|
482
486
|
}
|