webpack_rails 0.3.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (353) hide show
  1. checksums.yaml +4 -4
  2. data/lib/webpack_rails/ErrorMessagePlugin.js +37 -0
  3. data/lib/webpack_rails/engine.rb +6 -5
  4. data/lib/webpack_rails/node_modules/cors/CONTRIBUTING.md +35 -0
  5. data/lib/webpack_rails/node_modules/cors/LICENSE +9 -0
  6. data/lib/webpack_rails/node_modules/cors/README.md +192 -0
  7. data/lib/webpack_rails/node_modules/cors/lib/index.js +242 -0
  8. data/lib/webpack_rails/node_modules/cors/node_modules/vary/HISTORY.md +29 -0
  9. data/lib/webpack_rails/node_modules/cors/node_modules/vary/LICENSE +22 -0
  10. data/lib/webpack_rails/node_modules/cors/node_modules/vary/README.md +91 -0
  11. data/lib/webpack_rails/node_modules/cors/node_modules/vary/index.js +124 -0
  12. data/lib/webpack_rails/node_modules/cors/node_modules/vary/package.json +72 -0
  13. data/lib/webpack_rails/node_modules/cors/package.json +79 -0
  14. data/lib/webpack_rails/node_modules/cors/test/basic-auth.js +40 -0
  15. data/lib/webpack_rails/node_modules/cors/test/body-events.js +81 -0
  16. data/lib/webpack_rails/node_modules/cors/test/cors.js +652 -0
  17. data/lib/webpack_rails/node_modules/cors/test/error-response.js +77 -0
  18. data/lib/webpack_rails/node_modules/cors/test/example-app.js +98 -0
  19. data/lib/webpack_rails/node_modules/cors/test/issue-2.js +56 -0
  20. data/lib/webpack_rails/node_modules/cors/test/issue-31.js +58 -0
  21. data/lib/webpack_rails/node_modules/cors/test/mocha.opts +3 -0
  22. data/lib/webpack_rails/node_modules/express/History.md +3025 -0
  23. data/lib/webpack_rails/node_modules/express/LICENSE +24 -0
  24. data/lib/webpack_rails/node_modules/express/Readme.md +138 -0
  25. data/lib/webpack_rails/node_modules/express/index.js +11 -0
  26. data/lib/webpack_rails/node_modules/express/lib/application.js +643 -0
  27. data/lib/webpack_rails/node_modules/express/lib/express.js +103 -0
  28. data/lib/webpack_rails/node_modules/express/lib/middleware/init.js +36 -0
  29. data/lib/webpack_rails/node_modules/express/lib/middleware/query.js +51 -0
  30. data/lib/webpack_rails/node_modules/express/lib/request.js +489 -0
  31. data/lib/webpack_rails/node_modules/express/lib/response.js +1053 -0
  32. data/lib/webpack_rails/node_modules/express/lib/router/index.js +645 -0
  33. data/lib/webpack_rails/node_modules/express/lib/router/layer.js +176 -0
  34. data/lib/webpack_rails/node_modules/express/lib/router/route.js +210 -0
  35. data/lib/webpack_rails/node_modules/express/lib/utils.js +300 -0
  36. data/lib/webpack_rails/node_modules/express/lib/view.js +173 -0
  37. data/lib/webpack_rails/node_modules/express/node_modules/accepts/HISTORY.md +170 -0
  38. data/lib/webpack_rails/node_modules/express/node_modules/accepts/LICENSE +23 -0
  39. data/lib/webpack_rails/node_modules/express/node_modules/accepts/README.md +135 -0
  40. data/lib/webpack_rails/node_modules/express/node_modules/accepts/index.js +231 -0
  41. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/HISTORY.md +171 -0
  42. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/LICENSE +23 -0
  43. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/README.md +103 -0
  44. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/index.js +188 -0
  45. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/HISTORY.md +274 -0
  46. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/LICENSE +22 -0
  47. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/README.md +82 -0
  48. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/db.json +6474 -0
  49. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/index.js +11 -0
  50. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/package.json +94 -0
  51. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/package.json +84 -0
  52. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/HISTORY.md +76 -0
  53. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/LICENSE +24 -0
  54. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/README.md +203 -0
  55. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/index.js +62 -0
  56. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/charset.js +102 -0
  57. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/encoding.js +118 -0
  58. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/language.js +112 -0
  59. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/mediaType.js +179 -0
  60. data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/package.json +86 -0
  61. data/lib/webpack_rails/node_modules/express/node_modules/accepts/package.json +98 -0
  62. data/lib/webpack_rails/node_modules/express/node_modules/array-flatten/LICENSE +21 -0
  63. data/lib/webpack_rails/node_modules/express/node_modules/array-flatten/README.md +43 -0
  64. data/lib/webpack_rails/node_modules/express/node_modules/array-flatten/array-flatten.js +64 -0
  65. data/lib/webpack_rails/node_modules/express/node_modules/array-flatten/package.json +62 -0
  66. data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/HISTORY.md +40 -0
  67. data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/LICENSE +22 -0
  68. data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/README.md +141 -0
  69. data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/index.js +443 -0
  70. data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/package.json +66 -0
  71. data/lib/webpack_rails/node_modules/express/node_modules/content-type/HISTORY.md +9 -0
  72. data/lib/webpack_rails/node_modules/express/node_modules/content-type/LICENSE +22 -0
  73. data/lib/webpack_rails/node_modules/express/node_modules/content-type/README.md +92 -0
  74. data/lib/webpack_rails/node_modules/express/node_modules/content-type/index.js +214 -0
  75. data/lib/webpack_rails/node_modules/express/node_modules/content-type/package.json +65 -0
  76. data/lib/webpack_rails/node_modules/express/node_modules/cookie/LICENSE +23 -0
  77. data/lib/webpack_rails/node_modules/express/node_modules/cookie/README.md +64 -0
  78. data/lib/webpack_rails/node_modules/express/node_modules/cookie/index.js +116 -0
  79. data/lib/webpack_rails/node_modules/express/node_modules/cookie/package.json +68 -0
  80. data/lib/webpack_rails/node_modules/express/node_modules/cookie-signature/History.md +38 -0
  81. data/lib/webpack_rails/node_modules/express/node_modules/cookie-signature/Readme.md +42 -0
  82. data/lib/webpack_rails/node_modules/express/node_modules/cookie-signature/index.js +51 -0
  83. data/lib/webpack_rails/node_modules/express/node_modules/cookie-signature/package.json +59 -0
  84. data/lib/webpack_rails/node_modules/express/node_modules/debug/History.md +195 -0
  85. data/lib/webpack_rails/node_modules/express/node_modules/debug/Makefile +36 -0
  86. data/lib/webpack_rails/node_modules/express/node_modules/debug/Readme.md +188 -0
  87. data/lib/webpack_rails/node_modules/express/node_modules/debug/bower.json +28 -0
  88. data/lib/webpack_rails/node_modules/express/node_modules/debug/browser.js +168 -0
  89. data/lib/webpack_rails/node_modules/express/node_modules/debug/component.json +19 -0
  90. data/lib/webpack_rails/node_modules/express/node_modules/debug/debug.js +197 -0
  91. data/lib/webpack_rails/node_modules/express/node_modules/debug/node.js +209 -0
  92. data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/History.md +66 -0
  93. data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/LICENSE +20 -0
  94. data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/README.md +35 -0
  95. data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/index.js +125 -0
  96. data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/package.json +47 -0
  97. data/lib/webpack_rails/node_modules/express/node_modules/debug/package.json +73 -0
  98. data/lib/webpack_rails/node_modules/express/node_modules/depd/History.md +75 -0
  99. data/lib/webpack_rails/node_modules/express/node_modules/depd/LICENSE +22 -0
  100. data/lib/webpack_rails/node_modules/express/node_modules/depd/Readme.md +274 -0
  101. data/lib/webpack_rails/node_modules/express/node_modules/depd/index.js +529 -0
  102. data/lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js +33 -0
  103. data/lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/callsite-tostring.js +101 -0
  104. data/lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/index.js +69 -0
  105. data/lib/webpack_rails/node_modules/express/node_modules/depd/package.json +66 -0
  106. data/lib/webpack_rails/node_modules/express/node_modules/escape-html/LICENSE +22 -0
  107. data/lib/webpack_rails/node_modules/express/node_modules/escape-html/Readme.md +15 -0
  108. data/lib/webpack_rails/node_modules/express/node_modules/escape-html/index.js +29 -0
  109. data/lib/webpack_rails/node_modules/express/node_modules/escape-html/package.json +51 -0
  110. data/lib/webpack_rails/node_modules/express/node_modules/etag/HISTORY.md +71 -0
  111. data/lib/webpack_rails/node_modules/express/node_modules/etag/LICENSE +22 -0
  112. data/lib/webpack_rails/node_modules/express/node_modules/etag/README.md +165 -0
  113. data/lib/webpack_rails/node_modules/express/node_modules/etag/index.js +132 -0
  114. data/lib/webpack_rails/node_modules/express/node_modules/etag/package.json +73 -0
  115. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/HISTORY.md +90 -0
  116. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/LICENSE +22 -0
  117. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/README.md +133 -0
  118. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/index.js +151 -0
  119. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/HISTORY.md +4 -0
  120. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/LICENSE +22 -0
  121. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/README.md +43 -0
  122. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/index.js +69 -0
  123. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/package.json +59 -0
  124. data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/package.json +81 -0
  125. data/lib/webpack_rails/node_modules/express/node_modules/fresh/HISTORY.md +38 -0
  126. data/lib/webpack_rails/node_modules/express/node_modules/fresh/LICENSE +22 -0
  127. data/lib/webpack_rails/node_modules/express/node_modules/fresh/README.md +58 -0
  128. data/lib/webpack_rails/node_modules/express/node_modules/fresh/index.js +57 -0
  129. data/lib/webpack_rails/node_modules/express/node_modules/fresh/package.json +87 -0
  130. data/lib/webpack_rails/node_modules/express/node_modules/merge-descriptors/LICENSE +22 -0
  131. data/lib/webpack_rails/node_modules/express/node_modules/merge-descriptors/README.md +34 -0
  132. data/lib/webpack_rails/node_modules/express/node_modules/merge-descriptors/index.js +57 -0
  133. data/lib/webpack_rails/node_modules/express/node_modules/merge-descriptors/package.json +125 -0
  134. data/lib/webpack_rails/node_modules/express/node_modules/methods/HISTORY.md +24 -0
  135. data/lib/webpack_rails/node_modules/express/node_modules/methods/LICENSE +23 -0
  136. data/lib/webpack_rails/node_modules/express/node_modules/methods/README.md +41 -0
  137. data/lib/webpack_rails/node_modules/express/node_modules/methods/index.js +42 -0
  138. data/lib/webpack_rails/node_modules/express/node_modules/methods/package.json +88 -0
  139. data/lib/webpack_rails/node_modules/express/node_modules/on-finished/HISTORY.md +88 -0
  140. data/lib/webpack_rails/node_modules/express/node_modules/on-finished/LICENSE +23 -0
  141. data/lib/webpack_rails/node_modules/express/node_modules/on-finished/README.md +154 -0
  142. data/lib/webpack_rails/node_modules/express/node_modules/on-finished/index.js +196 -0
  143. data/lib/webpack_rails/node_modules/express/node_modules/on-finished/node_modules/ee-first/LICENSE +22 -0
  144. data/lib/webpack_rails/node_modules/express/node_modules/on-finished/node_modules/ee-first/README.md +80 -0
  145. data/lib/webpack_rails/node_modules/express/node_modules/on-finished/node_modules/ee-first/index.js +95 -0
  146. data/lib/webpack_rails/node_modules/express/node_modules/on-finished/node_modules/ee-first/package.json +64 -0
  147. data/lib/webpack_rails/node_modules/express/node_modules/on-finished/package.json +71 -0
  148. data/lib/webpack_rails/node_modules/express/node_modules/parseurl/HISTORY.md +42 -0
  149. data/lib/webpack_rails/node_modules/express/node_modules/parseurl/LICENSE +24 -0
  150. data/lib/webpack_rails/node_modules/express/node_modules/parseurl/README.md +107 -0
  151. data/lib/webpack_rails/node_modules/express/node_modules/parseurl/index.js +136 -0
  152. data/lib/webpack_rails/node_modules/express/node_modules/parseurl/package.json +80 -0
  153. data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/History.md +36 -0
  154. data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/LICENSE +21 -0
  155. data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/Readme.md +35 -0
  156. data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/index.js +129 -0
  157. data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/package.json +184 -0
  158. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/HISTORY.md +66 -0
  159. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/LICENSE +22 -0
  160. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/README.md +137 -0
  161. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/index.js +345 -0
  162. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/HISTORY.md +4 -0
  163. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/LICENSE +22 -0
  164. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/README.md +53 -0
  165. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/index.js +35 -0
  166. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/package.json +65 -0
  167. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile +18 -0
  168. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE +19 -0
  169. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/README.md +161 -0
  170. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  171. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js +439 -0
  172. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/package.json +60 -0
  173. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/src/ipaddr.coffee +374 -0
  174. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/test/ipaddr.test.coffee +262 -0
  175. data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/package.json +90 -0
  176. data/lib/webpack_rails/node_modules/express/node_modules/qs/CHANGELOG.md +88 -0
  177. data/lib/webpack_rails/node_modules/express/node_modules/qs/CONTRIBUTING.md +1 -0
  178. data/lib/webpack_rails/node_modules/express/node_modules/qs/LICENSE +28 -0
  179. data/lib/webpack_rails/node_modules/express/node_modules/qs/README.md +317 -0
  180. data/lib/webpack_rails/node_modules/express/node_modules/qs/bower.json +22 -0
  181. data/lib/webpack_rails/node_modules/express/node_modules/qs/lib/index.js +15 -0
  182. data/lib/webpack_rails/node_modules/express/node_modules/qs/lib/parse.js +186 -0
  183. data/lib/webpack_rails/node_modules/express/node_modules/qs/lib/stringify.js +121 -0
  184. data/lib/webpack_rails/node_modules/express/node_modules/qs/lib/utils.js +190 -0
  185. data/lib/webpack_rails/node_modules/express/node_modules/qs/package.json +56 -0
  186. data/lib/webpack_rails/node_modules/express/node_modules/qs/test/parse.js +478 -0
  187. data/lib/webpack_rails/node_modules/express/node_modules/qs/test/stringify.js +259 -0
  188. data/lib/webpack_rails/node_modules/express/node_modules/qs/test/utils.js +28 -0
  189. data/lib/webpack_rails/node_modules/express/node_modules/range-parser/HISTORY.md +35 -0
  190. data/lib/webpack_rails/node_modules/express/node_modules/range-parser/LICENSE +22 -0
  191. data/lib/webpack_rails/node_modules/express/node_modules/range-parser/README.md +48 -0
  192. data/lib/webpack_rails/node_modules/express/node_modules/range-parser/index.js +49 -0
  193. data/lib/webpack_rails/node_modules/express/node_modules/range-parser/package.json +76 -0
  194. data/lib/webpack_rails/node_modules/express/node_modules/send/HISTORY.md +295 -0
  195. data/lib/webpack_rails/node_modules/express/node_modules/send/LICENSE +23 -0
  196. data/lib/webpack_rails/node_modules/express/node_modules/send/README.md +195 -0
  197. data/lib/webpack_rails/node_modules/express/node_modules/send/index.js +820 -0
  198. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/destroy/README.md +38 -0
  199. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/destroy/index.js +36 -0
  200. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/destroy/package.json +67 -0
  201. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/HISTORY.md +76 -0
  202. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/LICENSE +22 -0
  203. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/README.md +63 -0
  204. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/index.js +120 -0
  205. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/LICENSE +16 -0
  206. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/README.md +42 -0
  207. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/inherits.js +1 -0
  208. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/inherits_browser.js +23 -0
  209. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/package.json +50 -0
  210. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/test.js +25 -0
  211. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/package.json +85 -0
  212. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/LICENSE +19 -0
  213. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/README.md +90 -0
  214. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/build/build.js +11 -0
  215. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/build/test.js +57 -0
  216. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/cli.js +8 -0
  217. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/mime.js +108 -0
  218. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/package.json +73 -0
  219. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/types.json +1 -0
  220. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/History.md +66 -0
  221. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/LICENSE +20 -0
  222. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/README.md +35 -0
  223. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/index.js +125 -0
  224. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/package.json +47 -0
  225. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/LICENSE +22 -0
  226. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/README.md +114 -0
  227. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/codes.json +64 -0
  228. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/index.js +60 -0
  229. data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/package.json +84 -0
  230. data/lib/webpack_rails/node_modules/express/node_modules/send/package.json +89 -0
  231. data/lib/webpack_rails/node_modules/express/node_modules/serve-static/HISTORY.md +284 -0
  232. data/lib/webpack_rails/node_modules/express/node_modules/serve-static/LICENSE +25 -0
  233. data/lib/webpack_rails/node_modules/express/node_modules/serve-static/README.md +235 -0
  234. data/lib/webpack_rails/node_modules/express/node_modules/serve-static/index.js +187 -0
  235. data/lib/webpack_rails/node_modules/express/node_modules/serve-static/package.json +83 -0
  236. data/lib/webpack_rails/node_modules/express/node_modules/type-is/HISTORY.md +180 -0
  237. data/lib/webpack_rails/node_modules/express/node_modules/type-is/LICENSE +23 -0
  238. data/lib/webpack_rails/node_modules/express/node_modules/type-is/README.md +132 -0
  239. data/lib/webpack_rails/node_modules/express/node_modules/type-is/index.js +262 -0
  240. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/HISTORY.md +22 -0
  241. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/LICENSE +22 -0
  242. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/README.md +81 -0
  243. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/index.js +270 -0
  244. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/package.json +58 -0
  245. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/HISTORY.md +171 -0
  246. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/LICENSE +23 -0
  247. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/README.md +103 -0
  248. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/index.js +188 -0
  249. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/HISTORY.md +274 -0
  250. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/LICENSE +22 -0
  251. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/README.md +82 -0
  252. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/db.json +6474 -0
  253. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/index.js +11 -0
  254. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/package.json +94 -0
  255. data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/package.json +84 -0
  256. data/lib/webpack_rails/node_modules/express/node_modules/type-is/package.json +93 -0
  257. data/lib/webpack_rails/node_modules/express/node_modules/utils-merge/LICENSE +20 -0
  258. data/lib/webpack_rails/node_modules/express/node_modules/utils-merge/README.md +34 -0
  259. data/lib/webpack_rails/node_modules/express/node_modules/utils-merge/index.js +23 -0
  260. data/lib/webpack_rails/node_modules/express/node_modules/utils-merge/package.json +58 -0
  261. data/lib/webpack_rails/node_modules/express/node_modules/vary/HISTORY.md +23 -0
  262. data/lib/webpack_rails/node_modules/express/node_modules/vary/LICENSE +22 -0
  263. data/lib/webpack_rails/node_modules/express/node_modules/vary/README.md +91 -0
  264. data/lib/webpack_rails/node_modules/express/node_modules/vary/index.js +117 -0
  265. data/lib/webpack_rails/node_modules/express/node_modules/vary/package.json +72 -0
  266. data/lib/webpack_rails/node_modules/express/package.json +167 -0
  267. data/lib/webpack_rails/node_modules/is-array/History.md +11 -0
  268. data/lib/webpack_rails/node_modules/is-array/Makefile +11 -0
  269. data/lib/webpack_rails/node_modules/is-array/Readme.md +27 -0
  270. data/lib/webpack_rails/node_modules/is-array/component.json +13 -0
  271. data/lib/webpack_rails/node_modules/is-array/index.js +33 -0
  272. data/lib/webpack_rails/node_modules/is-array/package.json +41 -0
  273. data/lib/webpack_rails/node_modules/is-array/test/test.html +46 -0
  274. data/lib/webpack_rails/node_modules/is-object/LICENSE +19 -0
  275. data/lib/webpack_rails/node_modules/is-object/README.md +55 -0
  276. data/lib/webpack_rails/node_modules/is-object/index.js +5 -0
  277. data/lib/webpack_rails/node_modules/is-object/package.json +91 -0
  278. data/lib/webpack_rails/node_modules/is-object/test/index.js +23 -0
  279. data/lib/webpack_rails/node_modules/is-string/CHANGELOG.md +19 -0
  280. data/lib/webpack_rails/node_modules/is-string/LICENSE +22 -0
  281. data/lib/webpack_rails/node_modules/is-string/Makefile +61 -0
  282. data/lib/webpack_rails/node_modules/is-string/README.md +57 -0
  283. data/lib/webpack_rails/node_modules/is-string/index.js +20 -0
  284. data/lib/webpack_rails/node_modules/is-string/package.json +93 -0
  285. data/lib/webpack_rails/node_modules/is-string/test.js +36 -0
  286. data/lib/webpack_rails/node_modules/js-string-escape/CHANGELOG.md +9 -0
  287. data/lib/webpack_rails/node_modules/js-string-escape/LICENSE +21 -0
  288. data/lib/webpack_rails/node_modules/js-string-escape/README.md +44 -0
  289. data/lib/webpack_rails/node_modules/js-string-escape/index.js +22 -0
  290. data/lib/webpack_rails/node_modules/js-string-escape/package.json +63 -0
  291. data/lib/webpack_rails/node_modules/js-string-escape/test/test.js +43 -0
  292. data/lib/webpack_rails/node_modules/strip-ansi/index.js +6 -0
  293. data/lib/webpack_rails/node_modules/strip-ansi/license +21 -0
  294. data/lib/webpack_rails/node_modules/strip-ansi/node_modules/ansi-regex/index.js +4 -0
  295. data/lib/webpack_rails/node_modules/strip-ansi/node_modules/ansi-regex/license +21 -0
  296. data/lib/webpack_rails/node_modules/strip-ansi/node_modules/ansi-regex/package.json +86 -0
  297. data/lib/webpack_rails/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +31 -0
  298. data/lib/webpack_rails/node_modules/strip-ansi/package.json +85 -0
  299. data/lib/webpack_rails/node_modules/strip-ansi/readme.md +33 -0
  300. data/lib/webpack_rails/node_modules/webpack-hot-middleware/README.md +109 -0
  301. data/lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js +35 -0
  302. data/lib/webpack_rails/node_modules/webpack-hot-middleware/client.js +131 -0
  303. data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/README.md +15 -0
  304. data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/client.js +30 -0
  305. data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/index.html +18 -0
  306. data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/package.json +14 -0
  307. data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/server.js +41 -0
  308. data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/webpack.config.js +22 -0
  309. data/lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js +8 -0
  310. data/lib/webpack_rails/node_modules/webpack-hot-middleware/middleware.js +83 -0
  311. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/History.md +20 -0
  312. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/License.md +19 -0
  313. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/Readme.md +15 -0
  314. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/decode.js +80 -0
  315. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/encode.js +64 -0
  316. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/index.js +4 -0
  317. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/package.json +96 -0
  318. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/test/common-index.js +3 -0
  319. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/test/index.js +210 -0
  320. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/test/tap-index.js +3 -0
  321. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/cli.js +47 -0
  322. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/index.js +6 -0
  323. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/node_modules/ansi-regex/index.js +4 -0
  324. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/node_modules/ansi-regex/license +21 -0
  325. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/node_modules/ansi-regex/package.json +86 -0
  326. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +33 -0
  327. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/package.json +89 -0
  328. data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/readme.md +43 -0
  329. data/lib/webpack_rails/node_modules/webpack-hot-middleware/package.json +58 -0
  330. data/lib/webpack_rails/node_modules/webpack-hot-middleware/process-update.js +105 -0
  331. data/lib/webpack_rails/node_modules/webpack-hot-middleware/test/client-test.js +81 -0
  332. data/lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js +22 -0
  333. data/lib/webpack_rails/node_modules/webpack-hot-middleware/test/middleware-test.js +188 -0
  334. data/lib/webpack_rails/node_modules/webpack-hot-middleware/test/mocha.opts +1 -0
  335. data/lib/webpack_rails/node_modules/xtend/LICENCE +19 -0
  336. data/lib/webpack_rails/node_modules/xtend/Makefile +4 -0
  337. data/lib/webpack_rails/node_modules/xtend/README.md +32 -0
  338. data/lib/webpack_rails/node_modules/xtend/immutable.js +17 -0
  339. data/lib/webpack_rails/node_modules/xtend/mutable.js +15 -0
  340. data/lib/webpack_rails/node_modules/xtend/package.json +88 -0
  341. data/lib/webpack_rails/node_modules/xtend/test.js +63 -0
  342. data/lib/webpack_rails/package.json +22 -0
  343. data/lib/webpack_rails/processor.rb +28 -9
  344. data/lib/webpack_rails/require_directive_processor.rb +51 -0
  345. data/lib/webpack_rails/sprockets_environment.rb +45 -0
  346. data/lib/webpack_rails/task.rb +51 -22
  347. data/lib/webpack_rails/webpack-task-dev-server.js +122 -0
  348. data/lib/webpack_rails/{webpack-task.js → webpack-task-watch.js} +0 -0
  349. data/lib/webpack_rails/webpack.rake +5 -5
  350. data/lib/webpack_rails.rb +1 -3
  351. metadata +346 -5
  352. data/lib/webpack_rails/sprockets_base_webpack.rb +0 -14
  353. data/lib/webpack_rails/sprockets_index_webpack.rb +0 -15
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "cookie-signature",
3
+ "version": "1.0.6",
4
+ "description": "Sign and unsign cookies",
5
+ "keywords": [
6
+ "cookie",
7
+ "sign",
8
+ "unsign"
9
+ ],
10
+ "author": {
11
+ "name": "TJ Holowaychuk",
12
+ "email": "tj@learnboost.com"
13
+ },
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/visionmedia/node-cookie-signature.git"
18
+ },
19
+ "dependencies": {},
20
+ "devDependencies": {
21
+ "mocha": "*",
22
+ "should": "*"
23
+ },
24
+ "scripts": {
25
+ "test": "mocha --require should --reporter spec"
26
+ },
27
+ "main": "index",
28
+ "gitHead": "391b56cf44d88c493491b7e3fc53208cfb976d2a",
29
+ "bugs": {
30
+ "url": "https://github.com/visionmedia/node-cookie-signature/issues"
31
+ },
32
+ "homepage": "https://github.com/visionmedia/node-cookie-signature",
33
+ "_id": "cookie-signature@1.0.6",
34
+ "_shasum": "e303a882b342cc3ee8ca513a79999734dab3ae2c",
35
+ "_from": "cookie-signature@1.0.6",
36
+ "_npmVersion": "2.3.0",
37
+ "_nodeVersion": "0.10.36",
38
+ "_npmUser": {
39
+ "name": "natevw",
40
+ "email": "natevw@yahoo.com"
41
+ },
42
+ "maintainers": [
43
+ {
44
+ "name": "tjholowaychuk",
45
+ "email": "tj@vision-media.ca"
46
+ },
47
+ {
48
+ "name": "natevw",
49
+ "email": "natevw@yahoo.com"
50
+ }
51
+ ],
52
+ "dist": {
53
+ "shasum": "e303a882b342cc3ee8ca513a79999734dab3ae2c",
54
+ "tarball": "http://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz"
55
+ },
56
+ "directories": {},
57
+ "_resolved": "http://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
58
+ "readme": "ERROR: No README data found!"
59
+ }
@@ -0,0 +1,195 @@
1
+
2
+ 2.2.0 / 2015-05-09
3
+ ==================
4
+
5
+ * package: update "ms" to v0.7.1 (#202, @dougwilson)
6
+ * README: add logging to file example (#193, @DanielOchoa)
7
+ * README: fixed a typo (#191, @amir-s)
8
+ * browser: expose `storage` (#190, @stephenmathieson)
9
+ * Makefile: add a `distclean` target (#189, @stephenmathieson)
10
+
11
+ 2.1.3 / 2015-03-13
12
+ ==================
13
+
14
+ * Updated stdout/stderr example (#186)
15
+ * Updated example/stdout.js to match debug current behaviour
16
+ * Renamed example/stderr.js to stdout.js
17
+ * Update Readme.md (#184)
18
+ * replace high intensity foreground color for bold (#182, #183)
19
+
20
+ 2.1.2 / 2015-03-01
21
+ ==================
22
+
23
+ * dist: recompile
24
+ * update "ms" to v0.7.0
25
+ * package: update "browserify" to v9.0.3
26
+ * component: fix "ms.js" repo location
27
+ * changed bower package name
28
+ * updated documentation about using debug in a browser
29
+ * fix: security error on safari (#167, #168, @yields)
30
+
31
+ 2.1.1 / 2014-12-29
32
+ ==================
33
+
34
+ * browser: use `typeof` to check for `console` existence
35
+ * browser: check for `console.log` truthiness (fix IE 8/9)
36
+ * browser: add support for Chrome apps
37
+ * Readme: added Windows usage remarks
38
+ * Add `bower.json` to properly support bower install
39
+
40
+ 2.1.0 / 2014-10-15
41
+ ==================
42
+
43
+ * node: implement `DEBUG_FD` env variable support
44
+ * package: update "browserify" to v6.1.0
45
+ * package: add "license" field to package.json (#135, @panuhorsmalahti)
46
+
47
+ 2.0.0 / 2014-09-01
48
+ ==================
49
+
50
+ * package: update "browserify" to v5.11.0
51
+ * node: use stderr rather than stdout for logging (#29, @stephenmathieson)
52
+
53
+ 1.0.4 / 2014-07-15
54
+ ==================
55
+
56
+ * dist: recompile
57
+ * example: remove `console.info()` log usage
58
+ * example: add "Content-Type" UTF-8 header to browser example
59
+ * browser: place %c marker after the space character
60
+ * browser: reset the "content" color via `color: inherit`
61
+ * browser: add colors support for Firefox >= v31
62
+ * debug: prefer an instance `log()` function over the global one (#119)
63
+ * Readme: update documentation about styled console logs for FF v31 (#116, @wryk)
64
+
65
+ 1.0.3 / 2014-07-09
66
+ ==================
67
+
68
+ * Add support for multiple wildcards in namespaces (#122, @seegno)
69
+ * browser: fix lint
70
+
71
+ 1.0.2 / 2014-06-10
72
+ ==================
73
+
74
+ * browser: update color palette (#113, @gscottolson)
75
+ * common: make console logging function configurable (#108, @timoxley)
76
+ * node: fix %o colors on old node <= 0.8.x
77
+ * Makefile: find node path using shell/which (#109, @timoxley)
78
+
79
+ 1.0.1 / 2014-06-06
80
+ ==================
81
+
82
+ * browser: use `removeItem()` to clear localStorage
83
+ * browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
84
+ * package: add "contributors" section
85
+ * node: fix comment typo
86
+ * README: list authors
87
+
88
+ 1.0.0 / 2014-06-04
89
+ ==================
90
+
91
+ * make ms diff be global, not be scope
92
+ * debug: ignore empty strings in enable()
93
+ * node: make DEBUG_COLORS able to disable coloring
94
+ * *: export the `colors` array
95
+ * npmignore: don't publish the `dist` dir
96
+ * Makefile: refactor to use browserify
97
+ * package: add "browserify" as a dev dependency
98
+ * Readme: add Web Inspector Colors section
99
+ * node: reset terminal color for the debug content
100
+ * node: map "%o" to `util.inspect()`
101
+ * browser: map "%j" to `JSON.stringify()`
102
+ * debug: add custom "formatters"
103
+ * debug: use "ms" module for humanizing the diff
104
+ * Readme: add "bash" syntax highlighting
105
+ * browser: add Firebug color support
106
+ * browser: add colors for WebKit browsers
107
+ * node: apply log to `console`
108
+ * rewrite: abstract common logic for Node & browsers
109
+ * add .jshintrc file
110
+
111
+ 0.8.1 / 2014-04-14
112
+ ==================
113
+
114
+ * package: re-add the "component" section
115
+
116
+ 0.8.0 / 2014-03-30
117
+ ==================
118
+
119
+ * add `enable()` method for nodejs. Closes #27
120
+ * change from stderr to stdout
121
+ * remove unnecessary index.js file
122
+
123
+ 0.7.4 / 2013-11-13
124
+ ==================
125
+
126
+ * remove "browserify" key from package.json (fixes something in browserify)
127
+
128
+ 0.7.3 / 2013-10-30
129
+ ==================
130
+
131
+ * fix: catch localStorage security error when cookies are blocked (Chrome)
132
+ * add debug(err) support. Closes #46
133
+ * add .browser prop to package.json. Closes #42
134
+
135
+ 0.7.2 / 2013-02-06
136
+ ==================
137
+
138
+ * fix package.json
139
+ * fix: Mobile Safari (private mode) is broken with debug
140
+ * fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
141
+
142
+ 0.7.1 / 2013-02-05
143
+ ==================
144
+
145
+ * add repository URL to package.json
146
+ * add DEBUG_COLORED to force colored output
147
+ * add browserify support
148
+ * fix component. Closes #24
149
+
150
+ 0.7.0 / 2012-05-04
151
+ ==================
152
+
153
+ * Added .component to package.json
154
+ * Added debug.component.js build
155
+
156
+ 0.6.0 / 2012-03-16
157
+ ==================
158
+
159
+ * Added support for "-" prefix in DEBUG [Vinay Pulim]
160
+ * Added `.enabled` flag to the node version [TooTallNate]
161
+
162
+ 0.5.0 / 2012-02-02
163
+ ==================
164
+
165
+ * Added: humanize diffs. Closes #8
166
+ * Added `debug.disable()` to the CS variant
167
+ * Removed padding. Closes #10
168
+ * Fixed: persist client-side variant again. Closes #9
169
+
170
+ 0.4.0 / 2012-02-01
171
+ ==================
172
+
173
+ * Added browser variant support for older browsers [TooTallNate]
174
+ * Added `debug.enable('project:*')` to browser variant [TooTallNate]
175
+ * Added padding to diff (moved it to the right)
176
+
177
+ 0.3.0 / 2012-01-26
178
+ ==================
179
+
180
+ * Added millisecond diff when isatty, otherwise UTC string
181
+
182
+ 0.2.0 / 2012-01-22
183
+ ==================
184
+
185
+ * Added wildcard support
186
+
187
+ 0.1.0 / 2011-12-02
188
+ ==================
189
+
190
+ * Added: remove colors unless stderr isatty [TooTallNate]
191
+
192
+ 0.0.1 / 2010-01-03
193
+ ==================
194
+
195
+ * Initial release
@@ -0,0 +1,36 @@
1
+
2
+ # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
3
+ THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
4
+ THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
5
+
6
+ # BIN directory
7
+ BIN := $(THIS_DIR)/node_modules/.bin
8
+
9
+ # applications
10
+ NODE ?= $(shell which node)
11
+ NPM ?= $(NODE) $(shell which npm)
12
+ BROWSERIFY ?= $(NODE) $(BIN)/browserify
13
+
14
+ all: dist/debug.js
15
+
16
+ install: node_modules
17
+
18
+ clean:
19
+ @rm -rf dist
20
+
21
+ dist:
22
+ @mkdir -p $@
23
+
24
+ dist/debug.js: node_modules browser.js debug.js dist
25
+ @$(BROWSERIFY) \
26
+ --standalone debug \
27
+ . > $@
28
+
29
+ distclean: clean
30
+ @rm -rf node_modules
31
+
32
+ node_modules: package.json
33
+ @NODE_ENV= $(NPM) install
34
+ @touch node_modules
35
+
36
+ .PHONY: all install clean distclean
@@ -0,0 +1,188 @@
1
+ # debug
2
+
3
+ tiny node.js debugging utility modelled after node core's debugging technique.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ $ npm install debug
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.
14
+
15
+ Example _app.js_:
16
+
17
+ ```js
18
+ var debug = require('debug')('http')
19
+ , http = require('http')
20
+ , name = 'My App';
21
+
22
+ // fake app
23
+
24
+ debug('booting %s', name);
25
+
26
+ http.createServer(function(req, res){
27
+ debug(req.method + ' ' + req.url);
28
+ res.end('hello\n');
29
+ }).listen(3000, function(){
30
+ debug('listening');
31
+ });
32
+
33
+ // fake worker of some kind
34
+
35
+ require('./worker');
36
+ ```
37
+
38
+ Example _worker.js_:
39
+
40
+ ```js
41
+ var debug = require('debug')('worker');
42
+
43
+ setInterval(function(){
44
+ debug('doing some work');
45
+ }, 1000);
46
+ ```
47
+
48
+ The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:
49
+
50
+ ![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)
51
+
52
+ ![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)
53
+
54
+ #### Windows note
55
+
56
+ On Windows the environment variable is set using the `set` command.
57
+
58
+ ```cmd
59
+ set DEBUG=*,-not_this
60
+ ```
61
+
62
+ Then, run the program to be debugged as usual.
63
+
64
+ ## Millisecond diff
65
+
66
+ When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls.
67
+
68
+ ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)
69
+
70
+ When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:
71
+
72
+ ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)
73
+
74
+ ## Conventions
75
+
76
+ If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser".
77
+
78
+ ## Wildcards
79
+
80
+ The `*` character may be used as a wildcard. Suppose for example your library has debuggers named "connect:bodyParser", "connect:compress", "connect:session", instead of listing all three with `DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.
81
+
82
+ You can also exclude specific debuggers by prefixing them with a "-" character. For example, `DEBUG=*,-connect:*` would include all debuggers except those starting with "connect:".
83
+
84
+ ## Browser support
85
+
86
+ Debug works in the browser as well, currently persisted by `localStorage`. Consider the situation shown below where you have `worker:a` and `worker:b`, and wish to debug both. Somewhere in the code on your page, include:
87
+
88
+ ```js
89
+ window.myDebug = require("debug");
90
+ ```
91
+
92
+ ("debug" is a global object in the browser so we give this object a different name.) When your page is open in the browser, type the following in the console:
93
+
94
+ ```js
95
+ myDebug.enable("worker:*")
96
+ ```
97
+
98
+ Refresh the page. Debug output will continue to be sent to the console until it is disabled by typing `myDebug.disable()` in the console.
99
+
100
+ ```js
101
+ a = debug('worker:a');
102
+ b = debug('worker:b');
103
+
104
+ setInterval(function(){
105
+ a('doing some work');
106
+ }, 1000);
107
+
108
+ setInterval(function(){
109
+ b('doing some work');
110
+ }, 1200);
111
+ ```
112
+
113
+ #### Web Inspector Colors
114
+
115
+ Colors are also enabled on "Web Inspectors" that understand the `%c` formatting
116
+ option. These are WebKit web inspectors, Firefox ([since version
117
+ 31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))
118
+ and the Firebug plugin for Firefox (any version).
119
+
120
+ Colored output looks something like:
121
+
122
+ ![](https://cloud.githubusercontent.com/assets/71256/3139768/b98c5fd8-e8ef-11e3-862a-f7253b6f47c6.png)
123
+
124
+ ### stderr vs stdout
125
+
126
+ You can set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:
127
+
128
+ Example _stdout.js_:
129
+
130
+ ```js
131
+ var debug = require('debug');
132
+ var error = debug('app:error');
133
+
134
+ // by default stderr is used
135
+ error('goes to stderr!');
136
+
137
+ var log = debug('app:log');
138
+ // set this namespace to log via console.log
139
+ log.log = console.log.bind(console); // don't forget to bind to console!
140
+ log('goes to stdout');
141
+ error('still goes to stderr!');
142
+
143
+ // set all output to go via console.info
144
+ // overrides all per-namespace log settings
145
+ debug.log = console.info.bind(console);
146
+ error('now goes to stdout via console.info');
147
+ log('still goes to stdout, but via console.info now');
148
+ ```
149
+
150
+ ### Save debug output to a file
151
+
152
+ You can save all debug statements to a file by piping them.
153
+
154
+ Example:
155
+
156
+ ```bash
157
+ $ DEBUG_FD=3 node your-app.js 3> whatever.log
158
+ ```
159
+
160
+ ## Authors
161
+
162
+ - TJ Holowaychuk
163
+ - Nathan Rajlich
164
+
165
+ ## License
166
+
167
+ (The MIT License)
168
+
169
+ Copyright (c) 2014 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
170
+
171
+ Permission is hereby granted, free of charge, to any person obtaining
172
+ a copy of this software and associated documentation files (the
173
+ 'Software'), to deal in the Software without restriction, including
174
+ without limitation the rights to use, copy, modify, merge, publish,
175
+ distribute, sublicense, and/or sell copies of the Software, and to
176
+ permit persons to whom the Software is furnished to do so, subject to
177
+ the following conditions:
178
+
179
+ The above copyright notice and this permission notice shall be
180
+ included in all copies or substantial portions of the Software.
181
+
182
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
183
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
184
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
185
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
186
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
187
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
188
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "visionmedia-debug",
3
+ "main": "dist/debug.js",
4
+ "version": "2.2.0",
5
+ "homepage": "https://github.com/visionmedia/debug",
6
+ "authors": [
7
+ "TJ Holowaychuk <tj@vision-media.ca>"
8
+ ],
9
+ "description": "visionmedia-debug",
10
+ "moduleType": [
11
+ "amd",
12
+ "es6",
13
+ "globals",
14
+ "node"
15
+ ],
16
+ "keywords": [
17
+ "visionmedia",
18
+ "debug"
19
+ ],
20
+ "license": "MIT",
21
+ "ignore": [
22
+ "**/.*",
23
+ "node_modules",
24
+ "bower_components",
25
+ "test",
26
+ "tests"
27
+ ]
28
+ }
@@ -0,0 +1,168 @@
1
+
2
+ /**
3
+ * This is the web browser implementation of `debug()`.
4
+ *
5
+ * Expose `debug()` as the module.
6
+ */
7
+
8
+ exports = module.exports = require('./debug');
9
+ exports.log = log;
10
+ exports.formatArgs = formatArgs;
11
+ exports.save = save;
12
+ exports.load = load;
13
+ exports.useColors = useColors;
14
+ exports.storage = 'undefined' != typeof chrome
15
+ && 'undefined' != typeof chrome.storage
16
+ ? chrome.storage.local
17
+ : localstorage();
18
+
19
+ /**
20
+ * Colors.
21
+ */
22
+
23
+ exports.colors = [
24
+ 'lightseagreen',
25
+ 'forestgreen',
26
+ 'goldenrod',
27
+ 'dodgerblue',
28
+ 'darkorchid',
29
+ 'crimson'
30
+ ];
31
+
32
+ /**
33
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
34
+ * and the Firebug extension (any Firefox version) are known
35
+ * to support "%c" CSS customizations.
36
+ *
37
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
38
+ */
39
+
40
+ function useColors() {
41
+ // is webkit? http://stackoverflow.com/a/16459606/376773
42
+ return ('WebkitAppearance' in document.documentElement.style) ||
43
+ // is firebug? http://stackoverflow.com/a/398120/376773
44
+ (window.console && (console.firebug || (console.exception && console.table))) ||
45
+ // is firefox >= v31?
46
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
47
+ (navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31);
48
+ }
49
+
50
+ /**
51
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
52
+ */
53
+
54
+ exports.formatters.j = function(v) {
55
+ return JSON.stringify(v);
56
+ };
57
+
58
+
59
+ /**
60
+ * Colorize log arguments if enabled.
61
+ *
62
+ * @api public
63
+ */
64
+
65
+ function formatArgs() {
66
+ var args = arguments;
67
+ var useColors = this.useColors;
68
+
69
+ args[0] = (useColors ? '%c' : '')
70
+ + this.namespace
71
+ + (useColors ? ' %c' : ' ')
72
+ + args[0]
73
+ + (useColors ? '%c ' : ' ')
74
+ + '+' + exports.humanize(this.diff);
75
+
76
+ if (!useColors) return args;
77
+
78
+ var c = 'color: ' + this.color;
79
+ args = [args[0], c, 'color: inherit'].concat(Array.prototype.slice.call(args, 1));
80
+
81
+ // the final "%c" is somewhat tricky, because there could be other
82
+ // arguments passed either before or after the %c, so we need to
83
+ // figure out the correct index to insert the CSS into
84
+ var index = 0;
85
+ var lastC = 0;
86
+ args[0].replace(/%[a-z%]/g, function(match) {
87
+ if ('%%' === match) return;
88
+ index++;
89
+ if ('%c' === match) {
90
+ // we only are interested in the *last* %c
91
+ // (the user may have provided their own)
92
+ lastC = index;
93
+ }
94
+ });
95
+
96
+ args.splice(lastC, 0, c);
97
+ return args;
98
+ }
99
+
100
+ /**
101
+ * Invokes `console.log()` when available.
102
+ * No-op when `console.log` is not a "function".
103
+ *
104
+ * @api public
105
+ */
106
+
107
+ function log() {
108
+ // this hackery is required for IE8/9, where
109
+ // the `console.log` function doesn't have 'apply'
110
+ return 'object' === typeof console
111
+ && console.log
112
+ && Function.prototype.apply.call(console.log, console, arguments);
113
+ }
114
+
115
+ /**
116
+ * Save `namespaces`.
117
+ *
118
+ * @param {String} namespaces
119
+ * @api private
120
+ */
121
+
122
+ function save(namespaces) {
123
+ try {
124
+ if (null == namespaces) {
125
+ exports.storage.removeItem('debug');
126
+ } else {
127
+ exports.storage.debug = namespaces;
128
+ }
129
+ } catch(e) {}
130
+ }
131
+
132
+ /**
133
+ * Load `namespaces`.
134
+ *
135
+ * @return {String} returns the previously persisted debug modes
136
+ * @api private
137
+ */
138
+
139
+ function load() {
140
+ var r;
141
+ try {
142
+ r = exports.storage.debug;
143
+ } catch(e) {}
144
+ return r;
145
+ }
146
+
147
+ /**
148
+ * Enable namespaces listed in `localStorage.debug` initially.
149
+ */
150
+
151
+ exports.enable(load());
152
+
153
+ /**
154
+ * Localstorage attempts to return the localstorage.
155
+ *
156
+ * This is necessary because safari throws
157
+ * when a user disables cookies/localstorage
158
+ * and you attempt to access it.
159
+ *
160
+ * @return {LocalStorage}
161
+ * @api private
162
+ */
163
+
164
+ function localstorage(){
165
+ try {
166
+ return window.localStorage;
167
+ } catch (e) {}
168
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "debug",
3
+ "repo": "visionmedia/debug",
4
+ "description": "small debugging utility",
5
+ "version": "2.2.0",
6
+ "keywords": [
7
+ "debug",
8
+ "log",
9
+ "debugger"
10
+ ],
11
+ "main": "browser.js",
12
+ "scripts": [
13
+ "browser.js",
14
+ "debug.js"
15
+ ],
16
+ "dependencies": {
17
+ "rauchg/ms.js": "0.7.1"
18
+ }
19
+ }