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,35 @@
1
+ # Path-to-RegExp
2
+
3
+ Turn an Express-style path string such as `/user/:name` into a regular expression.
4
+
5
+ **Note:** This is a legacy branch. You should upgrade to `1.x`.
6
+
7
+ ## Usage
8
+
9
+ ```javascript
10
+ var pathToRegexp = require('path-to-regexp');
11
+ ```
12
+
13
+ ### pathToRegexp(path, keys, options)
14
+
15
+ - **path** A string in the express format, an array of such strings, or a regular expression
16
+ - **keys** An array to be populated with the keys present in the url. Once the function completes, this will be an array of strings.
17
+ - **options**
18
+ - **options.sensitive** Defaults to false, set this to true to make routes case sensitive
19
+ - **options.strict** Defaults to false, set this to true to make the trailing slash matter.
20
+ - **options.end** Defaults to true, set this to false to only match the prefix of the URL.
21
+
22
+ ```javascript
23
+ var keys = [];
24
+ var exp = pathToRegexp('/foo/:bar', keys);
25
+ //keys = ['bar']
26
+ //exp = /^\/foo\/(?:([^\/]+?))\/?$/i
27
+ ```
28
+
29
+ ## Live Demo
30
+
31
+ You can see a live demo of this library in use at [express-route-tester](http://forbeslindesay.github.com/express-route-tester/).
32
+
33
+ ## License
34
+
35
+ MIT
@@ -0,0 +1,129 @@
1
+ /**
2
+ * Expose `pathtoRegexp`.
3
+ */
4
+
5
+ module.exports = pathtoRegexp;
6
+
7
+ /**
8
+ * Match matching groups in a regular expression.
9
+ */
10
+ var MATCHING_GROUP_REGEXP = /\((?!\?)/g;
11
+
12
+ /**
13
+ * Normalize the given path string,
14
+ * returning a regular expression.
15
+ *
16
+ * An empty array should be passed,
17
+ * which will contain the placeholder
18
+ * key names. For example "/user/:id" will
19
+ * then contain ["id"].
20
+ *
21
+ * @param {String|RegExp|Array} path
22
+ * @param {Array} keys
23
+ * @param {Object} options
24
+ * @return {RegExp}
25
+ * @api private
26
+ */
27
+
28
+ function pathtoRegexp(path, keys, options) {
29
+ options = options || {};
30
+ keys = keys || [];
31
+ var strict = options.strict;
32
+ var end = options.end !== false;
33
+ var flags = options.sensitive ? '' : 'i';
34
+ var extraOffset = 0;
35
+ var keysOffset = keys.length;
36
+ var i = 0;
37
+ var name = 0;
38
+ var m;
39
+
40
+ if (path instanceof RegExp) {
41
+ while (m = MATCHING_GROUP_REGEXP.exec(path.source)) {
42
+ keys.push({
43
+ name: name++,
44
+ optional: false,
45
+ offset: m.index
46
+ });
47
+ }
48
+
49
+ return path;
50
+ }
51
+
52
+ if (Array.isArray(path)) {
53
+ // Map array parts into regexps and return their source. We also pass
54
+ // the same keys and options instance into every generation to get
55
+ // consistent matching groups before we join the sources together.
56
+ path = path.map(function (value) {
57
+ return pathtoRegexp(value, keys, options).source;
58
+ });
59
+
60
+ return new RegExp('(?:' + path.join('|') + ')', flags);
61
+ }
62
+
63
+ path = ('^' + path + (strict ? '' : path[path.length - 1] === '/' ? '?' : '/?'))
64
+ .replace(/\/\(/g, '/(?:')
65
+ .replace(/([\/\.])/g, '\\$1')
66
+ .replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function (match, slash, format, key, capture, star, optional, offset) {
67
+ slash = slash || '';
68
+ format = format || '';
69
+ capture = capture || '([^\\/' + format + ']+?)';
70
+ optional = optional || '';
71
+
72
+ keys.push({
73
+ name: key,
74
+ optional: !!optional,
75
+ offset: offset + extraOffset
76
+ });
77
+
78
+ var result = ''
79
+ + (optional ? '' : slash)
80
+ + '(?:'
81
+ + format + (optional ? slash : '') + capture
82
+ + (star ? '((?:[\\/' + format + '].+?)?)' : '')
83
+ + ')'
84
+ + optional;
85
+
86
+ extraOffset += result.length - match.length;
87
+
88
+ return result;
89
+ })
90
+ .replace(/\*/g, function (star, index) {
91
+ var len = keys.length
92
+
93
+ while (len-- > keysOffset && keys[len].offset > index) {
94
+ keys[len].offset += 3; // Replacement length minus asterisk length.
95
+ }
96
+
97
+ return '(.*)';
98
+ });
99
+
100
+ // This is a workaround for handling unnamed matching groups.
101
+ while (m = MATCHING_GROUP_REGEXP.exec(path)) {
102
+ var escapeCount = 0;
103
+ var index = m.index;
104
+
105
+ while (path.charAt(--index) === '\\') {
106
+ escapeCount++;
107
+ }
108
+
109
+ // It's possible to escape the bracket.
110
+ if (escapeCount % 2 === 1) {
111
+ continue;
112
+ }
113
+
114
+ if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) {
115
+ keys.splice(keysOffset + i, 0, {
116
+ name: name++, // Unnamed matching groups must be consistently linear.
117
+ optional: false,
118
+ offset: m.index
119
+ });
120
+ }
121
+
122
+ i++;
123
+ }
124
+
125
+ // If the path is non-ending, match until the end or a slash.
126
+ path += (end ? '$' : (path[path.length - 1] === '/' ? '' : '(?=\\/|$)'));
127
+
128
+ return new RegExp(path, flags);
129
+ };
@@ -0,0 +1,184 @@
1
+ {
2
+ "name": "path-to-regexp",
3
+ "description": "Express style path to RegExp utility",
4
+ "version": "0.1.7",
5
+ "files": [
6
+ "index.js",
7
+ "LICENSE"
8
+ ],
9
+ "scripts": {
10
+ "test": "istanbul cover _mocha -- -R spec"
11
+ },
12
+ "keywords": [
13
+ "express",
14
+ "regexp"
15
+ ],
16
+ "component": {
17
+ "scripts": {
18
+ "path-to-regexp": "index.js"
19
+ }
20
+ },
21
+ "license": "MIT",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/component/path-to-regexp.git"
25
+ },
26
+ "devDependencies": {
27
+ "mocha": "^1.17.1",
28
+ "istanbul": "^0.2.6"
29
+ },
30
+ "gitHead": "039118d6c3c186d3f176c73935ca887a32a33d93",
31
+ "bugs": {
32
+ "url": "https://github.com/component/path-to-regexp/issues"
33
+ },
34
+ "homepage": "https://github.com/component/path-to-regexp#readme",
35
+ "_id": "path-to-regexp@0.1.7",
36
+ "_shasum": "df604178005f522f15eb4490e7247a1bfaa67f8c",
37
+ "_from": "path-to-regexp@0.1.7",
38
+ "_npmVersion": "2.13.2",
39
+ "_nodeVersion": "2.3.3",
40
+ "_npmUser": {
41
+ "name": "blakeembrey",
42
+ "email": "hello@blakeembrey.com"
43
+ },
44
+ "maintainers": [
45
+ {
46
+ "name": "tjholowaychuk",
47
+ "email": "tj@vision-media.ca"
48
+ },
49
+ {
50
+ "name": "hughsk",
51
+ "email": "hughskennedy@gmail.com"
52
+ },
53
+ {
54
+ "name": "timaschew",
55
+ "email": "timaschew@gmail.com"
56
+ },
57
+ {
58
+ "name": "dougwilson",
59
+ "email": "doug@somethingdoug.com"
60
+ },
61
+ {
62
+ "name": "jongleberry",
63
+ "email": "jonathanrichardong@gmail.com"
64
+ },
65
+ {
66
+ "name": "dominicbarnes",
67
+ "email": "dominic@dbarnes.info"
68
+ },
69
+ {
70
+ "name": "tootallnate",
71
+ "email": "nathan@tootallnate.net"
72
+ },
73
+ {
74
+ "name": "rauchg",
75
+ "email": "rauchg@gmail.com"
76
+ },
77
+ {
78
+ "name": "retrofox",
79
+ "email": "rdsuarez@gmail.com"
80
+ },
81
+ {
82
+ "name": "coreh",
83
+ "email": "thecoreh@gmail.com"
84
+ },
85
+ {
86
+ "name": "forbeslindesay",
87
+ "email": "forbes@lindesay.co.uk"
88
+ },
89
+ {
90
+ "name": "kelonye",
91
+ "email": "kelonyemitchel@gmail.com"
92
+ },
93
+ {
94
+ "name": "mattmueller",
95
+ "email": "mattmuelle@gmail.com"
96
+ },
97
+ {
98
+ "name": "yields",
99
+ "email": "yields@icloud.com"
100
+ },
101
+ {
102
+ "name": "anthonyshort",
103
+ "email": "antshort@gmail.com"
104
+ },
105
+ {
106
+ "name": "ianstormtaylor",
107
+ "email": "ian@ianstormtaylor.com"
108
+ },
109
+ {
110
+ "name": "cristiandouce",
111
+ "email": "cristian@gravityonmars.com"
112
+ },
113
+ {
114
+ "name": "swatinem",
115
+ "email": "arpad.borsos@googlemail.com"
116
+ },
117
+ {
118
+ "name": "stagas",
119
+ "email": "gstagas@gmail.com"
120
+ },
121
+ {
122
+ "name": "amasad",
123
+ "email": "amjad.masad@gmail.com"
124
+ },
125
+ {
126
+ "name": "juliangruber",
127
+ "email": "julian@juliangruber.com"
128
+ },
129
+ {
130
+ "name": "calvinfo",
131
+ "email": "calvin@calv.info"
132
+ },
133
+ {
134
+ "name": "blakeembrey",
135
+ "email": "hello@blakeembrey.com"
136
+ },
137
+ {
138
+ "name": "timoxley",
139
+ "email": "secoif@gmail.com"
140
+ },
141
+ {
142
+ "name": "jonathanong",
143
+ "email": "jonathanrichardong@gmail.com"
144
+ },
145
+ {
146
+ "name": "queckezz",
147
+ "email": "fabian.eichenberger@gmail.com"
148
+ },
149
+ {
150
+ "name": "nami-doc",
151
+ "email": "vendethiel@hotmail.fr"
152
+ },
153
+ {
154
+ "name": "clintwood",
155
+ "email": "clint@anotherway.co.za"
156
+ },
157
+ {
158
+ "name": "thehydroimpulse",
159
+ "email": "dnfagnan@gmail.com"
160
+ },
161
+ {
162
+ "name": "stephenmathieson",
163
+ "email": "me@stephenmathieson.com"
164
+ },
165
+ {
166
+ "name": "trevorgerhardt",
167
+ "email": "trevorgerhardt@gmail.com"
168
+ },
169
+ {
170
+ "name": "dfcreative",
171
+ "email": "df.creative@gmail.com"
172
+ },
173
+ {
174
+ "name": "defunctzombie",
175
+ "email": "shtylman@gmail.com"
176
+ }
177
+ ],
178
+ "dist": {
179
+ "shasum": "df604178005f522f15eb4490e7247a1bfaa67f8c",
180
+ "tarball": "http://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"
181
+ },
182
+ "directories": {},
183
+ "_resolved": "http://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"
184
+ }
@@ -0,0 +1,66 @@
1
+ 1.0.8 / 2015-05-10
2
+ ==================
3
+
4
+ * deps: ipaddr.js@1.0.1
5
+
6
+ 1.0.7 / 2015-03-16
7
+ ==================
8
+
9
+ * deps: ipaddr.js@0.1.9
10
+ - Fix OOM on certain inputs to `isValid`
11
+
12
+ 1.0.6 / 2015-02-01
13
+ ==================
14
+
15
+ * deps: ipaddr.js@0.1.8
16
+
17
+ 1.0.5 / 2015-01-08
18
+ ==================
19
+
20
+ * deps: ipaddr.js@0.1.6
21
+
22
+ 1.0.4 / 2014-11-23
23
+ ==================
24
+
25
+ * deps: ipaddr.js@0.1.5
26
+ - Fix edge cases with `isValid`
27
+
28
+ 1.0.3 / 2014-09-21
29
+ ==================
30
+
31
+ * Use `forwarded` npm module
32
+
33
+ 1.0.2 / 2014-09-18
34
+ ==================
35
+
36
+ * Fix a global leak when multiple subnets are trusted
37
+ * Support Node.js 0.6
38
+ * deps: ipaddr.js@0.1.3
39
+
40
+ 1.0.1 / 2014-06-03
41
+ ==================
42
+
43
+ * Fix links in npm package
44
+
45
+ 1.0.0 / 2014-05-08
46
+ ==================
47
+
48
+ * Add `trust` argument to determine proxy trust on
49
+ * Accepts custom function
50
+ * Accepts IPv4/IPv6 address(es)
51
+ * Accepts subnets
52
+ * Accepts pre-defined names
53
+ * Add optional `trust` argument to `proxyaddr.all` to
54
+ stop at first untrusted
55
+ * Add `proxyaddr.compile` to pre-compile `trust` function
56
+ to make subsequent calls faster
57
+
58
+ 0.0.1 / 2014-05-04
59
+ ==================
60
+
61
+ * Fix bad npm publish
62
+
63
+ 0.0.0 / 2014-05-04
64
+ ==================
65
+
66
+ * Initial release
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2014 Douglas Christopher Wilson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,137 @@
1
+ # proxy-addr
2
+
3
+ [![NPM Version][npm-image]][npm-url]
4
+ [![NPM Downloads][downloads-image]][downloads-url]
5
+ [![Node.js Version][node-version-image]][node-version-url]
6
+ [![Build Status][travis-image]][travis-url]
7
+ [![Test Coverage][coveralls-image]][coveralls-url]
8
+
9
+ Determine address of proxied request
10
+
11
+ ## Install
12
+
13
+ ```sh
14
+ $ npm install proxy-addr
15
+ ```
16
+
17
+ ## API
18
+
19
+ ```js
20
+ var proxyaddr = require('proxy-addr')
21
+ ```
22
+
23
+ ### proxyaddr(req, trust)
24
+
25
+ Return the address of the request, using the given `trust` parameter.
26
+
27
+ The `trust` argument is a function that returns `true` if you trust
28
+ the address, `false` if you don't. The closest untrusted address is
29
+ returned.
30
+
31
+ ```js
32
+ proxyaddr(req, function(addr){ return addr === '127.0.0.1' })
33
+ proxyaddr(req, function(addr, i){ return i < 1 })
34
+ ```
35
+
36
+ The `trust` arugment may also be a single IP address string or an
37
+ array of trusted addresses, as plain IP addresses, CIDR-formatted
38
+ strings, or IP/netmask strings.
39
+
40
+ ```js
41
+ proxyaddr(req, '127.0.0.1')
42
+ proxyaddr(req, ['127.0.0.0/8', '10.0.0.0/8'])
43
+ proxyaddr(req, ['127.0.0.0/255.0.0.0', '192.168.0.0/255.255.0.0'])
44
+ ```
45
+
46
+ This module also supports IPv6. Your IPv6 addresses will be normalized
47
+ automatically (i.e. `fe80::00ed:1` equals `fe80:0:0:0:0:0:ed:1`).
48
+
49
+ ```js
50
+ proxyaddr(req, '::1')
51
+ proxyaddr(req, ['::1/128', 'fe80::/10'])
52
+ proxyaddr(req, ['fe80::/ffc0::'])
53
+ ```
54
+
55
+ This module will automatically work with IPv4-mapped IPv6 addresses
56
+ as well to support node.js in IPv6-only mode. This means that you do
57
+ not have to specify both `::ffff:a00:1` and `10.0.0.1`.
58
+
59
+ As a convenience, this module also takes certain pre-defined names
60
+ in addition to IP addresses, which expand into IP addresses:
61
+
62
+ ```js
63
+ proxyaddr(req, 'loopback')
64
+ proxyaddr(req, ['loopback', 'fc00:ac:1ab5:fff::1/64'])
65
+ ```
66
+
67
+ * `loopback`: IPv4 and IPv6 loopback addresses (like `::1` and
68
+ `127.0.0.1`).
69
+ * `linklocal`: IPv4 and IPv6 link-local addresses (like
70
+ `fe80::1:1:1:1` and `169.254.0.1`).
71
+ * `uniquelocal`: IPv4 private addresses and IPv6 unique-local
72
+ addresses (like `fc00:ac:1ab5:fff::1` and `192.168.0.1`).
73
+
74
+ When `trust` is specified as a function, it will be called for each
75
+ address to determine if it is a trusted address. The function is
76
+ given two arguments: `addr` and `i`, where `addr` is a string of
77
+ the address to check and `i` is a number that represents the distance
78
+ from the socket address.
79
+
80
+ ### proxyaddr.all(req, [trust])
81
+
82
+ Return all the addresses of the request, optionally stopping at the
83
+ first untrusted. This array is ordered from closest to furthest
84
+ (i.e. `arr[0] === req.connection.remoteAddress`).
85
+
86
+ ```js
87
+ proxyaddr.all(req)
88
+ ```
89
+
90
+ The optional `trust` argument takes the same arguments as `trust`
91
+ does in `proxyaddr(req, trust)`.
92
+
93
+ ```js
94
+ proxyaddr.all(req, 'loopback')
95
+ ```
96
+
97
+ ### proxyaddr.compile(val)
98
+
99
+ Compiles argument `val` into a `trust` function. This function takes
100
+ the same arguments as `trust` does in `proxyaddr(req, trust)` and
101
+ returns a function suitable for `proxyaddr(req, trust)`.
102
+
103
+ ```js
104
+ var trust = proxyaddr.compile('localhost')
105
+ var addr = proxyaddr(req, trust)
106
+ ```
107
+
108
+ This function is meant to be optimized for use against every request.
109
+ It is recommend to compile a trust function up-front for the trusted
110
+ configuration and pass that to `proxyaddr(req, trust)` for each request.
111
+
112
+ ## Testing
113
+
114
+ ```sh
115
+ $ npm test
116
+ ```
117
+
118
+ ## Benchmarks
119
+
120
+ ```sh
121
+ $ npm run-script bench
122
+ ```
123
+
124
+ ## License
125
+
126
+ [MIT](LICENSE)
127
+
128
+ [npm-image]: https://img.shields.io/npm/v/proxy-addr.svg
129
+ [npm-url]: https://npmjs.org/package/proxy-addr
130
+ [node-version-image]: https://img.shields.io/node/v/proxy-addr.svg
131
+ [node-version-url]: http://nodejs.org/download/
132
+ [travis-image]: https://img.shields.io/travis/jshttp/proxy-addr/master.svg
133
+ [travis-url]: https://travis-ci.org/jshttp/proxy-addr
134
+ [coveralls-image]: https://img.shields.io/coveralls/jshttp/proxy-addr/master.svg
135
+ [coveralls-url]: https://coveralls.io/r/jshttp/proxy-addr?branch=master
136
+ [downloads-image]: https://img.shields.io/npm/dm/proxy-addr.svg
137
+ [downloads-url]: https://npmjs.org/package/proxy-addr