tlsd 2.9.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scaffold/static/local.sass +1 -0
- package/scaffold/static/local.sass.css +1 -0
- package/tlsd.js +14 -3
package/package.json
CHANGED
package/tlsd.js
CHANGED
|
@@ -43,6 +43,17 @@ const next_seq = function() {
|
|
|
43
43
|
// Tries to load the rpc handler module from root and if successful, passes the msg to it
|
|
44
44
|
const rpc_handler = function( root, msg, xport, _okay, _fail ) {
|
|
45
45
|
|
|
46
|
+
let ll = toInt( msg.log_level );
|
|
47
|
+
if( ll > 0 ) {
|
|
48
|
+
D( "Setting log level to "+ll );
|
|
49
|
+
log_level = ll;
|
|
50
|
+
L( log_level );
|
|
51
|
+
setTimeout( () => {
|
|
52
|
+
ll = process.env.VERBOSITY;
|
|
53
|
+
D( "Reverting log level to "+ll );
|
|
54
|
+
}, 15 * 1000 );
|
|
55
|
+
}
|
|
56
|
+
|
|
46
57
|
V( "RPC " + o2j( msg ).abbr( 70 ) );
|
|
47
58
|
D( "----------->>> "+xport+" "+o2j( msg, null, 2 ) );
|
|
48
59
|
|
|
@@ -306,8 +317,8 @@ const ws_attach = function( httpServer, msg_handler ) {
|
|
|
306
317
|
|
|
307
318
|
|
|
308
319
|
|
|
320
|
+
/*
|
|
309
321
|
const build_sass = function( path ) {
|
|
310
|
-
//D( "_________ auto_build sass " + path );
|
|
311
322
|
const sass = require( "sass" );
|
|
312
323
|
const result = sass.compile( path );
|
|
313
324
|
fs.writeFileSync( path + ".css", result.css, "utf8" );
|
|
@@ -321,7 +332,6 @@ const auto_builders = [
|
|
|
321
332
|
const auto_build = function( paths ) {
|
|
322
333
|
|
|
323
334
|
for( let path of paths ) {
|
|
324
|
-
// D( "___ path? " + path );
|
|
325
335
|
for( const bldr of auto_builders ) {
|
|
326
336
|
if( bldr[ 0 ].test( path ) ) {
|
|
327
337
|
bldr[ 1 ]( path );
|
|
@@ -381,6 +391,7 @@ const enable_fs_watch = function( root ) {
|
|
|
381
391
|
} );
|
|
382
392
|
|
|
383
393
|
};
|
|
394
|
+
*/
|
|
384
395
|
|
|
385
396
|
|
|
386
397
|
// -----------------------
|
|
@@ -455,7 +466,7 @@ if( argv.length == 5 ) {
|
|
|
455
466
|
} );
|
|
456
467
|
|
|
457
468
|
// enable the file system watch, which handles hot-reload and auto-build
|
|
458
|
-
enable_fs_watch( SITE_ROOT );
|
|
469
|
+
// enable_fs_watch( SITE_ROOT );
|
|
459
470
|
|
|
460
471
|
I( "Listening on " + PORT + " & serving from " + SITE_ROOT );
|
|
461
472
|
|