🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

check-yarn-lock

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-yarn-lock - npm Package Compare versions

Comparing version

to
0.1.1

4

index.js

@@ -10,3 +10,3 @@ #!/usr/bin/env node

const {listChangedFiles, getFileAtHEAD} = require('./lib/gitUtil')(exec)
const getCurrentFile = filename => readFileSync(filename, 'utf8')
const LOCKFILE = 'yarn.lock'

@@ -16,3 +16,3 @@ const PACKAGE_JSON = 'package.json'

const readJson = compose(JSON.parse, readFileSync)
const readJson = compose(JSON.parse, getCurrentFile)
const getJsonAtHEAD = compose(JSON.parse, getFileAtHEAD)

@@ -19,0 +19,0 @@ const depsUnchanged = converge(keysEqual(deps), [readJson, getJsonAtHEAD])

{
"name": "check-yarn-lock",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -8,2 +8,3 @@ "main": "index.js",

"test": "mocha",
"lint": "eslint . --cache",
"precommit": "node index.js"

@@ -10,0 +11,0 @@ },

Sorry, the diff of this file is not supported yet