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,61 @@
1
+ # Since we rely on paths relative to the makefile location, abort if make isn't being run from there.
2
+ $(if $(findstring /,$(MAKEFILE_LIST)),$(error Please only invoke this makefile from the directory it resides in))
3
+
4
+ # The files that need updating when incrementing the version number.
5
+ VERSIONED_FILES := *.js *.json README*
6
+
7
+
8
+ # Add the local npm packages' bin folder to the PATH, so that `make` can find them, when invoked directly.
9
+ # Note that rather than using `$(npm bin)` the 'node_modules/.bin' path component is hard-coded, so that invocation works even from an environment
10
+ # where npm is (temporarily) unavailable due to having deactivated an nvm instance loaded into the calling shell in order to avoid interference with tests.
11
+ export PATH := $(shell printf '%s' "$$PWD/node_modules/.bin:$$PATH")
12
+ UTILS := semver
13
+ # Make sure that all required utilities can be located.
14
+ UTIL_CHECK := $(or $(shell PATH="$(PATH)" which $(UTILS) >/dev/null && echo 'ok'),$(error Did you forget to run `npm install` after cloning the repo? At least one of the required supporting utilities not found: $(UTILS)))
15
+
16
+ # Default target (by virtue of being the first non '.'-prefixed in the file).
17
+ .PHONY: _no-target-specified
18
+ _no-target-specified:
19
+ $(error Please specify the target to make - `make list` shows targets. Alternatively, use `npm test` to run the default tests; `npm run` shows all tests)
20
+
21
+ # Lists all targets defined in this makefile.
22
+ .PHONY: list
23
+ list:
24
+ @$(MAKE) -pRrn : -f $(MAKEFILE_LIST) 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | command grep -v -e '^[^[:alnum:]]' -e '^$@$$command ' | sort
25
+
26
+ # All-tests target: invokes the specified test suites for ALL shells defined in $(SHELLS).
27
+ .PHONY: test
28
+ test:
29
+ @npm test
30
+
31
+ .PHONY: _ensure-tag
32
+ _ensure-tag:
33
+ ifndef TAG
34
+ $(error Please invoke with `make TAG=<new-version> release`, where <new-version> is either an increment specifier (patch, minor, major, prepatch, preminor, premajor, prerelease), or an explicit major.minor.patch version number)
35
+ endif
36
+
37
+ CHANGELOG_ERROR = $(error No CHANGELOG specified)
38
+ .PHONY: _ensure-changelog
39
+ _ensure-changelog:
40
+ @ (git status -sb --porcelain | command grep -E '^( M|[MA] ) CHANGELOG.md' > /dev/null) || (echo no CHANGELOG.md specified && exit 2)
41
+
42
+ # Ensures that the git workspace is clean.
43
+ .PHONY: _ensure-clean
44
+ _ensure-clean:
45
+ @[ -z "$$((git status --porcelain --untracked-files=no || echo err) | command grep -v 'CHANGELOG.md')" ] || { echo "Workspace is not clean; please commit changes first." >&2; exit 2; }
46
+
47
+ # Makes a release; invoke with `make TAG=<versionOrIncrementSpec> release`.
48
+ .PHONY: release
49
+ release: _ensure-tag _ensure-changelog _ensure-clean
50
+ @old_ver=`git describe --abbrev=0 --tags --match 'v[0-9]*.[0-9]*.[0-9]*'` || { echo "Failed to determine current version." >&2; exit 1; }; old_ver=$${old_ver#v}; \
51
+ new_ver=`echo "$(TAG)" | sed 's/^v//'`; new_ver=$${new_ver:-patch}; \
52
+ if printf "$$new_ver" | command grep -q '^[0-9]'; then \
53
+ semver "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be major.minor.patch' >&2; exit 2; }; \
54
+ semver -r "> $$old_ver" "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be HIGHER than current one.' >&2; exit 2; } \
55
+ else \
56
+ new_ver=`semver -i "$$new_ver" "$$old_ver"` || { echo 'Invalid version-increment specifier: $(TAG)' >&2; exit 2; } \
57
+ fi; \
58
+ printf "=== Bumping version **$$old_ver** to **$$new_ver** before committing and tagging:\n=== TYPE 'proceed' TO PROCEED, anything else to abort: " && read response && [ "$$response" = 'proceed' ] || { echo 'Aborted.' >&2; exit 2; }; \
59
+ replace "$$old_ver" "$$new_ver" -- $(VERSIONED_FILES) && \
60
+ git commit -m "v$$new_ver" $(VERSIONED_FILES) CHANGELOG.md && \
61
+ git tag -a -m "v$$new_ver" "v$$new_ver"
@@ -0,0 +1,57 @@
1
+ # is-string <sup>[![Version Badge][2]][1]</sup>
2
+
3
+ [![Build Status][3]][4]
4
+ [![dependency status][5]][6]
5
+ [![dev dependency status][7]][8]
6
+ [![License][license-image]][license-url]
7
+ [![Downloads][downloads-image]][downloads-url]
8
+
9
+ [![npm badge][11]][1]
10
+
11
+ [![browser support][9]][10]
12
+
13
+ Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
14
+
15
+ ## Example
16
+
17
+ ```js
18
+ var isString = require('is-string');
19
+ var assert = require('assert');
20
+
21
+ assert.notOk(isString(undefined));
22
+ assert.notOk(isString(null));
23
+ assert.notOk(isString(false));
24
+ assert.notOk(isString(true));
25
+ assert.notOk(isString(function () {}));
26
+ assert.notOk(isString([]));
27
+ assert.notOk(isString({}));
28
+ assert.notOk(isString(/a/g));
29
+ assert.notOk(isString(new RegExp('a', 'g')));
30
+ assert.notOk(isString(new Date()));
31
+ assert.notOk(isString(42));
32
+ assert.notOk(isString(NaN));
33
+ assert.notOk(isString(Infinity));
34
+ assert.notOk(isString(new Number(42)));
35
+
36
+ assert.ok(isString('foo'));
37
+ assert.ok(isString(Object('foo')));
38
+ ```
39
+
40
+ ## Tests
41
+ Simply clone the repo, `npm install`, and run `npm test`
42
+
43
+ [1]: https://npmjs.org/package/is-string
44
+ [2]: http://vb.teelaun.ch/ljharb/is-string.svg
45
+ [3]: https://travis-ci.org/ljharb/is-string.svg
46
+ [4]: https://travis-ci.org/ljharb/is-string
47
+ [5]: https://david-dm.org/ljharb/is-string.svg
48
+ [6]: https://david-dm.org/ljharb/is-string
49
+ [7]: https://david-dm.org/ljharb/is-string/dev-status.svg
50
+ [8]: https://david-dm.org/ljharb/is-string#info=devDependencies
51
+ [9]: https://ci.testling.com/ljharb/is-string.png
52
+ [10]: https://ci.testling.com/ljharb/is-string
53
+ [11]: https://nodei.co/npm/is-string.png?downloads=true&stars=true
54
+ [license-image]: http://img.shields.io/npm/l/is-string.svg
55
+ [license-url]: LICENSE
56
+ [downloads-image]: http://img.shields.io/npm/dm/is-string.svg
57
+ [downloads-url]: http://npm-stat.com/charts.html?package=is-string
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var strValue = String.prototype.valueOf;
4
+ var tryStringObject = function tryStringObject(value) {
5
+ try {
6
+ strValue.call(value);
7
+ return true;
8
+ } catch (e) {
9
+ return false;
10
+ }
11
+ };
12
+ var toStr = Object.prototype.toString;
13
+ var strClass = '[object String]';
14
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
15
+
16
+ module.exports = function isString(value) {
17
+ if (typeof value === 'string') { return true; }
18
+ if (typeof value !== 'object') { return false; }
19
+ return hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;
20
+ };
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "is-string",
3
+ "version": "1.0.4",
4
+ "author": {
5
+ "name": "Jordan Harband"
6
+ },
7
+ "description": "Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.",
8
+ "license": "MIT",
9
+ "main": "index.js",
10
+ "scripts": {
11
+ "test": "npm run lint && node --harmony --es-staging test.js && npm run security",
12
+ "coverage": "covert test.js",
13
+ "coverage-quiet": "covert test.js --quiet",
14
+ "lint": "npm run jscs && npm run eslint",
15
+ "jscs": "jscs test.js *.js",
16
+ "eslint": "eslint test.js *.js",
17
+ "eccheck": "editorconfig-tools check *.js **/*.js > /dev/null",
18
+ "security": "nsp package"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git://github.com/ljharb/is-string.git"
23
+ },
24
+ "keywords": [
25
+ "String",
26
+ "string",
27
+ "ES6",
28
+ "toStringTag",
29
+ "@@toStringTag",
30
+ "String object"
31
+ ],
32
+ "dependencies": {},
33
+ "devDependencies": {
34
+ "foreach": "~2.0.5",
35
+ "is": "~2.2.0",
36
+ "tape": "~3.4.0",
37
+ "indexof": "~0.0.1",
38
+ "covert": "1.0.0",
39
+ "jscs": "~1.10.0",
40
+ "editorconfig-tools": "~0.0.1",
41
+ "nsp": "~1.0.0",
42
+ "eslint": "~0.13.0",
43
+ "semver": "~4.2.0"
44
+ },
45
+ "testling": {
46
+ "files": "test.js",
47
+ "browsers": [
48
+ "iexplore/6.0..latest",
49
+ "firefox/3.0..6.0",
50
+ "firefox/15.0..latest",
51
+ "firefox/nightly",
52
+ "chrome/4.0..10.0",
53
+ "chrome/20.0..latest",
54
+ "chrome/canary",
55
+ "opera/10.0..latest",
56
+ "opera/next",
57
+ "safari/4.0..latest",
58
+ "ipad/6.0..latest",
59
+ "iphone/6.0..latest",
60
+ "android-browser/4.2"
61
+ ]
62
+ },
63
+ "engines": {
64
+ "node": ">= 0.4"
65
+ },
66
+ "gitHead": "bfc054522e27639dbd279a39bd7302fc859a1fd6",
67
+ "bugs": {
68
+ "url": "https://github.com/ljharb/is-string/issues"
69
+ },
70
+ "homepage": "https://github.com/ljharb/is-string",
71
+ "_id": "is-string@1.0.4",
72
+ "_shasum": "cc3a9b69857d621e963725a24caeec873b826e64",
73
+ "_from": "is-string@>=1.0.4 <2.0.0",
74
+ "_npmVersion": "2.3.0",
75
+ "_nodeVersion": "1.0.4",
76
+ "_npmUser": {
77
+ "name": "ljharb",
78
+ "email": "ljharb@gmail.com"
79
+ },
80
+ "maintainers": [
81
+ {
82
+ "name": "ljharb",
83
+ "email": "ljharb@gmail.com"
84
+ }
85
+ ],
86
+ "dist": {
87
+ "shasum": "cc3a9b69857d621e963725a24caeec873b826e64",
88
+ "tarball": "http://registry.npmjs.org/is-string/-/is-string-1.0.4.tgz"
89
+ },
90
+ "directories": {},
91
+ "_resolved": "http://registry.npmjs.org/is-string/-/is-string-1.0.4.tgz",
92
+ "readme": "ERROR: No README data found!"
93
+ }
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ var test = require('tape');
4
+ var isString = require('./');
5
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol';
6
+
7
+ test('not Strings', function (t) {
8
+ t.notOk(isString(), 'undefined is not String');
9
+ t.notOk(isString(null), 'null is not String');
10
+ t.notOk(isString(false), 'false is not String');
11
+ t.notOk(isString(true), 'true is not String');
12
+ t.notOk(isString([]), 'array is not String');
13
+ t.notOk(isString({}), 'object is not String');
14
+ t.notOk(isString(function () {}), 'function is not String');
15
+ t.notOk(isString(/a/g), 'regex literal is not String');
16
+ t.notOk(isString(new RegExp('a', 'g')), 'regex object is not String');
17
+ t.notOk(isString(new Date()), 'new Date() is not String');
18
+ t.notOk(isString(42), 'number is not String');
19
+ t.notOk(isString(Object(42)), 'number object is not String');
20
+ t.notOk(isString(NaN), 'NaN is not String');
21
+ t.notOk(isString(Infinity), 'Infinity is not String');
22
+ t.end();
23
+ });
24
+
25
+ test('@@toStringTag', { skip: !hasSymbols || !Symbol.toStringTag }, function (t) {
26
+ var fakeString = { valueOf: function () { return '42'; }, toString: function () { return '7'; } };
27
+ fakeString[Symbol.toStringTag] = function () { return 'String'; };
28
+ t.notOk(isString(fakeString), 'fake String with @@toStringTag "String" is not String');
29
+ t.end();
30
+ });
31
+
32
+ test('Strings', function (t) {
33
+ t.ok(isString('foo'), 'string primitive is String');
34
+ t.ok(isString(Object('foo')), 'string object is String');
35
+ t.end();
36
+ });
@@ -0,0 +1,9 @@
1
+ # master
2
+
3
+ # 1.0.0
4
+
5
+ * No change; version bumped to indicate that this package is considered stable
6
+
7
+ # 0.0.1
8
+
9
+ * Initial release
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Jo Liss
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,44 @@
1
+ # js-string-escape
2
+
3
+ [![Build Status](https://travis-ci.org/joliss/js-string-escape.png?branch=master)](https://travis-ci.org/joliss/js-string-escape)
4
+
5
+ Escape any string to be a valid JavaScript string literal between double
6
+ quotes or single quotes.
7
+
8
+ ## Installation
9
+
10
+ ```
11
+ npm install js-string-escape
12
+ ```
13
+
14
+ ## Example
15
+
16
+ If you need to generate JavaScript output, this library will help you safely
17
+ put arbitrary data in JavaScript strings:
18
+
19
+ ```js
20
+ jsStringEscape = require('js-string-escape')
21
+
22
+ console.log('"' + jsStringEscape('Quotes (\", \'), newlines (\n), etc.') + '"')
23
+ // => "Quotes (\", \'), newlines (\n), etc."
24
+ ```
25
+
26
+ In other words, given any string `s`, the following invariants hold:
27
+
28
+ ```js
29
+ eval('"' + jsStringEscape(s) + '"') === s
30
+ eval("'" + jsStringEscape(s) + "'") === s
31
+ ```
32
+
33
+ These `eval` expressions are safe with untrusted strings `s`.
34
+
35
+ Non-strings will be cast to strings.
36
+
37
+ ## Compliance
38
+
39
+ This library has been checked against [ECMAScript
40
+ 5.1](http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4) and tested
41
+ against all Unicode code points.
42
+
43
+ Note that the returned string is not necessarily valid JSON, since JSON
44
+ disallows control characters, and `\'` is illegal in JSON.
@@ -0,0 +1,22 @@
1
+ module.exports = function (string) {
2
+ return ('' + string).replace(/["'\\\n\r\u2028\u2029]/g, function (character) {
3
+ // Escape all characters not included in SingleStringCharacters and
4
+ // DoubleStringCharacters on
5
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4
6
+ switch (character) {
7
+ case '"':
8
+ case "'":
9
+ case '\\':
10
+ return '\\' + character
11
+ // Four possible LineTerminator characters need to be escaped:
12
+ case '\n':
13
+ return '\\n'
14
+ case '\r':
15
+ return '\\r'
16
+ case '\u2028':
17
+ return '\\u2028'
18
+ case '\u2029':
19
+ return '\\u2029'
20
+ }
21
+ })
22
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "js-string-escape",
3
+ "version": "1.0.0",
4
+ "description": "Escape strings for use as JavaScript string literals",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "tap test"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/joliss/js-string-escape.git"
12
+ },
13
+ "keywords": [
14
+ "string",
15
+ "escape",
16
+ "backslash",
17
+ "javascript",
18
+ "ecmascript"
19
+ ],
20
+ "author": {
21
+ "name": "Jo Liss",
22
+ "email": "joliss42@gmail.com"
23
+ },
24
+ "contributors": [
25
+ {
26
+ "name": "Mathias Bynens",
27
+ "url": "http://mathiasbynens.be/"
28
+ }
29
+ ],
30
+ "license": "MIT",
31
+ "devDependencies": {
32
+ "tap": "~> 0.4.2",
33
+ "punycode": "~> 1.2.1"
34
+ },
35
+ "engines": {
36
+ "node": ">= 0.8"
37
+ },
38
+ "bugs": {
39
+ "url": "https://github.com/joliss/js-string-escape/issues"
40
+ },
41
+ "_id": "js-string-escape@1.0.0",
42
+ "dist": {
43
+ "shasum": "d2d2365fd2e6b3948b8374ac7628ac0e84d00002",
44
+ "tarball": "http://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.0.tgz"
45
+ },
46
+ "_from": "js-string-escape@>=1.0.0 <2.0.0",
47
+ "_npmVersion": "1.2.25",
48
+ "_npmUser": {
49
+ "name": "joliss",
50
+ "email": "joliss42@gmail.com"
51
+ },
52
+ "maintainers": [
53
+ {
54
+ "name": "joliss",
55
+ "email": "joliss42@gmail.com"
56
+ }
57
+ ],
58
+ "directories": {},
59
+ "_shasum": "d2d2365fd2e6b3948b8374ac7628ac0e84d00002",
60
+ "_resolved": "http://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.0.tgz",
61
+ "readme": "ERROR: No README data found!",
62
+ "homepage": "https://github.com/joliss/js-string-escape#readme"
63
+ }
@@ -0,0 +1,43 @@
1
+ var test = require('tap').test
2
+ var jsStringEscape = require('../')
3
+
4
+ // Require the local copy of Punycode.js, as we don't want to use the outdated
5
+ // version that shipped with Node v0.8:
6
+ var punycode = require('./../node_modules/punycode/punycode.js')
7
+
8
+ test('basic use', function (t) {
9
+ t.equal(jsStringEscape('"Hello World!"'), '\\"Hello World!\\"')
10
+ t.end()
11
+ })
12
+
13
+ test('invariants', function (t) {
14
+ var allCharacters = ''
15
+ var i
16
+ // The Punycode.js version that ships with Node v0.8 won't create unmatched
17
+ // surrogate halves, so let's use `String.fromCharCode` for BMP code points.
18
+ for (i = 0; i <= 0x00FFFF; i++) {
19
+ allCharacters += String.fromCharCode(i)
20
+ }
21
+ // Generate strings based on astral code points. Trickier than it seems:
22
+ // http://mathiasbynens.be/notes/javascript-encoding
23
+ for (i = 0x010000; i <= 0x10FFFF; i++) {
24
+ allCharacters += punycode.ucs2.encode([ i ])
25
+ }
26
+
27
+ var escaped = jsStringEscape(allCharacters);
28
+
29
+ // Do not use .equal; mega-diffs in the output are not helpful.
30
+ t.ok(eval("'" + escaped + "'") === allCharacters)
31
+ t.ok(eval('"' + escaped + '"') === allCharacters)
32
+ t.end()
33
+ })
34
+
35
+ test('supports arbitrary objects', function (t) {
36
+ t.equal(jsStringEscape(null), 'null')
37
+ t.equal(jsStringEscape(undefined), 'undefined')
38
+ t.equal(jsStringEscape(false), 'false')
39
+ t.equal(jsStringEscape(0.0), '0')
40
+ t.equal(jsStringEscape({}), '[object Object]')
41
+ t.equal(jsStringEscape(''), '')
42
+ t.end()
43
+ })
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+ var ansiRegex = require('ansi-regex')();
3
+
4
+ module.exports = function (str) {
5
+ return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
6
+ };
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+ module.exports = function () {
3
+ return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
4
+ };
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "ansi-regex",
3
+ "version": "2.0.0",
4
+ "description": "Regular expression for matching ANSI escape codes",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/sindresorhus/ansi-regex.git"
9
+ },
10
+ "author": {
11
+ "name": "Sindre Sorhus",
12
+ "email": "sindresorhus@gmail.com",
13
+ "url": "sindresorhus.com"
14
+ },
15
+ "maintainers": [
16
+ {
17
+ "name": "sindresorhus",
18
+ "email": "sindresorhus@gmail.com"
19
+ },
20
+ {
21
+ "name": "jbnicolai",
22
+ "email": "jappelman@xebia.com"
23
+ }
24
+ ],
25
+ "engines": {
26
+ "node": ">=0.10.0"
27
+ },
28
+ "scripts": {
29
+ "test": "mocha test/test.js",
30
+ "view-supported": "node test/viewCodes.js"
31
+ },
32
+ "files": [
33
+ "index.js"
34
+ ],
35
+ "keywords": [
36
+ "ansi",
37
+ "styles",
38
+ "color",
39
+ "colour",
40
+ "colors",
41
+ "terminal",
42
+ "console",
43
+ "cli",
44
+ "string",
45
+ "tty",
46
+ "escape",
47
+ "formatting",
48
+ "rgb",
49
+ "256",
50
+ "shell",
51
+ "xterm",
52
+ "command-line",
53
+ "text",
54
+ "regex",
55
+ "regexp",
56
+ "re",
57
+ "match",
58
+ "test",
59
+ "find",
60
+ "pattern"
61
+ ],
62
+ "devDependencies": {
63
+ "mocha": "*"
64
+ },
65
+ "gitHead": "57c3f2941a73079fa8b081e02a522e3d29913e2f",
66
+ "bugs": {
67
+ "url": "https://github.com/sindresorhus/ansi-regex/issues"
68
+ },
69
+ "homepage": "https://github.com/sindresorhus/ansi-regex",
70
+ "_id": "ansi-regex@2.0.0",
71
+ "_shasum": "c5061b6e0ef8a81775e50f5d66151bf6bf371107",
72
+ "_from": "ansi-regex@>=2.0.0 <3.0.0",
73
+ "_npmVersion": "2.11.2",
74
+ "_nodeVersion": "0.12.5",
75
+ "_npmUser": {
76
+ "name": "sindresorhus",
77
+ "email": "sindresorhus@gmail.com"
78
+ },
79
+ "dist": {
80
+ "shasum": "c5061b6e0ef8a81775e50f5d66151bf6bf371107",
81
+ "tarball": "http://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz"
82
+ },
83
+ "directories": {},
84
+ "_resolved": "http://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz",
85
+ "readme": "ERROR: No README data found!"
86
+ }
@@ -0,0 +1,31 @@
1
+ # ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex)
2
+
3
+ > Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
4
+
5
+
6
+ ## Install
7
+
8
+ ```
9
+ $ npm install --save ansi-regex
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ var ansiRegex = require('ansi-regex');
17
+
18
+ ansiRegex().test('\u001b[4mcake\u001b[0m');
19
+ //=> true
20
+
21
+ ansiRegex().test('cake');
22
+ //=> false
23
+
24
+ '\u001b[4mcake\u001b[0m'.match(ansiRegex());
25
+ //=> ['\u001b[4m', '\u001b[0m']
26
+ ```
27
+
28
+
29
+ ## License
30
+
31
+ MIT © [Sindre Sorhus](http://sindresorhus.com)