Comparing version 0.0.7-alpha.2 to 0.0.7-alpha.3
@@ -0,1 +1,3 @@ | ||
import {findFirst} from "../../../helpers/array"; | ||
type ng1Module = { $inject?: Array<string> } | any; | ||
@@ -7,7 +9,11 @@ | ||
const modules = imports.filter((mdl: ng1Module) => { | ||
return !(mdl.$inject && mdl.$inject.find((i: any) => i === "$stateProvider")); | ||
return !( | ||
mdl.$inject | ||
&& findFirst(mdl.$inject, (i: any) => i === "$stateProvider") | ||
); | ||
}); | ||
const ng1RouterConfig = imports.find((mdl: ng1Module) => { | ||
return mdl.$inject && mdl.$inject.find((i: any) => i === "$stateProvider"); | ||
const ng1RouterConfig = findFirst(imports, (mdl: ng1Module) => { | ||
return mdl.$inject | ||
&& findFirst(mdl.$inject, (i: any) => i === "$stateProvider"); | ||
}); | ||
@@ -14,0 +20,0 @@ |
const {NgModule, BrowserModule, UIRouterModule} = require("./export-switch"); | ||
import "reflect-metadata"; | ||
import {AppComponent} from "./component"; | ||
@@ -9,2 +11,3 @@ import {NgShiftModule} from "./module"; | ||
@NgModule({ | ||
id: "app-module", | ||
imports: [ | ||
@@ -11,0 +14,0 @@ ...UIRouterModule, |
{ | ||
"name": "ng1-shift", | ||
"version": "0.0.7-alpha.2", | ||
"version": "0.0.7-alpha.3", | ||
"description": "Angular 1.5+ decorators for writing Angular2 like.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
35244
58
851