@npmcli/git
Advanced tools
+5
-11
@@ -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 | ||
| } |
+4
-4
| { | ||
| "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 | ||
| } | ||
| } |
Network access
Supply chain riskThis module accesses the network.
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 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
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 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
22946
-0.57%500
-0.99%