You've already forked careful-downloader
mirror of
https://github.com/jakejarvis/careful-downloader.git
synced 2025-06-27 16:15:42 -04:00
bump deps and require node 14
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -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
1
.gitignore
vendored
@ -3,3 +3,4 @@ node_modules/
|
|||||||
# potentially leftover test artifacts
|
# potentially leftover test artifacts
|
||||||
downloads/
|
downloads/
|
||||||
test/temp/
|
test/temp/
|
||||||
|
*.log
|
||||||
|
4
index.js
4
index.js
@ -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 {
|
||||||
|
22
package.json
22
package.json
@ -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",
|
||||||
|
Reference in New Issue
Block a user