simple-boot-core
Advanced tools
Comparing version 1.0.39 to 1.0.40
@@ -12,2 +12,3 @@ import 'reflect-metadata'; | ||
type?: ConstructorType<any> | ConstructorType<any>[]; | ||
using?: (ConstructorType<any>)[]; | ||
} | ||
@@ -14,0 +15,0 @@ export declare const SimMetadataKey: unique symbol; |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
@@ -14,2 +23,4 @@ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
var Intent_1 = require("./Intent"); | ||
var SimstanceManager_1 = require("../simstance/SimstanceManager"); | ||
var SimDecorator_1 = require("../decorators/SimDecorator"); | ||
var IntentManager = (function () { | ||
@@ -70,4 +81,8 @@ function IntentManager(simstanceManager) { | ||
}; | ||
IntentManager = __decorate([ | ||
SimDecorator_1.Sim, | ||
__metadata("design:paramtypes", [SimstanceManager_1.SimstanceManager]) | ||
], IntentManager); | ||
return IntentManager; | ||
}()); | ||
exports.IntentManager = IntentManager; |
{ | ||
"name": "simple-boot-core", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"main": "SimpleApplication.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -53,3 +62,5 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
var SimAtomic_1 = require("../simstance/SimAtomic"); | ||
var SimstanceManager_1 = require("../simstance/SimstanceManager"); | ||
var OnRoute_1 = require("../decorators/route/OnRoute"); | ||
var SimDecorator_1 = require("../decorators/SimDecorator"); | ||
var RouterManager = (function () { | ||
@@ -258,8 +269,12 @@ function RouterManager(simstanceManager, rootRouter) { | ||
if (pathnameData) { | ||
var _b = this.findRouteProperty(routerData.route, it_1, intent), child = _b.child, data = _b.data, propertyKeys = _b.propertyKeys; | ||
var rm = new RouterModule_1.RouterModule(this.simstanceManager, router, child); | ||
rm.data = data; | ||
rm.pathData = pathnameData; | ||
rm.propertyKeys = propertyKeys; | ||
return rm; | ||
try { | ||
var dataSet = this.findRouteProperty(routerData.route, it_1, intent); | ||
var rm = new RouterModule_1.RouterModule(this.simstanceManager, router, dataSet.child); | ||
rm.data = dataSet.data; | ||
rm.pathData = pathnameData; | ||
rm.propertyKeys = dataSet.propertyKeys; | ||
return rm; | ||
} | ||
catch (e) { | ||
} | ||
} | ||
@@ -328,4 +343,8 @@ } | ||
}; | ||
RouterManager = __decorate([ | ||
SimDecorator_1.Sim, | ||
__metadata("design:paramtypes", [SimstanceManager_1.SimstanceManager, Object]) | ||
], RouterManager); | ||
return RouterManager; | ||
}()); | ||
exports.RouterManager = RouterManager; |
@@ -24,5 +24,5 @@ "use strict"; | ||
this.simstanceManager.set(SimpleApplication, this); | ||
this.intentManager = new IntentManager_1.IntentManager(this.simstanceManager); | ||
this.routerManager = new RouterManager_1.RouterManager(this.simstanceManager, this.rootRouter); | ||
this.simstanceManager.set(SimstanceManager_1.SimstanceManager, this.simstanceManager); | ||
this.intentManager = this.simstanceManager.proxy(new IntentManager_1.IntentManager(this.simstanceManager)); | ||
this.routerManager = this.simstanceManager.proxy(new RouterManager_1.RouterManager(this.simstanceManager, this.rootRouter)); | ||
this.simstanceManager.set(IntentManager_1.IntentManager, this.intentManager); | ||
@@ -29,0 +29,0 @@ this.simstanceManager.set(RouterManager_1.RouterManager, this.routerManager); |
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
142842
2959