1
mirror of https://github.com/jakejarvis/careful-downloader.git synced 2025-06-27 13:55:43 -04:00

bump deps and require node 14

This commit is contained in:
2023-05-25 09:38:30 -04:00
parent caf7571aa4
commit 0b51c8bbcb
6 changed files with 363 additions and 486 deletions

View File

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

View File

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

1
.gitignore vendored
View File

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

View File

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

View File

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

807
yarn.lock

File diff suppressed because it is too large Load Diff