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,90 @@
1
+ {
2
+ "name": "proxy-addr",
3
+ "description": "Determine address of proxied request",
4
+ "version": "1.0.8",
5
+ "author": {
6
+ "name": "Douglas Christopher Wilson",
7
+ "email": "doug@somethingdoug.com"
8
+ },
9
+ "license": "MIT",
10
+ "keywords": [
11
+ "ip",
12
+ "proxy",
13
+ "x-forwarded-for"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/jshttp/proxy-addr.git"
18
+ },
19
+ "dependencies": {
20
+ "forwarded": "~0.1.0",
21
+ "ipaddr.js": "1.0.1"
22
+ },
23
+ "devDependencies": {
24
+ "benchmark": "1.0.0",
25
+ "beautify-benchmark": "0.2.4",
26
+ "istanbul": "0.3.9",
27
+ "mocha": "~1.21.5"
28
+ },
29
+ "files": [
30
+ "LICENSE",
31
+ "HISTORY.md",
32
+ "README.md",
33
+ "index.js"
34
+ ],
35
+ "engines": {
36
+ "node": ">= 0.6"
37
+ },
38
+ "scripts": {
39
+ "bench": "node benchmark/index.js",
40
+ "test": "mocha --reporter spec --bail --check-leaks test/",
41
+ "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
42
+ "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
43
+ },
44
+ "gitHead": "b32d9bda51c92f67a5c2c7b4f81971dbef41783c",
45
+ "bugs": {
46
+ "url": "https://github.com/jshttp/proxy-addr/issues"
47
+ },
48
+ "homepage": "https://github.com/jshttp/proxy-addr",
49
+ "_id": "proxy-addr@1.0.8",
50
+ "_shasum": "db54ec878bcc1053d57646609219b3715678bafe",
51
+ "_from": "proxy-addr@>=1.0.8 <1.1.0",
52
+ "_npmVersion": "1.4.28",
53
+ "_npmUser": {
54
+ "name": "dougwilson",
55
+ "email": "doug@somethingdoug.com"
56
+ },
57
+ "maintainers": [
58
+ {
59
+ "name": "dougwilson",
60
+ "email": "doug@somethingdoug.com"
61
+ },
62
+ {
63
+ "name": "jongleberry",
64
+ "email": "jonathanrichardong@gmail.com"
65
+ },
66
+ {
67
+ "name": "tjholowaychuk",
68
+ "email": "tj@vision-media.ca"
69
+ },
70
+ {
71
+ "name": "mscdex",
72
+ "email": "mscdex@mscdex.net"
73
+ },
74
+ {
75
+ "name": "fishrock123",
76
+ "email": "fishrock123@rocketmail.com"
77
+ },
78
+ {
79
+ "name": "defunctzombie",
80
+ "email": "shtylman@gmail.com"
81
+ }
82
+ ],
83
+ "dist": {
84
+ "shasum": "db54ec878bcc1053d57646609219b3715678bafe",
85
+ "tarball": "http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.8.tgz"
86
+ },
87
+ "directories": {},
88
+ "_resolved": "http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.8.tgz",
89
+ "readme": "ERROR: No README data found!"
90
+ }
@@ -0,0 +1,88 @@
1
+
2
+ ## [**3.1.0**](https://github.com/hapijs/qs/issues?milestone=24&state=open)
3
+ - [**#89**](https://github.com/hapijs/qs/issues/89) Add option to disable "Transform dot notation to bracket notation"
4
+
5
+ ## [**3.0.0**](https://github.com/hapijs/qs/issues?milestone=23&state=closed)
6
+ - [**#77**](https://github.com/hapijs/qs/issues/77) Perf boost
7
+ - [**#60**](https://github.com/hapijs/qs/issues/60) Add explicit option to disable array parsing
8
+ - [**#80**](https://github.com/hapijs/qs/issues/80) qs.parse silently drops properties
9
+ - [**#74**](https://github.com/hapijs/qs/issues/74) Bad parse when turning array into object
10
+ - [**#81**](https://github.com/hapijs/qs/issues/81) Add a `filter` option
11
+ - [**#68**](https://github.com/hapijs/qs/issues/68) Fixed issue with recursion and passing strings into objects.
12
+ - [**#66**](https://github.com/hapijs/qs/issues/66) Add mixed array and object dot notation support Closes: #47
13
+ - [**#76**](https://github.com/hapijs/qs/issues/76) RFC 3986
14
+ - [**#85**](https://github.com/hapijs/qs/issues/85) No equal sign
15
+ - [**#84**](https://github.com/hapijs/qs/issues/84) update license attribute
16
+
17
+ ## [**2.4.1**](https://github.com/hapijs/qs/issues?milestone=20&state=closed)
18
+ - [**#73**](https://github.com/hapijs/qs/issues/73) Property 'hasOwnProperty' of object #<Object> is not a function
19
+
20
+ ## [**2.4.0**](https://github.com/hapijs/qs/issues?milestone=19&state=closed)
21
+ - [**#70**](https://github.com/hapijs/qs/issues/70) Add arrayFormat option
22
+
23
+ ## [**2.3.3**](https://github.com/hapijs/qs/issues?milestone=18&state=closed)
24
+ - [**#59**](https://github.com/hapijs/qs/issues/59) make sure array indexes are >= 0, closes #57
25
+ - [**#58**](https://github.com/hapijs/qs/issues/58) make qs usable for browser loader
26
+
27
+ ## [**2.3.2**](https://github.com/hapijs/qs/issues?milestone=17&state=closed)
28
+ - [**#55**](https://github.com/hapijs/qs/issues/55) allow merging a string into an object
29
+
30
+ ## [**2.3.1**](https://github.com/hapijs/qs/issues?milestone=16&state=closed)
31
+ - [**#52**](https://github.com/hapijs/qs/issues/52) Return "undefined" and "false" instead of throwing "TypeError".
32
+
33
+ ## [**2.3.0**](https://github.com/hapijs/qs/issues?milestone=15&state=closed)
34
+ - [**#50**](https://github.com/hapijs/qs/issues/50) add option to omit array indices, closes #46
35
+
36
+ ## [**2.2.5**](https://github.com/hapijs/qs/issues?milestone=14&state=closed)
37
+ - [**#39**](https://github.com/hapijs/qs/issues/39) Is there an alternative to Buffer.isBuffer?
38
+ - [**#49**](https://github.com/hapijs/qs/issues/49) refactor utils.merge, fixes #45
39
+ - [**#41**](https://github.com/hapijs/qs/issues/41) avoid browserifying Buffer, for #39
40
+
41
+ ## [**2.2.4**](https://github.com/hapijs/qs/issues?milestone=13&state=closed)
42
+ - [**#38**](https://github.com/hapijs/qs/issues/38) how to handle object keys beginning with a number
43
+
44
+ ## [**2.2.3**](https://github.com/hapijs/qs/issues?milestone=12&state=closed)
45
+ - [**#37**](https://github.com/hapijs/qs/issues/37) parser discards first empty value in array
46
+ - [**#36**](https://github.com/hapijs/qs/issues/36) Update to lab 4.x
47
+
48
+ ## [**2.2.2**](https://github.com/hapijs/qs/issues?milestone=11&state=closed)
49
+ - [**#33**](https://github.com/hapijs/qs/issues/33) Error when plain object in a value
50
+ - [**#34**](https://github.com/hapijs/qs/issues/34) use Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty
51
+ - [**#24**](https://github.com/hapijs/qs/issues/24) Changelog? Semver?
52
+
53
+ ## [**2.2.1**](https://github.com/hapijs/qs/issues?milestone=10&state=closed)
54
+ - [**#32**](https://github.com/hapijs/qs/issues/32) account for circular references properly, closes #31
55
+ - [**#31**](https://github.com/hapijs/qs/issues/31) qs.parse stackoverflow on circular objects
56
+
57
+ ## [**2.2.0**](https://github.com/hapijs/qs/issues?milestone=9&state=closed)
58
+ - [**#26**](https://github.com/hapijs/qs/issues/26) Don't use Buffer global if it's not present
59
+ - [**#30**](https://github.com/hapijs/qs/issues/30) Bug when merging non-object values into arrays
60
+ - [**#29**](https://github.com/hapijs/qs/issues/29) Don't call Utils.clone at the top of Utils.merge
61
+ - [**#23**](https://github.com/hapijs/qs/issues/23) Ability to not limit parameters?
62
+
63
+ ## [**2.1.0**](https://github.com/hapijs/qs/issues?milestone=8&state=closed)
64
+ - [**#22**](https://github.com/hapijs/qs/issues/22) Enable using a RegExp as delimiter
65
+
66
+ ## [**2.0.0**](https://github.com/hapijs/qs/issues?milestone=7&state=closed)
67
+ - [**#18**](https://github.com/hapijs/qs/issues/18) Why is there arrayLimit?
68
+ - [**#20**](https://github.com/hapijs/qs/issues/20) Configurable parametersLimit
69
+ - [**#21**](https://github.com/hapijs/qs/issues/21) make all limits optional, for #18, for #20
70
+
71
+ ## [**1.2.2**](https://github.com/hapijs/qs/issues?milestone=6&state=closed)
72
+ - [**#19**](https://github.com/hapijs/qs/issues/19) Don't overwrite null values
73
+
74
+ ## [**1.2.1**](https://github.com/hapijs/qs/issues?milestone=5&state=closed)
75
+ - [**#16**](https://github.com/hapijs/qs/issues/16) ignore non-string delimiters
76
+ - [**#15**](https://github.com/hapijs/qs/issues/15) Close code block
77
+
78
+ ## [**1.2.0**](https://github.com/hapijs/qs/issues?milestone=4&state=closed)
79
+ - [**#12**](https://github.com/hapijs/qs/issues/12) Add optional delim argument
80
+ - [**#13**](https://github.com/hapijs/qs/issues/13) fix #11: flattened keys in array are now correctly parsed
81
+
82
+ ## [**1.1.0**](https://github.com/hapijs/qs/issues?milestone=3&state=closed)
83
+ - [**#7**](https://github.com/hapijs/qs/issues/7) Empty values of a POST array disappear after being submitted
84
+ - [**#9**](https://github.com/hapijs/qs/issues/9) Should not omit equals signs (=) when value is null
85
+ - [**#6**](https://github.com/hapijs/qs/issues/6) Minor grammar fix in README
86
+
87
+ ## [**1.0.2**](https://github.com/hapijs/qs/issues?milestone=2&state=closed)
88
+ - [**#5**](https://github.com/hapijs/qs/issues/5) array holes incorrectly copied into object on large index
@@ -0,0 +1 @@
1
+ Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md).
@@ -0,0 +1,28 @@
1
+ Copyright (c) 2014 Nathan LaFreniere and other contributors.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+ * Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+ * The names of any contributors may not be used to endorse or promote
12
+ products derived from this software without specific prior written
13
+ permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
+
26
+ * * *
27
+
28
+ The complete list of contributors can be found at: https://github.com/hapijs/qs/graphs/contributors
@@ -0,0 +1,317 @@
1
+ # qs
2
+
3
+ A querystring parsing and stringifying library with some added security.
4
+
5
+ [![Build Status](https://secure.travis-ci.org/hapijs/qs.svg)](http://travis-ci.org/hapijs/qs)
6
+
7
+ Lead Maintainer: [Nathan LaFreniere](https://github.com/nlf)
8
+
9
+ The **qs** module was originally created and maintained by [TJ Holowaychuk](https://github.com/visionmedia/node-querystring).
10
+
11
+ ## Usage
12
+
13
+ ```javascript
14
+ var Qs = require('qs');
15
+
16
+ var obj = Qs.parse('a=c'); // { a: 'c' }
17
+ var str = Qs.stringify(obj); // 'a=c'
18
+ ```
19
+
20
+ ### Parsing Objects
21
+
22
+ ```javascript
23
+ Qs.parse(string, [options]);
24
+ ```
25
+
26
+ **qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`, or prefixing the sub-key with a dot `.`.
27
+ For example, the string `'foo[bar]=baz'` converts to:
28
+
29
+ ```javascript
30
+ {
31
+ foo: {
32
+ bar: 'baz'
33
+ }
34
+ }
35
+ ```
36
+
37
+ When using the `plainObjects` option the parsed value is returned as a plain object, created via `Object.create(null)` and as such you should be aware that prototype methods will not exist on it and a user may set those names to whatever value they like:
38
+
39
+ ```javascript
40
+ Qs.parse('a.hasOwnProperty=b', { plainObjects: true });
41
+ // { a: { hasOwnProperty: 'b' } }
42
+ ```
43
+
44
+ By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use `plainObjects` as mentioned above, or set `allowPrototypes` to `true` which will allow user input to overwrite those properties. *WARNING* It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. Always be careful with this option.
45
+
46
+ ```javascript
47
+ Qs.parse('a.hasOwnProperty=b', { allowPrototypes: true });
48
+ // { a: { hasOwnProperty: 'b' } }
49
+ ```
50
+
51
+ URI encoded strings work too:
52
+
53
+ ```javascript
54
+ Qs.parse('a%5Bb%5D=c');
55
+ // { a: { b: 'c' } }
56
+ ```
57
+
58
+ You can also nest your objects, like `'foo[bar][baz]=foobarbaz'`:
59
+
60
+ ```javascript
61
+ {
62
+ foo: {
63
+ bar: {
64
+ baz: 'foobarbaz'
65
+ }
66
+ }
67
+ }
68
+ ```
69
+
70
+ By default, when nesting objects **qs** will only parse up to 5 children deep. This means if you attempt to parse a string like
71
+ `'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be:
72
+
73
+ ```javascript
74
+ {
75
+ a: {
76
+ b: {
77
+ c: {
78
+ d: {
79
+ e: {
80
+ f: {
81
+ '[g][h][i]': 'j'
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ ```
90
+
91
+ This depth can be overridden by passing a `depth` option to `Qs.parse(string, [options])`:
92
+
93
+ ```javascript
94
+ Qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 });
95
+ // { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } }
96
+ ```
97
+
98
+ The depth limit helps mitigate abuse when **qs** is used to parse user input, and it is recommended to keep it a reasonably small number.
99
+
100
+ For similar reasons, by default **qs** will only parse up to 1000 parameters. This can be overridden by passing a `parameterLimit` option:
101
+
102
+ ```javascript
103
+ Qs.parse('a=b&c=d', { parameterLimit: 1 });
104
+ // { a: 'b' }
105
+ ```
106
+
107
+ An optional delimiter can also be passed:
108
+
109
+ ```javascript
110
+ Qs.parse('a=b;c=d', { delimiter: ';' });
111
+ // { a: 'b', c: 'd' }
112
+ ```
113
+
114
+ Delimiters can be a regular expression too:
115
+
116
+ ```javascript
117
+ Qs.parse('a=b;c=d,e=f', { delimiter: /[;,]/ });
118
+ // { a: 'b', c: 'd', e: 'f' }
119
+ ```
120
+
121
+ Option `allowDots` can be used to disable dot notation:
122
+
123
+ ```javascript
124
+ Qs.parse('a.b=c', { allowDots: false });
125
+ // { 'a.b': 'c' } }
126
+ ```
127
+
128
+ ### Parsing Arrays
129
+
130
+ **qs** can also parse arrays using a similar `[]` notation:
131
+
132
+ ```javascript
133
+ Qs.parse('a[]=b&a[]=c');
134
+ // { a: ['b', 'c'] }
135
+ ```
136
+
137
+ You may specify an index as well:
138
+
139
+ ```javascript
140
+ Qs.parse('a[1]=c&a[0]=b');
141
+ // { a: ['b', 'c'] }
142
+ ```
143
+
144
+ Note that the only difference between an index in an array and a key in an object is that the value between the brackets must be a number
145
+ to create an array. When creating arrays with specific indices, **qs** will compact a sparse array to only the existing values preserving
146
+ their order:
147
+
148
+ ```javascript
149
+ Qs.parse('a[1]=b&a[15]=c');
150
+ // { a: ['b', 'c'] }
151
+ ```
152
+
153
+ Note that an empty string is also a value, and will be preserved:
154
+
155
+ ```javascript
156
+ Qs.parse('a[]=&a[]=b');
157
+ // { a: ['', 'b'] }
158
+ Qs.parse('a[0]=b&a[1]=&a[2]=c');
159
+ // { a: ['b', '', 'c'] }
160
+ ```
161
+
162
+ **qs** will also limit specifying indices in an array to a maximum index of `20`. Any array members with an index of greater than `20` will
163
+ instead be converted to an object with the index as the key:
164
+
165
+ ```javascript
166
+ Qs.parse('a[100]=b');
167
+ // { a: { '100': 'b' } }
168
+ ```
169
+
170
+ This limit can be overridden by passing an `arrayLimit` option:
171
+
172
+ ```javascript
173
+ Qs.parse('a[1]=b', { arrayLimit: 0 });
174
+ // { a: { '1': 'b' } }
175
+ ```
176
+
177
+ To disable array parsing entirely, set `parseArrays` to `false`.
178
+
179
+ ```javascript
180
+ Qs.parse('a[]=b', { parseArrays: false });
181
+ // { a: { '0': 'b' } }
182
+ ```
183
+
184
+ If you mix notations, **qs** will merge the two items into an object:
185
+
186
+ ```javascript
187
+ Qs.parse('a[0]=b&a[b]=c');
188
+ // { a: { '0': 'b', b: 'c' } }
189
+ ```
190
+
191
+ You can also create arrays of objects:
192
+
193
+ ```javascript
194
+ Qs.parse('a[][b]=c');
195
+ // { a: [{ b: 'c' }] }
196
+ ```
197
+
198
+ ### Stringifying
199
+
200
+ ```javascript
201
+ Qs.stringify(object, [options]);
202
+ ```
203
+
204
+ When stringifying, **qs** always URI encodes output. Objects are stringified as you would expect:
205
+
206
+ ```javascript
207
+ Qs.stringify({ a: 'b' });
208
+ // 'a=b'
209
+ Qs.stringify({ a: { b: 'c' } });
210
+ // 'a%5Bb%5D=c'
211
+ ```
212
+
213
+ Examples beyond this point will be shown as though the output is not URI encoded for clarity. Please note that the return values in these cases *will* be URI encoded during real usage.
214
+
215
+ When arrays are stringified, by default they are given explicit indices:
216
+
217
+ ```javascript
218
+ Qs.stringify({ a: ['b', 'c', 'd'] });
219
+ // 'a[0]=b&a[1]=c&a[2]=d'
220
+ ```
221
+
222
+ You may override this by setting the `indices` option to `false`:
223
+
224
+ ```javascript
225
+ Qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false });
226
+ // 'a=b&a=c&a=d'
227
+ ```
228
+
229
+ You may use the `arrayFormat` option to specify the format of the output array
230
+
231
+ ```javascript
232
+ Qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' })
233
+ // 'a[0]=b&a[1]=c'
234
+ Qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' })
235
+ // 'a[]=b&a[]=c'
236
+ Qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' })
237
+ // 'a=b&a=c'
238
+ ```
239
+
240
+ Empty strings and null values will omit the value, but the equals sign (=) remains in place:
241
+
242
+ ```javascript
243
+ Qs.stringify({ a: '' });
244
+ // 'a='
245
+ ```
246
+
247
+ Properties that are set to `undefined` will be omitted entirely:
248
+
249
+ ```javascript
250
+ Qs.stringify({ a: null, b: undefined });
251
+ // 'a='
252
+ ```
253
+
254
+ The delimiter may be overridden with stringify as well:
255
+
256
+ ```javascript
257
+ Qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' });
258
+ // 'a=b;c=d'
259
+ ```
260
+
261
+ Finally, you can use the `filter` option to restrict which keys will be included in the stringified output.
262
+ If you pass a function, it will be called for each key to obtain the replacement value. Otherwise, if you
263
+ pass an array, it will be used to select properties and array indices for stringification:
264
+
265
+ ```javascript
266
+ function filterFunc(prefix, value) {
267
+ if (prefix == 'b') {
268
+ // Return an `undefined` value to omit a property.
269
+ return;
270
+ }
271
+ if (prefix == 'e[f]') {
272
+ return value.getTime();
273
+ }
274
+ if (prefix == 'e[g][0]') {
275
+ return value * 2;
276
+ }
277
+ return value;
278
+ }
279
+ Qs.stringify({ a: 'b', c: 'd', e: { f: new Date(123), g: [2] } }, { filter: filterFunc })
280
+ // 'a=b&c=d&e[f]=123&e[g][0]=4'
281
+ Qs.stringify({ a: 'b', c: 'd', e: 'f' }, { filter: ['a', 'e'] })
282
+ // 'a=b&e=f'
283
+ Qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] })
284
+ // 'a[0]=b&a[2]=d'
285
+ ```
286
+
287
+ ### Handling of `null` values
288
+
289
+ By default, `null` values are treated like empty strings:
290
+
291
+ ```javascript
292
+ Qs.stringify({ a: null, b: '' });
293
+ // 'a=&b='
294
+ ```
295
+
296
+ Parsing does not distinguish between parameters with and without equal signs. Both are converted to empty strings.
297
+
298
+ ```javascript
299
+ Qs.parse('a&b=')
300
+ // { a: '', b: '' }
301
+ ```
302
+
303
+ To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null`
304
+ values have no `=` sign:
305
+
306
+ ```javascript
307
+ Qs.stringify({ a: null, b: '' }, { strictNullHandling: true });
308
+ // 'a&b='
309
+ ```
310
+
311
+ To parse values without `=` back to `null` use the `strictNullHandling` flag:
312
+
313
+ ```javascript
314
+ Qs.parse('a&b=', { strictNullHandling: true });
315
+ // { a: null, b: '' }
316
+
317
+ ```
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "qs",
3
+ "main": "dist/qs.js",
4
+ "version": "3.0.0",
5
+ "homepage": "https://github.com/hapijs/qs",
6
+ "authors": [
7
+ "Nathan LaFreniere <quitlahok@gmail.com>"
8
+ ],
9
+ "description": "A querystring parser that supports nesting and arrays, with a depth limit",
10
+ "keywords": [
11
+ "querystring",
12
+ "qs"
13
+ ],
14
+ "license": "BSD-3-Clause",
15
+ "ignore": [
16
+ "**/.*",
17
+ "node_modules",
18
+ "bower_components",
19
+ "test",
20
+ "tests"
21
+ ]
22
+ }
@@ -0,0 +1,15 @@
1
+ // Load modules
2
+
3
+ var Stringify = require('./stringify');
4
+ var Parse = require('./parse');
5
+
6
+
7
+ // Declare internals
8
+
9
+ var internals = {};
10
+
11
+
12
+ module.exports = {
13
+ stringify: Stringify,
14
+ parse: Parse
15
+ };