lockfile-lint
Advanced tools
Comparing version 4.3.7 to 4.6.0
@@ -7,2 +7,24 @@ #!/usr/bin/env node | ||
const isSupported = | ||
process.platform !== 'win32' || process.env.CI || process.env.TERM === 'xterm-256color' | ||
const symbolsDefault = { | ||
info: 'ℹ', | ||
success: '✔', | ||
error: '✖' | ||
} | ||
const symbolsFallback = { | ||
info: 'i', | ||
success: '√', | ||
error: '×' | ||
} | ||
const symbols = isSupported ? symbolsDefault : symbolsFallback | ||
const RESET = '\x1b[0m' | ||
const RED = '\x1b[31m' | ||
const GREEN = '\x1b[32m' | ||
const YELLOW = '\x1b[33m' | ||
let config | ||
@@ -61,6 +83,11 @@ | ||
} catch (error) { | ||
console.error('ABORTING lockfile lint process due to error exceptions', '\n') | ||
console.error( | ||
YELLOW, | ||
`${symbols.info} ABORTING lockfile lint process due to error exceptions`, | ||
'\n', | ||
RESET | ||
) | ||
console.error(error.message, '\n') | ||
console.error(error.stack, '\n') | ||
console.error('error: command failed with exit code 1', '\n') | ||
console.error(RED, `${symbols.error} Error: command failed with exit code 1`, '\n', RESET) | ||
process.exit(1) | ||
@@ -76,8 +103,6 @@ } | ||
if (validatorFailures !== 0) { | ||
console.error('error: command failed with exit code 1', '\n') | ||
console.error(RED, `${symbols.error} Error: security issues detected!`, '\n', RESET) | ||
process.exit(1) | ||
} else { | ||
const GREEN = '\x1b[32m' | ||
const RESET = '\x1b[0m' | ||
console.info(GREEN, 'No issues detected', '\n', RESET) | ||
console.info(GREEN, `${symbols.success} No issues detected`, '\n', RESET) | ||
} |
@@ -6,2 +6,46 @@ # Change Log | ||
# [4.6.0](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint@4.3.8...lockfile-lint@4.6.0) (2021-02-19) | ||
### Features | ||
* use log sysmbols for easier to read output ([#21](https://github.com/lirantal/lockfile-lint/issues/21)) ([#104](https://github.com/lirantal/lockfile-lint/issues/104)) ([281c8ec](https://github.com/lirantal/lockfile-lint/commit/281c8ec)) | ||
# [4.5.0](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint@4.3.8...lockfile-lint@4.5.0) (2021-02-19) | ||
### Features | ||
* use log sysmbols for easier to read output ([#21](https://github.com/lirantal/lockfile-lint/issues/21)) ([#104](https://github.com/lirantal/lockfile-lint/issues/104)) ([281c8ec](https://github.com/lirantal/lockfile-lint/commit/281c8ec)) | ||
# [4.4.0](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint@4.3.8...lockfile-lint@4.4.0) (2021-02-09) | ||
### Features | ||
* use log sysmbols for easier to read output ([#21](https://github.com/lirantal/lockfile-lint/issues/21)) ([#104](https://github.com/lirantal/lockfile-lint/issues/104)) ([281c8ec](https://github.com/lirantal/lockfile-lint/commit/281c8ec)) | ||
## [4.3.8](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint@4.3.7...lockfile-lint@4.3.8) (2020-11-21) | ||
### Bug Fixes | ||
* packages/lockfile-lint/package.json to reduce vulnerabilities ([#98](https://github.com/lirantal/lockfile-lint/issues/98)) ([2aed559](https://github.com/lirantal/lockfile-lint/commit/2aed559)) | ||
## [4.3.7](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint@4.3.6...lockfile-lint@4.3.7) (2020-06-24) | ||
@@ -8,0 +52,0 @@ |
{ | ||
"name": "lockfile-lint", | ||
"version": "4.3.7", | ||
"version": "4.6.0", | ||
"description": "A CLI to lint a lockfile for security policies", | ||
@@ -58,3 +58,3 @@ "bin": { | ||
"lockfile-lint-api": "^5.1.6", | ||
"yargs": "^15.0.2" | ||
"yargs": "^16.0.0" | ||
}, | ||
@@ -183,3 +183,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "940d34f1cf0090e305bafb59518f6d7d466ac0f8" | ||
"gitHead": "1a2af5304bebec9a396aa082dfba3e4f5a4d44db" | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
48147
293
2
+ Addedcliui@7.0.4(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@16.2.0(transitive)
+ Addedyargs-parser@20.2.9(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcliui@6.0.0(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedrequire-main-filename@2.0.0(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedwhich-module@2.0.1(transitive)
- Removedwrap-ansi@6.2.0(transitive)
- Removedy18n@4.0.3(transitive)
- Removedyargs@15.4.1(transitive)
- Removedyargs-parser@18.1.3(transitive)
Updatedyargs@^16.0.0