dependency-injection-cat
Version:
DI Cat is a truly clean DI-container, which allows you not to pollute your business logic with decorators from DI/IOC libraries!
28 lines (27 loc) • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.diConfig = void 0;
var WrongConfigurationException_1 = require("../../exceptions/compilation/WrongConfigurationException");
var DiConfig = /** @class */ (function () {
function DiConfig() {
this.diConfigPattern = '**/*.di.ts';
this.ignorePatterns = ['**/node_modules/**'];
this._errorMessageType = 'human';
}
Object.defineProperty(DiConfig.prototype, "errorMessageType", {
get: function () {
return this._errorMessageType;
},
set: function (type) {
if (type === 'debug' || type === 'human') {
this._errorMessageType = type;
return;
}
throw new WrongConfigurationException_1.WrongConfigurationException("Config option \"errorMessageType\" should be a \"debug\" | \"human\", yours is " + type);
},
enumerable: false,
configurable: true
});
return DiConfig;
}());
exports.diConfig = new DiConfig();