ming_node 2.6.0 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- 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