🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@jchip/nvm

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jchip/nvm - npm Package Compare versions

Comparing version
1.5.6
to
1.5.7
+13
-9
install.ps1

@@ -6,3 +6,3 @@ param (

$nvmVersion = "1.5.6"
$nvmVersion = "1.5.7"
$nvmVersionV = "v$nvmVersion"

@@ -46,3 +46,2 @@ $DisableInstallNvmFromTgz = $false

function getLtsVersion() {

@@ -53,12 +52,17 @@ $nodejsVersionsUrl = "https://nodejs.org/dist/index.json"

Try {
$lts = Invoke-WebRequest "$nodejsVersionsUrl" | ConvertFrom-Json | where { $_.lts }
$lts = Invoke-WebRequest "$nodejsVersionsUrl" | ConvertFrom-Json
$v = $lts[0].version
foreach ($q in $lts) {
if ($q.lts -ne $false) {
$v = $q.version
if (-not ($v.StartsWith("v"))) {
$v = "v" + $v
}
if (-not ($v.StartsWith("v"))) {
$v = "v" + $v
}
if ($v -match "^v\d+\.\d+\.\d+$") {
$foundVersion = $v
if ($v -match "^v\d+\.\d+\.\d+$") {
$foundVersion = $v
break
}
}
}

@@ -65,0 +69,0 @@ }

NVM_VERSION="1.5.6"
NVM_VERSION="1.5.7"
NVM_VERSION_V="v${NVM_VERSION}"

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

{
"name": "@jchip/nvm",
"description": "nvm: a universal node.js version manager for Windows (no admin) and Unix",
"version": "1.5.6",
"version": "1.5.7",
"author": "Tom.Huang <hzlhu.dargon@gmail.com>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -55,3 +55,3 @@ # @jchip/nvm

cd $Env:USERPROFILE;
Invoke-WebRequest https://raw.githubusercontent.com/jchip/nvm/v1.5.6/install.ps1 -OutFile install.ps1;
Invoke-WebRequest https://raw.githubusercontent.com/jchip/nvm/v1.5.7/install.ps1 -OutFile install.ps1;
.\install.ps1 -nvmhome $Env:USERPROFILE\nvm;

@@ -67,3 +67,3 @@ del install.ps1

cd $Env:USERPROFILE;
Invoke-WebRequest https://unpkg.com/@jchip/nvm@1.5.6/install.ps1 -OutFile install.ps1;
Invoke-WebRequest https://unpkg.com/@jchip/nvm@1.5.7/install.ps1 -OutFile install.ps1;
.\install.ps1 -nvmhome $Env:USERPROFILE\nvm;

@@ -79,3 +79,3 @@ del install.ps1

cd $Env:USERPROFILE;
Invoke-WebRequest https://cdn.jsdelivr.net/npm/@jchip/nvm@1.5.6/install.ps1 -OutFile install.ps1;
Invoke-WebRequest https://cdn.jsdelivr.net/npm/@jchip/nvm@1.5.7/install.ps1 -OutFile install.ps1;
.\install.ps1 -nvmhome $Env:USERPROFILE\nvm;

@@ -140,3 +140,3 @@ del install.ps1

```bash
NVM_HOME=~/nvm curl -o- https://raw.githubusercontent.com/jchip/nvm/v1.5.6/install.sh | bash
NVM_HOME=~/nvm curl -o- https://raw.githubusercontent.com/jchip/nvm/v1.5.7/install.sh | bash
```

@@ -147,3 +147,3 @@

```bash
NVM_HOME=~/nvm wget -qO- https://raw.githubusercontent.com/jchip/nvm/v1.5.6/install.sh | bash
NVM_HOME=~/nvm wget -qO- https://raw.githubusercontent.com/jchip/nvm/v1.5.7/install.sh | bash
```

@@ -158,3 +158,3 @@

```bash
NVM_HOME=~/nvm curl -o- https://unpkg.com/@jchip/nvm@1.5.6/install.sh | bash
NVM_HOME=~/nvm curl -o- https://unpkg.com/@jchip/nvm@1.5.7/install.sh | bash
```

@@ -165,3 +165,3 @@

```bash
NVM_HOME=~/nvm wget -qO- https://unpkg.com/@jchip/nvm@1.5.6/install.sh | bash
NVM_HOME=~/nvm wget -qO- https://unpkg.com/@jchip/nvm@1.5.7/install.sh | bash
```

@@ -176,3 +176,3 @@

```bash
NVM_HOME=~/nvm curl -o- https://cdn.jsdelivr.net/npm/@jchip/nvm@1.5.6/install.sh | bash
NVM_HOME=~/nvm curl -o- https://cdn.jsdelivr.net/npm/@jchip/nvm@1.5.7/install.sh | bash
```

@@ -183,3 +183,3 @@

```bash
NVM_HOME=~/nvm wget -qO- https://cdn.jsdelivr.net/npm/@jchip/nvm@1.5.6/install.sh | bash
NVM_HOME=~/nvm wget -qO- https://cdn.jsdelivr.net/npm/@jchip/nvm@1.5.7/install.sh | bash
```

@@ -186,0 +186,0 @@