ming_node 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* By : Minglie
|
|
4
4
|
* QQ: 934031452
|
|
5
5
|
* Date :2021.12.01
|
|
6
|
-
* version :2.
|
|
6
|
+
* version :2.8.0
|
|
7
7
|
*/
|
|
8
8
|
var http = require('http');
|
|
9
9
|
var https = require('https');
|
|
@@ -1742,7 +1742,7 @@ M.server = function () {
|
|
|
1742
1742
|
G._server = callback;
|
|
1743
1743
|
}
|
|
1744
1744
|
app.use=function (url,callback){
|
|
1745
|
-
if(typeof url === 'function' || typeof url === 'object'
|
|
1745
|
+
if(typeof url === 'function' || (typeof url === 'object' && !Array.isArray(url))){
|
|
1746
1746
|
let plugin=url;
|
|
1747
1747
|
let args=callback;
|
|
1748
1748
|
if(plugin.installed){
|
package/package.json
CHANGED