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

dependency-injection

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-injection - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

14

lib/Service.js

@@ -33,3 +33,3 @@ // Generated by CoffeeScript 1.6.3

Service.prototype.create = function() {
var args, called, method, service, wrapper, _ref;
var args, method, service, wrapper, _ref;
wrapper = function(service, args) {

@@ -50,3 +50,7 @@ var f;

}
called = [];
for (method in service) {
if (method.match(/^inject/) !== null) {
service[method].apply(service, this.di.autowireArguments(service[method], []));
}
}
_ref = this.setup;

@@ -56,9 +60,3 @@ for (method in _ref) {

service[method].apply(service, this.di.autowireArguments(service[method], args));
called.push(method);
}
for (method in service) {
if (called.indexOf(method) === -1 && method.match(/^inject/) !== null) {
service[method].apply(service, this.di.autowireArguments(service[method], []));
}
}
return service;

@@ -65,0 +63,0 @@ };

{
"name": "dependency-injection",
"description": "Dependency injection with configuration and autowire for node js and browser",
"version": "1.1.0",
"version": "1.1.1",
"author": {

@@ -6,0 +6,0 @@ "name": "David Kudera",

@@ -165,2 +165,5 @@ # Dependency injection

* 1.1.0
+ Support for not-instantiate services
+ Support for not-instantiate services
* 1.1.1
+ inject* methods are called before custom setup

Sorry, the diff of this file is not supported yet

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