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

ngimport

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngimport - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

38

ngimport.d.ts

@@ -1,7 +0,31 @@

import { IHttpService, ILogService, IQService, IRootScopeService, ITemplateCacheService, IWindowService } from 'angular';
export declare let $http: IHttpService;
export declare let $log: ILogService;
export declare let $q: IQService;
export declare let $rootScope: IRootScopeService;
export declare let $templateCache: ITemplateCacheService;
export declare let $window: IWindowService;
import * as angular from 'angular';
export declare let $animate: angular.animate.IAnimateService;
export declare let $animateCss: angular.animate.IAnimateCssService;
export declare let $anchorScroll: angular.IAnchorScrollService;
export declare let $cacheFactory: angular.ICacheFactoryService;
export declare let $compile: angular.ICompileService;
export declare let $controller: angular.IControllerService;
export declare let $document: angular.IDocumentService;
export declare let $exceptionHandler: angular.IExceptionHandlerService;
export declare let $filter: angular.IFilterService;
export declare let $http: angular.IHttpService;
export declare let $httpBackend: angular.IHttpBackendService;
export declare let $httpParamSerializer: angular.IHttpParamSerializer;
export declare let $httpParamSerializerJQLike: any;
export declare let $injector: angular.auto.IInjectorService;
export declare let $interpolate: angular.IInterpolateService;
export declare let $interval: angular.IIntervalService;
export declare let $locale: angular.ILocaleService;
export declare let $location: angular.ILocationService;
export declare let $log: angular.ILogService;
export declare let $parse: angular.IParseService;
export declare let $q: angular.IQService;
export declare let $rootElement: angular.IRootElementService;
export declare let $rootScope: angular.IRootScopeService;
export declare let $sce: angular.ISCEService;
export declare let $sceDelegate: angular.ISCEDelegateService;
export declare let $templateCache: angular.ITemplateCacheService;
export declare let $templateRequest: angular.ITemplateRequestService;
export declare let $timeout: angular.ITimeoutService;
export declare let $window: angular.IWindowService;
export declare let $xhrFactory: any;

@@ -1,14 +0,64 @@

export let $http = null;
export let $log = null;
export let $q = null;
export let $rootScope = null;
export let $templateCache = null;
export let $window = null;
import * as angular from 'angular';
export let $animate = undefined;
export let $animateCss = undefined;
export let $anchorScroll = undefined;
export let $cacheFactory = undefined;
export let $compile = undefined;
export let $controller = undefined;
export let $document = undefined;
export let $exceptionHandler = undefined;
export let $filter = undefined;
export let $http = undefined;
export let $httpBackend = undefined;
export let $httpParamSerializer = undefined;
export let $httpParamSerializerJQLike = undefined;
export let $injector = undefined;
export let $interpolate = undefined;
export let $interval = undefined;
export let $locale = undefined;
export let $location = undefined;
export let $log = undefined;
export let $parse = undefined;
export let $q = undefined;
export let $rootElement = undefined;
export let $rootScope = undefined;
export let $sce = undefined;
export let $sceDelegate = undefined;
export let $templateCache = undefined;
export let $templateRequest = undefined;
export let $timeout = undefined;
export let $window = undefined;
export let $xhrFactory = undefined;
// TODO: add mgMock/ngMockE2E services
angular.module('bcherny/ngimport', []).run(function ($injector) {
$animate = $injector.get('$animate');
$animateCss = $injector.get('$animateCss');
$anchorScroll = $injector.get('$anchorScroll');
$cacheFactory = $injector.get('$cacheFactory');
$compile = $injector.get('$compile');
$controller = $injector.get('$controller');
$document = $injector.get('$document');
$exceptionHandler = $injector.get('$exceptionHandler');
$filter = $injector.get('$filter');
$http = $injector.get('$http');
$httpBackend = $injector.get('$httpBackend');
$httpParamSerializer = $injector.get('$httpParamSerializer');
$httpParamSerializerJQLike = $injector.get('$httpParamSerializerJQLike');
$injector = $injector;
$interpolate = $injector.get('$interpolate');
$interval = $injector.get('$interval');
$locale = $injector.get('$locale');
$location = $injector.get('$location');
$log = $injector.get('$log');
$parse = $injector.get('$parse');
$q = $injector.get('$q');
$rootElement = $injector.get('$rootElement');
$rootScope = $injector.get('$rootScope');
$sce = $injector.get('$sce');
$sceDelegate = $injector.get('$sceDelegate');
$templateCache = $injector.get('$templateCache');
$templateRequest = $injector.get('$templateRequest');
$timeout = $injector.get('$timeout');
$window = $injector.get('$window');
$xhrFactory = $injector.get('$xhrFactory');
});

22

ngimport.js

@@ -6,7 +6,5 @@ "use strict";

exports.$anchorScroll = undefined;
exports.$aria = undefined;
exports.$cacheFactory = undefined;
exports.$compile = undefined;
exports.$controller = undefined;
exports.$cookies = undefined;
exports.$document = undefined;

@@ -26,19 +24,10 @@ exports.$exceptionHandler = undefined;

exports.$parse = undefined;
exports.$provide = undefined;
exports.$q = undefined;
exports.$resource = undefined;
exports.$rootElement = undefined;
exports.$rootRouter = undefined;
exports.$rootScope = undefined;
exports.$route = undefined;
exports.$routeParams = undefined;
exports.$routerRootComponent = undefined;
exports.$sanitize = undefined;
exports.$sce = undefined;
exports.$sceDelegate = undefined;
exports.$swipe = undefined;
exports.$templateCache = undefined;
exports.$templateRequest = undefined;
exports.$timeout = undefined;
exports.$touch = undefined;
exports.$window = undefined;

@@ -51,7 +40,5 @@ exports.$xhrFactory = undefined;

exports.$anchorScroll = $injector.get('$anchorScroll');
exports.$aria = $injector.get('$aria');
exports.$cacheFactory = $injector.get('$cacheFactory');
exports.$compile = $injector.get('$compile');
exports.$controller = $injector.get('$controller');
exports.$cookies = $injector.get('$cookies');
exports.$document = $injector.get('$document');

@@ -71,21 +58,12 @@ exports.$exceptionHandler = $injector.get('$exceptionHandler');

exports.$parse = $injector.get('$parse');
exports.$provide = $injector.get('$provide');
exports.$q = $injector.get('$q');
exports.$resource = $injector.get('$resource');
exports.$rootElement = $injector.get('$rootElement');
exports.$rootRouter = $injector.get('$rootRouter');
exports.$rootScope = $injector.get('$rootScope');
exports.$route = $injector.get('$route');
exports.$routeParams = $injector.get('$routeParams');
exports.$routerRootComponent = $injector.get('$routerRootComponent');
exports.$sanitize = $injector.get('$sanitize');
exports.$sce = $injector.get('$sce');
exports.$sceDelegate = $injector.get('$sceDelegate');
exports.$swipe = $injector.get('$swipe');
exports.$templateCache = $injector.get('$templateCache');
exports.$templateRequest = $injector.get('$templateRequest');
exports.$timeout = $injector.get('$timeout');
exports.$touch = $injector.get('$touch');
exports.$window = $injector.get('$window');
exports.$xhrFactory = $injector.get('$xhrFactory');
});

@@ -7,7 +7,5 @@ import * as angular from 'angular'

export let $anchorScroll: angular.IAnchorScrollService = undefined
export let $aria: any = undefined
export let $cacheFactory: angular.ICacheFactoryService = undefined
export let $compile: angular.ICompileService = undefined
export let $controller: angular.IControllerService = undefined
export let $cookies: any = undefined
export let $document: angular.IDocumentService = undefined

@@ -27,19 +25,10 @@ export let $exceptionHandler: angular.IExceptionHandlerService = undefined

export let $parse: angular.IParseService = undefined
export let $provide: angular.auto.IProvideService = undefined
export let $q: angular.IQService = undefined
export let $resource: any = undefined
export let $rootElement: angular.IRootElementService = undefined
export let $rootRouter: any = undefined
export let $rootScope: angular.IRootScopeService = undefined
export let $route: any = undefined
export let $routeParams: any = undefined
export let $routerRootComponent: any = undefined
export let $sanitize: any = undefined
export let $sce: angular.ISCEService = undefined
export let $sceDelegate: angular.ISCEDelegateService = undefined
export let $swipe: any = undefined
export let $templateCache: angular.ITemplateCacheService = undefined
export let $templateRequest: angular.ITemplateRequestService = undefined
export let $timeout: angular.ITimeoutService = undefined
export let $touch: any = undefined
export let $window: angular.IWindowService = undefined

@@ -54,7 +43,5 @@ export let $xhrFactory: any = undefined

$anchorScroll = <angular.IAnchorScrollService>$injector.get('$anchorScroll')
$aria = <any>$injector.get('$aria')
$cacheFactory = <angular.ICacheFactoryService>$injector.get('$cacheFactory')
$compile = <angular.ICompileService>$injector.get('$compile')
$controller = <angular.IControllerService>$injector.get('$controller')
$cookies = <any>$injector.get('$cookies')
$document = <angular.IDocumentService>$injector.get('$document')

@@ -74,21 +61,12 @@ $exceptionHandler = <angular.IExceptionHandlerService>$injector.get('$exceptionHandler')

$parse = <angular.IParseService>$injector.get('$parse')
$provide = <angular.auto.IProvideService>$injector.get('$provide')
$q = <angular.IQService>$injector.get('$q')
$resource = <any>$injector.get('$resource')
$rootElement = <angular.IRootElementService>$injector.get('$rootElement')
$rootRouter = <any>$injector.get('$rootRouter')
$rootScope = <angular.IRootScopeService>$injector.get('$rootScope')
$route = <any>$injector.get('$route')
$routeParams = <any>$injector.get('$routeParams')
$routerRootComponent = <any>$injector.get('$routerRootComponent')
$sanitize = <any>$injector.get('$sanitize')
$sce = <angular.ISCEService>$injector.get('$sce')
$sceDelegate = <angular.ISCEDelegateService>$injector.get('$sceDelegate')
$swipe = <any>$injector.get('$swipe')
$templateCache = <angular.ITemplateCacheService>$injector.get('$templateCache')
$templateRequest = <angular.ITemplateRequestService>$injector.get('$templateRequest')
$timeout = <angular.ITimeoutService>$injector.get('$timeout')
$touch = <any>$injector.get('$touch')
$window = <angular.IWindowService>$injector.get('$window')
$xhrFactory = <any>$injector.get('$xhrFactory')
})
{
"name": "ngimport",
"version": "0.0.1",
"version": "0.0.2",
"description": "Finally, imports for Angular 1 builtins!",

@@ -5,0 +5,0 @@ "main": "./ngimport.js",

@@ -76,7 +76,7 @@ # ngimport [![Circle CI](https://circleci.com/gh/bcherny/ngimport/tree/master.svg?style=svg)](https://circleci.com/gh/bcherny/ngimport/tree/master)

// TODO
TODO
## Limitations of this approach
// TODO
TODO

@@ -89,2 +89,6 @@ ## License

// TODO
TODO
## Todo
- Add support for $aria, $cookies, $provide, $resource, $rootRouter, $route, $routeParams, $routerRootComponent, $sanitize, $swipe, $touch
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