bits-to-dead-trees 1.0.1 → 1.1.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/workflows/ci.yml
CHANGED
|
@@ -18,11 +18,11 @@ jobs:
|
|
|
18
18
|
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
|
|
19
19
|
fetch-depth: 0
|
|
20
20
|
|
|
21
|
-
- name:
|
|
21
|
+
- name: Set up Node
|
|
22
22
|
uses: actions/setup-node@v3
|
|
23
23
|
with:
|
|
24
|
+
node-version-file: .tool-versions
|
|
24
25
|
cache: npm
|
|
25
|
-
node-version: lts/*
|
|
26
26
|
|
|
27
27
|
- name: Install Dependencies
|
|
28
28
|
run: npm install
|
package/.tool-versions
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
nodejs 16.
|
|
1
|
+
nodejs 16.16.0
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# bits-to-dead-trees
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e943b30: Update to Playwright 1.25.1
|
|
8
|
+
|
|
9
|
+
## 1.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- aa60fb0: Upgrade to Ubuntu Jammy instead of Focal
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- a8bd6fa: Update to Playwright 1.25.0 (new browser versions again!)
|
|
18
|
+
|
|
19
|
+
## 1.0.2
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 86a275d: Fix server crash due to missing schema
|
|
24
|
+
- 029ce39: Fix server crash due to pretty print on development
|
|
25
|
+
|
|
3
26
|
## 1.0.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM mcr.microsoft.com/playwright:v1.
|
|
1
|
+
FROM mcr.microsoft.com/playwright:v1.25.1-jammy
|
|
2
2
|
|
|
3
3
|
ENV NODE_ENV=production
|
|
4
4
|
ENV SERVER_PORT=8000
|
|
@@ -13,9 +13,9 @@ RUN apt-get update -yqq && \
|
|
|
13
13
|
|
|
14
14
|
COPY ["package.json", "package-lock.json*", "./"]
|
|
15
15
|
|
|
16
|
-
RUN npm install --
|
|
16
|
+
RUN npm install --omit=dev --ignore-scripts
|
|
17
17
|
|
|
18
|
-
COPY ["index.js", "
|
|
18
|
+
COPY ["index.js", "pdf_request_body.json", "./"]
|
|
19
19
|
|
|
20
20
|
ENTRYPOINT ["tini", "-v", "--"]
|
|
21
21
|
CMD ["node", "index.js"]
|
package/index.js
CHANGED
|
@@ -12,20 +12,23 @@
|
|
|
12
12
|
|
|
13
13
|
const { fastify } = require("fastify");
|
|
14
14
|
const playwright = require("playwright-core");
|
|
15
|
-
const PdfRequestBodySchema = require("./
|
|
15
|
+
const PdfRequestBodySchema = require("./pdf_request_body.json");
|
|
16
16
|
|
|
17
17
|
const SERVER_PORT = process.env["SERVER_PORT"] ?? 8000;
|
|
18
18
|
const SERVER_ADDRESS = process.env["SERVER_ADDRESS"] ?? "localhost";
|
|
19
19
|
|
|
20
20
|
const server = fastify({
|
|
21
21
|
logger: {
|
|
22
|
-
|
|
22
|
+
transport:
|
|
23
23
|
process.env["NODE_ENV"] !== "production"
|
|
24
24
|
? {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
target: "pino-pretty",
|
|
26
|
+
options: {
|
|
27
|
+
translateTime: "HH:MM:ss Z",
|
|
28
|
+
ignore: "pid,hostname",
|
|
29
|
+
},
|
|
27
30
|
}
|
|
28
|
-
:
|
|
31
|
+
: undefined,
|
|
29
32
|
},
|
|
30
33
|
});
|
|
31
34
|
|
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": "1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"description": "Turn HTML into PDF files",
|
|
6
6
|
"repository": "github:rmehner/bits-to-dead-trees",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"format": "prettier --write **/*.{js,ts,json,md}",
|
|
21
21
|
"start": "node index.js",
|
|
22
22
|
"start:dev": "nodemon --inspect index.js",
|
|
23
|
-
"dump-schemas": "typescript-json-schema types/schemas.ts PdfRequestBody --out
|
|
23
|
+
"dump-schemas": "typescript-json-schema types/schemas.ts PdfRequestBody --out pdf_request_body.json",
|
|
24
24
|
"update-schemas": "npm run dump-schemas && npm run format",
|
|
25
25
|
"postinstall": "npx playwright install chromium",
|
|
26
26
|
"add-changeset": "changeset",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"ts-check": "npx tsc --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"fastify": "^4.
|
|
32
|
-
"playwright-core": "^1.
|
|
31
|
+
"fastify": "^4.5.3",
|
|
32
|
+
"playwright-core": "^1.25.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@changesets/cli": "^2.
|
|
36
|
-
"eslint": "^8.
|
|
35
|
+
"@changesets/cli": "^2.24.4",
|
|
36
|
+
"eslint": "^8.23.0",
|
|
37
37
|
"eslint-config-prettier": "^8.5.0",
|
|
38
38
|
"nodemon": "^2.0.19",
|
|
39
39
|
"pino-pretty": "^8.1.0",
|
|
File without changes
|