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.3.2 to 0.3.3

13

ngimport.es2015.js
import * as angular from 'angular';
// import 'angular-mocks'
// providers

@@ -37,2 +36,13 @@ // TODO: add more

export var $xhrFactory = undefined;
// bootstrap a dummy application using our module, so the #run block
// below is synchronously called, and all of the injectables in it are
// guaranteed to be defined after this code is run.
// TODO: move this out into a separate module
// TODO: tests
function bootstrap(moduleName) {
var div = document.createElement('div');
document.body.appendChild(div);
angular.bootstrap(div, [moduleName]);
document.body.removeChild(div);
}
// prevent double-loading, which has the potential

@@ -83,1 +93,2 @@ // to prevent sharing state between services

}]);
bootstrap('bcherny/ngimport');
"use strict";
var angular = require('angular');
// import 'angular-mocks'
// providers

@@ -38,2 +37,13 @@ // TODO: add more

exports.$xhrFactory = undefined;
// bootstrap a dummy application using our module, so the #run block
// below is synchronously called, and all of the injectables in it are
// guaranteed to be defined after this code is run.
// TODO: move this out into a separate module
// TODO: tests
function bootstrap(moduleName) {
var div = document.createElement('div');
document.body.appendChild(div);
angular.bootstrap(div, [moduleName]);
document.body.removeChild(div);
}
// prevent double-loading, which has the potential

@@ -84,1 +94,2 @@ // to prevent sharing state between services

}]);
bootstrap('bcherny/ngimport');
import * as angular from 'angular'
// import 'angular-mocks'

@@ -40,2 +39,14 @@ // providers

// bootstrap a dummy application using our module, so the #run block
// below is synchronously called, and all of the injectables in it are
// guaranteed to be defined after this code is run.
// TODO: move this out into a separate module
// TODO: tests
function bootstrap(moduleName: string): void {
const div = document.createElement('div')
document.body.appendChild(div)
angular.bootstrap(div, [moduleName])
document.body.removeChild(div)
}
// prevent double-loading, which has the potential

@@ -91,1 +102,2 @@ // to prevent sharing state between services

}])
bootstrap('bcherny/ngimport')

2

package.json
{
"name": "ngimport",
"version": "0.3.2",
"version": "0.3.3",
"description": "Finally, imports for Angular 1 builtins!",

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

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