Skip to content

Commit

Permalink
0.1.22 added config.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Олег authored and Олег committed Dec 6, 2024
1 parent ad50934 commit 258f733
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env node
let config = {
autoDel: 0
autoDel: 0,
log: true
};
const process = require('process');
const nzcli = require('nzcli');
Expand All @@ -18,6 +19,8 @@ if ((config.config !== undefined) && (typeof config.config === 'string')) {
config.writeConfigFile();
}

if (config.log === 'false') config.log = false;

try {
if (!config.listen) throw new Error('The required parameter "listen" is missing.');
if (!config.net) throw new Error('The required parameter "net" is missing.');
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nzserver",
"version": "0.1.21",
"version": "0.1.22",
"main": "index.js",
"bin": {
"nzserver": "index.js"
Expand Down Expand Up @@ -34,7 +34,7 @@
"nzconfig": "^1.0.0",
"nzfsdb": "^2.0.0",
"nzfunc": "^1.0.6",
"nzmessage": "^1.1.6",
"nzmessage": "^1.1.8",
"nznode": "^1.1.12"
}
}

0 comments on commit 258f733

Please sign in to comment.