Skip to content

Commit a9f1795

Browse files
authored
Merge pull request #44 from Sparticuz/updates
2 parents 20c4187 + 8b62180 commit a9f1795

23 files changed

+5348
-6260
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [16.x, 18.x]
18+
node-version: [16.x, 18.x, 20.x, 22.x, latest]
1919

2020
steps:
2121
- name: Install QPDF
2222
run: |
2323
sudo apt-get install wget unzip -y
24-
wget -O /tmp/qpdf.zip https://github.com/qpdf/qpdf/releases/download/v11.6.3/qpdf-11.6.3-bin-linux-x86_64.zip
24+
wget -O /tmp/qpdf.zip https://github.com/qpdf/qpdf/releases/download/v11.9.1/qpdf-11.9.1-bin-linux-x86_64.zip
2525
sudo unzip -d / /tmp/qpdf.zip
2626
- uses: actions/checkout@v4
2727
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@v4
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
- run: npm ci

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v3
16-
with:
17-
node-version: 18
18-
registry-url: https://registry.npmjs.org/
15+
- uses: actions/setup-node@v4
1916
- run: npm ci
2017
- run: npm run build
2118
- run: npm publish

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020-2023 Kyle McNally
3+
Copyright (c) 2020-2024 Kyle McNally
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ await encrypt(pdf);
4545

4646
### Options for Encryption
4747

48-
Please see [src/encrypt.ts](https://github.com/Sparticuz/node-qpdf2/blob/master/src/encrypt.ts#L9) for the latest options, as well as [QPDF's documentation](https://qpdf.readthedocs.io/en/stable/cli.html#encryption) for information on what each restriction does.
48+
Please see [src/encrypt.ts](https://github.com/Sparticuz/node-qpdf2/blob/master/src/encrypt.ts) for the latest options, as well as [QPDF's documentation](https://qpdf.readthedocs.io/en/stable/cli.html#encryption) for information on what each restriction does.
4949

5050
### Examples
5151

@@ -103,15 +103,17 @@ If the file is not encrypted, the result will be "File is not encrypted".
103103

104104
## Coverage
105105

106-
| File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
107-
| ---------- | ------- | -------- | ------- | ------- | ----------------- |
108-
| All files | 100 | 100 | 100 | 100 |
109-
| decrypt.ts | 100 | 100 | 100 | 100 |
110-
| encrypt.ts | 100 | 100 | 100 | 100 |
111-
| index.ts | 100 | 100 | 100 | 100 |
112-
| info.ts | 100 | 100 | 100 | 100 |
113-
| spawn.ts | 100 | 100 | 100 | 100 |
114-
| utils.ts | 100 | 100 | 100 | 100 |
106+
------------|---------|----------|---------|---------|-------------------
107+
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
108+
------------|---------|----------|---------|---------|-------------------
109+
All files | 100 | 100 | 100 | 100 |
110+
decrypt.ts | 100 | 100 | 100 | 100 |
111+
encrypt.ts | 100 | 100 | 100 | 100 |
112+
index.ts | 100 | 100 | 100 | 100 |
113+
info.ts | 100 | 100 | 100 | 100 |
114+
spawn.ts | 100 | 100 | 100 | 100 |
115+
utils.ts | 100 | 100 | 100 | 100 |
116+
------------|---------|----------|---------|---------|-------------------
115117

116118
## Contributing
117119

eslint.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// @ts-check
2+
3+
import myConfig from "@sparticuz/eslint-config";
4+
import tseslint from "typescript-eslint";
5+
6+
export default tseslint.config(
7+
{
8+
ignores: ["dist", "coverage"],
9+
},
10+
...myConfig,
11+
{
12+
rules: {
13+
"perfectionist/sort-union-types": [
14+
"error",
15+
{
16+
type: "natural",
17+
},
18+
],
19+
},
20+
},
21+
);

0 commit comments

Comments
 (0)