cascading-service-config
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -8,3 +8,3 @@ var url = require('url'); | ||
Object.keys(config).forEach(function(key) { | ||
if (typeof config[key] != 'object') return; | ||
if (typeof config[key] != 'object' || Array.isArray(config[key])) return; | ||
config[key].__proto__ = services; | ||
@@ -11,0 +11,0 @@ if (config[key].port == null) return; |
{ | ||
"name": "cascading-service-config", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "dry configuration for a multi-service system", | ||
@@ -5,0 +5,0 @@ "main": "csc.js", |
@@ -8,2 +8,3 @@ var csc = require('../'); | ||
"internalServiceProtocol": "http", | ||
"arrayOfThings": [1,2,3], | ||
"stoutmeal": { | ||
@@ -43,2 +44,6 @@ "cookie": "authKey", | ||
}); | ||
it('shouldnt mangle the prototype chain of arrays', function() { | ||
var config = csc(lolconfig, 'stout'); | ||
assert.equal(config.arrayOfThings.forEach, [].forEach); | ||
}); | ||
it('should transform root service objects to their location', function() { | ||
@@ -45,0 +50,0 @@ var config = csc(lolconfig, 'stout'); |
8415
80