Comparing version 5.0.0 to 5.0.1
@@ -164,6 +164,2 @@ 'use strict' | ||
this._addPlugin(plugin, opts) | ||
} else if (Array.isArray(plugin)) { | ||
for (var i = 0; i < plugin.length; i++) { | ||
this._addPlugin(plugin[i], opts) | ||
} | ||
} else { | ||
@@ -170,0 +166,0 @@ throw new Error('plugin must be a function') |
{ | ||
"name": "avvio", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Asynchronous bootstrapping of Node applications", | ||
@@ -5,0 +5,0 @@ "main": "boot.js", |
@@ -164,8 +164,2 @@ # avvio | ||
If you need to add more than a function and you don't need to use a different options object or callback, you can pass an array of functions to `.use`. | ||
```js | ||
app.use([first, second, third], opts) | ||
``` | ||
The functions will be loaded in the same order as they are inside the array. | ||
<a name="error-handling"></a> | ||
@@ -172,0 +166,0 @@ #### Error handling |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61041
17
1928
430