New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@npmcli/git

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/git - npm Package Compare versions

Comparing version
6.0.1
to
6.0.2
+5
-11
lib/revs.js

@@ -1,4 +0,4 @@

const pinflight = require('promise-inflight')
const spawn = require('./spawn.js')
const { LRUCache } = require('lru-cache')
const linesToRevs = require('./lines-to-revs.js')

@@ -10,4 +10,2 @@ const revsCache = new LRUCache({

const linesToRevs = require('./lines-to-revs.js')
module.exports = async (repo, opts = {}) => {

@@ -21,10 +19,6 @@ if (!opts.noGitRevCache) {

return pinflight(`ls-remote:${repo}`, () =>
spawn(['ls-remote', repo], opts)
.then(({ stdout }) => linesToRevs(stdout.trim().split('\n')))
.then(revs => {
revsCache.set(repo, revs)
return revs
})
)
const { stdout } = await spawn(['ls-remote', repo], opts)
const revs = linesToRevs(stdout.trim().split('\n'))
revsCache.set(repo, revs)
return revs
}
{
"name": "@npmcli/git",
"version": "6.0.1",
"version": "6.0.2",
"main": "lib/index.js",

@@ -35,4 +35,4 @@ "files": [

"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.23.3",
"npm-package-arg": "^11.0.0",
"@npmcli/template-oss": "4.24.1",
"npm-package-arg": "^12.0.1",
"slash": "^3.0.0",

@@ -57,5 +57,5 @@ "tap": "^16.0.1"

"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.23.3",
"version": "4.24.1",
"publish": true
}
}