Dependency update
All checks were successful
Lint / pre-commit Linting (push) Successful in 25s

This commit is contained in:
2025-04-08 22:05:18 +02:00
committed by Philipp Horstenkamp
parent f7b40cb8dd
commit 6f5fd0fbf5
1005 changed files with 199819 additions and 0 deletions

18
node_modules/which-pm-runs/index.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
'use strict'
module.exports = function () {
if (!process.env.npm_config_user_agent) {
return undefined
}
return pmFromUserAgent(process.env.npm_config_user_agent)
}
function pmFromUserAgent (userAgent) {
const pmSpec = userAgent.split(' ')[0]
const separatorPos = pmSpec.lastIndexOf('/')
const name = pmSpec.substring(0, separatorPos)
return {
name: name === 'npminstall' ? 'cnpm' : name,
version: pmSpec.substring(separatorPos + 1)
}
}