node-boot-core
Advanced tools
Comparing version 1.1.7 to 1.1.8
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addComponentMetadata = exports.Component = void 0; | ||
var dependency_manager_1 = require("../util/dependency-manager"); | ||
var types_1 = require("./types"); | ||
function Component(key) { | ||
return function (target) { | ||
dependency_manager_1.default.set(key, new target()); | ||
addComponentMetadata(target.prototype); | ||
@@ -8,0 +10,0 @@ }; |
@@ -9,2 +9,3 @@ import dependencyManager from "../util/dependency-manager"; | ||
return function (target: any): any { | ||
dependencyManager.set(key, new target()); | ||
addComponentMetadata(target.prototype); | ||
@@ -11,0 +12,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addConfigurationMetadata = exports.Configuration = void 0; | ||
var dependency_manager_1 = require("../util/dependency-manager"); | ||
var types_1 = require("./types"); | ||
function Configuration(key) { | ||
return function (target) { | ||
dependency_manager_1.default.set(key, new target()); | ||
addConfigurationMetadata(target.prototype); | ||
@@ -8,0 +10,0 @@ }; |
@@ -9,2 +9,3 @@ import dependencyManager from "../util/dependency-manager"; | ||
return function (target: any): any { | ||
dependencyManager.set(key, new target()); | ||
addConfigurationMetadata(target.prototype); | ||
@@ -11,0 +12,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addRepositoryMetadata = exports.Repository = void 0; | ||
var dependency_manager_1 = require("../util/dependency-manager"); | ||
var types_1 = require("./types"); | ||
function Repository(key) { | ||
return function (target) { | ||
dependency_manager_1.default.set(key, new target()); | ||
addRepositoryMetadata(target.prototype); | ||
@@ -8,0 +10,0 @@ }; |
@@ -9,2 +9,3 @@ import dependencyManager from "../util/dependency-manager"; | ||
return function (target: any): any { | ||
dependencyManager.set(key, new target()); | ||
addRepositoryMetadata(target.prototype); | ||
@@ -11,0 +12,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addServiceMetadata = exports.Service = void 0; | ||
var dependency_manager_1 = require("../util/dependency-manager"); | ||
var types_1 = require("./types"); | ||
function Service(key) { | ||
return function (target) { | ||
dependency_manager_1.default.set(key, new target()); | ||
addServiceMetadata(target.prototype); | ||
@@ -8,0 +10,0 @@ }; |
@@ -9,2 +9,3 @@ import dependencyManager from "../util/dependency-manager"; | ||
return function (target: any): any { | ||
dependencyManager.set(key, new target()); | ||
addServiceMetadata(target.prototype); | ||
@@ -11,0 +12,0 @@ }; |
@@ -37,2 +37,3 @@ "use strict"; | ||
Object.assign(global, { socketIO: socket }); | ||
instance["main"].call(this, { app: app, socketIO: socket }); | ||
src = (0, util_1.getPropertiesData)(properties, "source.dir", "src"); | ||
@@ -54,11 +55,10 @@ urlPrefix = (0, util_1.getPropertiesData)(properties, "api.prefix", ""); | ||
} | ||
dependency_manager_1.default.set(item.name, item.controller); | ||
types_1.DependenciesMapping.push({ | ||
key: item.name, | ||
value: item.controller, | ||
}); | ||
} | ||
dependency_manager_1.default.set(item.name, item.controller); | ||
types_1.DependenciesMapping.push({ | ||
key: item.name, | ||
value: item.controller, | ||
}); | ||
} | ||
}); | ||
instance["main"].call(this, { app: app, socketIO: socket }); | ||
return [2]; | ||
@@ -65,0 +65,0 @@ } |
@@ -44,5 +44,8 @@ import "reflect-metadata"; | ||
Object.assign(global, { socketIO: socket }); | ||
instance["main"].call(this, { app, socketIO: socket }); | ||
const src = getPropertiesData(properties, "source.dir", "src"); | ||
const urlPrefix = getPropertiesData(properties, "api.prefix", ""); | ||
const allFiles = listDirectories(`${dir}/${src}/`); | ||
// const configurationInstances: any[] = await readConfigurationFiles(allFiles); | ||
const controllerInstances: any[] = await readFiles(allFiles); | ||
@@ -63,11 +66,11 @@ const routerLibrary: RouterLib = Router; | ||
} | ||
dependencyManager.set(item.name, item.controller); | ||
DependenciesMapping.push({ | ||
key: item.name, | ||
value: item.controller, | ||
}); | ||
} | ||
dependencyManager.set(item.name, item.controller); | ||
DependenciesMapping.push({ | ||
key: item.name, | ||
value: item.controller, | ||
}); | ||
} | ||
}); | ||
instance["main"].call(this, { app, socketIO: socket }); | ||
}; | ||
@@ -74,0 +77,0 @@ |
{ | ||
"name": "node-boot-core", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
178117
3245