Comparing version 0.3.2 to 0.3.3
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') |
{ | ||
"name": "ngimport", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Finally, imports for Angular 1 builtins!", | ||
@@ -5,0 +5,0 @@ "main": "./ngimport.js", |
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
23646
412