mirror of
				https://github.com/1disk/edp445.git
				synced 2024-08-14 22:47:02 +00:00 
			
		
		
		
	added a few messages that the bot would respond to
This commit is contained in:
		
							parent
							
								
									c63d9a6e13
								
							
						
					
					
						commit
						de29e2769c
					
				
					 384 changed files with 56249 additions and 43 deletions
				
			
		
							
								
								
									
										116
									
								
								node_modules/express/lib/express.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										116
									
								
								node_modules/express/lib/express.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,116 @@ | |||
| /*! | ||||
|  * express | ||||
|  * Copyright(c) 2009-2013 TJ Holowaychuk | ||||
|  * Copyright(c) 2013 Roman Shtylman | ||||
|  * Copyright(c) 2014-2015 Douglas Christopher Wilson | ||||
|  * MIT Licensed | ||||
|  */ | ||||
| 
 | ||||
| 'use strict'; | ||||
| 
 | ||||
| /** | ||||
|  * Module dependencies. | ||||
|  */ | ||||
| 
 | ||||
| var bodyParser = require('body-parser') | ||||
| var EventEmitter = require('events').EventEmitter; | ||||
| var mixin = require('merge-descriptors'); | ||||
| var proto = require('./application'); | ||||
| var Route = require('./router/route'); | ||||
| var Router = require('./router'); | ||||
| var req = require('./request'); | ||||
| var res = require('./response'); | ||||
| 
 | ||||
| /** | ||||
|  * Expose `createApplication()`. | ||||
|  */ | ||||
| 
 | ||||
| exports = module.exports = createApplication; | ||||
| 
 | ||||
| /** | ||||
|  * Create an express application. | ||||
|  * | ||||
|  * @return {Function} | ||||
|  * @api public | ||||
|  */ | ||||
| 
 | ||||
| function createApplication() { | ||||
|   var app = function(req, res, next) { | ||||
|     app.handle(req, res, next); | ||||
|   }; | ||||
| 
 | ||||
|   mixin(app, EventEmitter.prototype, false); | ||||
|   mixin(app, proto, false); | ||||
| 
 | ||||
|   // expose the prototype that will get set on requests
 | ||||
|   app.request = Object.create(req, { | ||||
|     app: { configurable: true, enumerable: true, writable: true, value: app } | ||||
|   }) | ||||
| 
 | ||||
|   // expose the prototype that will get set on responses
 | ||||
|   app.response = Object.create(res, { | ||||
|     app: { configurable: true, enumerable: true, writable: true, value: app } | ||||
|   }) | ||||
| 
 | ||||
|   app.init(); | ||||
|   return app; | ||||
| } | ||||
| 
 | ||||
| /** | ||||
|  * Expose the prototypes. | ||||
|  */ | ||||
| 
 | ||||
| exports.application = proto; | ||||
| exports.request = req; | ||||
| exports.response = res; | ||||
| 
 | ||||
| /** | ||||
|  * Expose constructors. | ||||
|  */ | ||||
| 
 | ||||
| exports.Route = Route; | ||||
| exports.Router = Router; | ||||
| 
 | ||||
| /** | ||||
|  * Expose middleware | ||||
|  */ | ||||
| 
 | ||||
| exports.json = bodyParser.json | ||||
| exports.query = require('./middleware/query'); | ||||
| exports.raw = bodyParser.raw | ||||
| exports.static = require('serve-static'); | ||||
| exports.text = bodyParser.text | ||||
| exports.urlencoded = bodyParser.urlencoded | ||||
| 
 | ||||
| /** | ||||
|  * Replace removed middleware with an appropriate error message. | ||||
|  */ | ||||
| 
 | ||||
| var removedMiddlewares = [ | ||||
|   'bodyParser', | ||||
|   'compress', | ||||
|   'cookieSession', | ||||
|   'session', | ||||
|   'logger', | ||||
|   'cookieParser', | ||||
|   'favicon', | ||||
|   'responseTime', | ||||
|   'errorHandler', | ||||
|   'timeout', | ||||
|   'methodOverride', | ||||
|   'vhost', | ||||
|   'csrf', | ||||
|   'directory', | ||||
|   'limit', | ||||
|   'multipart', | ||||
|   'staticCache' | ||||
| ] | ||||
| 
 | ||||
| removedMiddlewares.forEach(function (name) { | ||||
|   Object.defineProperty(exports, name, { | ||||
|     get: function () { | ||||
|       throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.'); | ||||
|     }, | ||||
|     configurable: true | ||||
|   }); | ||||
| }); | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue