easy-configuration
Advanced tools
Comparing version 1.3.3 to 1.4.0
@@ -39,2 +39,11 @@ // Generated by CoffeeScript 1.6.3 | ||
EasyConfiguration.prototype.removeExtension = function(name) { | ||
if (typeof this.extensions[name] === 'undefined') { | ||
throw new Error('Extension with name ' + name + ' was not found.'); | ||
} | ||
delete this.extensions[name]; | ||
this.invalidate(); | ||
return this; | ||
}; | ||
EasyConfiguration.prototype.invalidate = function() { | ||
@@ -41,0 +50,0 @@ this.data = null; |
{ | ||
"name": "easy-configuration", | ||
"description": "Simply extensible loader for json config files", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"author": { | ||
@@ -25,3 +25,9 @@ "name": "David Kudera", | ||
}, | ||
"main": "./lib/EasyConfiguration.js" | ||
"main": "./lib/EasyConfiguration.js", | ||
"devDependencies": { | ||
"should": "1.2.2" | ||
}, | ||
"scripts": { | ||
"test": "cd ./test; mocha ./index.js;" | ||
} | ||
} |
@@ -5,2 +5,6 @@ # Easy Configuration | ||
## Changelog | ||
Changelog is in the bottom of this readme. | ||
## Installing | ||
@@ -174,2 +178,10 @@ | ||
var parameters = config.parameters; | ||
``` | ||
``` | ||
## Changelog | ||
* 1.4.0 | ||
+ Added changelog to readme | ||
+ Created tests | ||
+ Tests can be runned with `npm test` command | ||
+ added removeExtension method |
Sorry, the diff of this file is not supported yet
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
26721
16
500
185
1