angular-es-utils
Advanced tools
Comparing version 1.2.15 to 1.2.16
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.Mediator = exports.Injector = exports.Animation = exports.Deferred = exports.ModuleHelper = exports.FactoryCreator = undefined; | ||
exports.Mediator = exports.getInjector = exports.Animation = exports.Deferred = exports.ModuleHelper = exports.FactoryCreator = undefined; | ||
@@ -51,3 +51,3 @@ var _decorators = require('./decorators'); | ||
exports.Animation = _animation2.default; | ||
exports.Injector = _injector2.default; | ||
exports.getInjector = _injector2.default; | ||
exports.Mediator = _mediator2.default; /** | ||
@@ -54,0 +54,0 @@ * @author Kuitos |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.getInjector = getInjector; | ||
exports.default = getInjector; | ||
@@ -15,4 +15,2 @@ var _angular = require('angular'); | ||
var injector = null; | ||
/** | ||
@@ -22,8 +20,2 @@ * 获取应用的injector,默认查询被ng-app标记的节点,否则从document.body开始找 | ||
*/ | ||
/** | ||
* @author Kuitos | ||
* @homepage https://github.com/kuitos/ | ||
* @since 2016-04-25 | ||
*/ | ||
function getInjector() { | ||
@@ -52,14 +44,6 @@ var rootElement = arguments.length <= 0 || arguments[0] === undefined ? document.querySelector('[ng-app]') || document.body : arguments[0]; | ||
return null; | ||
} | ||
// make commonjs have the same behavior with es6 module | ||
Object.defineProperty(exports, 'default', { | ||
set: function set(value) { | ||
injector = value; | ||
}, | ||
get: function get() { | ||
return injector || getInjector(); | ||
} | ||
}); | ||
exports.default = injector; | ||
} /** | ||
* @author Kuitos | ||
* @homepage https://github.com/kuitos/ | ||
* @since 2016-04-25 | ||
*/ |
{ | ||
"name": "angular-es-utils", | ||
"version": "1.2.15", | ||
"version": "1.2.16", | ||
"description": "es utils design for angular1.x", | ||
@@ -5,0 +5,0 @@ "main": "./index.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
17927
431