Socket
Socket
Sign inDemoInstall

lockfile-lint

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lockfile-lint - npm Package Compare versions

Comparing version 4.3.7 to 4.6.0

37

bin/lockfile-lint.js

@@ -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 @@

6

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc