From 02053b73f96d9d5c9724ddebeaad1ce5a5b28950 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Tue, 10 Dec 2024 19:09:31 +0100 Subject: [PATCH] feat: add example custom SVR.JS configuration validator --- src/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index efcfafb..484cb37 100644 --- a/src/index.js +++ b/src/index.js @@ -51,7 +51,12 @@ module.exports.commands = { // Uncomment, if you want to handle proxy requests //module.exports.proxy = (req, socket, head, logFacilities, config, next) => { // next(); // Invoke other proxy handlers -//} +//}; + +// Uncomment, if you use custom SVR.JS configuration properties in the mod +//module.exports.configValidators = { +// aNumber: (value) => typeof value === "string" +//}; // IPC listener for main process // Control messages received by main process begin with 0x12 control character