From 32a9efc3ba6d0d605c0b21e5e428b00225a8902a Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Wed, 16 Aug 2023 08:21:43 +0200 Subject: [PATCH] Add support for SVR.JS utility updates. --- README.md | 2 +- downloader.js | 6 +++--- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6adc1d3..212a17c 100644 --- a/README.md +++ b/README.md @@ -6,5 +6,5 @@ To install SVR.JS type one of those commands: ```bash create-svrjs-server lts #Latest SVR.JS LTS version create-svrjs-server latest #Latest SVR.JS version -create-svrjs-server 3.6.1 #SVR.JS 3.6.1 (replace 3.6.1 with your desired version) +create-svrjs-server 3.6.4 #SVR.JS 3.6.4 (replace 3.6.4 with your desired version) ``` diff --git a/downloader.js b/downloader.js index 11129c7..04834c1 100755 --- a/downloader.js +++ b/downloader.js @@ -15,7 +15,7 @@ if(!version) { console.log(" version - SVR.JS version you want to download"); console.log(" 'latest' -> latest SVR.JS version"); console.log(" 'lts' -> latest LTS SVR.JS version"); - console.log(" '3.6.1' -> SVR.JS 3.6.1"); + console.log(" '3.6.4' -> SVR.JS 3.6.4"); } else if(version == "latest" || version == "lts") { https.get({ hostname: "svrjs.org", @@ -53,7 +53,7 @@ if(!version) { } else { downloadSVRJS(version); } - + function downloadSVRJS(oversion) { var version = oversion.toLowerCase().replace(/[^0-9a-z.]/g,"."); var path = "/dl/svr.js." + version + ".zip"; @@ -85,7 +85,7 @@ function downloadSVRJS(oversion) { var allFileNames = Object.keys(allFiles); for(var i=0;i