From ad23033b155db5f1f7a81b098a127aa24d4b735a Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 19 Oct 2024 07:16:02 +0200 Subject: [PATCH] feat: add support for Deno 2 for additional SVR.JS utilities --- src/extraScripts/loghighlight.js | 4 +++- src/extraScripts/logviewer.js | 4 +++- src/extraScripts/svrpasswd.js | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/extraScripts/loghighlight.js b/src/extraScripts/loghighlight.js index b713f9e..dd60393 100644 --- a/src/extraScripts/loghighlight.js +++ b/src/extraScripts/loghighlight.js @@ -5,7 +5,9 @@ const readline = require("readline"); const args = process.argv; for ( let i = - process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1 + process.argv[0].indexOf("node") > -1 || + process.argv[0].indexOf("bun") > -1 || + process.argv[0].indexOf("deno") > -1 ? 2 : 1; i < args.length; diff --git a/src/extraScripts/logviewer.js b/src/extraScripts/logviewer.js index f02575e..44e4cb0 100644 --- a/src/extraScripts/logviewer.js +++ b/src/extraScripts/logviewer.js @@ -6,7 +6,9 @@ const readline = require("readline"); const args = process.argv; for ( let i = - process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1 + process.argv[0].indexOf("node") > -1 || + process.argv[0].indexOf("bun") > -1 || + process.argv[0].indexOf("deno") > -1 ? 2 : 1; i < args.length; diff --git a/src/extraScripts/svrpasswd.js b/src/extraScripts/svrpasswd.js index 25c6820..f87f7ea 100644 --- a/src/extraScripts/svrpasswd.js +++ b/src/extraScripts/svrpasswd.js @@ -299,7 +299,9 @@ if ( args.push("-h"); for ( let i = - process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1 + process.argv[0].indexOf("node") > -1 || + process.argv[0].indexOf("bun") > -1 || + process.argv[0].indexOf("deno") > -1 ? 2 : 1; i < args.length;