You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/express.js
-34Lines changed: 0 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -74,37 +74,3 @@ exports.Router = Router;
74
74
*/
75
75
76
76
exports.static=require('serve-static');
77
-
78
-
/**
79
-
* Replace removed middleware with an appropriate error message.
80
-
*/
81
-
82
-
[
83
-
'json',
84
-
'urlencoded',
85
-
'bodyParser',
86
-
'compress',
87
-
'cookieSession',
88
-
'session',
89
-
'logger',
90
-
'cookieParser',
91
-
'favicon',
92
-
'responseTime',
93
-
'errorHandler',
94
-
'timeout',
95
-
'methodOverride',
96
-
'vhost',
97
-
'csrf',
98
-
'directory',
99
-
'limit',
100
-
'multipart',
101
-
'staticCache',
102
-
'query',
103
-
].forEach(function(name){
104
-
Object.defineProperty(exports,name,{
105
-
get: function(){
106
-
thrownewError('Most middleware (like '+name+') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.');
0 commit comments