@opuscapita/config
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -47,2 +47,12 @@ const ConfigClientBase = require('./ConfigClientBase'); | ||
/** | ||
* Closes all connections and cleans up the whole internal state. | ||
* | ||
* @returns {Promise} Returns a bluebird [Promise]{@link http://bluebirdjs.com/docs/api-reference.html}. | ||
*/ | ||
dispose() | ||
{ | ||
return Promise.resolve(this._dispose()).catch(e => { this.logger.error(e.message); throw e; }); | ||
} | ||
/** | ||
* Gets the full qualified name for a key including the prefixed [serviceName]{@link serviceName}. | ||
@@ -49,0 +59,0 @@ * @param {string} key - Key to check. |
@@ -71,2 +71,18 @@ const EventEmitter = require('events'); | ||
async _dispose() | ||
{ | ||
this.config = null; | ||
this.logger = null; | ||
this.cache = null; | ||
for(const k in this.watches) | ||
this.watches[k].end(); | ||
this.watches = { }; | ||
this.secret = null; | ||
this.consul = null; | ||
this.initialized = false; | ||
} | ||
async _connect({ host, port, retryCount, retryTimeout }) | ||
@@ -73,0 +89,0 @@ { |
{ | ||
"name": "@opuscapita/config", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "Configuration API connector module for OpusCapita Business Network Portal.", | ||
@@ -40,8 +40,8 @@ "main": "index.js", | ||
"devDependencies": { | ||
"coveralls": "^2.13.3", | ||
"coveralls": "^3.0.1", | ||
"jsdoc-to-markdown": "^4.0.1", | ||
"mocha": "^3.5.3", | ||
"mocha": "^5.2.0", | ||
"mocha-junit-reporter": "^1.17.0", | ||
"nyc": "^10.3.2" | ||
"nyc": "^13.0.0" | ||
} | ||
} |
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
32260
548