Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lockfile-lint

Package Overview
Dependencies
Maintainers
1
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 1.3.4 to 2.0.0

30

CHANGELOG.md

@@ -6,2 +6,32 @@ # Change Log

# [2.0.0](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint@1.3.4...lockfile-lint@2.0.0) (2019-07-22)
### Features
* support npm lockfile parsing ([#2](https://github.com/lirantal/lockfile-lint/issues/2)) ([b94ab49](https://github.com/lirantal/lockfile-lint/commit/b94ab49))
### BREAKING CHANGES
* exported lockfile parser util renamed
* feat(parsers): compatability with new yarn/npm parsers
BREAKING CHANGE
* feat(parsers): support npm parser
* build(yarn): update CI version of yarn
* build(cache): disable all cache
* fix(filenames): case-sensitive filename changed
* fix(file): removed old file
## [1.3.4](https://github.com/lirantal/lockfile-lint/compare/lockfile-lint@1.3.3...lockfile-lint@1.3.4) (2019-06-19)

@@ -8,0 +38,0 @@

6

package.json
{
"name": "lockfile-lint",
"version": "1.3.4",
"version": "2.0.0",
"description": "A CLI to lint a lockfile for security policies",

@@ -59,3 +59,3 @@ "bin": {

"debug": "^4.1.0",
"lockfile-lint-api": "^1.0.7",
"lockfile-lint-api": "^2.0.0",
"yargs": "^13.2.4"

@@ -185,3 +185,3 @@ },

},
"gitHead": "50626dd32553deb0486cc235fd43b9d1db081b20"
"gitHead": "3739ad92ae0f272605c6f76f023e48cd2ce31003"
}
'use strict'
const {ValidateHost, ParseLockFile, ValidateHttps} = require('lockfile-lint-api')
const {ValidateHost, ParseLockfile, ValidateHttps} = require('lockfile-lint-api')
const debug = require('debug')

@@ -17,6 +17,7 @@

const options = {
lockFilePath: path
lockfilePath: path,
lockfileType: type
}
const parser = new ParseLockFile(options)
const parser = new ParseLockfile(options)
const lockfile = parser.parseSync()

@@ -34,6 +35,7 @@ const validator = new ValidateHost({packages: lockfile.object})

const options = {
lockFilePath: path
lockfilePath: path,
lockfileType: type
}
const parser = new ParseLockFile(options)
const parser = new ParseLockfile(options)
const lockfile = parser.parseSync()

@@ -40,0 +42,0 @@ const validator = new ValidateHttps({packages: lockfile.object})

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