New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-es-utils

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-es-utils - npm Package Compare versions

Comparing version 1.2.16 to 1.2.17

dynamic-export/index.js

10

decorators/Inject.js

@@ -15,2 +15,4 @@ 'use strict';

// 需要过滤的构造函数的属性
var propBlacklist = ['name', 'prototype', 'length'];
/**

@@ -52,2 +54,10 @@ * angular依赖注入器

// 因为通过static class property语法定义的静态方法是不可枚举的,所以这里不能用Object.keys API来筛选.
Object.getOwnPropertyNames(target).forEach(function (prop) {
if (propBlacklist.indexOf(prop) === -1) {
Constructor[prop] = target[prop];
}
});
Constructor.$inject = dependencies;

@@ -54,0 +64,0 @@

21

index.js

@@ -6,3 +6,3 @@ 'use strict';

});
exports.Mediator = exports.getInjector = exports.Animation = exports.Deferred = exports.ModuleHelper = exports.FactoryCreator = undefined;
exports.Mediator = exports.genResource = exports.getInjector = exports.Animation = exports.Deferred = exports.ModuleHelper = exports.FactoryCreator = undefined;

@@ -39,4 +39,6 @@ var _decorators = require('./decorators');

var _injector2 = _interopRequireDefault(_injector);
var _rsGenerator = require('./rs-generator');
var _rsGenerator2 = _interopRequireDefault(_rsGenerator);
var _mediator = require('./mediator');

@@ -48,2 +50,8 @@

/**
* @author Kuitos
* @homepage https://github.com/kuitos/
* @since 2016-02-02
*/
exports.FactoryCreator = _factoryCreator2.default;

@@ -53,7 +61,4 @@ exports.ModuleHelper = _moduleHelper2.default;

exports.Animation = _animation2.default;
exports.getInjector = _injector2.default;
exports.Mediator = _mediator2.default; /**
* @author Kuitos
* @homepage https://github.com/kuitos/
* @since 2016-02-02
*/
exports.getInjector = _injector.getInjector;
exports.genResource = _rsGenerator2.default;
exports.Mediator = _mediator2.default;

@@ -6,3 +6,3 @@ 'use strict';

});
exports.default = getInjector;
exports.getInjector = getInjector;

@@ -13,2 +13,6 @@ var _angular = require('angular');

var _dynamicExport = require('../dynamic-export');
var _dynamicExport2 = _interopRequireDefault(_dynamicExport);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -20,2 +24,8 @@

*/
/**
* @author Kuitos
* @homepage https://github.com/kuitos/
* @since 2016-04-25
*/
function getInjector() {

@@ -44,6 +54,10 @@ var rootElement = arguments.length <= 0 || arguments[0] === undefined ? document.querySelector('[ng-app]') || document.body : arguments[0];

return null;
} /**
* @author Kuitos
* @homepage https://github.com/kuitos/
* @since 2016-04-25
*/
}
// make commonjs have the same behavior with es6 module
var injector = null;
exports.default = injector;
(0, _dynamicExport2.default)(exports, 'default', function () {
return injector || (injector = getInjector());
});
{
"name": "angular-es-utils",
"version": "1.2.16",
"version": "1.2.17",
"description": "es utils design for angular1.x",

@@ -5,0 +5,0 @@ "main": "./index.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