bits-to-dead-trees 2.30.1 → 2.31.1
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/.github/dependabot.yml +4 -0
- package/.github/workflows/build-docker-image-of-release.yml +57 -18
- package/.github/workflows/check-json-schema.yml +21 -5
- package/.github/workflows/ci.yml +8 -2
- package/.github/workflows/keep-versions-in-sync.yml +36 -10
- package/.github/workflows/release.yml +13 -8
- package/.github/workflows/run-prettier-on-prettier-updates.yml +23 -6
- package/.node-version +1 -1
- package/CHANGELOG.md +12 -0
- package/Dockerfile +1 -1
- package/README.md +1 -1
- package/package.json +18 -15
- package/pdf_request_body.json +37 -165
package/.github/dependabot.yml
CHANGED
|
@@ -10,35 +10,57 @@ on:
|
|
|
10
10
|
required: true
|
|
11
11
|
type: string
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
permissions: {}
|
|
14
|
+
|
|
15
|
+
concurrency:
|
|
16
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
17
|
+
cancel-in-progress: false
|
|
14
18
|
|
|
15
19
|
jobs:
|
|
16
20
|
build:
|
|
21
|
+
name: Build and push Docker image
|
|
17
22
|
runs-on: ubuntu-latest
|
|
18
23
|
permissions:
|
|
19
|
-
contents: write
|
|
20
|
-
packages: write
|
|
21
|
-
pull-requests: write
|
|
24
|
+
contents: write # Required to commit README updates and push the PR branch.
|
|
25
|
+
packages: write # Required to publish the image to GitHub Container Registry.
|
|
26
|
+
pull-requests: write # Required to open or update the README pull request.
|
|
22
27
|
steps:
|
|
23
28
|
- name: Set tag name
|
|
24
|
-
|
|
29
|
+
env:
|
|
30
|
+
INPUT_REF_NAME: ${{ inputs.ref_name }}
|
|
31
|
+
RELEASE_REF_NAME: ${{ github.ref_name }}
|
|
32
|
+
run: |
|
|
33
|
+
tag_name="${INPUT_REF_NAME:-${RELEASE_REF_NAME}}"
|
|
34
|
+
if [ -z "${tag_name}" ]; then
|
|
35
|
+
echo "Unable to determine tag name" >&2
|
|
36
|
+
exit 1
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
if [[ "${tag_name}" == *$'\n'* ]] || [[ "${tag_name}" == *$'\r'* ]]; then
|
|
40
|
+
echo "Tag name must not contain newlines" >&2
|
|
41
|
+
exit 1
|
|
42
|
+
fi
|
|
43
|
+
|
|
44
|
+
echo "TAG_NAME=${tag_name}" >> "${GITHUB_ENV}"
|
|
45
|
+
|
|
25
46
|
- name: Checkout Repo
|
|
26
|
-
uses: actions/checkout@
|
|
47
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
27
48
|
with:
|
|
28
49
|
ref: ${{ env.TAG_NAME }}
|
|
50
|
+
persist-credentials: false
|
|
29
51
|
|
|
30
52
|
- name: Login to GitHub Container Registry
|
|
31
|
-
uses: docker/login-action@
|
|
53
|
+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
|
|
32
54
|
with:
|
|
33
55
|
registry: ghcr.io
|
|
34
56
|
username: ${{ github.repository_owner }}
|
|
35
57
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
36
58
|
|
|
37
59
|
- name: Set up Docker Buildx
|
|
38
|
-
uses: docker/setup-buildx-action@
|
|
60
|
+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
|
39
61
|
|
|
40
62
|
- name: Build and push builder image
|
|
41
|
-
uses: docker/build-push-action@
|
|
63
|
+
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7
|
|
42
64
|
with:
|
|
43
65
|
file: Dockerfile
|
|
44
66
|
push: true
|
|
@@ -49,14 +71,31 @@ jobs:
|
|
|
49
71
|
|
|
50
72
|
- name: Update version in README
|
|
51
73
|
run: |
|
|
52
|
-
sed -i 's|image: ghcr.io/rmehner/bits-to-dead-trees:v.*|image: ghcr.io/rmehner/bits-to-dead-trees:${
|
|
74
|
+
sed -i 's|image: ghcr.io/rmehner/bits-to-dead-trees:v.*|image: ghcr.io/rmehner/bits-to-dead-trees:${TAG_NAME}|' README.md
|
|
53
75
|
|
|
54
76
|
- name: Create Pull Request
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
77
|
+
env:
|
|
78
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
79
|
+
TAG_NAME: ${{ env.TAG_NAME }}
|
|
80
|
+
run: |
|
|
81
|
+
if [ -z "$(git status --porcelain README.md)" ]; then
|
|
82
|
+
exit 0
|
|
83
|
+
fi
|
|
84
|
+
|
|
85
|
+
branch_tag="${TAG_NAME//[^A-Za-z0-9._-]/-}"
|
|
86
|
+
branch_name="update-docker-image-${branch_tag}"
|
|
87
|
+
title="🤖 Update version in README after release"
|
|
88
|
+
body="Updates the referenced docker image version in the README to ${TAG_NAME}"
|
|
89
|
+
|
|
90
|
+
git config user.name "github-actions[bot]"
|
|
91
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
92
|
+
git checkout -B "${branch_name}"
|
|
93
|
+
git add README.md
|
|
94
|
+
git commit -m "🤖 Update version of docker image in README to ${TAG_NAME}"
|
|
95
|
+
git push --force-with-lease "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${branch_name}"
|
|
96
|
+
|
|
97
|
+
if gh pr view "${branch_name}" --json number --jq .number >/dev/null 2>&1; then
|
|
98
|
+
gh pr edit "${branch_name}" --title "${title}" --body "${body}"
|
|
99
|
+
else
|
|
100
|
+
gh pr create --base main --head "${branch_name}" --title "${title}" --body "${body}"
|
|
101
|
+
fi
|
|
@@ -2,19 +2,26 @@ name: Check JSON schema
|
|
|
2
2
|
|
|
3
3
|
on: push
|
|
4
4
|
|
|
5
|
+
permissions: {}
|
|
6
|
+
|
|
5
7
|
concurrency:
|
|
6
8
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
7
9
|
cancel-in-progress: true
|
|
8
10
|
|
|
9
11
|
jobs:
|
|
10
12
|
check-json-schema:
|
|
13
|
+
name: Check JSON schema
|
|
11
14
|
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write # Required to commit schema updates back to the current branch.
|
|
12
17
|
steps:
|
|
13
18
|
- name: Checkout Repo
|
|
14
|
-
uses: actions/checkout@
|
|
19
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
20
|
+
with:
|
|
21
|
+
persist-credentials: false
|
|
15
22
|
|
|
16
23
|
- name: Set up Node
|
|
17
|
-
uses: actions/setup-node@
|
|
24
|
+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
18
25
|
with:
|
|
19
26
|
node-version-file: .node-version
|
|
20
27
|
cache: npm
|
|
@@ -26,6 +33,15 @@ jobs:
|
|
|
26
33
|
run: npm run update-schemas
|
|
27
34
|
|
|
28
35
|
- name: Commit schema changes
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
env:
|
|
37
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
38
|
+
run: |
|
|
39
|
+
if [ -z "$(git status --porcelain)" ]; then
|
|
40
|
+
exit 0
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
git config user.name "github-actions[bot]"
|
|
44
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
45
|
+
git add .
|
|
46
|
+
git commit -m "🤖 Update schema to match Playwright version"
|
|
47
|
+
git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -2,19 +2,25 @@ name: CI
|
|
|
2
2
|
|
|
3
3
|
on: push
|
|
4
4
|
|
|
5
|
+
permissions:
|
|
6
|
+
contents: read # Required to check out repository contents.
|
|
7
|
+
|
|
5
8
|
concurrency:
|
|
6
9
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
7
10
|
cancel-in-progress: true
|
|
8
11
|
|
|
9
12
|
jobs:
|
|
10
13
|
ci:
|
|
14
|
+
name: CI
|
|
11
15
|
runs-on: ubuntu-latest
|
|
12
16
|
steps:
|
|
13
17
|
- name: Checkout Repo
|
|
14
|
-
uses: actions/checkout@
|
|
18
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
19
|
+
with:
|
|
20
|
+
persist-credentials: false
|
|
15
21
|
|
|
16
22
|
- name: Set up Node
|
|
17
|
-
uses: actions/setup-node@
|
|
23
|
+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
18
24
|
with:
|
|
19
25
|
node-version-file: .node-version
|
|
20
26
|
cache: npm
|
|
@@ -6,29 +6,55 @@ on:
|
|
|
6
6
|
branches:
|
|
7
7
|
- "depfu/update/npm/playwright-core-**"
|
|
8
8
|
|
|
9
|
+
permissions: {}
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
9
15
|
jobs:
|
|
10
16
|
sync-node-version:
|
|
17
|
+
name: Keep versions in sync
|
|
11
18
|
runs-on: ubuntu-latest
|
|
12
19
|
permissions:
|
|
13
|
-
contents: write
|
|
20
|
+
contents: write # Required to commit version sync updates back to the current branch.
|
|
14
21
|
steps:
|
|
15
22
|
- name: Checkout Repo
|
|
16
|
-
uses: actions/checkout@
|
|
23
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
17
24
|
with:
|
|
18
25
|
ref: ${{ github.head_ref }}
|
|
26
|
+
persist-credentials: false
|
|
19
27
|
|
|
20
28
|
- name: Sync .node-version with the one that Playwright is using
|
|
21
29
|
run: .github/bin/sync-node-version-from-playwright
|
|
22
30
|
|
|
23
|
-
- name: Commit changes
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
- name: Commit .node-version changes
|
|
32
|
+
env:
|
|
33
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
34
|
+
run: |
|
|
35
|
+
if [ -z "$(git status --porcelain)" ]; then
|
|
36
|
+
exit 0
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
git config user.name "github-actions[bot]"
|
|
40
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
41
|
+
git add .
|
|
42
|
+
git commit -m "🤖 Update .node-version after playwright update"
|
|
43
|
+
git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
|
|
27
44
|
|
|
28
45
|
- name: Sync Playwright version in dockerfile with the one from package.json
|
|
29
46
|
run: .github/bin/sync-playwright-version-to-dockerfile
|
|
30
47
|
|
|
31
|
-
- name: Commit changes
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
48
|
+
- name: Commit Dockerfile changes
|
|
49
|
+
env:
|
|
50
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
51
|
+
run: |
|
|
52
|
+
if [ -z "$(git status --porcelain)" ]; then
|
|
53
|
+
exit 0
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
git config user.name "github-actions[bot]"
|
|
57
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
58
|
+
git add .
|
|
59
|
+
git commit -m "🤖 Update playwright-core in Dockerfile after depfu update"
|
|
60
|
+
git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
|
|
@@ -5,27 +5,33 @@ on:
|
|
|
5
5
|
branches:
|
|
6
6
|
- main
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
permissions: {}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: false
|
|
13
13
|
|
|
14
14
|
jobs:
|
|
15
15
|
release:
|
|
16
16
|
name: Release
|
|
17
17
|
runs-on: ubuntu-latest
|
|
18
|
+
permissions:
|
|
19
|
+
id-token: write # Required for npm provenance/OIDC during release publishing.
|
|
20
|
+
contents: write # Required for Changesets to create releases and version commits.
|
|
21
|
+
pull-requests: write # Required for Changesets to create release pull requests.
|
|
18
22
|
steps:
|
|
19
23
|
- name: Checkout Repo
|
|
20
|
-
uses: actions/checkout@
|
|
24
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
21
25
|
with:
|
|
22
26
|
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
|
|
23
27
|
fetch-depth: 0
|
|
28
|
+
persist-credentials: false
|
|
24
29
|
|
|
25
30
|
- name: Set up Node
|
|
26
|
-
uses: actions/setup-node@
|
|
31
|
+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
27
32
|
with:
|
|
28
33
|
node-version-file: .node-version
|
|
34
|
+
registry-url: https://registry.npmjs.org
|
|
29
35
|
cache: npm
|
|
30
36
|
|
|
31
37
|
- name: Install Dependencies
|
|
@@ -33,10 +39,9 @@ jobs:
|
|
|
33
39
|
|
|
34
40
|
- name: Create Release Pull Request or Publish to npm
|
|
35
41
|
id: changesets
|
|
36
|
-
uses: changesets/action@v1
|
|
42
|
+
uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1
|
|
37
43
|
with:
|
|
38
44
|
publish: npm run release
|
|
39
45
|
title: Release new version 🚀
|
|
40
46
|
env:
|
|
41
47
|
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
|
|
42
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -5,19 +5,27 @@ on:
|
|
|
5
5
|
branches:
|
|
6
6
|
- "depfu/update/npm/prettier-**"
|
|
7
7
|
|
|
8
|
+
permissions: {}
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
8
14
|
jobs:
|
|
9
15
|
run-prettier:
|
|
16
|
+
name: Run Prettier
|
|
10
17
|
runs-on: ubuntu-latest
|
|
11
18
|
permissions:
|
|
12
|
-
contents: write
|
|
19
|
+
contents: write # Required to commit formatting updates back to the current branch.
|
|
13
20
|
steps:
|
|
14
21
|
- name: Checkout Repo
|
|
15
|
-
uses: actions/checkout@
|
|
22
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
16
23
|
with:
|
|
17
24
|
ref: ${{ github.head_ref }}
|
|
25
|
+
persist-credentials: false
|
|
18
26
|
|
|
19
27
|
- name: Set up Node
|
|
20
|
-
uses: actions/setup-node@
|
|
28
|
+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
21
29
|
with:
|
|
22
30
|
node-version-file: .node-version
|
|
23
31
|
cache: npm
|
|
@@ -29,6 +37,15 @@ jobs:
|
|
|
29
37
|
run: npm run format
|
|
30
38
|
|
|
31
39
|
- name: Commit changes
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
env:
|
|
41
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
42
|
+
run: |
|
|
43
|
+
if [ -z "$(git status --porcelain)" ]; then
|
|
44
|
+
exit 0
|
|
45
|
+
fi
|
|
46
|
+
|
|
47
|
+
git config user.name "github-actions[bot]"
|
|
48
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
49
|
+
git add .
|
|
50
|
+
git commit -m "🤖 Ran prettier after prettier update"
|
|
51
|
+
git push "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
|
package/.node-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
24.
|
|
1
|
+
24.15.0
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# bits-to-dead-trees
|
|
2
2
|
|
|
3
|
+
## 2.31.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#654](https://github.com/rmehner/bits-to-dead-trees/pull/654) [`759a948`](https://github.com/rmehner/bits-to-dead-trees/commit/759a948c4e4980d2c6967e518f90646dc5dab59f) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update docker to use playwright 1.60.0 as well
|
|
8
|
+
|
|
9
|
+
## 2.31.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`431f4e4`](https://github.com/rmehner/bits-to-dead-trees/commit/431f4e477393b931250c5a11f732dfcb71b6a37a) Thanks [@rmehner](https://github.com/rmehner)! - Update to Playwright 1.60.0
|
|
14
|
+
|
|
3
15
|
## 2.30.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/Dockerfile
CHANGED
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bits-to-dead-trees",
|
|
3
3
|
"author": "Robin Mehner <robin@coding-robin.de>",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.31.1",
|
|
5
5
|
"description": "Turn HTML into PDF files",
|
|
6
|
-
"repository":
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/rmehner/bits-to-dead-trees.git"
|
|
9
|
+
},
|
|
7
10
|
"license": "Apache-2.0",
|
|
8
11
|
"keywords": [
|
|
9
12
|
"html",
|
|
@@ -30,24 +33,24 @@
|
|
|
30
33
|
"ts-check": "npx tsc --noEmit"
|
|
31
34
|
},
|
|
32
35
|
"dependencies": {
|
|
33
|
-
"fastify": "^5.8.
|
|
34
|
-
"playwright-core": "^1.
|
|
36
|
+
"fastify": "^5.8.5",
|
|
37
|
+
"playwright-core": "^1.60.0"
|
|
35
38
|
},
|
|
36
39
|
"devDependencies": {
|
|
37
|
-
"@changesets/changelog-github": "^0.
|
|
38
|
-
"@changesets/cli": "^2.
|
|
39
|
-
"@eslint/js": "^9.39.
|
|
40
|
+
"@changesets/changelog-github": "^0.7.0",
|
|
41
|
+
"@changesets/cli": "^2.31.0",
|
|
42
|
+
"@eslint/js": "^9.39.4",
|
|
40
43
|
"@tsconfig/node24": "^24.0.4",
|
|
41
44
|
"@types/lodash": "^4.17.24",
|
|
42
|
-
"@types/node": "24.
|
|
43
|
-
"eslint": "^9.39.
|
|
45
|
+
"@types/node": "24.12.0",
|
|
46
|
+
"eslint": "^9.39.4",
|
|
44
47
|
"eslint-config-prettier": "^10.1.8",
|
|
45
|
-
"eslint-plugin-n": "^
|
|
46
|
-
"eslint-plugin-promise": "^7.
|
|
47
|
-
"globals": "^17.
|
|
48
|
+
"eslint-plugin-n": "^18.0.1",
|
|
49
|
+
"eslint-plugin-promise": "^7.3.0",
|
|
50
|
+
"globals": "^17.6.0",
|
|
48
51
|
"pino-pretty": "^13.1.3",
|
|
49
|
-
"prettier": "^3.8.
|
|
50
|
-
"typescript-json-schema": "^0.67.
|
|
51
|
-
"vitest": "^4.
|
|
52
|
+
"prettier": "^3.8.3",
|
|
53
|
+
"typescript-json-schema": "^0.67.4",
|
|
54
|
+
"vitest": "^4.1.6"
|
|
52
55
|
}
|
|
53
56
|
}
|
package/pdf_request_body.json
CHANGED
|
@@ -2,29 +2,6 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"additionalProperties": false,
|
|
4
4
|
"definitions": {
|
|
5
|
-
"ArrayBuffer": {
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"__@toStringTag@23": {
|
|
9
|
-
"type": "string"
|
|
10
|
-
},
|
|
11
|
-
"byteLength": {
|
|
12
|
-
"type": "number"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"required": ["__@toStringTag@23", "byteLength"],
|
|
16
|
-
"type": "object"
|
|
17
|
-
},
|
|
18
|
-
"ArrayBufferLike": {
|
|
19
|
-
"anyOf": [
|
|
20
|
-
{
|
|
21
|
-
"$ref": "#/definitions/ArrayBuffer"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"$ref": "#/definitions/SharedArrayBuffer"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
5
|
"BrowserContextOptions": {
|
|
29
6
|
"additionalProperties": false,
|
|
30
7
|
"properties": {
|
|
@@ -46,86 +23,22 @@
|
|
|
46
23
|
"additionalProperties": false,
|
|
47
24
|
"properties": {
|
|
48
25
|
"cert": {
|
|
49
|
-
"additionalProperties": false,
|
|
50
26
|
"description": "Direct value of the certificate in PEM format.",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"type": "number"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"properties": {
|
|
57
|
-
"BYTES_PER_ELEMENT": {
|
|
58
|
-
"type": "number"
|
|
59
|
-
},
|
|
60
|
-
"__@toStringTag@23": {
|
|
61
|
-
"const": "Uint8Array",
|
|
62
|
-
"type": "string"
|
|
63
|
-
},
|
|
64
|
-
"buffer": {
|
|
65
|
-
"$ref": "#/definitions/ArrayBufferLike"
|
|
66
|
-
},
|
|
67
|
-
"byteLength": {
|
|
68
|
-
"type": "number"
|
|
69
|
-
},
|
|
70
|
-
"byteOffset": {
|
|
71
|
-
"type": "number"
|
|
72
|
-
},
|
|
73
|
-
"length": {
|
|
74
|
-
"type": "number"
|
|
75
|
-
}
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "number"
|
|
76
29
|
},
|
|
77
|
-
"
|
|
78
|
-
"BYTES_PER_ELEMENT",
|
|
79
|
-
"__@toStringTag@23",
|
|
80
|
-
"buffer",
|
|
81
|
-
"byteLength",
|
|
82
|
-
"byteOffset",
|
|
83
|
-
"length"
|
|
84
|
-
],
|
|
85
|
-
"type": "object"
|
|
30
|
+
"type": "array"
|
|
86
31
|
},
|
|
87
32
|
"certPath": {
|
|
88
33
|
"description": "Path to the file with the certificate in PEM format.",
|
|
89
34
|
"type": "string"
|
|
90
35
|
},
|
|
91
36
|
"key": {
|
|
92
|
-
"additionalProperties": false,
|
|
93
37
|
"description": "Direct value of the private key in PEM format.",
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"type": "number"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"properties": {
|
|
100
|
-
"BYTES_PER_ELEMENT": {
|
|
101
|
-
"type": "number"
|
|
102
|
-
},
|
|
103
|
-
"__@toStringTag@23": {
|
|
104
|
-
"const": "Uint8Array",
|
|
105
|
-
"type": "string"
|
|
106
|
-
},
|
|
107
|
-
"buffer": {
|
|
108
|
-
"$ref": "#/definitions/ArrayBufferLike"
|
|
109
|
-
},
|
|
110
|
-
"byteLength": {
|
|
111
|
-
"type": "number"
|
|
112
|
-
},
|
|
113
|
-
"byteOffset": {
|
|
114
|
-
"type": "number"
|
|
115
|
-
},
|
|
116
|
-
"length": {
|
|
117
|
-
"type": "number"
|
|
118
|
-
}
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "number"
|
|
119
40
|
},
|
|
120
|
-
"
|
|
121
|
-
"BYTES_PER_ELEMENT",
|
|
122
|
-
"__@toStringTag@23",
|
|
123
|
-
"buffer",
|
|
124
|
-
"byteLength",
|
|
125
|
-
"byteOffset",
|
|
126
|
-
"length"
|
|
127
|
-
],
|
|
128
|
-
"type": "object"
|
|
41
|
+
"type": "array"
|
|
129
42
|
},
|
|
130
43
|
"keyPath": {
|
|
131
44
|
"description": "Path to the file with the private key in PEM format.",
|
|
@@ -140,43 +53,11 @@
|
|
|
140
53
|
"type": "string"
|
|
141
54
|
},
|
|
142
55
|
"pfx": {
|
|
143
|
-
"additionalProperties": false,
|
|
144
56
|
"description": "Direct value of the PFX or PKCS12 encoded private key and certificate chain.",
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"type": "number"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"properties": {
|
|
151
|
-
"BYTES_PER_ELEMENT": {
|
|
152
|
-
"type": "number"
|
|
153
|
-
},
|
|
154
|
-
"__@toStringTag@23": {
|
|
155
|
-
"const": "Uint8Array",
|
|
156
|
-
"type": "string"
|
|
157
|
-
},
|
|
158
|
-
"buffer": {
|
|
159
|
-
"$ref": "#/definitions/ArrayBufferLike"
|
|
160
|
-
},
|
|
161
|
-
"byteLength": {
|
|
162
|
-
"type": "number"
|
|
163
|
-
},
|
|
164
|
-
"byteOffset": {
|
|
165
|
-
"type": "number"
|
|
166
|
-
},
|
|
167
|
-
"length": {
|
|
168
|
-
"type": "number"
|
|
169
|
-
}
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "number"
|
|
170
59
|
},
|
|
171
|
-
"
|
|
172
|
-
"BYTES_PER_ELEMENT",
|
|
173
|
-
"__@toStringTag@23",
|
|
174
|
-
"buffer",
|
|
175
|
-
"byteLength",
|
|
176
|
-
"byteOffset",
|
|
177
|
-
"length"
|
|
178
|
-
],
|
|
179
|
-
"type": "object"
|
|
60
|
+
"type": "array"
|
|
180
61
|
},
|
|
181
62
|
"pfxPath": {
|
|
182
63
|
"description": "Path to the PFX or PKCS12 encoded private key and certificate chain.",
|
|
@@ -343,9 +224,36 @@
|
|
|
343
224
|
"description": "Enables video recording for all pages into `recordVideo.dir` directory. If not specified videos are not recorded.\nMake sure to await\n[browserContext.close([options])](https://playwright.dev/docs/api/class-browsercontext#browser-context-close) for\nvideos to be saved.",
|
|
344
225
|
"properties": {
|
|
345
226
|
"dir": {
|
|
346
|
-
"description": "Path to the directory to put videos into.",
|
|
227
|
+
"description": "Path to the directory to put videos into. If not specified, the videos will be stored in `artifactsDir` (see\n[browserType.launch([options])](https://playwright.dev/docs/api/class-browsertype#browser-type-launch) options).",
|
|
347
228
|
"type": "string"
|
|
348
229
|
},
|
|
230
|
+
"showActions": {
|
|
231
|
+
"additionalProperties": false,
|
|
232
|
+
"description": "If specified, enables visual annotations on interacted elements during video recording.",
|
|
233
|
+
"properties": {
|
|
234
|
+
"duration": {
|
|
235
|
+
"description": "How long each annotation is displayed in milliseconds. Defaults to `500`.",
|
|
236
|
+
"type": "number"
|
|
237
|
+
},
|
|
238
|
+
"fontSize": {
|
|
239
|
+
"description": "Font size of the action title in pixels. Defaults to `24`.",
|
|
240
|
+
"type": "number"
|
|
241
|
+
},
|
|
242
|
+
"position": {
|
|
243
|
+
"description": "Position of the action title overlay. Defaults to `\"top-right\"`.",
|
|
244
|
+
"enum": [
|
|
245
|
+
"bottom",
|
|
246
|
+
"bottom-left",
|
|
247
|
+
"bottom-right",
|
|
248
|
+
"top",
|
|
249
|
+
"top-left",
|
|
250
|
+
"top-right"
|
|
251
|
+
],
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"type": "object"
|
|
256
|
+
},
|
|
349
257
|
"size": {
|
|
350
258
|
"additionalProperties": false,
|
|
351
259
|
"description": "Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport` scaled down to\nfit into 800x800. If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of\neach page will be scaled down if necessary to fit the specified size.",
|
|
@@ -363,7 +271,6 @@
|
|
|
363
271
|
"type": "object"
|
|
364
272
|
}
|
|
365
273
|
},
|
|
366
|
-
"required": ["dir"],
|
|
367
274
|
"type": "object"
|
|
368
275
|
},
|
|
369
276
|
"reducedMotion": {
|
|
@@ -505,24 +412,6 @@
|
|
|
505
412
|
"description": "Specific user agent to use in this context.",
|
|
506
413
|
"type": "string"
|
|
507
414
|
},
|
|
508
|
-
"videoSize": {
|
|
509
|
-
"additionalProperties": false,
|
|
510
|
-
"properties": {
|
|
511
|
-
"height": {
|
|
512
|
-
"description": "Video frame height.",
|
|
513
|
-
"type": "number"
|
|
514
|
-
},
|
|
515
|
-
"width": {
|
|
516
|
-
"description": "Video frame width.",
|
|
517
|
-
"type": "number"
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
"required": ["height", "width"],
|
|
521
|
-
"type": "object"
|
|
522
|
-
},
|
|
523
|
-
"videosPath": {
|
|
524
|
-
"type": "string"
|
|
525
|
-
},
|
|
526
415
|
"viewport": {
|
|
527
416
|
"anyOf": [
|
|
528
417
|
{
|
|
@@ -627,23 +516,6 @@
|
|
|
627
516
|
],
|
|
628
517
|
"type": "object"
|
|
629
518
|
},
|
|
630
|
-
"SharedArrayBuffer": {
|
|
631
|
-
"additionalProperties": false,
|
|
632
|
-
"properties": {
|
|
633
|
-
"__@species@469": {
|
|
634
|
-
"$ref": "#/definitions/SharedArrayBuffer"
|
|
635
|
-
},
|
|
636
|
-
"__@toStringTag@23": {
|
|
637
|
-
"const": "SharedArrayBuffer",
|
|
638
|
-
"type": "string"
|
|
639
|
-
},
|
|
640
|
-
"byteLength": {
|
|
641
|
-
"type": "number"
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
"required": ["__@species@469", "__@toStringTag@23", "byteLength"],
|
|
645
|
-
"type": "object"
|
|
646
|
-
},
|
|
647
519
|
"ViewportSize": {
|
|
648
520
|
"additionalProperties": false,
|
|
649
521
|
"properties": {
|