Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

working on re-build in node/express

  • Loading branch information...
commit 611d0869f5902621a5467dd5c71c555c45362e8a 1 parent 2e06576
@derickbailey authored
Showing with 17,687 additions and 0 deletions.
  1. BIN  .DS_Store
  2. BIN  express/.DS_Store
  3. +40 −0 express/5-complete/app.js
  4. +72 −0 express/5-complete/grunt.js
  5. +1 −0  express/5-complete/node_modules/.bin/express
  6. +1 −0  express/5-complete/node_modules/.bin/grunt
  7. +1 −0  express/5-complete/node_modules/.bin/grunt-jasmine-runner
  8. +1 −0  express/5-complete/node_modules/.bin/jade
  9. +9 −0 express/5-complete/node_modules/express/.npmignore
  10. +3 −0  express/5-complete/node_modules/express/.travis.yml
  11. +1,014 −0 express/5-complete/node_modules/express/History.md
  12. +22 −0 express/5-complete/node_modules/express/LICENSE
  13. +29 −0 express/5-complete/node_modules/express/Makefile
  14. +183 −0 express/5-complete/node_modules/express/Readme.md
  15. +422 −0 express/5-complete/node_modules/express/bin/express
  16. +25 −0 express/5-complete/node_modules/express/client.js
  17. +4 −0 express/5-complete/node_modules/express/index.js
  18. +533 −0 express/5-complete/node_modules/express/lib/application.js
  19. +93 −0 express/5-complete/node_modules/express/lib/express.js
  20. +33 −0 express/5-complete/node_modules/express/lib/middleware.js
  21. +484 −0 express/5-complete/node_modules/express/lib/request.js
  22. +719 −0 express/5-complete/node_modules/express/lib/response.js
  23. +257 −0 express/5-complete/node_modules/express/lib/router/index.js
  24. +72 −0 express/5-complete/node_modules/express/lib/router/route.js
  25. +284 −0 express/5-complete/node_modules/express/lib/utils.js
  26. +76 −0 express/5-complete/node_modules/express/lib/view.js
  27. +4 −0 express/5-complete/node_modules/express/node_modules/commander/.npmignore
  28. +4 −0 express/5-complete/node_modules/express/node_modules/commander/.travis.yml
  29. +107 −0 express/5-complete/node_modules/express/node_modules/commander/History.md
  30. +7 −0 express/5-complete/node_modules/express/node_modules/commander/Makefile
  31. +262 −0 express/5-complete/node_modules/express/node_modules/commander/Readme.md
  32. +2 −0  express/5-complete/node_modules/express/node_modules/commander/index.js
  33. +1,026 −0 express/5-complete/node_modules/express/node_modules/commander/lib/commander.js
  34. +37 −0 express/5-complete/node_modules/express/node_modules/commander/package.json
  35. +12 −0 express/5-complete/node_modules/express/node_modules/connect/.npmignore
  36. +24 −0 express/5-complete/node_modules/express/node_modules/connect/LICENSE
  37. +132 −0 express/5-complete/node_modules/express/node_modules/connect/Readme.md
  38. +4 −0 express/5-complete/node_modules/express/node_modules/connect/index.js
  39. +81 −0 express/5-complete/node_modules/express/node_modules/connect/lib/cache.js
  40. +93 −0 express/5-complete/node_modules/express/node_modules/connect/lib/connect.js
  41. +50 −0 express/5-complete/node_modules/express/node_modules/connect/lib/index.js
  42. +101 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/basicAuth.js
  43. +61 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js
  44. +142 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/compress.js
  45. +62 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/cookieParser.js
  46. +118 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/cookieSession.js
  47. +73 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/csrf.js
  48. +229 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/directory.js
  49. +87 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/errorHandler.js
  50. +81 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/favicon.js
  51. +80 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/json.js
  52. +55 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/limit.js
  53. +337 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/logger.js
  54. +40 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/methodOverride.js
  55. +120 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/multipart.js
  56. +46 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/query.js
  57. +32 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/responseTime.js
  58. +344 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/session.js
  59. +128 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/session/cookie.js
  60. +131 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/session/memory.js
  61. +116 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/session/session.js
  62. +86 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/session/store.js
  63. +94 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/static.js
  64. +234 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/staticCache.js
  65. +45 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/timeout.js
  66. +76 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/urlencoded.js
  67. +40 −0 express/5-complete/node_modules/express/node_modules/connect/lib/middleware/vhost.js
  68. +79 −0 express/5-complete/node_modules/express/node_modules/connect/lib/patch.js
  69. +230 −0 express/5-complete/node_modules/express/node_modules/connect/lib/proto.js
  70. +75 −0 express/5-complete/node_modules/express/node_modules/connect/lib/public/directory.html
  71. +13 −0 express/5-complete/node_modules/express/node_modules/connect/lib/public/error.html
  72. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/favicon.ico
  73. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page.png
  74. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_add.png
  75. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_attach.png
  76. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_code.png
  77. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_copy.png
  78. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_delete.png
  79. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_edit.png
  80. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_error.png
  81. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_excel.png
  82. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_find.png
  83. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_gear.png
  84. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_go.png
  85. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_green.png
  86. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_key.png
  87. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_lightning.png
  88. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_link.png
  89. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_paintbrush.png
  90. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_paste.png
  91. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_red.png
  92. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_refresh.png
  93. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_save.png
  94. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white.png
  95. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_acrobat.png
  96. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_actionscript.png
  97. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_add.png
  98. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_c.png
  99. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_camera.png
  100. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_cd.png
  101. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_code.png
  102. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_code_red.png
  103. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_coldfusion.png
  104. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_compressed.png
  105. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_copy.png
  106. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_cplusplus.png
  107. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_csharp.png
  108. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_cup.png
  109. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_database.png
  110. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_delete.png
  111. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_dvd.png
  112. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_edit.png
  113. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_error.png
  114. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_excel.png
  115. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_find.png
  116. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_flash.png
  117. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_freehand.png
  118. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_gear.png
  119. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_get.png
  120. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_go.png
  121. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_h.png
  122. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_horizontal.png
  123. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_key.png
  124. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_lightning.png
  125. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_link.png
  126. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_magnify.png
  127. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_medal.png
  128. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_office.png
  129. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_paint.png
  130. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_paintbrush.png
  131. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_paste.png
  132. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_php.png
  133. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_picture.png
  134. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_powerpoint.png
  135. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_put.png
  136. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_ruby.png
  137. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_stack.png
  138. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_star.png
  139. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_swoosh.png
  140. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_text.png
  141. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_text_width.png
  142. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_tux.png
  143. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_vector.png
  144. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_visualstudio.png
  145. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_width.png
  146. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_word.png
  147. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_world.png
  148. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_wrench.png
  149. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_white_zip.png
  150. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_word.png
  151. BIN  express/5-complete/node_modules/express/node_modules/connect/lib/public/icons/page_world.png
  152. +141 −0 express/5-complete/node_modules/express/node_modules/connect/lib/public/style.css
  153. +373 −0 express/5-complete/node_modules/express/node_modules/connect/lib/utils.js
  154. +1 −0  express/5-complete/node_modules/express/node_modules/connect/node_modules/bytes/.npmignore
  155. +5 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/bytes/History.md
  156. +7 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/bytes/Makefile
  157. +51 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/bytes/Readme.md
  158. +7 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/bytes/component.json
  159. +39 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/bytes/index.js
  160. +24 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/bytes/package.json
  161. +4 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/.npmignore
  162. +4 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/.travis.yml
  163. +14 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/Makefile
  164. +311 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/Readme.md
  165. +3 −0  express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/TODO
  166. +70 −0 ...plete/node_modules/express/node_modules/connect/node_modules/formidable/benchmark/bench-multipart-parser.js
  167. +43 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/example/post.js
  168. +48 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/example/upload.js
  169. +1 −0  express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/index.js
  170. +73 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/lib/file.js
  171. +384 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js
  172. +3 −0  express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/lib/index.js
  173. +312 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/lib/multipart_parser.js
  174. +25 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/lib/querystring_parser.js
  175. +6 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/lib/util.js
  176. +4 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/Makefile
  177. +167 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/Readme.md
  178. +22 −0 ...ess/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/dog.js
  179. +11 −0 ...lete/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/event_emitter.js
  180. +1 −0  express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/index.js
  181. +184 −0 ...complete/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/lib/gently/gently.js
  182. +1 −0  ...-complete/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/lib/gently/index.js
  183. +14 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/package.json
  184. +8 −0 ...ess/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/test/common.js
  185. +348 −0 ...te/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/test/simple/test-gently.js
  186. +27 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/package.json
  187. +19 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js
  188. +1 −0  ...plete/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt
  189. +1 −0  ...ss/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt
  190. +3 −0  ...es/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md
  191. +3 −0  ...5-complete/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js
  192. +21 −0 ...e_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
  193. +72 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js
  194. +89 −0 ...omplete/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js
  195. +24 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js
  196. +80 −0 ...dules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js
  197. +104 −0 ...-complete/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js
  198. +727 −0 .../node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js
  199. +50 −0 ...de_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js
  200. +45 −0 ..._modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js
  201. +75 −0 ..._modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js
  202. +2 −0  express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js
  203. +63 −0 ...-complete/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js
  204. +47 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js
  205. +4 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/pause/.npmignore
  206. +5 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/pause/History.md
  207. +7 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/pause/Makefile
  208. +29 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/pause/Readme.md
  209. +29 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/pause/index.js
  210. +19 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/pause/package.json
  211. +6 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/.gitmodules
  212. +1 −0  express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/.npmignore
  213. +4 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/.travis.yml
  214. +73 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/History.md
  215. +5 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/Makefile
  216. +54 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/Readme.md
  217. +17 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/benchmark.js
  218. +51 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/examples.js
  219. +2 −0  express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/index.js
  220. +264 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/lib/querystring.js
  221. +25 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/package.json
  222. +2 −0  express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/test/mocha.opts
  223. +167 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/test/parse.js
  224. +103 −0 express/5-complete/node_modules/express/node_modules/connect/node_modules/qs/test/stringify.js
  225. +45 −0 express/5-complete/node_modules/express/node_modules/connect/package.json
  226. +11 −0 express/5-complete/node_modules/express/node_modules/connect/test.js
  227. +1 −0  express/5-complete/node_modules/express/node_modules/cookie/.npmignore
  228. +3 −0  express/5-complete/node_modules/express/node_modules/cookie/.travis.yml
  229. +44 −0 express/5-complete/node_modules/express/node_modules/cookie/README.md
  230. +57 −0 express/5-complete/node_modules/express/node_modules/cookie/index.js
  231. +32 −0 express/5-complete/node_modules/express/node_modules/cookie/package.json
  232. +1 −0  express/5-complete/node_modules/express/node_modules/cookie/test/mocha.opts
  233. +25 −0 express/5-complete/node_modules/express/node_modules/cookie/test/parse.js
  234. +59 −0 express/5-complete/node_modules/express/node_modules/cookie/test/serialize.js
  235. +3 −0  express/5-complete/node_modules/express/node_modules/crc/.gitmodules
  236. +1 −0  express/5-complete/node_modules/express/node_modules/crc/.npmignore
  237. +7 −0 express/5-complete/node_modules/express/node_modules/crc/Makefile
  238. +31 −0 express/5-complete/node_modules/express/node_modules/crc/README.md
  239. +403 −0 express/5-complete/node_modules/express/node_modules/crc/lib/crc.js
  240. +24 −0 express/5-complete/node_modules/express/node_modules/crc/package.json
  241. +63 −0 express/5-complete/node_modules/express/node_modules/crc/test/crc.js
  242. +4 −0 express/5-complete/node_modules/express/node_modules/debug/.npmignore
  243. +47 −0 express/5-complete/node_modules/express/node_modules/debug/History.md
  244. +4 −0 express/5-complete/node_modules/express/node_modules/debug/Makefile
  245. +130 −0 express/5-complete/node_modules/express/node_modules/debug/Readme.md
  246. +120 −0 express/5-complete/node_modules/express/node_modules/debug/debug.component.js
  247. +116 −0 express/5-complete/node_modules/express/node_modules/debug/debug.js
  248. +19 −0 express/5-complete/node_modules/express/node_modules/debug/example/app.js
  249. +24 −0 express/5-complete/node_modules/express/node_modules/debug/example/browser.html
  250. +10 −0 express/5-complete/node_modules/express/node_modules/debug/example/wildcards.js
  251. +22 −0 express/5-complete/node_modules/express/node_modules/debug/example/worker.js
  252. +1 −0  express/5-complete/node_modules/express/node_modules/debug/head.js
  253. +2 −0  express/5-complete/node_modules/express/node_modules/debug/index.js
  254. +135 −0 express/5-complete/node_modules/express/node_modules/debug/lib/debug.js
  255. +30 −0 express/5-complete/node_modules/express/node_modules/debug/package.json
  256. +4 −0 express/5-complete/node_modules/express/node_modules/debug/tail.js
  257. +1 −0  express/5-complete/node_modules/express/node_modules/fresh/.npmignore
  258. +7 −0 express/5-complete/node_modules/express/node_modules/fresh/Makefile
  259. +32 −0 express/5-complete/node_modules/express/node_modules/fresh/Readme.md
  260. +49 −0 express/5-complete/node_modules/express/node_modules/fresh/index.js
  261. +19 −0 express/5-complete/node_modules/express/node_modules/fresh/package.json
  262. +26 −0 express/5-complete/node_modules/express/node_modules/methods/index.js
  263. +22 −0 express/5-complete/node_modules/express/node_modules/methods/package.json
  264. +2 −0  express/5-complete/node_modules/express/node_modules/mkdirp/.gitignore.orig
  265. +5 −0 express/5-complete/node_modules/express/node_modules/mkdirp/.gitignore.rej
  266. +2 −0  express/5-complete/node_modules/express/node_modules/mkdirp/.npmignore
  267. +4 −0 express/5-complete/node_modules/express/node_modules/mkdirp/.travis.yml
  268. +21 −0 express/5-complete/node_modules/express/node_modules/mkdirp/LICENSE
  269. +61 −0 express/5-complete/node_modules/express/node_modules/mkdirp/README.markdown
  270. +6 −0 express/5-complete/node_modules/express/node_modules/mkdirp/examples/pow.js
  271. +6 −0 express/5-complete/node_modules/express/node_modules/mkdirp/examples/pow.js.orig
  272. +19 −0 express/5-complete/node_modules/express/node_modules/mkdirp/examples/pow.js.rej
  273. +94 −0 express/5-complete/node_modules/express/node_modules/mkdirp/index.js
  274. +35 −0 express/5-complete/node_modules/express/node_modules/mkdirp/package.json
  275. +38 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/chmod.js
  276. +37 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/clobber.js
  277. +28 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/mkdirp.js
  278. +32 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/perm.js
  279. +39 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/perm_sync.js
  280. +41 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/race.js
  281. +32 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/rel.js
  282. +25 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/return.js
  283. +24 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/return_sync.js
  284. +18 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/root.js
  285. +32 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/sync.js
  286. +28 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/umask.js
  287. +32 −0 express/5-complete/node_modules/express/node_modules/mkdirp/test/umask_sync.js
  288. +1 −0  express/5-complete/node_modules/express/node_modules/range-parser/.npmignore
  289. +15 −0 express/5-complete/node_modules/express/node_modules/range-parser/History.md
  290. +7 −0 express/5-complete/node_modules/express/node_modules/range-parser/Makefile
  291. +28 −0 express/5-complete/node_modules/express/node_modules/range-parser/Readme.md
  292. +49 −0 express/5-complete/node_modules/express/node_modules/range-parser/index.js
  293. +19 −0 express/5-complete/node_modules/express/node_modules/range-parser/package.json
  294. +4 −0 express/5-complete/node_modules/express/node_modules/send/.npmignore
  295. +20 −0 express/5-complete/node_modules/express/node_modules/send/History.md
  296. +8 −0 express/5-complete/node_modules/express/node_modules/send/Makefile
  297. +123 −0 express/5-complete/node_modules/express/node_modules/send/Readme.md
  298. +2 −0  express/5-complete/node_modules/express/node_modules/send/index.js
  299. +462 −0 express/5-complete/node_modules/express/node_modules/send/lib/send.js
  300. +47 −0 express/5-complete/node_modules/express/node_modules/send/lib/utils.js
Sorry, we could not display the entire diff because too many files (2,483) changed.
View
BIN  .DS_Store
Binary file not shown
View
BIN  express/.DS_Store
Binary file not shown
View
40 express/5-complete/app.js
@@ -0,0 +1,40 @@
+
+/**
+ * Module dependencies.
+ */
+
+var express = require('express'),
+ routes = require('./routes'),
+ http = require('http'),
+ path = require('path');
+
+var app = express();
+
+app.configure(function(){
+ app.set('port', process.env.PORT || 3000);
+ app.set('views', __dirname + '/views');
+ app.set('view engine', 'jade');
+ app.use(express.favicon());
+ app.use(express.logger('dev'));
+ app.use(express.bodyParser());
+ app.use(express.methodOverride());
+ app.use(app.router);
+ app.use(express.static(path.join(__dirname, 'public')));
+});
+
+global.NODE_ENV = app.settings.env;
+
+app.configure('development', function(){
+ app.use(express.errorHandler());
+});
+
+app.get('/', routes.index);
+app.get("/images", routes.getImages);
+app.get("/images/:id", routes.getImageById);
+app.post("/images", routes.createImage);
+app.put("/images/:id", routes.updateImage);
+app.delete("/images/:id", routes.deleteImage);
+
+http.createServer(app).listen(app.get('port'), function(){
+ console.log("Express server listening on port " + app.get('port'));
+});
View
72 express/5-complete/grunt.js
@@ -0,0 +1,72 @@
+/*global module:false*/
+module.exports = function(grunt) {
+
+ grunt.loadNpmTasks('grunt-jasmine-runner');
+
+ grunt.initConfig({
+ meta: {
+ version: '0.2.0',
+ banner: '// BBCloneMail, v<%= meta.version %>\n' +
+ '// Copyright (c)<%= grunt.template.today("yyyy") %> Muted Solutions, LLC.\n' +
+ '// Distributed under MIT license\n' +
+ '// http://github.com/derickbailey/bbclonemail'
+ },
+
+ concat: {
+ dist: {
+ src: [
+ "public/javascripts/vendor/json2.js",
+ "public/javascripts/vendor/jquery.js",
+ "public/javascripts/vendor/underscore.js",
+ "public/javascripts/vendor/backbone.js",
+ "public/javascripts/vendor/backbone.routefilter.js",
+ "public/javascripts/vendor/backbone.marionette.js",
+ "public/javascripts/vendor/marionette.wreqr.js",
+ "public/javascripts/bbclonemail/bbclonemail.js",
+ "public/javascripts/bbclonemail/bbclonemail.mailrouter.js",
+ "public/javascripts/bbclonemail/bbclonemail.mailapp.js",
+ "public/javascripts/bbclonemail/bbclonemail.mailapp.mail.js",
+ "public/javascripts/bbclonemail/bbclonemail.mailapp.inbox.js",
+ "public/javascripts/bbclonemail/bbclonemail.contactsapp.js",
+ "public/javascripts/bbclonemail/bbclonemail.contactrouter.js",
+ "public/javascripts/bbclonemail/bbclonemail.contactsapp.contacts.js",
+ "public/javascripts/bbclonemail/bbclonemail.contactsapp.contactlist.js",
+ "public/javascripts/bbclonemail/**/*.js"
+ ],
+ dest: 'public/javascripts/build/bbclonemail.js'
+ }
+ },
+
+ min: {
+ dist: {
+ src: ['public/javascripts/build/bbclonemail.js'],
+ dest: 'public/javascripts/build/bbclonemail.min.js'
+ }
+ },
+
+ jasmine : {
+ src : [
+ 'public/javascripts/vendor/jquery.js',
+ 'public/javascripts/vendor/json2.js',
+ 'public/javascripts/vendor/underscore.js',
+ 'public/javascripts/vendor/backbone.js',
+ 'public/javascripts/vendor/backbone.routefilter.js',
+ 'public/javascripts/vendor/backbone.marionette.js',
+ 'public/javascripts/vendor/marionette.wreqr.js',
+ 'public/javascripts/bbclonemail/bbclonemail.js',
+ 'public/javascripts/bbclonemail/**/*.js',
+ ],
+ helpers : 'spec/javascripts/helpers/*.js',
+ specs : 'spec/javascripts/**/*.spec.js'
+ },
+
+ 'jasmine-server' : {
+ browser : false
+ },
+
+ });
+
+ // Default task.
+ grunt.registerTask('default', 'concat min');
+
+};
View
1  express/5-complete/node_modules/.bin/express
@@ -0,0 +1 @@
+../express/bin/express
View
1  express/5-complete/node_modules/.bin/grunt
View
1  express/5-complete/node_modules/.bin/grunt-jasmine-runner
View
1  express/5-complete/node_modules/.bin/jade
View
9 express/5-complete/node_modules/express/.npmignore
@@ -0,0 +1,9 @@
+.git*
+docs/
+examples/
+support/
+test/
+testing.js
+.DS_Store
+coverage.html
+lib-cov
View
3  express/5-complete/node_modules/express/.travis.yml
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - 0.6
View
1,014 express/5-complete/node_modules/express/History.md
@@ -0,0 +1,1014 @@
+
+3.0.0rc4 / 2012-08-30
+==================
+
+ * add `res.jsonp()`. Closes #1307
+ * add "verbose errors" option to error-pages example
+ * add another route example to express(1) so people are not so confused
+ * add redis online user activity tracking example
+ * update connect dep
+ * fix etag quoting. Closes #1310
+ * fix error-pages 404 status
+ * fix jsonp callback char restrictions
+ * remove old OPTIONS default response
+
+3.0.0rc3 / 2012-08-13
+==================
+
+ * update connect dep
+ * fix signed cookies to work with `connect.cookieParser()` ("s:" prefix was missing) [tnydwrds]
+ * fix `res.render()` clobbering of "locals"
+
+3.0.0rc2 / 2012-08-03
+==================
+
+ * add CORS example
+ * update connect dep
+ * deprecate `.createServer()` & remove old stale examples
+ * fix: escape `res.redirect()` link
+ * fix vhost example
+
+3.0.0rc1 / 2012-07-24
+==================
+
+ * add more examples to view-locals
+ * add scheme-relative redirects (`res.redirect("//foo.com")`) support
+ * update cookie dep
+ * update connect dep
+ * update send dep
+ * fix `express(1)` -h flag, use -H for hogan. Closes #1245
+ * fix `res.sendfile()` socket error handling regression
+
+3.0.0beta7 / 2012-07-16
+==================
+
+ * update connect dep for `send()` root normalization regression
+
+3.0.0beta6 / 2012-07-13
+==================
+
+ * add `err.view` property for view errors. Closes #1226
+ * add "jsonp callback name" setting
+ * add support for "/foo/:bar*" non-greedy matches
+ * change `res.sendfile()` to use `send()` module
+ * change `res.send` to use "response-send" module
+ * remove `app.locals.use` and `res.locals.use`, use regular middleware
+
+3.0.0beta5 / 2012-07-03
+==================
+
+ * add "make check" support
+ * add route-map example
+ * add `res.json(obj, status)` support back for BC
+ * add "methods" dep, remove internal methods module
+ * update connect dep
+ * update auth example to utilize cores pbkdf2
+ * updated tests to use "supertest"
+
+3.0.0beta4 / 2012-06-25
+==================
+
+ * Added `req.auth`
+ * Added `req.range(size)`
+ * Added `res.links(obj)`
+ * Added `res.send(body, status)` support back for backwards compat
+ * Added `.default()` support to `res.format()`
+ * Added 2xx / 304 check to `req.fresh`
+ * Revert "Added + support to the router"
+ * Fixed `res.send()` freshness check, respect res.statusCode
+
+3.0.0beta3 / 2012-06-15
+==================
+
+ * Added hogan `--hjs` to express(1) [nullfirm]
+ * Added another example to content-negotiation
+ * Added `fresh` dep
+ * Changed: `res.send()` always checks freshness
+ * Fixed: expose connects mime module. Cloases #1165
+
+3.0.0beta2 / 2012-06-06
+==================
+
+ * Added `+` support to the router
+ * Added `req.host`
+ * Changed `req.param()` to check route first
+ * Update connect dep
+
+3.0.0beta1 / 2012-06-01
+==================
+
+ * Added `res.format()` callback to override default 406 behaviour
+ * Fixed `res.redirect()` 406. Closes #1154
+
+3.0.0alpha5 / 2012-05-30
+==================
+
+ * Added `req.ip`
+ * Added `{ signed: true }` option to `res.cookie()`
+ * Removed `res.signedCookie()`
+ * Changed: dont reverse `req.ips`
+ * Fixed "trust proxy" setting check for `req.ips`
+
+3.0.0alpha4 / 2012-05-09
+==================
+
+ * Added: allow `[]` in jsonp callback. Closes #1128
+ * Added `PORT` env var support in generated template. Closes #1118 [benatkin]
+ * Updated: connect 2.2.2
+
+3.0.0alpha3 / 2012-05-04
+==================
+
+ * Added public `app.routes`. Closes #887
+ * Added _view-locals_ example
+ * Added _mvc_ example
+ * Added `res.locals.use()`. Closes #1120
+ * Added conditional-GET support to `res.send()`
+ * Added: coerce `res.set()` values to strings
+ * Changed: moved `static()` in generated apps below router
+ * Changed: `res.send()` only set ETag when not previously set
+ * Changed connect 2.2.1 dep
+ * Changed: `make test` now runs unit / acceptance tests
+ * Fixed req/res proto inheritance
+
+3.0.0alpha2 / 2012-04-26
+==================
+
+ * Added `make benchmark` back
+ * Added `res.send()` support for `String` objects
+ * Added client-side data exposing example
+ * Added `res.header()` and `req.header()` aliases for BC
+ * Added `express.createServer()` for BC
+ * Perf: memoize parsed urls
+ * Perf: connect 2.2.0 dep
+ * Changed: make `expressInit()` middleware self-aware
+ * Fixed: use app.get() for all core settings
+ * Fixed redis session example
+ * Fixed session example. Closes #1105
+ * Fixed generated express dep. Closes #1078
+
+3.0.0alpha1 / 2012-04-15
+==================
+
+ * Added `app.locals.use(callback)`
+ * Added `app.locals` object
+ * Added `app.locals(obj)`
+ * Added `res.locals` object
+ * Added `res.locals(obj)`
+ * Added `res.format()` for content-negotiation
+ * Added `app.engine()`
+ * Added `res.cookie()` JSON cookie support
+ * Added "trust proxy" setting
+ * Added `req.subdomains`
+ * Added `req.protocol`
+ * Added `req.secure`
+ * Added `req.path`
+ * Added `req.ips`
+ * Added `req.fresh`
+ * Added `req.stale`
+ * Added comma-delmited / array support for `req.accepts()`
+ * Added debug instrumentation
+ * Added `res.set(obj)`
+ * Added `res.set(field, value)`
+ * Added `res.get(field)`
+ * Added `app.get(setting)`. Closes #842
+ * Added `req.acceptsLanguage()`
+ * Added `req.acceptsCharset()`
+ * Added `req.accepted`
+ * Added `req.acceptedLanguages`
+ * Added `req.acceptedCharsets`
+ * Added "json replacer" setting
+ * Added "json spaces" setting
+ * Added X-Forwarded-Proto support to `res.redirect()`. Closes #92
+ * Added `--less` support to express(1)
+ * Added `express.response` prototype
+ * Added `express.request` prototype
+ * Added `express.application` prototype
+ * Added `app.path()`
+ * Added `app.render()`
+ * Added `res.type()` to replace `res.contentType()`
+ * Changed: `res.redirect()` to add relative support
+ * Changed: enable "jsonp callback" by default
+ * Changed: renamed "case sensitive routes" to "case sensitive routing"
+ * Rewrite of all tests with mocha
+ * Removed "root" setting
+ * Removed `res.redirect('home')` support
+ * Removed `req.notify()`
+ * Removed `app.register()`
+ * Removed `app.redirect()`
+ * Removed `app.is()`
+ * Removed `app.helpers()`
+ * Removed `app.dynamicHelpers()`
+ * Fixed `res.sendfile()` with non-GET. Closes #723
+ * Fixed express(1) public dir for windows. Closes #866
+
+2.5.9/ 2012-04-02
+==================
+
+ * Added support for PURGE request method [pbuyle]
+ * Fixed `express(1)` generated app `app.address()` before `listening` [mmalecki]
+
+2.5.8 / 2012-02-08
+==================
+
+ * Update mkdirp dep. Closes #991
+
+2.5.7 / 2012-02-06
+==================
+
+ * Fixed `app.all` duplicate DELETE requests [mscdex]
+
+2.5.6 / 2012-01-13
+==================
+
+ * Updated hamljs dev dep. Closes #953
+
+2.5.5 / 2012-01-08
+==================
+
+ * Fixed: set `filename` on cached templates [matthewleon]
+
+2.5.4 / 2012-01-02
+==================
+
+ * Fixed `express(1)` eol on 0.4.x. Closes #947
+
+2.5.3 / 2011-12-30
+==================
+
+ * Fixed `req.is()` when a charset is present
+
+2.5.2 / 2011-12-10
+==================
+
+ * Fixed: express(1) LF -> CRLF for windows
+
+2.5.1 / 2011-11-17
+==================
+
+ * Changed: updated connect to 1.8.x
+ * Removed sass.js support from express(1)
+
+2.5.0 / 2011-10-24
+==================
+
+ * Added ./routes dir for generated app by default
+ * Added npm install reminder to express(1) app gen
+ * Added 0.5.x support
+ * Removed `make test-cov` since it wont work with node 0.5.x
+ * Fixed express(1) public dir for windows. Closes #866
+
+2.4.7 / 2011-10-05
+==================
+
+ * Added mkdirp to express(1). Closes #795
+ * Added simple _json-config_ example
+ * Added shorthand for the parsed request's pathname via `req.path`
+ * Changed connect dep to 1.7.x to fix npm issue...
+ * Fixed `res.redirect()` __HEAD__ support. [reported by xerox]
+ * Fixed `req.flash()`, only escape args
+ * Fixed absolute path checking on windows. Closes #829 [reported by andrewpmckenzie]
+
+2.4.6 / 2011-08-22
+==================
+
+ * Fixed multiple param callback regression. Closes #824 [reported by TroyGoode]
+
+2.4.5 / 2011-08-19
+==================
+
+ * Added support for routes to handle errors. Closes #809
+ * Added `app.routes.all()`. Closes #803
+ * Added "basepath" setting to work in conjunction with reverse proxies etc.
+ * Refactored `Route` to use a single array of callbacks
+ * Added support for multiple callbacks for `app.param()`. Closes #801
+Closes #805
+ * Changed: removed .call(self) for route callbacks
+ * Dependency: `qs >= 0.3.1`
+ * Fixed `res.redirect()` on windows due to `join()` usage. Closes #808
+
+2.4.4 / 2011-08-05
+==================
+
+ * Fixed `res.header()` intention of a set, even when `undefined`
+ * Fixed `*`, value no longer required
+ * Fixed `res.send(204)` support. Closes #771
+
+2.4.3 / 2011-07-14
+==================
+
+ * Added docs for `status` option special-case. Closes #739
+ * Fixed `options.filename`, exposing the view path to template engines
+
+2.4.2. / 2011-07-06
+==================
+
+ * Revert "removed jsonp stripping" for XSS
+
+2.4.1 / 2011-07-06
+==================
+
+ * Added `res.json()` JSONP support. Closes #737
+ * Added _extending-templates_ example. Closes #730
+ * Added "strict routing" setting for trailing slashes
+ * Added support for multiple envs in `app.configure()` calls. Closes #735
+ * Changed: `res.send()` using `res.json()`
+ * Changed: when cookie `path === null` don't default it
+ * Changed; default cookie path to "home" setting. Closes #731
+ * Removed _pids/logs_ creation from express(1)
+
+2.4.0 / 2011-06-28
+==================
+
+ * Added chainable `res.status(code)`
+ * Added `res.json()`, an explicit version of `res.send(obj)`
+ * Added simple web-service example
+
+2.3.12 / 2011-06-22
+==================
+
+ * \#express is now on freenode! come join!
+ * Added `req.get(field, param)`
+ * Added links to Japanese documentation, thanks @hideyukisaito!
+ * Added; the `express(1)` generated app outputs the env
+ * Added `content-negotiation` example
+ * Dependency: connect >= 1.5.1 < 2.0.0
+ * Fixed view layout bug. Closes #720
+ * Fixed; ignore body on 304. Closes #701
+
+2.3.11 / 2011-06-04
+==================
+
+ * Added `npm test`
+ * Removed generation of dummy test file from `express(1)`
+ * Fixed; `express(1)` adds express as a dep
+ * Fixed; prune on `prepublish`
+
+2.3.10 / 2011-05-27
+==================
+
+ * Added `req.route`, exposing the current route
+ * Added _package.json_ generation support to `express(1)`
+ * Fixed call to `app.param()` function for optional params. Closes #682
+
+2.3.9 / 2011-05-25
+==================
+
+ * Fixed bug-ish with `../' in `res.partial()` calls
+
+2.3.8 / 2011-05-24
+==================
+
+ * Fixed `app.options()`
+
+2.3.7 / 2011-05-23
+==================
+
+ * Added route `Collection`, ex: `app.get('/user/:id').remove();`
+ * Added support for `app.param(fn)` to define param logic
+ * Removed `app.param()` support for callback with return value
+ * Removed module.parent check from express(1) generated app. Closes #670
+ * Refactored router. Closes #639
+
+2.3.6 / 2011-05-20
+==================
+
+ * Changed; using devDependencies instead of git submodules
+ * Fixed redis session example
+ * Fixed markdown example
+ * Fixed view caching, should not be enabled in development
+
+2.3.5 / 2011-05-20
+==================
+
+ * Added export `.view` as alias for `.View`
+
+2.3.4 / 2011-05-08
+==================
+
+ * Added `./examples/say`
+ * Fixed `res.sendfile()` bug preventing the transfer of files with spaces
+
+2.3.3 / 2011-05-03
+==================
+
+ * Added "case sensitive routes" option.
+ * Changed; split methods supported per rfc [slaskis]
+ * Fixed route-specific middleware when using the same callback function several times
+
+2.3.2 / 2011-04-27
+==================
+
+ * Fixed view hints
+
+2.3.1 / 2011-04-26
+==================
+
+ * Added `app.match()` as `app.match.all()`
+ * Added `app.lookup()` as `app.lookup.all()`
+ * Added `app.remove()` for `app.remove.all()`
+ * Added `app.remove.VERB()`
+ * Fixed template caching collision issue. Closes #644
+ * Moved router over from connect and started refactor
+
+2.3.0 / 2011-04-25
+==================
+
+ * Added options support to `res.clearCookie()`
+ * Added `res.helpers()` as alias of `res.locals()`
+ * Added; json defaults to UTF-8 with `res.send()`. Closes #632. [Daniel * Dependency `connect >= 1.4.0`
+ * Changed; auto set Content-Type in res.attachement [Aaron Heckmann]
+ * Renamed "cache views" to "view cache". Closes #628
+ * Fixed caching of views when using several apps. Closes #637
+ * Fixed gotcha invoking `app.param()` callbacks once per route middleware.
+Closes #638
+ * Fixed partial lookup precedence. Closes #631
+Shaw]
+
+2.2.2 / 2011-04-12
+==================
+
+ * Added second callback support for `res.download()` connection errors
+ * Fixed `filename` option passing to template engine
+
+2.2.1 / 2011-04-04
+==================
+
+ * Added `layout(path)` helper to change the layout within a view. Closes #610
+ * Fixed `partial()` collection object support.
+ Previously only anything with `.length` would work.
+ When `.length` is present one must still be aware of holes,
+ however now `{ collection: {foo: 'bar'}}` is valid, exposes
+ `keyInCollection` and `keysInCollection`.
+
+ * Performance improved with better view caching
+ * Removed `request` and `response` locals
+ * Changed; errorHandler page title is now `Express` instead of `Connect`
+
+2.2.0 / 2011-03-30
+==================
+
+ * Added `app.lookup.VERB()`, ex `app.lookup.put('/user/:id')`. Closes #606
+ * Added `app.match.VERB()`, ex `app.match.put('/user/12')`. Closes #606
+ * Added `app.VERB(path)` as alias of `app.lookup.VERB()`.
+ * Dependency `connect >= 1.2.0`
+
+2.1.1 / 2011-03-29
+==================
+
+ * Added; expose `err.view` object when failing to locate a view
+ * Fixed `res.partial()` call `next(err)` when no callback is given [reported by aheckmann]
+ * Fixed; `res.send(undefined)` responds with 204 [aheckmann]
+
+2.1.0 / 2011-03-24
+==================
+
+ * Added `<root>/_?<name>` partial lookup support. Closes #447
+ * Added `request`, `response`, and `app` local variables
+ * Added `settings` local variable, containing the app's settings
+ * Added `req.flash()` exception if `req.session` is not available
+ * Added `res.send(bool)` support (json response)
+ * Fixed stylus example for latest version
+ * Fixed; wrap try/catch around `res.render()`
+
+2.0.0 / 2011-03-17
+==================
+
+ * Fixed up index view path alternative.
+ * Changed; `res.locals()` without object returns the locals
+
+2.0.0rc3 / 2011-03-17
+==================
+
+ * Added `res.locals(obj)` to compliment `res.local(key, val)`
+ * Added `res.partial()` callback support
+ * Fixed recursive error reporting issue in `res.render()`
+
+2.0.0rc2 / 2011-03-17
+==================
+
+ * Changed; `partial()` "locals" are now optional
+ * Fixed `SlowBuffer` support. Closes #584 [reported by tyrda01]
+ * Fixed .filename view engine option [reported by drudge]
+ * Fixed blog example
+ * Fixed `{req,res}.app` reference when mounting [Ben Weaver]
+
+2.0.0rc / 2011-03-14
+==================
+
+ * Fixed; expose `HTTPSServer` constructor
+ * Fixed express(1) default test charset. Closes #579 [reported by secoif]
+ * Fixed; default charset to utf-8 instead of utf8 for lame IE [reported by NickP]
+
+2.0.0beta3 / 2011-03-09
+==================
+
+ * Added support for `res.contentType()` literal
+ The original `res.contentType('.json')`,
+ `res.contentType('application/json')`, and `res.contentType('json')`
+ will work now.
+ * Added `res.render()` status option support back
+ * Added charset option for `res.render()`
+ * Added `.charset` support (via connect 1.0.4)
+ * Added view resolution hints when in development and a lookup fails
+ * Added layout lookup support relative to the page view.
+ For example while rendering `./views/user/index.jade` if you create
+ `./views/user/layout.jade` it will be used in favour of the root layout.
+ * Fixed `res.redirect()`. RFC states absolute url [reported by unlink]
+ * Fixed; default `res.send()` string charset to utf8
+ * Removed `Partial` constructor (not currently used)
+
+2.0.0beta2 / 2011-03-07
+==================
+
+ * Added res.render() `.locals` support back to aid in migration process
+ * Fixed flash example
+
+2.0.0beta / 2011-03-03
+==================
+
+ * Added HTTPS support
+ * Added `res.cookie()` maxAge support
+ * Added `req.header()` _Referrer_ / _Referer_ special-case, either works
+ * Added mount support for `res.redirect()`, now respects the mount-point
+ * Added `union()` util, taking place of `merge(clone())` combo
+ * Added stylus support to express(1) generated app
+ * Added secret to session middleware used in examples and generated app
+ * Added `res.local(name, val)` for progressive view locals
+ * Added default param support to `req.param(name, default)`
+ * Added `app.disabled()` and `app.enabled()`
+ * Added `app.register()` support for omitting leading ".", either works
+ * Added `res.partial()`, using the same interface as `partial()` within a view. Closes #539
+ * Added `app.param()` to map route params to async/sync logic
+ * Added; aliased `app.helpers()` as `app.locals()`. Closes #481
+ * Added extname with no leading "." support to `res.contentType()`
+ * Added `cache views` setting, defaulting to enabled in "production" env
+ * Added index file partial resolution, eg: partial('user') may try _views/user/index.jade_.
+ * Added `req.accepts()` support for extensions
+ * Changed; `res.download()` and `res.sendfile()` now utilize Connect's
+ static file server `connect.static.send()`.
+ * Changed; replaced `connect.utils.mime()` with npm _mime_ module
+ * Changed; allow `req.query` to be pre-defined (via middleware or other parent
+ * Changed view partial resolution, now relative to parent view
+ * Changed view engine signature. no longer `engine.render(str, options, callback)`, now `engine.compile(str, options) -> Function`, the returned function accepts `fn(locals)`.
+ * Fixed `req.param()` bug returning Array.prototype methods. Closes #552
+ * Fixed; using `Stream#pipe()` instead of `sys.pump()` in `res.sendfile()`
+ * Fixed; using _qs_ module instead of _querystring_
+ * Fixed; strip unsafe chars from jsonp callbacks
+ * Removed "stream threshold" setting
+
+1.0.8 / 2011-03-01
+==================
+
+ * Allow `req.query` to be pre-defined (via middleware or other parent app)
+ * "connect": ">= 0.5.0 < 1.0.0". Closes #547
+ * Removed the long deprecated __EXPRESS_ENV__ support
+
+1.0.7 / 2011-02-07
+==================
+
+ * Fixed `render()` setting inheritance.
+ Mounted apps would not inherit "view engine"
+
+1.0.6 / 2011-02-07
+==================
+
+ * Fixed `view engine` setting bug when period is in dirname
+
+1.0.5 / 2011-02-05
+==================
+
+ * Added secret to generated app `session()` call
+
+1.0.4 / 2011-02-05
+==================
+
+ * Added `qs` dependency to _package.json_
+ * Fixed namespaced `require()`s for latest connect support
+
+1.0.3 / 2011-01-13
+==================
+
+ * Remove unsafe characters from JSONP callback names [Ryan Grove]
+
+1.0.2 / 2011-01-10
+==================
+
+ * Removed nested require, using `connect.router`
+
+1.0.1 / 2010-12-29
+==================
+
+ * Fixed for middleware stacked via `createServer()`
+ previously the `foo` middleware passed to `createServer(foo)`
+ would not have access to Express methods such as `res.send()`
+ or props like `req.query` etc.
+
+1.0.0 / 2010-11-16
+==================
+
+ * Added; deduce partial object names from the last segment.
+ For example by default `partial('forum/post', postObject)` will
+ give you the _post_ object, providing a meaningful default.
+ * Added http status code string representation to `res.redirect()` body
+ * Added; `res.redirect()` supporting _text/plain_ and _text/html_ via __Accept__.
+ * Added `req.is()` to aid in content negotiation
+ * Added partial local inheritance [suggested by masylum]. Closes #102
+ providing access to parent template locals.
+ * Added _-s, --session[s]_ flag to express(1) to add session related middleware
+ * Added _--template_ flag to express(1) to specify the
+ template engine to use.
+ * Added _--css_ flag to express(1) to specify the
+ stylesheet engine to use (or just plain css by default).
+ * Added `app.all()` support [thanks aheckmann]
+ * Added partial direct object support.
+ You may now `partial('user', user)` providing the "user" local,
+ vs previously `partial('user', { object: user })`.
+ * Added _route-separation_ example since many people question ways
+ to do this with CommonJS modules. Also view the _blog_ example for
+ an alternative.
+ * Performance; caching view path derived partial object names
+ * Fixed partial local inheritance precedence. [reported by Nick Poulden] Closes #454
+ * Fixed jsonp support; _text/javascript_ as per mailinglist discussion
+
+1.0.0rc4 / 2010-10-14
+==================
+
+ * Added _NODE_ENV_ support, _EXPRESS_ENV_ is deprecated and will be removed in 1.0.0
+ * Added route-middleware support (very helpful, see the [docs](http://expressjs.com/guide.html#Route-Middleware))
+ * Added _jsonp callback_ setting to enable/disable jsonp autowrapping [Dav Glass]
+ * Added callback query check on response.send to autowrap JSON objects for simple webservice implementations [Dav Glass]
+ * Added `partial()` support for array-like collections. Closes #434
+ * Added support for swappable querystring parsers
+ * Added session usage docs. Closes #443
+ * Added dynamic helper caching. Closes #439 [suggested by maritz]
+ * Added authentication example
+ * Added basic Range support to `res.sendfile()` (and `res.download()` etc)
+ * Changed; `express(1)` generated app using 2 spaces instead of 4
+ * Default env to "development" again [aheckmann]
+ * Removed _context_ option is no more, use "scope"
+ * Fixed; exposing _./support_ libs to examples so they can run without installs
+ * Fixed mvc example
+
+1.0.0rc3 / 2010-09-20
+==================
+
+ * Added confirmation for `express(1)` app generation. Closes #391
+ * Added extending of flash formatters via `app.flashFormatters`
+ * Added flash formatter support. Closes #411
+ * Added streaming support to `res.sendfile()` using `sys.pump()` when >= "stream threshold"
+ * Added _stream threshold_ setting for `res.sendfile()`
+ * Added `res.send()` __HEAD__ support
+ * Added `res.clearCookie()`
+ * Added `res.cookie()`
+ * Added `res.render()` headers option
+ * Added `res.redirect()` response bodies
+ * Added `res.render()` status option support. Closes #425 [thanks aheckmann]
+ * Fixed `res.sendfile()` responding with 403 on malicious path
+ * Fixed `res.download()` bug; when an error occurs remove _Content-Disposition_
+ * Fixed; mounted apps settings now inherit from parent app [aheckmann]
+ * Fixed; stripping Content-Length / Content-Type when 204
+ * Fixed `res.send()` 204. Closes #419
+ * Fixed multiple _Set-Cookie_ headers via `res.header()`. Closes #402
+ * Fixed bug messing with error handlers when `listenFD()` is called instead of `listen()`. [thanks guillermo]
+
+
+1.0.0rc2 / 2010-08-17
+==================
+
+ * Added `app.register()` for template engine mapping. Closes #390
+ * Added `res.render()` callback support as second argument (no options)
+ * Added callback support to `res.download()`
+ * Added callback support for `res.sendfile()`
+ * Added support for middleware access via `express.middlewareName()` vs `connect.middlewareName()`
+ * Added "partials" setting to docs
+ * Added default expresso tests to `express(1)` generated app. Closes #384
+ * Fixed `res.sendfile()` error handling, defer via `next()`
+ * Fixed `res.render()` callback when a layout is used [thanks guillermo]
+ * Fixed; `make install` creating ~/.node_libraries when not present
+ * Fixed issue preventing error handlers from being defined anywhere. Closes #387
+
+1.0.0rc / 2010-07-28
+==================
+
+ * Added mounted hook. Closes #369
+ * Added connect dependency to _package.json_
+
+ * Removed "reload views" setting and support code
+ development env never caches, production always caches.
+
+ * Removed _param_ in route callbacks, signature is now
+ simply (req, res, next), previously (req, res, params, next).
+ Use _req.params_ for path captures, _req.query_ for GET params.
+
+ * Fixed "home" setting
+ * Fixed middleware/router precedence issue. Closes #366
+ * Fixed; _configure()_ callbacks called immediately. Closes #368
+
+1.0.0beta2 / 2010-07-23
+==================
+
+ * Added more examples
+ * Added; exporting `Server` constructor
+ * Added `Server#helpers()` for view locals
+ * Added `Server#dynamicHelpers()` for dynamic view locals. Closes #349
+ * Added support for absolute view paths
+ * Added; _home_ setting defaults to `Server#route` for mounted apps. Closes #363
+ * Added Guillermo Rauch to the contributor list
+ * Added support for "as" for non-collection partials. Closes #341
+ * Fixed _install.sh_, ensuring _~/.node_libraries_ exists. Closes #362 [thanks jf]
+ * Fixed `res.render()` exceptions, now passed to `next()` when no callback is given [thanks guillermo]
+ * Fixed instanceof `Array` checks, now `Array.isArray()`
+ * Fixed express(1) expansion of public dirs. Closes #348
+ * Fixed middleware precedence. Closes #345
+ * Fixed view watcher, now async [thanks aheckmann]
+
+1.0.0beta / 2010-07-15
+==================
+
+ * Re-write
+ - much faster
+ - much lighter
+ - Check [ExpressJS.com](http://expressjs.com) for migration guide and updated docs
+
+0.14.0 / 2010-06-15
+==================
+
+ * Utilize relative requires
+ * Added Static bufferSize option [aheckmann]
+ * Fixed caching of view and partial subdirectories [aheckmann]
+ * Fixed mime.type() comments now that ".ext" is not supported
+ * Updated haml submodule
+ * Updated class submodule
+ * Removed bin/express
+
+0.13.0 / 2010-06-01
+==================
+
+ * Added node v0.1.97 compatibility
+ * Added support for deleting cookies via Request#cookie('key', null)
+ * Updated haml submodule
+ * Fixed not-found page, now using using charset utf-8
+ * Fixed show-exceptions page, now using using charset utf-8
+ * Fixed view support due to fs.readFile Buffers
+ * Changed; mime.type() no longer accepts ".type" due to node extname() changes
+
+0.12.0 / 2010-05-22
+==================
+
+ * Added node v0.1.96 compatibility
+ * Added view `helpers` export which act as additional local variables
+ * Updated haml submodule
+ * Changed ETag; removed inode, modified time only
+ * Fixed LF to CRLF for setting multiple cookies
+ * Fixed cookie complation; values are now urlencoded
+ * Fixed cookies parsing; accepts quoted values and url escaped cookies
+
+0.11.0 / 2010-05-06
+==================
+
+ * Added support for layouts using different engines
+ - this.render('page.html.haml', { layout: 'super-cool-layout.html.ejs' })
+ - this.render('page.html.haml', { layout: 'foo' }) // assumes 'foo.html.haml'
+ - this.render('page.html.haml', { layout: false }) // no layout
+ * Updated ext submodule
+ * Updated haml submodule
+ * Fixed EJS partial support by passing along the context. Issue #307
+
+0.10.1 / 2010-05-03
+==================
+
+ * Fixed binary uploads.
+
+0.10.0 / 2010-04-30
+==================
+
+ * Added charset support via Request#charset (automatically assigned to 'UTF-8' when respond()'s
+ encoding is set to 'utf8' or 'utf-8'.
+ * Added "encoding" option to Request#render(). Closes #299
+ * Added "dump exceptions" setting, which is enabled by default.
+ * Added simple ejs template engine support
+ * Added error reponse support for text/plain, application/json. Closes #297
+ * Added callback function param to Request#error()
+ * Added Request#sendHead()
+ * Added Request#stream()
+ * Added support for Request#respond(304, null) for empty response bodies
+ * Added ETag support to Request#sendfile()
+ * Added options to Request#sendfile(), passed to fs.createReadStream()
+ * Added filename arg to Request#download()
+ * Performance enhanced due to pre-reversing plugins so that plugins.reverse() is not called on each request
+ * Performance enhanced by preventing several calls to toLowerCase() in Router#match()
+ * Changed; Request#sendfile() now streams
+ * Changed; Renamed Request#halt() to Request#respond(). Closes #289
+ * Changed; Using sys.inspect() instead of JSON.encode() for error output
+ * Changed; run() returns the http.Server instance. Closes #298
+ * Changed; Defaulting Server#host to null (INADDR_ANY)
+ * Changed; Logger "common" format scale of 0.4f
+ * Removed Logger "request" format
+ * Fixed; Catching ENOENT in view caching, preventing error when "views/partials" is not found
+ * Fixed several issues with http client
+ * Fixed Logger Content-Length output
+ * Fixed bug preventing Opera from retaining the generated session id. Closes #292
+
+0.9.0 / 2010-04-14
+==================
+
+ * Added DSL level error() route support
+ * Added DSL level notFound() route support
+ * Added Request#error()
+ * Added Request#notFound()
+ * Added Request#render() callback function. Closes #258
+ * Added "max upload size" setting
+ * Added "magic" variables to collection partials (\_\_index\_\_, \_\_length\_\_, \_\_isFirst\_\_, \_\_isLast\_\_). Closes #254
+ * Added [haml.js](http://github.com/visionmedia/haml.js) submodule; removed haml-js
+ * Added callback function support to Request#halt() as 3rd/4th arg
+ * Added preprocessing of route param wildcards using param(). Closes #251
+ * Added view partial support (with collections etc)
+ * Fixed bug preventing falsey params (such as ?page=0). Closes #286
+ * Fixed setting of multiple cookies. Closes #199
+ * Changed; view naming convention is now NAME.TYPE.ENGINE (for example page.html.haml)
+ * Changed; session cookie is now httpOnly
+ * Changed; Request is no longer global
+ * Changed; Event is no longer global
+ * Changed; "sys" module is no longer global
+ * Changed; moved Request#download to Static plugin where it belongs
+ * Changed; Request instance created before body parsing. Closes #262
+ * Changed; Pre-caching views in memory when "cache view contents" is enabled. Closes #253
+ * Changed; Pre-caching view partials in memory when "cache view partials" is enabled
+ * Updated support to node --version 0.1.90
+ * Updated dependencies
+ * Removed set("session cookie") in favour of use(Session, { cookie: { ... }})
+ * Removed utils.mixin(); use Object#mergeDeep()
+
+0.8.0 / 2010-03-19
+==================
+
+ * Added coffeescript example app. Closes #242
+ * Changed; cache api now async friendly. Closes #240
+ * Removed deprecated 'express/static' support. Use 'express/plugins/static'
+
+0.7.6 / 2010-03-19
+==================
+
+ * Added Request#isXHR. Closes #229
+ * Added `make install` (for the executable)
+ * Added `express` executable for setting up simple app templates
+ * Added "GET /public/*" to Static plugin, defaulting to <root>/public
+ * Added Static plugin
+ * Fixed; Request#render() only calls cache.get() once
+ * Fixed; Namespacing View caches with "view:"
+ * Fixed; Namespacing Static caches with "static:"
+ * Fixed; Both example apps now use the Static plugin
+ * Fixed set("views"). Closes #239
+ * Fixed missing space for combined log format
+ * Deprecated Request#sendfile() and 'express/static'
+ * Removed Server#running
+
+0.7.5 / 2010-03-16
+==================
+
+ * Added Request#flash() support without args, now returns all flashes
+ * Updated ext submodule
+
+0.7.4 / 2010-03-16
+==================
+
+ * Fixed session reaper
+ * Changed; class.js replacing js-oo Class implementation (quite a bit faster, no browser cruft)
+
+0.7.3 / 2010-03-16
+==================
+
+ * Added package.json
+ * Fixed requiring of haml / sass due to kiwi removal
+
+0.7.2 / 2010-03-16
+==================
+
+ * Fixed GIT submodules (HAH!)
+
+0.7.1 / 2010-03-16
+==================
+
+ * Changed; Express now using submodules again until a PM is adopted
+ * Changed; chat example using millisecond conversions from ext
+
+0.7.0 / 2010-03-15
+==================
+
+ * Added Request#pass() support (finds the next matching route, or the given path)
+ * Added Logger plugin (default "common" format replaces CommonLogger)
+ * Removed Profiler plugin
+ * Removed CommonLogger plugin
+
+0.6.0 / 2010-03-11
+==================
+
+ * Added seed.yml for kiwi package management support
+ * Added HTTP client query string support when method is GET. Closes #205
+
+ * Added support for arbitrary view engines.
+ For example "foo.engine.html" will now require('engine'),
+ the exports from this module are cached after the first require().
+
+ * Added async plugin support
+
+ * Removed usage of RESTful route funcs as http client
+ get() etc, use http.get() and friends
+
+ * Removed custom exceptions
+
+0.5.0 / 2010-03-10
+==================
+
+ * Added ext dependency (library of js extensions)
+ * Removed extname() / basename() utils. Use path module
+ * Removed toArray() util. Use arguments.values
+ * Removed escapeRegexp() util. Use RegExp.escape()
+ * Removed process.mixin() dependency. Use utils.mixin()
+ * Removed Collection
+ * Removed ElementCollection
+ * Shameless self promotion of ebook "Advanced JavaScript" (http://dev-mag.com) ;)
+
+0.4.0 / 2010-02-11
+==================
+
+ * Added flash() example to sample upload app
+ * Added high level restful http client module (express/http)
+ * Changed; RESTful route functions double as HTTP clients. Closes #69
+ * Changed; throwing error when routes are added at runtime
+ * Changed; defaulting render() context to the current Request. Closes #197
+ * Updated haml submodule
+
+0.3.0 / 2010-02-11
+==================
+
+ * Updated haml / sass submodules. Closes #200
+ * Added flash message support. Closes #64
+ * Added accepts() now allows multiple args. fixes #117
+ * Added support for plugins to halt. Closes #189
+ * Added alternate layout support. Closes #119
+ * Removed Route#run(). Closes #188
+ * Fixed broken specs due to use(Cookie) missing
+
+0.2.1 / 2010-02-05
+==================
+
+ * Added "plot" format option for Profiler (for gnuplot processing)
+ * Added request number to Profiler plugin
+ * Fixed binary encoding for multi-part file uploads, was previously defaulting to UTF8
+ * Fixed issue with routes not firing when not files are present. Closes #184
+ * Fixed process.Promise -> events.Promise
+
+0.2.0 / 2010-02-03
+==================
+
+ * Added parseParam() support for name[] etc. (allows for file inputs with "multiple" attr) Closes #180
+ * Added Both Cache and Session option "reapInterval" may be "reapEvery". Closes #174
+ * Added expiration support to cache api with reaper. Closes #133
+ * Added cache Store.Memory#reap()
+ * Added Cache; cache api now uses first class Cache instances
+ * Added abstract session Store. Closes #172
+ * Changed; cache Memory.Store#get() utilizing Collection
+ * Renamed MemoryStore -> Store.Memory
+ * Fixed use() of the same plugin several time will always use latest options. Closes #176
+
+0.1.0 / 2010-02-03
+==================
+
+ * Changed; Hooks (before / after) pass request as arg as well as evaluated in their context
+ * Updated node support to 0.1.27 Closes #169
+ * Updated dirname(__filename) -> __dirname
+ * Updated libxmljs support to v0.2.0
+ * Added session support with memory store / reaping
+ * Added quick uid() helper
+ * Added multi-part upload support
+ * Added Sass.js support / submodule
+ * Added production env caching view contents and static files
+ * Added static file caching. Closes #136
+ * Added cache plugin with memory stores
+ * Added support to StaticFile so that it works with non-textual files.
+ * Removed dirname() helper
+ * Removed several globals (now their modules must be required)
+
+0.0.2 / 2010-01-10
+==================
+
+ * Added view benchmarks; currently haml vs ejs
+ * Added Request#attachment() specs. Closes #116
+ * Added use of node's parseQuery() util. Closes #123
+ * Added `make init` for submodules
+ * Updated Haml
+ * Updated sample chat app to show messages on load
+ * Updated libxmljs parseString -> parseHtmlString
+ * Fixed `make init` to work with older versions of git
+ * Fixed specs can now run independant specs for those who cant build deps. Closes #127
+ * Fixed issues introduced by the node url module changes. Closes 126.
+ * Fixed two assertions failing due to Collection#keys() returning strings
+ * Fixed faulty Collection#toArray() spec due to keys() returning strings
+ * Fixed `make test` now builds libxmljs.node before testing
+
+0.0.1 / 2010-01-03
+==================
+
+ * Initial release
View
22 express/5-complete/node_modules/express/LICENSE
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2009-2011 TJ Holowaychuk <tj@vision-media.ca>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
29 express/5-complete/node_modules/express/Makefile
@@ -0,0 +1,29 @@
+
+MOCHA_OPTS=
+REPORTER = dot
+
+check: test
+
+test: test-unit test-acceptance
+
+test-unit:
+ @NODE_ENV=test ./node_modules/.bin/mocha \
+ --reporter $(REPORTER) \
+ $(MOCHA_OPTS)
+
+test-acceptance:
+ @NODE_ENV=test ./node_modules/.bin/mocha \
+ --reporter $(REPORTER) \
+ --bail \
+ test/acceptance/*.js
+
+test-cov: lib-cov
+ @EXPRESS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
+
+lib-cov:
+ @jscoverage lib lib-cov
+
+benchmark:
+ @./support/bench
+
+.PHONY: test test-unit test-acceptance benchmark
View
183 express/5-complete/node_modules/express/Readme.md
@@ -0,0 +1,183 @@
+
+![express logo](http://f.cl.ly/items/0V2S1n0K1i3y1c122g04/Screen%20Shot%202012-04-11%20at%209.59.42%20AM.png)
+
+ Fast, unopinionated, minimalist web framework for [node](http://nodejs.org). [![Build Status](https://secure.travis-ci.org/visionmedia/express.png)](http://travis-ci.org/visionmedia/express)
+
+```js
+var express = require('express');
+var app = express();
+
+app.get('/', function(req, res){
+ res.send('Hello World');
+});
+
+app.listen(3000);
+```
+
+## Installation
+
+ $ npm install -g express
+
+ To install the 3.0 alpha:
+
+ $ npm install -g express@3.0
+
+## Quick Start
+
+ The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:
+
+ Create the app:
+
+ $ npm install -g express
+ $ express /tmp/foo && cd /tmp/foo
+
+ Install dependencies:
+
+ $ npm install
+
+ Start the server:
+
+ $ node app
+
+## Features
+
+ * Built on [Connect](http://github.com/senchalabs/connect)
+ * Robust routing
+ * HTTP helpers (redirection, caching, etc)
+ * View system supporting 14+ template engines
+ * Content negotiation
+ * Focus on high performance
+ * Environment based configuration
+ * Executable for generating applications quickly
+ * High test coverage
+
+## Philosophy
+
+ The Express philosophy is to provide small, robust tooling for HTTP servers. Making
+ it a great solution for single page applications, web sites, hybrids, or public
+ HTTP APIs.
+
+ Built on Connect you can use _only_ what you need, and nothing more, applications
+ can be as big or as small as you like, even a single file. Express does
+ not force you to use any specific ORM or template engine. With support for over
+ 14 template engines via [Consolidate.js](http://github.com/visionmedia/consolidate.js)
+ you can quickly craft your perfect framework.
+
+## More Information
+
+ * Join #express on freenode
+ * [Google Group](http://groups.google.com/group/express-js) for discussion
+ * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates
+ * Visit the [Wiki](http://github.com/visionmedia/express/wiki)
+ * [日本語ドキュメンテーション](http://hideyukisaito.com/doc/expressjs/) by [hideyukisaito](https://github.com/hideyukisaito)
+ * [Русскоязычная документация](http://express-js.ru/)
+
+## Viewing Examples
+
+First install the dev dependencies to install all the example / test suite deps:
+
+ $ cd express
+ $ npm install
+
+then run whichever tests you want:
+
+ $ node examples/content-negotiation
+
+## Running Tests
+
+To run the test suite first invoke the following command within the repo, installing the development dependencies:
+
+ $ npm install
+
+then run the tests:
+
+ $ make test
+
+## Contributors
+
+```
+project: express
+commits: 3559
+active : 468 days
+files : 237
+authors:
+ 1891 Tj Holowaychuk 53.1%
+ 1285 visionmedia 36.1%
+ 182 TJ Holowaychuk 5.1%
+ 54 Aaron Heckmann 1.5%
+ 34 csausdev 1.0%
+ 26 ciaranj 0.7%
+ 21 Robert Sköld 0.6%
+ 6 Guillermo Rauch 0.2%
+ 3 Dav Glass 0.1%
+ 3 Nick Poulden 0.1%
+ 2 Randy Merrill 0.1%
+ 2 Benny Wong 0.1%
+ 2 Hunter Loftis 0.1%
+ 2 Jake Gordon 0.1%
+ 2 Brian McKinney 0.1%
+ 2 Roman Shtylman 0.1%
+ 2 Ben Weaver 0.1%
+ 2 Dave Hoover 0.1%
+ 2 Eivind Fjeldstad 0.1%
+ 2 Daniel Shaw 0.1%
+ 1 Matt Colyer 0.0%
+ 1 Pau Ramon 0.0%
+ 1 Pero Pejovic 0.0%
+ 1 Peter Rekdal Sunde 0.0%
+ 1 Raynos 0.0%
+ 1 Teng Siong Ong 0.0%
+ 1 Viktor Kelemen 0.0%
+ 1 ctide 0.0%
+ 1 8bitDesigner 0.0%
+ 1 isaacs 0.0%
+ 1 mgutz 0.0%
+ 1 pikeas 0.0%
+ 1 shuwatto 0.0%
+ 1 tstrimple 0.0%
+ 1 ewoudj 0.0%
+ 1 Adam Sanderson 0.0%
+ 1 Andrii Kostenko 0.0%
+ 1 Andy Hiew 0.0%
+ 1 Arpad Borsos 0.0%
+ 1 Ashwin Purohit 0.0%
+ 1 Benjen 0.0%
+ 1 Darren Torpey 0.0%
+ 1 Greg Ritter 0.0%
+ 1 Gregory Ritter 0.0%
+ 1 James Herdman 0.0%
+ 1 Jim Snodgrass 0.0%
+ 1 Joe McCann 0.0%
+ 1 Jonathan Dumaine 0.0%
+ 1 Jonathan Palardy 0.0%
+ 1 Jonathan Zacsh 0.0%
+ 1 Justin Lilly 0.0%
+ 1 Ken Sato 0.0%
+ 1 Maciej Małecki 0.0%
+ 1 Masahiro Hayashi 0.0%
+```
+
+## License
+
+(The MIT License)
+
+Copyright (c) 2009-2012 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
422 express/5-complete/node_modules/express/bin/express
@@ -0,0 +1,422 @@
+#!/usr/bin/env node
+
+/**
+ * Module dependencies.
+ */
+
+var exec = require('child_process').exec
+ , program = require('commander')
+ , mkdirp = require('mkdirp')
+ , pkg = require('../package.json')
+ , version = pkg.version
+ , os = require('os')
+ , fs = require('fs');
+
+// CLI
+
+program
+ .version(version)
+ .option('-s, --sessions', 'add session support')
+ .option('-e, --ejs', 'add ejs engine support (defaults to jade)')
+ .option('-J, --jshtml', 'add jshtml engine support (defaults to jade)')
+ .option('-H, --hogan', 'add hogan.js engine support')
+ .option('-c, --css <engine>', 'add stylesheet <engine> support (less|stylus) (defaults to plain css)')
+ .option('-f, --force', 'force on non-empty directory')
+ .parse(process.argv);
+
+// Path
+
+var path = program.args.shift() || '.';
+
+// end-of-line code
+
+var eol = 'win32' == os.platform() ? '\r\n' : '\n'
+
+// Template engine
+
+program.template = 'jade';
+if (program.ejs) program.template = 'ejs';
+if (program.jshtml) program.template = 'jshtml';
+if (program.hogan) program.template = 'hjs';
+
+/**
+ * Routes index template.
+ */
+
+var index = [
+ ''
+ , '/*'
+ , ' * GET home page.'
+ , ' */'
+ , ''
+ , 'exports.index = function(req, res){'
+ , ' res.render(\'index\', { title: \'Express\' });'
+ , '};'
+].join(eol);
+
+/**
+ * Routes users template.
+ */
+
+var users = [
+ ''
+ , '/*'
+ , ' * GET users listing.'
+ , ' */'
+ , ''
+ , 'exports.list = function(req, res){'
+ , ' res.send("respond with a resource");'
+ , '};'
+].join(eol);
+
+/**
+ * Jade layout template.
+ */
+
+var jadeLayout = [
+ 'doctype 5'
+ , 'html'
+ , ' head'
+ , ' title= title'
+ , ' link(rel=\'stylesheet\', href=\'/stylesheets/style.css\')'
+ , ' body'
+ , ' block content'
+].join(eol);
+
+/**
+ * Jade index template.
+ */
+
+var jadeIndex = [
+ 'extends layout'
+ , ''
+ , 'block content'
+ , ' h1= title'
+ , ' p Welcome to #{title}'
+].join(eol);
+
+/**
+ * EJS index template.
+ */
+
+var ejsIndex = [
+ '<!DOCTYPE html>'
+ , '<html>'
+ , ' <head>'
+ , ' <title><%= title %></title>'
+ , ' <link rel=\'stylesheet\' href=\'/stylesheets/style.css\' />'
+ , ' </head>'
+ , ' <body>'
+ , ' <h1><%= title %></h1>'
+ , ' <p>Welcome to <%= title %></p>'
+ , ' </body>'
+ , '</html>'
+].join(eol);
+
+/**
+ * JSHTML layout template.
+ */
+
+var jshtmlLayout = [
+ '<!DOCTYPE html>'
+ , '<html>'
+ , ' <head>'
+ , ' <title> @write(title) </title>'
+ , ' <link rel=\'stylesheet\' href=\'/stylesheets/style.css\' />'
+ , ' </head>'
+ , ' <body>'
+ , ' @write(body)'
+ , ' </body>'
+ , '</html>'
+].join(eol);
+
+/**
+ * JSHTML index template.
+ */
+
+var jshtmlIndex = [
+ '<h1>@write(title)</h1>'
+ , '<p>Welcome to @write(title)</p>'
+].join(eol);
+
+/**
+ * Hogan.js index template.
+ */
+var hoganIndex = [
+ '<!DOCTYPE html>'
+ , '<html>'
+ , ' <head>'
+ , ' <title>{{ title }}</title>'
+ , ' <link rel=\'stylesheet\' href=\'/stylesheets/style.css\' />'
+ , ' </head>'
+ , ' <body>'
+ , ' <h1>{{ title }}</h1>'
+ , ' <p>Welcome to {{ title }}</p>'
+ , ' </body>'
+ , '</html>'
+].join(eol);
+
+/**
+ * Default css template.
+ */
+
+var css = [
+ 'body {'
+ , ' padding: 50px;'
+ , ' font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;'
+ , '}'
+ , ''
+ , 'a {'
+ , ' color: #00B7FF;'
+ , '}'
+].join(eol);
+
+/**
+ * Default less template.
+ */
+
+var less = [
+ 'body {'
+ , ' padding: 50px;'
+ , ' font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;'
+ , '}'
+ , ''
+ , 'a {'
+ , ' color: #00B7FF;'
+ , '}'
+].join(eol);
+
+/**
+ * Default stylus template.
+ */
+
+var stylus = [
+ 'body'
+ , ' padding: 50px'
+ , ' font: 14px "Lucida Grande", Helvetica, Arial, sans-serif'
+ , 'a'
+ , ' color: #00B7FF'
+].join(eol);
+
+/**
+ * App template.
+ */
+
+var app = [
+ ''
+ , '/**'
+ , ' * Module dependencies.'
+ , ' */'
+ , ''
+ , 'var express = require(\'express\')'
+ , ' , routes = require(\'./routes\')'
+ , ' , user = require(\'./routes/user\')'
+ , ' , http = require(\'http\')'
+ , ' , path = require(\'path\');'
+ , ''
+ , 'var app = express();'
+ , ''
+ , 'app.configure(function(){'
+ , ' app.set(\'port\', process.env.PORT || 3000);'
+ , ' app.set(\'views\', __dirname + \'/views\');'
+ , ' app.set(\'view engine\', \':TEMPLATE\');'
+ , ' app.use(express.favicon());'
+ , ' app.use(express.logger(\'dev\'));'
+ , ' app.use(express.bodyParser());'
+ , ' app.use(express.methodOverride());{sess}'
+ , ' app.use(app.router);{css}'
+ , ' app.use(express.static(path.join(__dirname, \'public\')));'
+ , '});'
+ , ''
+ , 'app.configure(\'development\', function(){'
+ , ' app.use(express.errorHandler());'
+ , '});'
+ , ''
+ , 'app.get(\'/\', routes.index);'
+ , 'app.get(\'/users\', user.list);'
+ , ''
+ , 'http.createServer(app).listen(app.get(\'port\'), function(){'
+ , ' console.log("Express server listening on port " + app.get(\'port\'));'
+ , '});'
+ , ''
+].join(eol);
+
+// Generate application
+
+(function createApplication(path) {
+ emptyDirectory(path, function(empty){
+ if (empty || program.force) {
+ createApplicationAt(path);
+ } else {
+ program.confirm('destination is not empty, continue? ', function(ok){
+ if (ok) {
+ process.stdin.destroy();
+ createApplicationAt(path);
+ } else {
+ abort('aborting');
+ }
+ });
+ }
+ });
+})(path);
+
+/**
+ * Create application at the given directory `path`.
+ *
+ * @param {String} path
+ */
+
+function createApplicationAt(path) {
+ console.log();
+ process.on('exit', function(){
+ console.log();
+ console.log(' install dependencies:');
+ console.log(' $ cd %s && npm install', path);
+ console.log();
+ console.log(' run the app:');
+ console.log(' $ node app');
+ console.log();
+ });
+
+ mkdir(path, function(){
+ mkdir(path + '/public');
+ mkdir(path + '/public/javascripts');
+ mkdir(path + '/public/images');
+ mkdir(path + '/public/stylesheets', function(){
+ switch (program.css) {
+ case 'less':
+ write(path + '/public/stylesheets/style.less', less);
+ break;
+ case 'stylus':
+ write(path + '/public/stylesheets/style.styl', stylus);
+ break;
+ default:
+ write(path + '/public/stylesheets/style.css', css);
+ }
+ });
+
+ mkdir(path + '/routes', function(){
+ write(path + '/routes/index.js', index);
+ write(path + '/routes/user.js', users);
+ });
+
+ mkdir(path + '/views', function(){
+ switch (program.template) {
+ case 'ejs':
+ write(path + '/views/index.ejs', ejsIndex);
+ break;
+ case 'jade':
+ write(path + '/views/layout.jade', jadeLayout);
+ write(path + '/views/index.jade', jadeIndex);
+ break;
+ case 'jshtml':
+ write(path + '/views/layout.jshtml', jshtmlLayout);
+ write(path + '/views/index.jshtml', jshtmlIndex);
+ break;
+ case 'hjs':
+ write(path + '/views/index.hjs', hoganIndex);
+ break;
+
+ }
+ });
+
+ // CSS Engine support
+ switch (program.css) {
+ case 'less':
+ app = app.replace('{css}', eol + ' app.use(require(\'less-middleware\')({ src: __dirname + \'/public\' }));');
+ break;
+ case 'stylus':
+ app = app.replace('{css}', eol + ' app.use(require(\'stylus\').middleware(__dirname + \'/public\'));');
+ break;
+ default:
+ app = app.replace('{css}', '');
+ }
+
+ // Session support
+ app = app.replace('{sess}', program.sessions
+ ? eol + ' app.use(express.cookieParser(\'your secret here\'));' + eol + ' app.use(express.session());'
+ : '');
+
+ // Template support
+ app = app.replace(':TEMPLATE', program.template);
+
+ // package.json
+ var pkg = {
+ name: 'application-name'
+ , version: '0.0.1'
+ , private: true
+ , scripts: { start: 'node app' }
+ , dependencies: {
+ express: version
+ }
+ }
+
+ if (program.template) pkg.dependencies[program.template] = '*';
+
+ // CSS Engine support
+ switch (program.css) {
+ case 'less':
+ pkg.dependencies['less-middleware'] = '*';
+ break;
+ default:
+ if (program.css) {
+ pkg.dependencies[program.css] = '*';
+ }
+ }
+
+ write(path + '/package.json', JSON.stringify(pkg, null, 2));
+ write(path + '/app.js', app);
+ });
+}
+
+/**
+ * Check if the given directory `path` is empty.
+ *
+ * @param {String} path
+ * @param {Function} fn
+ */
+
+function emptyDirectory(path, fn) {
+ fs.readdir(path, function(err, files){
+ if (err && 'ENOENT' != err.code) throw err;
+ fn(!files || !files.length);
+ });
+}
+
+/**
+ * echo str > path.
+ *
+ * @param {String} path
+ * @param {String} str
+ */
+
+function write(path, str) {
+ fs.writeFile(path, str);
+ console.log(' \x1b[36mcreate\x1b[0m : ' + path);
+}
+
+/**
+ * Mkdir -p.
+ *
+ * @param {String} path
+ * @param {Function} fn
+ */
+
+function mkdir(path, fn) {
+ mkdirp(path, 0755, function(err){
+ if (err) throw err;
+ console.log(' \033[36mcreate\033[0m : ' + path);
+ fn && fn();
+ });
+}
+
+/**
+ * Exit with the given `str`.
+ *
+ * @param {String} str
+ */
+
+function abort(str) {
+ console.error(str);
+ process.exit(1);
+}
View
25 express/5-complete/node_modules/express/client.js
@@ -0,0 +1,25 @@
+
+var http = require('http');
+
+var times = 50;
+
+while (times--) {
+ var req = http.request({
+ port: 3000
+ , method: 'POST'
+ , headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
+ });
+
+ req.on('response', function(res){
+ console.log(res.statusCode);
+ });
+
+ var n = 500000;
+ while (n--) {
+ req.write('foo=bar&bar=baz&');
+ }
+
+ req.write('foo=bar&bar=baz');
+
+ req.end();
+}
View
4 express/5-complete/node_modules/express/index.js
@@ -0,0 +1,4 @@
+
+module.exports = process.env.EXPRESS_COV
+ ? require('./lib-cov/express')
+ : require('./lib/express');
View
533 express/5-complete/node_modules/express/lib/application.js
@@ -0,0 +1,533 @@
+/**
+ * Module dependencies.
+ */
+
+var connect = require('connect')
+ , Router = require('./router')
+ , methods = require('methods')
+ , middleware = require('./middleware')
+ , debug = require('debug')('express:application')
+ , locals = require('./utils').locals
+ , View = require('./view')
+ , url = require('url')
+ , utils = connect.utils
+ , path = require('path')
+ , http = require('http')
+ , join = path.join
+ , fs = require('fs');
+
+/**
+ * Application prototype.
+ */
+
+var app = exports = module.exports = {};
+
+/**
+ * Initialize the server.
+ *
+ * - setup default configuration
+ * - setup default middleware
+ * - setup route reflection methods
+ *
+ * @api private
+ */
+
+app.init = function(){
+ var self = this;
+ this.cache = {};
+ this.settings = {};
+ this.engines = {};
+ this.viewCallbacks = [];
+ this.defaultConfiguration();
+};
+
+/**
+ * Initialize application configuration.
+ *
+ * @api private
+ */
+
+app.defaultConfiguration = function(){
+ var self = this;
+
+ // default settings
+ this.set('env', process.env.NODE_ENV || 'development');
+ debug('booting in %s mode', this.get('env'));
+
+ // implicit middleware
+ this.use(connect.query());
+ this.use(middleware.init(this));
+
+ // inherit protos
+ this.on('mount', function(parent){