@capriza/connector-controller
Advanced tools
Comparing version 1.0.57 to 1.0.58
{ | ||
"name": "@capriza/connector-controller", | ||
"version": "1.0.57", | ||
"version": "1.0.58", | ||
"description": "Capriza connectors controller", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,6 +23,7 @@ const chokidar = require('chokidar'); | ||
watcher.on('change', (event, filename) => { | ||
watcher.on('change', async (event, filename) => { | ||
console.log(`File ${filename} reloading connector`); | ||
Object.keys(require.cache).forEach(key=>delete require.cache[key]); | ||
await server.stopBL(); | ||
init(); | ||
}); |
@@ -285,3 +285,7 @@ var validate = require('@capriza/schemas').validate; | ||
await bl.init({config: config.blConfig, logger}); | ||
}, | ||
async stopBL() { | ||
await bl.stop(); | ||
} | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131401
1539