@lesjoursfr/bin-wrapper
Advanced tools
Comparing version 12.1.5 to 12.1.6
@@ -41,3 +41,3 @@ import axios from "axios"; | ||
} | ||
async _transform(chunk, encoding, callback) { | ||
async _transform(chunk, _encoding, callback) { | ||
if (this._isTarFile !== null) { | ||
@@ -79,3 +79,8 @@ callback(null, chunk); | ||
const fileDownloader = new FileDownloader(dest, filename, options, (err, files) => { | ||
err !== null ? reject(err) : resolve(files); | ||
if (err !== null) { | ||
reject(err); | ||
} | ||
else { | ||
resolve(files); | ||
} | ||
}); | ||
@@ -82,0 +87,0 @@ response.data.pipe(fileDownloader); |
{ | ||
"name": "@lesjoursfr/bin-wrapper", | ||
"version": "12.1.5", | ||
"version": "12.1.6", | ||
"description": "Binary wrapper that makes your programs seamlessly available as local dependencies", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": "18.x || 20.x" | ||
"node": "20.x || 22.x" | ||
}, | ||
@@ -33,7 +33,7 @@ "exports": "./lib/index.js", | ||
"freshlock": "rm -rf node_modules/ && rm .yarn/install-state.gz && rm yarn.lock && yarn", | ||
"check-lint": "eslint . --ext .js,.jsx,.ts,.tsx", | ||
"check-format": "prettier --check \"**/*.{ts,js,cjs,mjs,json,yml,md}\"", | ||
"check-lint": "eslint", | ||
"check-format": "prettier --check .", | ||
"check-tsc": "tsc --noEmit", | ||
"lint": "eslint . --fix --ext .js,.jsx,.ts,.tsx", | ||
"format": "prettier --write \"**/*.{ts,js,cjs,mjs,json,yml,md}\"", | ||
"lint": "eslint --fix", | ||
"format": "prettier --write .", | ||
"build": "tsc", | ||
@@ -50,32 +50,33 @@ "test": "NODE_OPTIONS='--loader=ts-node/esm' mocha" | ||
"dependencies": { | ||
"@lesjoursfr/bin-check": "^7.1.5", | ||
"@lesjoursfr/bin-version": "^7.1.5", | ||
"arch": "^2.2.0", | ||
"axios": "^1.6.7", | ||
"@lesjoursfr/bin-check": "^7.1.6", | ||
"@lesjoursfr/bin-version": "^7.1.6", | ||
"arch": "^3.0.0", | ||
"axios": "^1.7.2", | ||
"content-disposition": "^0.5.4", | ||
"file-type": "^19.0.0", | ||
"semver": "^7.5.4", | ||
"file-type": "^19.3.0", | ||
"semver": "^7.6.3", | ||
"semver-truncate": "^3.0.0", | ||
"tar": "^6.2.0" | ||
"tar": "^7.4.3" | ||
}, | ||
"devDependencies": { | ||
"@tsconfig/node18": "^18.2.2", | ||
"@eslint/js": "^9.8.0", | ||
"@tsconfig/node20": "^20.1.4", | ||
"@types/content-disposition": "^0.5.8", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^20.11.15", | ||
"@types/semver": "^7.5.6", | ||
"@types/tar": "^6.1.11", | ||
"@typescript-eslint/eslint-plugin": "^6.20.0", | ||
"@typescript-eslint/parser": "^6.20.0", | ||
"eslint": "^8.56.0", | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "^20.14.13", | ||
"@types/semver": "^7.5.8", | ||
"@types/tar": "^6.1.13", | ||
"eslint": "^9.8.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"globals": "^15.8.0", | ||
"isexe": "^3.1.1", | ||
"mocha": "^10.2.0", | ||
"nock": "^13.5.1", | ||
"prettier": "^3.2.4", | ||
"mocha": "^10.7.0", | ||
"nock": "^13.5.4", | ||
"prettier": "^3.3.3", | ||
"tempy": "^3.1.0", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.3.3" | ||
"typescript": "^5.5.4", | ||
"typescript-eslint": "^8.0.0" | ||
}, | ||
"packageManager": "yarn@4.1.0" | ||
"packageManager": "yarn@4.3.1" | ||
} |
@@ -49,3 +49,3 @@ import axios, { AxiosResponse } from "axios"; | ||
public async _transform(chunk: Buffer, encoding: BufferEncoding, callback: TransformCallback): Promise<void> { | ||
public async _transform(chunk: Buffer, _encoding: BufferEncoding, callback: TransformCallback): Promise<void> { | ||
if (this._isTarFile !== null) { | ||
@@ -94,3 +94,7 @@ callback(null, chunk); | ||
const fileDownloader = new FileDownloader(dest, filename, options, (err, files) => { | ||
err !== null ? reject(err) : resolve(files); | ||
if (err !== null) { | ||
reject(err); | ||
} else { | ||
resolve(files); | ||
} | ||
}); | ||
@@ -97,0 +101,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
493
21946
18
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@isaacs/fs-minipass@4.0.1(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedarch@3.0.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedchownr@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedminizlib@3.0.1(transitive)
+ Addedmkdirp@3.0.1(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedrimraf@5.0.10(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedtar@7.4.3(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
+ Addedyallist@5.0.0(transitive)
- Removedarch@2.2.0(transitive)
- Removedchownr@2.0.0(transitive)
- Removedfs-minipass@2.1.0(transitive)
- Removedminipass@3.3.65.0.0(transitive)
- Removedminizlib@2.1.2(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedtar@6.2.1(transitive)
- Removedyallist@4.0.0(transitive)
Updated@lesjoursfr/bin-check@^7.1.6
Updatedarch@^3.0.0
Updatedaxios@^1.7.2
Updatedfile-type@^19.3.0
Updatedsemver@^7.6.3
Updatedtar@^7.4.3