Comparing version 2.1.0 to 2.1.1
@@ -125,2 +125,3 @@ // Load modules | ||
var plugins = []; | ||
var parsed; | ||
@@ -134,4 +135,4 @@ if (Array.isArray(manifest.plugins)) { | ||
var plugin = internals.parsePlugin(keys[0], pluginObject[keys[0]], options.relativeTo); | ||
plugins = plugins.concat(plugin); | ||
parsed = internals.parsePlugin(keys[0], pluginObject[keys[0]], options.relativeTo); | ||
plugins = plugins.concat(parsed); | ||
} | ||
@@ -142,4 +143,4 @@ } | ||
var plugin = internals.parsePlugin(name, manifest.plugins[name], options.relativeTo); | ||
plugins = plugins.concat(plugin); | ||
parsed = internals.parsePlugin(name, manifest.plugins[name], options.relativeTo); | ||
plugins = plugins.concat(parsed); | ||
}); | ||
@@ -146,0 +147,0 @@ } |
{ | ||
"name": "glue", | ||
"description": "Server composer for hapi.js", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -227,8 +227,8 @@ // Load modules | ||
expect(err).to.not.exist(); | ||
server.select('a').inject('/a/plugin', function (response) { | ||
server.select('a').inject('/a/plugin', function (responseA) { | ||
expect(response.statusCode).to.equal(200); | ||
server.select('b').inject('/b/plugin', function (response) { | ||
expect(responseA.statusCode).to.equal(200); | ||
server.select('b').inject('/b/plugin', function (responseB) { | ||
expect(response.statusCode).to.equal(200); | ||
expect(responseB.statusCode).to.equal(200); | ||
done(); | ||
@@ -235,0 +235,0 @@ }); |
54428
555