Socket
Socket
Sign inDemoInstall

husky

Package Overview
Dependencies
Maintainers
1
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

husky - npm Package Compare versions

Comparing version 0.11.3 to 0.11.4

2

package.json
{
"name": "husky",
"version": "0.11.3",
"version": "0.11.4",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -63,8 +63,23 @@ var fs = require('fs')

// If nvm is installed, try to load it
// This will load default Node version or version specified by .nvmrc
arr = arr.concat([
'export NVM_DIR="' + home + '/.nvm"',
'[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && [ -f .nvmrc ] && nvm use',
'export NVM_DIR="' + home + '/.nvm"'
])
if (process.platform === 'darwin') {
// If nvm was installed using homebrew,
// nvm script will be found in /usr/local/opt/nvm
arr = arr.concat([
'BREW_NVM_DIR="/usr/local/opt/nvm"',
'[ -s "$BREW_NVM_DIR/nvm.sh" ] && . "$BREW_NVM_DIR/nvm.sh"'
])
}
arr = arr.concat([
// If nvm was installed using install script,
// nvm script will be found in $NVM_DIR
'[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"',
// Test if nvm is in PATH and load version specified by .nvmrc
'command -v nvm >/dev/null 2>&1 && [ -f .nvmrc ] && nvm use'
])
}

@@ -71,0 +86,0 @@

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