microframework
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -205,2 +205,6 @@ declare module 'microframework/MicroFrameworkConfig' { | ||
/** | ||
* Gets the root directory of the running application. | ||
*/ | ||
rootDirectory: string; | ||
/** | ||
* Sets the name used by microframework. Note that name must be set before bootstrapping the framework. | ||
@@ -207,0 +211,0 @@ */ |
@@ -67,3 +67,3 @@ "use strict"; | ||
key: "setName", | ||
// todo: find the way to remove global dependency | ||
// todo: later rename this to rootDirectory too | ||
@@ -158,4 +158,13 @@ // ------------------------------------------------------------------------- | ||
get: function get() { | ||
return this._configurator; | ||
return this._configurator; // todo: find the way to remove global dependency | ||
} | ||
/** | ||
* Gets the root directory of the running application. | ||
*/ | ||
}, { | ||
key: "rootDirectory", | ||
get: function get() { | ||
return this.settings.baseDirectory; | ||
} | ||
}]); | ||
@@ -162,0 +171,0 @@ |
{ | ||
"name": "microframework", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Micro framework is a bundle of express.js, mongodb ODM, validator, dependancy injection framework and restful controllers for your apps using Typescript", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.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
59972
1057