config-kit
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,3 +0,15 @@ | ||
# v1.0.0 | ||
# v1.0.1 (Jun 1, 2020) | ||
* Initial release. | ||
* fix: Added object check when checking if object changed during watch handler execution. | ||
* chore: Updated dependencies. | ||
# v1.0.0 (Mar 27, 2020) | ||
* Initial release with support for: | ||
- Layered data architecture | ||
- Schema validation using [joi] | ||
- Default values | ||
- Environment variable precedence | ||
- Define custom layers | ||
- Extensible data store interface | ||
- Support for array type values |
@@ -342,3 +342,3 @@ "use strict"; | ||
}))) { | ||
this.layers.add(_objectSpread({}, opts, { | ||
this.layers.add(_objectSpread(_objectSpread({}, opts), {}, { | ||
id, | ||
@@ -674,4 +674,6 @@ store: new StoreClass() | ||
const wrapped = (obj, ...args) => { | ||
var _obj$Node$Meta; | ||
// get the last value so we can dedupe | ||
const val = obj !== undefined && obj[_node.default.Meta].hash; | ||
const val = (obj === null || obj === void 0 ? void 0 : (_obj$Node$Meta = obj[_node.default.Meta]) === null || _obj$Node$Meta === void 0 ? void 0 : _obj$Node$Meta.hash) || obj; | ||
@@ -696,2 +698,2 @@ if (desc.last !== val) { | ||
_defineProperty(Config, "Base", Symbol('base')); | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbmZpZy5qcyJdLCJuYW1lcyI6WyJhcnJheUFjdGlvblJFIiwiQ29uZmlnIiwiY29uc3RydWN0b3IiLCJvcHRzIiwiSm9pIiwiU3RvcmVSZWdpc3RyeSIsIk1hcCIsImxlbmd0aCIsIm9wdCIsIlR5cGVFcnJvciIsIk9iamVjdCIsImFzc2lnbiIsImRhdGEiLCJzdG9yZXMiLCJhZGQiLCJKU1N0b3JlIiwiSlNPTlN0b3JlIiwic3RvcmUiLCJTdG9yZSIsImdldFByb3RvdHlwZU9mIiwiZmlsZSIsIlN0b3JlQ2xhc3MiLCJnZXQiLCJwYXRoIiwiZXh0bmFtZSIsImxheWVycyIsIk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yB3ZSBjYW4gZGVkdXBlXG5cdFx0XHRjb25zdCB2YWwgPSBvYmo/LltOb2RlLk1ldGFdPy5oYXNoIHx8IG9iajtcblx0XHRcdGlmIChkZXNjLmxhc3QgIT09IHZhbCkge1xuXHRcdFx0XHRkZXNjLmxhc3QgPSB2YWw7XG5cdFx0XHRcdGhhbmRsZXIob2JqLCAuLi5hcmdzKTtcblx0XHRcdH1cblx0XHR9O1xuXG5cdFx0ZGVzYy53cmFwcGVkID0gd3JhcHBlZDtcblxuXHRcdHRoaXMubGF5ZXJzLndhdGNoKGZpbHRlciwgd3JhcHBlZCk7XG5cdFx0cmV0dXJuIHRoaXM7XG5cdH1cbn1cbiJdLCJmaWxlIjoiY29uZmlnLmpzIn0= |
@@ -147,3 +147,3 @@ "use strict"; | ||
if (isLayer || !layer.validate) { | ||
layer.validate = args => (0, _util.validate)(_objectSpread({}, args, { | ||
layer.validate = args => (0, _util.validate)(_objectSpread(_objectSpread({}, args), {}, { | ||
schemas: this.layers.map(layer => layer.schema), | ||
@@ -383,2 +383,2 @@ validateOptions: { | ||
exports.default = LayerList; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxheWVyLWxpc3QuanMiXSwibmFtZXMiOlsibG9nIiwiaGlnaGxpZ2h0Iiwic25vb3Bsb2dnIiwic3R5bGVzIiwiQWxsIiwiU3ltYm9sIiwiaXRlcmF0b3IiLCJMYXllckxpc3QiLCJjb25zdHJ1Y3RvciIsIm9wdHMiLCJpIiwibGF5ZXJzIiwibGVuZ3RoIiwibmV4dCIsImRvbmUiLCJ2YWx1ZSIsInVuZGVmaW5lZCIsImFsbG93TnVsbHMiLCJhbGxvd1Vua25vd24iLCJhZGQiLCJsYXllciIsIlR5cGVFcnJvciIsImlkIiwiQXJyYXkiLCJpc0FycmF5IiwiRXJyb3IiLCJleGlzdGluZyIsIm1hcCIsInByb3AiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJo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YXkuPFN0cmluZz59IFtmaWx0ZXJdIC0gQSBwcm9wZXJ0eSBuYW1lIG9yIGFycmF5IG9mIG5lc3RlZCBwcm9wZXJ0aWVzIHRvIHdhdGNoLlxuXHQgKiBAcGFyYW0ge0Z1bmN0aW9ufSBoYW5kbGVyIC0gQSBjYWxsYmFjayB0byBmaXJlIHdoZW4gYSBjaGFuZ2Ugb2NjdXJzLlxuXHQgKiBAYWNjZXNzIHB1YmxpY1xuXHQgKi9cblx0d2F0Y2goZmlsdGVyLCBoYW5kbGVyKSB7XG5cdFx0aWYgKCFoYW5kbGVyIHx8IHR5cGVvZiBoYW5kbGVyICE9PSAnZnVuY3Rpb24nKSB7XG5cdFx0XHR0aHJvdyBuZXcgVHlwZUVycm9yKCdFeHBlY3RlZCBoYW5kbGVyIHRvIGJlIGEgZnVuY3Rpb24nKTtcblx0XHR9XG5cblx0XHRsb2coYFJlZ2lzdGVyaW5nIHdhdGNoZXI6ICR7aGlnaGxpZ2h0KGAke2hhbmRsZXIubmFtZX0oKWApfSAke2ZpbHRlci5sZW5ndGggPyBmaWx0ZXIuam9pbignLicpIDogJyd9YCk7XG5cblx0XHR0aGlzLndhdGNoZXJzLnB1c2goeyBmaWx0ZXIsIGhhbmRsZXIgfSk7XG5cblx0XHRmb3IgKGNvbnN0IGxheWVyIG9mIHRoaXMubGF5ZXJzKSB7XG5cdFx0XHRsYXllci53YXRjaChmaWx0ZXIsIGhhbmRsZXIpO1xuXHRcdH1cblx0fVxufVxuIl0sImZpbGUiOiJsYXllci1saXN0LmpzIn0= |
{ | ||
"name": "config-kit", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A universal, layered configuration system.", | ||
@@ -28,8 +28,8 @@ "main": "./dist/index.js", | ||
"import-fresh": "^3.2.1", | ||
"snooplogg": "^2.3.3", | ||
"source-map-support": "^0.5.16" | ||
"snooplogg": "^3.0.0", | ||
"source-map-support": "^0.5.19" | ||
}, | ||
"devDependencies": { | ||
"appcd-gulp": "^2.4.0", | ||
"tmp": "^0.1.0" | ||
"appcd-gulp": "^3.0.0", | ||
"tmp": "^0.2.1" | ||
}, | ||
@@ -36,0 +36,0 @@ "homepage": "https://github.com/appcelerator/config-kit", |
@@ -44,3 +44,3 @@ # config-kit | ||
[1]: https://github.com/appcelerator/titaniumlib/blob/master/LICENSE | ||
[1]: https://github.com/appcelerator/config-kit/blob/master/LICENSE | ||
[npm-image]: https://img.shields.io/npm/v/config-kit.svg | ||
@@ -47,0 +47,0 @@ [npm-url]: https://npmjs.org/package/config-kit |
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
258345
3225
+ Addedchalk@4.1.2(transitive)
+ Addedsnooplogg@3.0.2(transitive)
+ Addedsupports-color@8.1.1(transitive)
- Removedchalk@3.0.0(transitive)
- Removedsnooplogg@2.3.3(transitive)
Updatedsnooplogg@^3.0.0
Updatedsource-map-support@^0.5.19