Comparing version 2.0.0-alpha to 2.0.0
@@ -0,1 +1,5 @@ | ||
## 2.0.0 | ||
* [ADDED] - `Config.prototype.isInitialized` method | ||
## 2.0.0-alpha | ||
@@ -2,0 +6,0 @@ |
@@ -23,2 +23,3 @@ var fs = require('fs'); | ||
function Config(data, type) { | ||
this._initialized = false; | ||
this.hasFileConfig = false; | ||
@@ -51,3 +52,11 @@ this.hasShellPositionalArgs = false; | ||
/** | ||
* @return {Boolean} | ||
*/ | ||
Config.prototype.isInitialized = function() { | ||
return !!this._initialized; | ||
}; | ||
/** | ||
* @private | ||
@@ -213,2 +222,4 @@ * @return {String} | ||
)); | ||
this._initialized = true; | ||
}; | ||
@@ -215,0 +226,0 @@ |
{ | ||
"name": "bi-config", | ||
"version": "2.0.0-alpha", | ||
"version": "2.0.0", | ||
"description": "Service configuration provider for bi-service based apps", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,4 @@ | ||
Configuration plugin for [bi-service]() | ||
[![Build Status](https://travis-ci.org/BohemiaInteractive/bi-config.svg?branch=master)](https://travis-ci.org/BohemiaInteractive/bi-config) | ||
Configuration plugin for [bi-service](https://github.com/BohemiaInteractive/bi-service) | ||
Loads a config file from a fs path which defaults to `/config/NODE_ENV/config.json5`. | ||
@@ -3,0 +5,0 @@ `NODE_ENV` defaults to `development` string value. |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
48483
311
1
75