1
mirror of https://github.com/jakejarvis/careful-downloader.git synced 2025-04-25 15:25:26 -04:00

bump deps and require node 14

This commit is contained in:
Jake Jarvis 2023-05-25 09:38:30 -04:00
parent caf7571aa4
commit 0b51c8bbcb
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
6 changed files with 363 additions and 486 deletions

View File

@ -16,20 +16,21 @@ jobs:
- macos-latest
- windows-latest
node:
- 17
- 20
- 18
- 16
- 14
- 12
fail-fast: false
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: yarn install --frozen-lockfile
- run: yarn audit
continue-on-error: true
- run: yarn test
env:
DEBUG: careful-downloader

View File

@ -10,10 +10,10 @@ jobs:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
registry-url: https://registry.npmjs.org/
- env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ node_modules/
# potentially leftover test artifacts
downloads/
test/temp/
*.log

View File

@ -1,6 +1,6 @@
import path from "path";
import fs from "fs-extra";
import tempy from "tempy";
import { temporaryDirectory } from "tempy";
import decompress from "decompress";
import isPathInside from "is-path-inside";
@ -47,7 +47,7 @@ export default async (downloadUrl, options) => {
}
// initialize temporary directory
const tempDir = tempy.directory();
const tempDir = temporaryDirectory();
debug(`Temp dir generated: '${tempDir}'`);
try {

View File

@ -25,24 +25,24 @@
"test": "eslint . && mocha"
},
"dependencies": {
"debug": "^4.3.3",
"debug": "^4.3.4",
"decompress": "^4.2.1",
"fs-extra": "^10.0.0",
"got": "^11.8.3",
"fs-extra": "^11.1.1",
"got": "^12.6.0",
"is-path-inside": "^4.0.0",
"tempy": "^2.0.0"
"tempy": "^3.0.0"
},
"devDependencies": {
"@jakejarvis/eslint-config": "github:jakejarvis/eslint-config#main",
"@types/debug": "^4.1.7",
"@jakejarvis/eslint-config": "*",
"@types/debug": "^4.1.8",
"@types/decompress": "^4.2.4",
"@types/fs-extra": "^9.0.13",
"chai": "^4.3.6",
"eslint": "^8.9.0",
"mocha": "^9.2.0"
"@types/fs-extra": "^11.0.1",
"chai": "^4.3.7",
"eslint": "^8.41.0",
"mocha": "^10.2.0"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": ">=14.14"
},
"keywords": [
"download",

807
yarn.lock

File diff suppressed because it is too large Load Diff