dependency-injection-cat
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -19,2 +19,3 @@ "use strict"; | ||
exports.NoContextByKey = void 0; | ||
var lodash_1 = require("lodash"); | ||
var NoContextByKey = /** @class */ (function (_super) { | ||
@@ -27,3 +28,5 @@ __extends(NoContextByKey, _super); | ||
_this.name = 'NotFoundException'; | ||
_this.message = "Context with name " + _this.contextName + " and key " + _this.contextKey + " was not initialized"; | ||
_this.message = lodash_1.isString(contextKey) | ||
? "Context " + _this.contextName + " and key " + _this.contextKey + " was not initialized" | ||
: "Context " + _this.contextName + " was not initialized"; | ||
return _this; | ||
@@ -30,0 +33,0 @@ } |
@@ -6,2 +6,3 @@ "use strict"; | ||
var diConfig_1 = require("./diConfig"); | ||
var logLogo_1 = require("../../core/transformers/logLogo"); | ||
var wasInitialized = false; | ||
@@ -13,2 +14,5 @@ var initDiConfig = function (config) { | ||
wasInitialized = true; | ||
if (!(config === null || config === void 0 ? void 0 : config.disableLogoPrint)) { | ||
logLogo_1.logLogo(); | ||
} | ||
lodash_1.mergeWith(diConfig_1.diConfig, config, function (objValue, srcValue) { | ||
@@ -15,0 +19,0 @@ if (lodash_1.isArray(objValue)) { |
{ | ||
"name": "dependency-injection-cat", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
@@ -235,2 +235,3 @@ # Dependency Injection Cat | ||
compiledContextOutputDir ?: string; // Output directory of transformed contextMap, can be specified for debug purposes. Default: node_modules/dependency-injection-cat/external/built-context | ||
disableLogoPrint ?: boolean; // Disable exposing dependency-injections-cat logo into console | ||
} | ||
@@ -237,0 +238,0 @@ ``` |
@@ -9,7 +9,5 @@ "use strict"; | ||
var runCompile_1 = require("../../core/runCompile"); | ||
var logLogo_1 = require("../../core/transformers/logLogo"); | ||
var getTransformerFactory_1 = require("../../core/transformers/getTransformerFactory"); | ||
var libraryName_1 = require("../../constants/libraryName"); | ||
var ProgramRepository_1 = require("../../core/program/ProgramRepository"); | ||
logLogo_1.logLogo(); | ||
function default_1(api, options) { | ||
@@ -16,0 +14,0 @@ config_1.initDiConfig(options); |
@@ -6,4 +6,2 @@ "use strict"; | ||
var getTransformerFactory_1 = require("../../core/transformers/getTransformerFactory"); | ||
var logLogo_1 = require("../../core/transformers/logLogo"); | ||
logLogo_1.logLogo(); | ||
exports.default = (function (program, config) { | ||
@@ -10,0 +8,0 @@ config_1.initDiConfig(config); |
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
208061
3931
599