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:
parent
caf7571aa4
commit
0b51c8bbcb
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -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
1
.gitignore
vendored
@ -3,3 +3,4 @@ node_modules/
|
||||
# potentially leftover test artifacts
|
||||
downloads/
|
||||
test/temp/
|
||||
*.log
|
||||
|
4
index.js
4
index.js
@ -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 {
|
||||
|
22
package.json
22
package.json
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user