New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 2.3.0 to 2.3.1

test/data/database.json

2

lib/Defaults.js

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var Defaults, isWindow;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -128,2 +128,4 @@ var DI, Defaults, Helpers, Service,

args[i] = match[1];
} else if (this.config !== null && (match = a.match(/^%([a-zA-Z.-_]+)%$/))) {
args[i] = this.getParameter(match[1]);
} else {

@@ -234,6 +236,7 @@ args[i] = this.tryCallArgument(a);

DI.prototype.getFactory = function(name) {
var _this = this;
return function() {
return _this.findDefinitionByName(name).create();
};
return (function(_this) {
return function() {
return _this.findDefinitionByName(name).create();
};
})(this);
};

@@ -240,0 +243,0 @@

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var Configuration, DI, DIFactory, Helpers, callsite, isWindow, path;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var Helpers;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var Helpers, Service;

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

@@ -25,8 +25,8 @@ "name": "David Kudera",

"dependencies": {
"easy-configuration": "~2.0.0",
"easy-configuration": "~2.0.1",
"callsite": "~1.0.0"
},
"devDependencies": {
"chai": "~1.8.1",
"mocha": "~1.17.0",
"chai": "~1.9.0",
"mocha": "~1.18.0",
"mocha-phantomjs": "~3.3.1",

@@ -33,0 +33,0 @@ "phantomjs": "~1.9.2-6"

@@ -522,2 +522,5 @@ [![NPM version](https://badge.fury.io/js/dependency-injection.png)](http://badge.fury.io/js/dependency-injection)

* 2.3.1
+ Fixed bug with passing list of parameters in method calls [https://github.com/sakren/node-dependency-injection/issues/7](#7)
* 2.3.0

@@ -524,0 +527,0 @@ + Added option for services derived from other services

@@ -27,3 +27,6 @@ {

}
},
"debugger": {
"minify": false
}
}

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var Application;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var AutowirePath;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var Http;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var Http, HttpFactory;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var Application, DI, Http, Service, di, dir, expect, path;

@@ -1,4 +0,4 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {
var Configuration, DI, DIFactory, Http, di, dir, expect, factory, path;
var Configuration, DI, DIFactory, Database, Http, di, dir, expect, factory, path;

@@ -17,2 +17,4 @@ expect = require('chai').expect;

Database = require('../../data/MySql');
dir = path.resolve(__dirname + '/../../data');

@@ -36,3 +38,3 @@

});
return it('should create di with custom config object', function() {
it('should create di with custom config object', function() {
var config;

@@ -47,2 +49,15 @@ config = new Configuration;

});
return it('should create database service with list of parameters', function() {
var db;
factory = new DIFactory(dir + '/database.json');
di = factory.create();
db = di.get('database');
expect(db).to.be.an["instanceof"](Database);
return expect(db.parameters).to.be.eql({
host: 'localhost',
user: 'root',
password: 'toor',
database: 'application'
});
});
});

@@ -49,0 +64,0 @@ describe('#parameters', function() {

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var Application, AutowirePath, DI, Helpers, Http, Service, di, dir, expect, path;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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