Skip to content

Commit 869f1b8

Browse files
authored
Use @tsconfig and ts-node (#21)
1 parent faa1f4c commit 869f1b8

17 files changed

+3692
-6278
lines changed

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// eslint-disable-next-line node/no-unpublished-require
2+
require("@rushstack/eslint-patch/modern-module-resolution");
3+
4+
module.exports = {
5+
extends: ["@sparticuz/eslint-config"],
6+
parserOptions: {
7+
ecmaVersion: 2021,
8+
project: "./tsconfig.json",
9+
sourceType: "module",
10+
},
11+
root: true,
12+
rules: {
13+
"dot-notation": "off",
14+
"no-console": "off",
15+
},
16+
};

.eslintrc.json

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

.github/FUNDING.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# These are supported funding model platforms
2-
3-
custom: ['https://paypal.me/sparticuz']
1+
github: Sparticuz

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,19 @@ jobs:
1313

1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v2
17-
with:
18-
# We must fetch at least the immediate parents so that if this is
19-
# a pull request then we can checkout the head.
20-
fetch-depth: 2
21-
22-
# If this run was triggered by a pull request event, then checkout
23-
# the head of the pull request instead of the merge commit.
24-
- run: git checkout HEAD^2
25-
if: ${{ github.event_name == 'pull_request' }}
16+
uses: actions/checkout@v3
2617

2718
# Initializes the CodeQL tools for scanning.
2819
- name: Initialize CodeQL
29-
uses: github/codeql-action/init@v1
20+
uses: github/codeql-action/init@v2
3021
# Override language selection by uncommenting this and choosing your languages
3122
# with:
3223
# languages: go, javascript, csharp, python, cpp, java
3324

3425
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3526
# If this step fails, then you should remove it and run the build manually (see below)
3627
- name: Autobuild
37-
uses: github/codeql-action/autobuild@v1
28+
uses: github/codeql-action/autobuild@v2
3829

3930
# ℹ️ Command-line programs to run using the OS shell.
4031
# 📚 https://git.io/JvXDl
@@ -48,4 +39,4 @@ jobs:
4839
# make release
4940

5041
- name: Perform CodeQL Analysis
51-
uses: github/codeql-action/analyze@v1
42+
uses: github/codeql-action/analyze@v2

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [10.x, 12.x, 14.x]
19+
node-version: [14.x, 16.x, 18.x]
2020

2121
steps:
2222
- name: Install QPDF
2323
run: sudo apt install -y qpdf
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v1
26+
uses: actions/setup-node@v3
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
- run: npm ci

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
publish-npm:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 12
17+
node-version: 14
1818
registry-url: https://registry.npmjs.org/
1919
- run: npm ci
2020
- run: npm run build

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Newer?
2+
==
3+
- Check out Github releases for What's changed
14
1.3.1
25
==
36
- Update deps, Fixes CVE https://github.com/Sparticuz/node-qpdf2/pull/3

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@ const options = {
128128
await decrypt(options);
129129
```
130130
131+
## Coverage
132+
------------|---------|----------|---------|---------|-------------------
133+
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
134+
------------|---------|----------|---------|---------|-------------------
135+
All files | 97.56 | 97.5 | 100 | 97.56 |
136+
decrypt.ts | 100 | 100 | 100 | 100 |
137+
encrypt.ts | 100 | 100 | 100 | 100 |
138+
index.ts | 100 | 100 | 100 | 100 |
139+
spawn.ts | 85.18 | 80 | 100 | 85.18 | 13-14,17,21
140+
utils.ts | 100 | 100 | 100 | 100 |
141+
------------|---------|----------|---------|---------|-------------------
142+
131143
## Meta
132144
133145
Maintained by [Kyle McNally](http://www.github.com/Sparticuz)

0 commit comments

Comments
 (0)