@frui.ts/generator
Advanced tools
Comparing version 0.14.0-beta.1 to 0.14.0-beta.2
@@ -54,3 +54,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
var configPath, _a, _b; | ||
return __generator(this, function (_c) { | ||
@@ -65,5 +65,6 @@ switch (_c.label) { | ||
}); | ||
if (!this.params.config) return [3, 2]; | ||
configPath = this.params.config; | ||
if (!configPath) return [3, 2]; | ||
_a = this; | ||
return [4, Promise.resolve().then(function () { return __importStar(require(this.params.config)); })]; | ||
return [4, Promise.resolve().then(function () { return __importStar(require(configPath)); })]; | ||
case 1: | ||
@@ -70,0 +71,0 @@ _a.config = _c.sent(); |
@@ -52,3 +52,3 @@ #!/usr/bin/env node | ||
var package_json_1 = __importDefault(require("../package.json")); | ||
commander_1.program.version(package_json_1.default.version).description(package_json_1.default.description); | ||
commander_1.program.name("fruits-generate").version(package_json_1.default.version).description(package_json_1.default.description); | ||
commander_1.program | ||
@@ -55,0 +55,0 @@ .command("inversify") |
@@ -43,3 +43,3 @@ "use strict"; | ||
else { | ||
var construct = declaration.getConstructors()[0]; | ||
var construct = getConstructor(declaration); | ||
this.registerConstructor(declaration, scope, construct); | ||
@@ -110,2 +110,10 @@ } | ||
exports.default = RegistrationsProcessor; | ||
function getConstructor(declaration) { | ||
var construct = declaration.getConstructors()[0]; | ||
if (construct) { | ||
return construct; | ||
} | ||
var base = declaration.getBaseClass(); | ||
return base ? getConstructor(base) : construct; | ||
} | ||
//# sourceMappingURL=registrationsProcessor.js.map |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "0.14.0-beta.1", | ||
"version": "0.14.0-beta.2", | ||
"description": "Frui.ts code generator", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
"build": "tsc", | ||
"postbuild": "cpr dist/src dist && rimraf dist/src && rimraf dist/package.json" | ||
"postbuild": "cpr dist/src dist -o && rimraf dist/src && rimraf dist/package.json" | ||
}, | ||
@@ -58,3 +58,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "c6986bb414e1ad46fd954ea682561e81df2cdb38" | ||
"gitHead": "5932590277f58035e276298d9f9ba1bfded78089" | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
176133
1957