bits-to-dead-trees 2.5.0 → 2.6.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/.github/workflows/check-json-schema.yml +2 -2
- package/.github/workflows/ci.yml +2 -2
- package/.tool-versions +1 -1
- package/CHANGELOG.md +12 -0
- package/Dockerfile +1 -1
- package/app.js +3 -3
- package/package.json +12 -12
- package/test/smoke.test.js +1 -1
|
@@ -3,11 +3,11 @@ name: Check JSON schema
|
|
|
3
3
|
on: push
|
|
4
4
|
|
|
5
5
|
concurrency:
|
|
6
|
-
group: ${{ github.ref }}
|
|
6
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
7
7
|
cancel-in-progress: true
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
|
-
|
|
10
|
+
check-json-schema:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
13
|
- name: Checkout Repo
|
package/.github/workflows/ci.yml
CHANGED
package/.tool-versions
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
nodejs 18.16.
|
|
1
|
+
nodejs 18.16.1
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# bits-to-dead-trees
|
|
2
2
|
|
|
3
|
+
## 2.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#214](https://github.com/rmehner/bits-to-dead-trees/pull/214) [`3243cc1`](https://github.com/rmehner/bits-to-dead-trees/commit/3243cc18bf2e808544b29e05ef4c216455e43e1c) Thanks [@depfu](https://github.com/apps/depfu)! - Upgrade to Playwright 1.36.0
|
|
8
|
+
|
|
9
|
+
## 2.5.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#205](https://github.com/rmehner/bits-to-dead-trees/pull/205) [`7798151`](https://github.com/rmehner/bits-to-dead-trees/commit/7798151d59091936735942509e7241fb04464ba0) Thanks [@depfu](https://github.com/apps/depfu)! - Update to Playwright 1.35.1
|
|
14
|
+
|
|
3
15
|
## 2.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/Dockerfile
CHANGED
package/app.js
CHANGED
|
@@ -7,7 +7,7 @@ import { readFileSync } from "node:fs";
|
|
|
7
7
|
// we'd love to do this, but eslint doesn't like import assertions yet
|
|
8
8
|
// import PdfRequestBodySchema from "./pdf_request_body.json" assert { type: "json" };
|
|
9
9
|
const PdfRequestBodySchema = JSON.parse(
|
|
10
|
-
readFileSync("./pdf_request_body.json", { encoding: "utf-8" })
|
|
10
|
+
readFileSync("./pdf_request_body.json", { encoding: "utf-8" }),
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -44,7 +44,7 @@ const createPDF = async (
|
|
|
44
44
|
url,
|
|
45
45
|
pdfOptions = {},
|
|
46
46
|
browserContextOptions = {},
|
|
47
|
-
gotoOptions = {}
|
|
47
|
+
gotoOptions = {},
|
|
48
48
|
) => {
|
|
49
49
|
const browser = await chromium.launch();
|
|
50
50
|
|
|
@@ -127,7 +127,7 @@ function build(opts = {}) {
|
|
|
127
127
|
|
|
128
128
|
return error;
|
|
129
129
|
}
|
|
130
|
-
}
|
|
130
|
+
},
|
|
131
131
|
);
|
|
132
132
|
|
|
133
133
|
app.get("/health", async (_, response) => response.code(200).send());
|
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.6.0",
|
|
5
5
|
"description": "Turn HTML into PDF files",
|
|
6
6
|
"repository": "github:rmehner/bits-to-dead-trees",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"main": "server.js",
|
|
17
17
|
"type": "module",
|
|
18
18
|
"scripts": {
|
|
19
|
-
"check-format": "prettier --check **/*.{js,ts,json,md}",
|
|
19
|
+
"check-format": "prettier --check '**/*.{js,ts,json,md}'",
|
|
20
20
|
"lint": "eslint *.js",
|
|
21
|
-
"format": "prettier --write **/*.{js,ts,json,md}",
|
|
21
|
+
"format": "prettier --write '**/*.{js,ts,json,md}'",
|
|
22
22
|
"start": "node server.js",
|
|
23
23
|
"start:dev": "nodemon --inspect server.js",
|
|
24
24
|
"dump-schemas": "typescript-json-schema --noExtraProps --required --strictNullChecks types/schemas.ts PdfRequestBody --out pdf_request_body.json",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"ts-check": "npx tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"fastify": "^4.
|
|
34
|
-
"playwright-core": "^1.
|
|
33
|
+
"fastify": "^4.19.2",
|
|
34
|
+
"playwright-core": "^1.36.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@changesets/changelog-github": "^0.4.8",
|
|
38
|
-
"@changesets/cli": "^2.26.
|
|
38
|
+
"@changesets/cli": "^2.26.2",
|
|
39
39
|
"@types/lodash": "^4.14.195",
|
|
40
|
-
"eslint": "^8.
|
|
40
|
+
"eslint": "^8.44.0",
|
|
41
41
|
"eslint-config-prettier": "^8.8.0",
|
|
42
|
-
"nodemon": "^
|
|
43
|
-
"pino-pretty": "^10.0.
|
|
44
|
-
"prettier": "^
|
|
45
|
-
"typescript-json-schema": "^0.
|
|
46
|
-
"vitest": "^0.
|
|
42
|
+
"nodemon": "^3.0.1",
|
|
43
|
+
"pino-pretty": "^10.0.1",
|
|
44
|
+
"prettier": "^3.0.0",
|
|
45
|
+
"typescript-json-schema": "^0.58.1",
|
|
46
|
+
"vitest": "^0.33.0"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/test/smoke.test.js
CHANGED