Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng1-shift

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng1-shift - npm Package Compare versions

Comparing version 0.0.7-alpha.2 to 0.0.7-alpha.3

helpers/array.ts

12

decorators/ng-module/metadata-handlers/import.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc