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.
- checksums.yaml +4 -4
- data/lib/webpack_rails/ErrorMessagePlugin.js +37 -0
- data/lib/webpack_rails/engine.rb +6 -5
- data/lib/webpack_rails/node_modules/cors/CONTRIBUTING.md +35 -0
- data/lib/webpack_rails/node_modules/cors/LICENSE +9 -0
- data/lib/webpack_rails/node_modules/cors/README.md +192 -0
- data/lib/webpack_rails/node_modules/cors/lib/index.js +242 -0
- data/lib/webpack_rails/node_modules/cors/node_modules/vary/HISTORY.md +29 -0
- data/lib/webpack_rails/node_modules/cors/node_modules/vary/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/cors/node_modules/vary/README.md +91 -0
- data/lib/webpack_rails/node_modules/cors/node_modules/vary/index.js +124 -0
- data/lib/webpack_rails/node_modules/cors/node_modules/vary/package.json +72 -0
- data/lib/webpack_rails/node_modules/cors/package.json +79 -0
- data/lib/webpack_rails/node_modules/cors/test/basic-auth.js +40 -0
- data/lib/webpack_rails/node_modules/cors/test/body-events.js +81 -0
- data/lib/webpack_rails/node_modules/cors/test/cors.js +652 -0
- data/lib/webpack_rails/node_modules/cors/test/error-response.js +77 -0
- data/lib/webpack_rails/node_modules/cors/test/example-app.js +98 -0
- data/lib/webpack_rails/node_modules/cors/test/issue-2.js +56 -0
- data/lib/webpack_rails/node_modules/cors/test/issue-31.js +58 -0
- data/lib/webpack_rails/node_modules/cors/test/mocha.opts +3 -0
- data/lib/webpack_rails/node_modules/express/History.md +3025 -0
- data/lib/webpack_rails/node_modules/express/LICENSE +24 -0
- data/lib/webpack_rails/node_modules/express/Readme.md +138 -0
- data/lib/webpack_rails/node_modules/express/index.js +11 -0
- data/lib/webpack_rails/node_modules/express/lib/application.js +643 -0
- data/lib/webpack_rails/node_modules/express/lib/express.js +103 -0
- data/lib/webpack_rails/node_modules/express/lib/middleware/init.js +36 -0
- data/lib/webpack_rails/node_modules/express/lib/middleware/query.js +51 -0
- data/lib/webpack_rails/node_modules/express/lib/request.js +489 -0
- data/lib/webpack_rails/node_modules/express/lib/response.js +1053 -0
- data/lib/webpack_rails/node_modules/express/lib/router/index.js +645 -0
- data/lib/webpack_rails/node_modules/express/lib/router/layer.js +176 -0
- data/lib/webpack_rails/node_modules/express/lib/router/route.js +210 -0
- data/lib/webpack_rails/node_modules/express/lib/utils.js +300 -0
- data/lib/webpack_rails/node_modules/express/lib/view.js +173 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/HISTORY.md +170 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/LICENSE +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/README.md +135 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/index.js +231 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/HISTORY.md +171 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/LICENSE +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/README.md +103 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/index.js +188 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/HISTORY.md +274 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/README.md +82 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/db.json +6474 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/index.js +11 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/package.json +94 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/package.json +84 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/HISTORY.md +76 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/LICENSE +24 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/README.md +203 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/index.js +62 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/charset.js +102 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/encoding.js +118 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/language.js +112 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/lib/mediaType.js +179 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/package.json +86 -0
- data/lib/webpack_rails/node_modules/express/node_modules/accepts/package.json +98 -0
- data/lib/webpack_rails/node_modules/express/node_modules/array-flatten/LICENSE +21 -0
- data/lib/webpack_rails/node_modules/express/node_modules/array-flatten/README.md +43 -0
- data/lib/webpack_rails/node_modules/express/node_modules/array-flatten/array-flatten.js +64 -0
- data/lib/webpack_rails/node_modules/express/node_modules/array-flatten/package.json +62 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/HISTORY.md +40 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/README.md +141 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/index.js +443 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-disposition/package.json +66 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-type/HISTORY.md +9 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-type/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-type/README.md +92 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-type/index.js +214 -0
- data/lib/webpack_rails/node_modules/express/node_modules/content-type/package.json +65 -0
- data/lib/webpack_rails/node_modules/express/node_modules/cookie/LICENSE +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/cookie/README.md +64 -0
- data/lib/webpack_rails/node_modules/express/node_modules/cookie/index.js +116 -0
- data/lib/webpack_rails/node_modules/express/node_modules/cookie/package.json +68 -0
- data/lib/webpack_rails/node_modules/express/node_modules/cookie-signature/History.md +38 -0
- data/lib/webpack_rails/node_modules/express/node_modules/cookie-signature/Readme.md +42 -0
- data/lib/webpack_rails/node_modules/express/node_modules/cookie-signature/index.js +51 -0
- data/lib/webpack_rails/node_modules/express/node_modules/cookie-signature/package.json +59 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/History.md +195 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/Makefile +36 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/Readme.md +188 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/bower.json +28 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/browser.js +168 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/component.json +19 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/debug.js +197 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/node.js +209 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/History.md +66 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/LICENSE +20 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/README.md +35 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/index.js +125 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/node_modules/ms/package.json +47 -0
- data/lib/webpack_rails/node_modules/express/node_modules/debug/package.json +73 -0
- data/lib/webpack_rails/node_modules/express/node_modules/depd/History.md +75 -0
- data/lib/webpack_rails/node_modules/express/node_modules/depd/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/depd/Readme.md +274 -0
- data/lib/webpack_rails/node_modules/express/node_modules/depd/index.js +529 -0
- data/lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js +33 -0
- data/lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/callsite-tostring.js +101 -0
- data/lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/index.js +69 -0
- data/lib/webpack_rails/node_modules/express/node_modules/depd/package.json +66 -0
- data/lib/webpack_rails/node_modules/express/node_modules/escape-html/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/escape-html/Readme.md +15 -0
- data/lib/webpack_rails/node_modules/express/node_modules/escape-html/index.js +29 -0
- data/lib/webpack_rails/node_modules/express/node_modules/escape-html/package.json +51 -0
- data/lib/webpack_rails/node_modules/express/node_modules/etag/HISTORY.md +71 -0
- data/lib/webpack_rails/node_modules/express/node_modules/etag/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/etag/README.md +165 -0
- data/lib/webpack_rails/node_modules/express/node_modules/etag/index.js +132 -0
- data/lib/webpack_rails/node_modules/express/node_modules/etag/package.json +73 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/HISTORY.md +90 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/README.md +133 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/index.js +151 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/HISTORY.md +4 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/README.md +43 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/index.js +69 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/node_modules/unpipe/package.json +59 -0
- data/lib/webpack_rails/node_modules/express/node_modules/finalhandler/package.json +81 -0
- data/lib/webpack_rails/node_modules/express/node_modules/fresh/HISTORY.md +38 -0
- data/lib/webpack_rails/node_modules/express/node_modules/fresh/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/fresh/README.md +58 -0
- data/lib/webpack_rails/node_modules/express/node_modules/fresh/index.js +57 -0
- data/lib/webpack_rails/node_modules/express/node_modules/fresh/package.json +87 -0
- data/lib/webpack_rails/node_modules/express/node_modules/merge-descriptors/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/merge-descriptors/README.md +34 -0
- data/lib/webpack_rails/node_modules/express/node_modules/merge-descriptors/index.js +57 -0
- data/lib/webpack_rails/node_modules/express/node_modules/merge-descriptors/package.json +125 -0
- data/lib/webpack_rails/node_modules/express/node_modules/methods/HISTORY.md +24 -0
- data/lib/webpack_rails/node_modules/express/node_modules/methods/LICENSE +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/methods/README.md +41 -0
- data/lib/webpack_rails/node_modules/express/node_modules/methods/index.js +42 -0
- data/lib/webpack_rails/node_modules/express/node_modules/methods/package.json +88 -0
- data/lib/webpack_rails/node_modules/express/node_modules/on-finished/HISTORY.md +88 -0
- data/lib/webpack_rails/node_modules/express/node_modules/on-finished/LICENSE +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/on-finished/README.md +154 -0
- data/lib/webpack_rails/node_modules/express/node_modules/on-finished/index.js +196 -0
- data/lib/webpack_rails/node_modules/express/node_modules/on-finished/node_modules/ee-first/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/on-finished/node_modules/ee-first/README.md +80 -0
- data/lib/webpack_rails/node_modules/express/node_modules/on-finished/node_modules/ee-first/index.js +95 -0
- data/lib/webpack_rails/node_modules/express/node_modules/on-finished/node_modules/ee-first/package.json +64 -0
- data/lib/webpack_rails/node_modules/express/node_modules/on-finished/package.json +71 -0
- data/lib/webpack_rails/node_modules/express/node_modules/parseurl/HISTORY.md +42 -0
- data/lib/webpack_rails/node_modules/express/node_modules/parseurl/LICENSE +24 -0
- data/lib/webpack_rails/node_modules/express/node_modules/parseurl/README.md +107 -0
- data/lib/webpack_rails/node_modules/express/node_modules/parseurl/index.js +136 -0
- data/lib/webpack_rails/node_modules/express/node_modules/parseurl/package.json +80 -0
- data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/History.md +36 -0
- data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/LICENSE +21 -0
- data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/Readme.md +35 -0
- data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/index.js +129 -0
- data/lib/webpack_rails/node_modules/express/node_modules/path-to-regexp/package.json +184 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/HISTORY.md +66 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/README.md +137 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/index.js +345 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/HISTORY.md +4 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/README.md +53 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/index.js +35 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/package.json +65 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile +18 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE +19 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/README.md +161 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js +439 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/package.json +60 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/src/ipaddr.coffee +374 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/test/ipaddr.test.coffee +262 -0
- data/lib/webpack_rails/node_modules/express/node_modules/proxy-addr/package.json +90 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/CHANGELOG.md +88 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/CONTRIBUTING.md +1 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/LICENSE +28 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/README.md +317 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/bower.json +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/lib/index.js +15 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/lib/parse.js +186 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/lib/stringify.js +121 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/lib/utils.js +190 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/package.json +56 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/test/parse.js +478 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/test/stringify.js +259 -0
- data/lib/webpack_rails/node_modules/express/node_modules/qs/test/utils.js +28 -0
- data/lib/webpack_rails/node_modules/express/node_modules/range-parser/HISTORY.md +35 -0
- data/lib/webpack_rails/node_modules/express/node_modules/range-parser/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/range-parser/README.md +48 -0
- data/lib/webpack_rails/node_modules/express/node_modules/range-parser/index.js +49 -0
- data/lib/webpack_rails/node_modules/express/node_modules/range-parser/package.json +76 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/HISTORY.md +295 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/LICENSE +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/README.md +195 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/index.js +820 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/destroy/README.md +38 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/destroy/index.js +36 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/destroy/package.json +67 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/HISTORY.md +76 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/README.md +63 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/index.js +120 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/LICENSE +16 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/README.md +42 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/inherits.js +1 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/inherits_browser.js +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/package.json +50 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/test.js +25 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/package.json +85 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/LICENSE +19 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/README.md +90 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/build/build.js +11 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/build/test.js +57 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/cli.js +8 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/mime.js +108 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/package.json +73 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/mime/types.json +1 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/History.md +66 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/LICENSE +20 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/README.md +35 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/index.js +125 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/ms/package.json +47 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/README.md +114 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/codes.json +64 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/index.js +60 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/package.json +84 -0
- data/lib/webpack_rails/node_modules/express/node_modules/send/package.json +89 -0
- data/lib/webpack_rails/node_modules/express/node_modules/serve-static/HISTORY.md +284 -0
- data/lib/webpack_rails/node_modules/express/node_modules/serve-static/LICENSE +25 -0
- data/lib/webpack_rails/node_modules/express/node_modules/serve-static/README.md +235 -0
- data/lib/webpack_rails/node_modules/express/node_modules/serve-static/index.js +187 -0
- data/lib/webpack_rails/node_modules/express/node_modules/serve-static/package.json +83 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/HISTORY.md +180 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/LICENSE +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/README.md +132 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/index.js +262 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/HISTORY.md +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/README.md +81 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/index.js +270 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/media-typer/package.json +58 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/HISTORY.md +171 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/LICENSE +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/README.md +103 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/index.js +188 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/HISTORY.md +274 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/README.md +82 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/db.json +6474 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/index.js +11 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/package.json +94 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/node_modules/mime-types/package.json +84 -0
- data/lib/webpack_rails/node_modules/express/node_modules/type-is/package.json +93 -0
- data/lib/webpack_rails/node_modules/express/node_modules/utils-merge/LICENSE +20 -0
- data/lib/webpack_rails/node_modules/express/node_modules/utils-merge/README.md +34 -0
- data/lib/webpack_rails/node_modules/express/node_modules/utils-merge/index.js +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/utils-merge/package.json +58 -0
- data/lib/webpack_rails/node_modules/express/node_modules/vary/HISTORY.md +23 -0
- data/lib/webpack_rails/node_modules/express/node_modules/vary/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/express/node_modules/vary/README.md +91 -0
- data/lib/webpack_rails/node_modules/express/node_modules/vary/index.js +117 -0
- data/lib/webpack_rails/node_modules/express/node_modules/vary/package.json +72 -0
- data/lib/webpack_rails/node_modules/express/package.json +167 -0
- data/lib/webpack_rails/node_modules/is-array/History.md +11 -0
- data/lib/webpack_rails/node_modules/is-array/Makefile +11 -0
- data/lib/webpack_rails/node_modules/is-array/Readme.md +27 -0
- data/lib/webpack_rails/node_modules/is-array/component.json +13 -0
- data/lib/webpack_rails/node_modules/is-array/index.js +33 -0
- data/lib/webpack_rails/node_modules/is-array/package.json +41 -0
- data/lib/webpack_rails/node_modules/is-array/test/test.html +46 -0
- data/lib/webpack_rails/node_modules/is-object/LICENSE +19 -0
- data/lib/webpack_rails/node_modules/is-object/README.md +55 -0
- data/lib/webpack_rails/node_modules/is-object/index.js +5 -0
- data/lib/webpack_rails/node_modules/is-object/package.json +91 -0
- data/lib/webpack_rails/node_modules/is-object/test/index.js +23 -0
- data/lib/webpack_rails/node_modules/is-string/CHANGELOG.md +19 -0
- data/lib/webpack_rails/node_modules/is-string/LICENSE +22 -0
- data/lib/webpack_rails/node_modules/is-string/Makefile +61 -0
- data/lib/webpack_rails/node_modules/is-string/README.md +57 -0
- data/lib/webpack_rails/node_modules/is-string/index.js +20 -0
- data/lib/webpack_rails/node_modules/is-string/package.json +93 -0
- data/lib/webpack_rails/node_modules/is-string/test.js +36 -0
- data/lib/webpack_rails/node_modules/js-string-escape/CHANGELOG.md +9 -0
- data/lib/webpack_rails/node_modules/js-string-escape/LICENSE +21 -0
- data/lib/webpack_rails/node_modules/js-string-escape/README.md +44 -0
- data/lib/webpack_rails/node_modules/js-string-escape/index.js +22 -0
- data/lib/webpack_rails/node_modules/js-string-escape/package.json +63 -0
- data/lib/webpack_rails/node_modules/js-string-escape/test/test.js +43 -0
- data/lib/webpack_rails/node_modules/strip-ansi/index.js +6 -0
- data/lib/webpack_rails/node_modules/strip-ansi/license +21 -0
- data/lib/webpack_rails/node_modules/strip-ansi/node_modules/ansi-regex/index.js +4 -0
- data/lib/webpack_rails/node_modules/strip-ansi/node_modules/ansi-regex/license +21 -0
- data/lib/webpack_rails/node_modules/strip-ansi/node_modules/ansi-regex/package.json +86 -0
- data/lib/webpack_rails/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +31 -0
- data/lib/webpack_rails/node_modules/strip-ansi/package.json +85 -0
- data/lib/webpack_rails/node_modules/strip-ansi/readme.md +33 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/README.md +109 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js +35 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/client.js +131 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/README.md +15 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/client.js +30 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/index.html +18 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/package.json +14 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/server.js +41 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/example/webpack.config.js +22 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/helpers.js +8 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/middleware.js +83 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/History.md +20 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/License.md +19 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/Readme.md +15 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/decode.js +80 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/encode.js +64 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/index.js +4 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/package.json +96 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/test/common-index.js +3 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/test/index.js +210 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/querystring/test/tap-index.js +3 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/cli.js +47 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/index.js +6 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/node_modules/ansi-regex/index.js +4 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/node_modules/ansi-regex/license +21 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/node_modules/ansi-regex/package.json +86 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +33 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/package.json +89 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/node_modules/strip-ansi/readme.md +43 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/package.json +58 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/process-update.js +105 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/test/client-test.js +81 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js +22 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/test/middleware-test.js +188 -0
- data/lib/webpack_rails/node_modules/webpack-hot-middleware/test/mocha.opts +1 -0
- data/lib/webpack_rails/node_modules/xtend/LICENCE +19 -0
- data/lib/webpack_rails/node_modules/xtend/Makefile +4 -0
- data/lib/webpack_rails/node_modules/xtend/README.md +32 -0
- data/lib/webpack_rails/node_modules/xtend/immutable.js +17 -0
- data/lib/webpack_rails/node_modules/xtend/mutable.js +15 -0
- data/lib/webpack_rails/node_modules/xtend/package.json +88 -0
- data/lib/webpack_rails/node_modules/xtend/test.js +63 -0
- data/lib/webpack_rails/package.json +22 -0
- data/lib/webpack_rails/processor.rb +28 -9
- data/lib/webpack_rails/require_directive_processor.rb +51 -0
- data/lib/webpack_rails/sprockets_environment.rb +45 -0
- data/lib/webpack_rails/task.rb +51 -22
- data/lib/webpack_rails/webpack-task-dev-server.js +122 -0
- data/lib/webpack_rails/{webpack-task.js → webpack-task-watch.js} +0 -0
- data/lib/webpack_rails/webpack.rake +5 -5
- data/lib/webpack_rails.rb +1 -3
- metadata +346 -5
- data/lib/webpack_rails/sprockets_base_webpack.rb +0 -14
- data/lib/webpack_rails/sprockets_index_webpack.rb +0 -15
@@ -0,0 +1,231 @@
|
|
1
|
+
/*!
|
2
|
+
* accepts
|
3
|
+
* Copyright(c) 2014 Jonathan Ong
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
5
|
+
* MIT Licensed
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict'
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Module dependencies.
|
12
|
+
* @private
|
13
|
+
*/
|
14
|
+
|
15
|
+
var Negotiator = require('negotiator')
|
16
|
+
var mime = require('mime-types')
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Module exports.
|
20
|
+
* @public
|
21
|
+
*/
|
22
|
+
|
23
|
+
module.exports = Accepts
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Create a new Accepts object for the given req.
|
27
|
+
*
|
28
|
+
* @param {object} req
|
29
|
+
* @public
|
30
|
+
*/
|
31
|
+
|
32
|
+
function Accepts(req) {
|
33
|
+
if (!(this instanceof Accepts))
|
34
|
+
return new Accepts(req)
|
35
|
+
|
36
|
+
this.headers = req.headers
|
37
|
+
this.negotiator = new Negotiator(req)
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Check if the given `type(s)` is acceptable, returning
|
42
|
+
* the best match when true, otherwise `undefined`, in which
|
43
|
+
* case you should respond with 406 "Not Acceptable".
|
44
|
+
*
|
45
|
+
* The `type` value may be a single mime type string
|
46
|
+
* such as "application/json", the extension name
|
47
|
+
* such as "json" or an array `["json", "html", "text/plain"]`. When a list
|
48
|
+
* or array is given the _best_ match, if any is returned.
|
49
|
+
*
|
50
|
+
* Examples:
|
51
|
+
*
|
52
|
+
* // Accept: text/html
|
53
|
+
* this.types('html');
|
54
|
+
* // => "html"
|
55
|
+
*
|
56
|
+
* // Accept: text/*, application/json
|
57
|
+
* this.types('html');
|
58
|
+
* // => "html"
|
59
|
+
* this.types('text/html');
|
60
|
+
* // => "text/html"
|
61
|
+
* this.types('json', 'text');
|
62
|
+
* // => "json"
|
63
|
+
* this.types('application/json');
|
64
|
+
* // => "application/json"
|
65
|
+
*
|
66
|
+
* // Accept: text/*, application/json
|
67
|
+
* this.types('image/png');
|
68
|
+
* this.types('png');
|
69
|
+
* // => undefined
|
70
|
+
*
|
71
|
+
* // Accept: text/*;q=.5, application/json
|
72
|
+
* this.types(['html', 'json']);
|
73
|
+
* this.types('html', 'json');
|
74
|
+
* // => "json"
|
75
|
+
*
|
76
|
+
* @param {String|Array} types...
|
77
|
+
* @return {String|Array|Boolean}
|
78
|
+
* @public
|
79
|
+
*/
|
80
|
+
|
81
|
+
Accepts.prototype.type =
|
82
|
+
Accepts.prototype.types = function (types_) {
|
83
|
+
var types = types_
|
84
|
+
|
85
|
+
// support flattened arguments
|
86
|
+
if (types && !Array.isArray(types)) {
|
87
|
+
types = new Array(arguments.length)
|
88
|
+
for (var i = 0; i < types.length; i++) {
|
89
|
+
types[i] = arguments[i]
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
// no types, return all requested types
|
94
|
+
if (!types || types.length === 0) {
|
95
|
+
return this.negotiator.mediaTypes()
|
96
|
+
}
|
97
|
+
|
98
|
+
if (!this.headers.accept) return types[0];
|
99
|
+
var mimes = types.map(extToMime);
|
100
|
+
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime));
|
101
|
+
var first = accepts[0];
|
102
|
+
if (!first) return false;
|
103
|
+
return types[mimes.indexOf(first)];
|
104
|
+
}
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Return accepted encodings or best fit based on `encodings`.
|
108
|
+
*
|
109
|
+
* Given `Accept-Encoding: gzip, deflate`
|
110
|
+
* an array sorted by quality is returned:
|
111
|
+
*
|
112
|
+
* ['gzip', 'deflate']
|
113
|
+
*
|
114
|
+
* @param {String|Array} encodings...
|
115
|
+
* @return {String|Array}
|
116
|
+
* @public
|
117
|
+
*/
|
118
|
+
|
119
|
+
Accepts.prototype.encoding =
|
120
|
+
Accepts.prototype.encodings = function (encodings_) {
|
121
|
+
var encodings = encodings_
|
122
|
+
|
123
|
+
// support flattened arguments
|
124
|
+
if (encodings && !Array.isArray(encodings)) {
|
125
|
+
encodings = new Array(arguments.length)
|
126
|
+
for (var i = 0; i < encodings.length; i++) {
|
127
|
+
encodings[i] = arguments[i]
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
// no encodings, return all requested encodings
|
132
|
+
if (!encodings || encodings.length === 0) {
|
133
|
+
return this.negotiator.encodings()
|
134
|
+
}
|
135
|
+
|
136
|
+
return this.negotiator.encodings(encodings)[0] || false
|
137
|
+
}
|
138
|
+
|
139
|
+
/**
|
140
|
+
* Return accepted charsets or best fit based on `charsets`.
|
141
|
+
*
|
142
|
+
* Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5`
|
143
|
+
* an array sorted by quality is returned:
|
144
|
+
*
|
145
|
+
* ['utf-8', 'utf-7', 'iso-8859-1']
|
146
|
+
*
|
147
|
+
* @param {String|Array} charsets...
|
148
|
+
* @return {String|Array}
|
149
|
+
* @public
|
150
|
+
*/
|
151
|
+
|
152
|
+
Accepts.prototype.charset =
|
153
|
+
Accepts.prototype.charsets = function (charsets_) {
|
154
|
+
var charsets = charsets_
|
155
|
+
|
156
|
+
// support flattened arguments
|
157
|
+
if (charsets && !Array.isArray(charsets)) {
|
158
|
+
charsets = new Array(arguments.length)
|
159
|
+
for (var i = 0; i < charsets.length; i++) {
|
160
|
+
charsets[i] = arguments[i]
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
// no charsets, return all requested charsets
|
165
|
+
if (!charsets || charsets.length === 0) {
|
166
|
+
return this.negotiator.charsets()
|
167
|
+
}
|
168
|
+
|
169
|
+
return this.negotiator.charsets(charsets)[0] || false
|
170
|
+
}
|
171
|
+
|
172
|
+
/**
|
173
|
+
* Return accepted languages or best fit based on `langs`.
|
174
|
+
*
|
175
|
+
* Given `Accept-Language: en;q=0.8, es, pt`
|
176
|
+
* an array sorted by quality is returned:
|
177
|
+
*
|
178
|
+
* ['es', 'pt', 'en']
|
179
|
+
*
|
180
|
+
* @param {String|Array} langs...
|
181
|
+
* @return {Array|String}
|
182
|
+
* @public
|
183
|
+
*/
|
184
|
+
|
185
|
+
Accepts.prototype.lang =
|
186
|
+
Accepts.prototype.langs =
|
187
|
+
Accepts.prototype.language =
|
188
|
+
Accepts.prototype.languages = function (languages_) {
|
189
|
+
var languages = languages_
|
190
|
+
|
191
|
+
// support flattened arguments
|
192
|
+
if (languages && !Array.isArray(languages)) {
|
193
|
+
languages = new Array(arguments.length)
|
194
|
+
for (var i = 0; i < languages.length; i++) {
|
195
|
+
languages[i] = arguments[i]
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
// no languages, return all requested languages
|
200
|
+
if (!languages || languages.length === 0) {
|
201
|
+
return this.negotiator.languages()
|
202
|
+
}
|
203
|
+
|
204
|
+
return this.negotiator.languages(languages)[0] || false
|
205
|
+
}
|
206
|
+
|
207
|
+
/**
|
208
|
+
* Convert extnames to mime.
|
209
|
+
*
|
210
|
+
* @param {String} type
|
211
|
+
* @return {String}
|
212
|
+
* @private
|
213
|
+
*/
|
214
|
+
|
215
|
+
function extToMime(type) {
|
216
|
+
return type.indexOf('/') === -1
|
217
|
+
? mime.lookup(type)
|
218
|
+
: type
|
219
|
+
}
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Check if mime is valid.
|
223
|
+
*
|
224
|
+
* @param {String} type
|
225
|
+
* @return {String}
|
226
|
+
* @private
|
227
|
+
*/
|
228
|
+
|
229
|
+
function validMime(type) {
|
230
|
+
return typeof type === 'string';
|
231
|
+
}
|
data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/HISTORY.md
ADDED
@@ -0,0 +1,171 @@
|
|
1
|
+
2.1.7 / 2015-09-20
|
2
|
+
==================
|
3
|
+
|
4
|
+
* deps: mime-db@~1.19.0
|
5
|
+
- Add new mime types
|
6
|
+
|
7
|
+
2.1.6 / 2015-09-03
|
8
|
+
==================
|
9
|
+
|
10
|
+
* deps: mime-db@~1.18.0
|
11
|
+
- Add new mime types
|
12
|
+
|
13
|
+
2.1.5 / 2015-08-20
|
14
|
+
==================
|
15
|
+
|
16
|
+
* deps: mime-db@~1.17.0
|
17
|
+
- Add new mime types
|
18
|
+
|
19
|
+
2.1.4 / 2015-07-30
|
20
|
+
==================
|
21
|
+
|
22
|
+
* deps: mime-db@~1.16.0
|
23
|
+
- Add new mime types
|
24
|
+
|
25
|
+
2.1.3 / 2015-07-13
|
26
|
+
==================
|
27
|
+
|
28
|
+
* deps: mime-db@~1.15.0
|
29
|
+
- Add new mime types
|
30
|
+
|
31
|
+
2.1.2 / 2015-06-25
|
32
|
+
==================
|
33
|
+
|
34
|
+
* deps: mime-db@~1.14.0
|
35
|
+
- Add new mime types
|
36
|
+
|
37
|
+
2.1.1 / 2015-06-08
|
38
|
+
==================
|
39
|
+
|
40
|
+
* perf: fix deopt during mapping
|
41
|
+
|
42
|
+
2.1.0 / 2015-06-07
|
43
|
+
==================
|
44
|
+
|
45
|
+
* Fix incorrectly treating extension-less file name as extension
|
46
|
+
- i.e. `'path/to/json'` will no longer return `application/json`
|
47
|
+
* Fix `.charset(type)` to accept parameters
|
48
|
+
* Fix `.charset(type)` to match case-insensitive
|
49
|
+
* Improve generation of extension to MIME mapping
|
50
|
+
* Refactor internals for readability and no argument reassignment
|
51
|
+
* Prefer `application/*` MIME types from the same source
|
52
|
+
* Prefer any type over `application/octet-stream`
|
53
|
+
* deps: mime-db@~1.13.0
|
54
|
+
- Add nginx as a source
|
55
|
+
- Add new mime types
|
56
|
+
|
57
|
+
2.0.14 / 2015-06-06
|
58
|
+
===================
|
59
|
+
|
60
|
+
* deps: mime-db@~1.12.0
|
61
|
+
- Add new mime types
|
62
|
+
|
63
|
+
2.0.13 / 2015-05-31
|
64
|
+
===================
|
65
|
+
|
66
|
+
* deps: mime-db@~1.11.0
|
67
|
+
- Add new mime types
|
68
|
+
|
69
|
+
2.0.12 / 2015-05-19
|
70
|
+
===================
|
71
|
+
|
72
|
+
* deps: mime-db@~1.10.0
|
73
|
+
- Add new mime types
|
74
|
+
|
75
|
+
2.0.11 / 2015-05-05
|
76
|
+
===================
|
77
|
+
|
78
|
+
* deps: mime-db@~1.9.1
|
79
|
+
- Add new mime types
|
80
|
+
|
81
|
+
2.0.10 / 2015-03-13
|
82
|
+
===================
|
83
|
+
|
84
|
+
* deps: mime-db@~1.8.0
|
85
|
+
- Add new mime types
|
86
|
+
|
87
|
+
2.0.9 / 2015-02-09
|
88
|
+
==================
|
89
|
+
|
90
|
+
* deps: mime-db@~1.7.0
|
91
|
+
- Add new mime types
|
92
|
+
- Community extensions ownership transferred from `node-mime`
|
93
|
+
|
94
|
+
2.0.8 / 2015-01-29
|
95
|
+
==================
|
96
|
+
|
97
|
+
* deps: mime-db@~1.6.0
|
98
|
+
- Add new mime types
|
99
|
+
|
100
|
+
2.0.7 / 2014-12-30
|
101
|
+
==================
|
102
|
+
|
103
|
+
* deps: mime-db@~1.5.0
|
104
|
+
- Add new mime types
|
105
|
+
- Fix various invalid MIME type entries
|
106
|
+
|
107
|
+
2.0.6 / 2014-12-30
|
108
|
+
==================
|
109
|
+
|
110
|
+
* deps: mime-db@~1.4.0
|
111
|
+
- Add new mime types
|
112
|
+
- Fix various invalid MIME type entries
|
113
|
+
- Remove example template MIME types
|
114
|
+
|
115
|
+
2.0.5 / 2014-12-29
|
116
|
+
==================
|
117
|
+
|
118
|
+
* deps: mime-db@~1.3.1
|
119
|
+
- Fix missing extensions
|
120
|
+
|
121
|
+
2.0.4 / 2014-12-10
|
122
|
+
==================
|
123
|
+
|
124
|
+
* deps: mime-db@~1.3.0
|
125
|
+
- Add new mime types
|
126
|
+
|
127
|
+
2.0.3 / 2014-11-09
|
128
|
+
==================
|
129
|
+
|
130
|
+
* deps: mime-db@~1.2.0
|
131
|
+
- Add new mime types
|
132
|
+
|
133
|
+
2.0.2 / 2014-09-28
|
134
|
+
==================
|
135
|
+
|
136
|
+
* deps: mime-db@~1.1.0
|
137
|
+
- Add new mime types
|
138
|
+
- Add additional compressible
|
139
|
+
- Update charsets
|
140
|
+
|
141
|
+
2.0.1 / 2014-09-07
|
142
|
+
==================
|
143
|
+
|
144
|
+
* Support Node.js 0.6
|
145
|
+
|
146
|
+
2.0.0 / 2014-09-02
|
147
|
+
==================
|
148
|
+
|
149
|
+
* Use `mime-db`
|
150
|
+
* Remove `.define()`
|
151
|
+
|
152
|
+
1.0.2 / 2014-08-04
|
153
|
+
==================
|
154
|
+
|
155
|
+
* Set charset=utf-8 for `text/javascript`
|
156
|
+
|
157
|
+
1.0.1 / 2014-06-24
|
158
|
+
==================
|
159
|
+
|
160
|
+
* Add `text/jsx` type
|
161
|
+
|
162
|
+
1.0.0 / 2014-05-12
|
163
|
+
==================
|
164
|
+
|
165
|
+
* Return `false` for unknown types
|
166
|
+
* Set charset=utf-8 for `application/json`
|
167
|
+
|
168
|
+
0.1.0 / 2014-05-02
|
169
|
+
==================
|
170
|
+
|
171
|
+
* Initial release
|
data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/LICENSE
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
|
4
|
+
Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
+
a copy of this software and associated documentation files (the
|
8
|
+
'Software'), to deal in the Software without restriction, including
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
12
|
+
the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be
|
15
|
+
included in all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
20
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
21
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
22
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
23
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/README.md
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
# mime-types
|
2
|
+
|
3
|
+
[![NPM Version][npm-image]][npm-url]
|
4
|
+
[![NPM Downloads][downloads-image]][downloads-url]
|
5
|
+
[![Node.js Version][node-version-image]][node-version-url]
|
6
|
+
[![Build Status][travis-image]][travis-url]
|
7
|
+
[![Test Coverage][coveralls-image]][coveralls-url]
|
8
|
+
|
9
|
+
The ultimate javascript content-type utility.
|
10
|
+
|
11
|
+
Similar to [node-mime](https://github.com/broofa/node-mime), except:
|
12
|
+
|
13
|
+
- __No fallbacks.__ Instead of naively returning the first available type, `mime-types` simply returns `false`,
|
14
|
+
so do `var type = mime.lookup('unrecognized') || 'application/octet-stream'`.
|
15
|
+
- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`.
|
16
|
+
- Additional mime types are added such as jade and stylus via [mime-db](https://github.com/jshttp/mime-db)
|
17
|
+
- No `.define()` functionality
|
18
|
+
|
19
|
+
Otherwise, the API is compatible.
|
20
|
+
|
21
|
+
## Install
|
22
|
+
|
23
|
+
```sh
|
24
|
+
$ npm install mime-types
|
25
|
+
```
|
26
|
+
|
27
|
+
## Adding Types
|
28
|
+
|
29
|
+
All mime types are based on [mime-db](https://github.com/jshttp/mime-db),
|
30
|
+
so open a PR there if you'd like to add mime types.
|
31
|
+
|
32
|
+
## API
|
33
|
+
|
34
|
+
```js
|
35
|
+
var mime = require('mime-types')
|
36
|
+
```
|
37
|
+
|
38
|
+
All functions return `false` if input is invalid or not found.
|
39
|
+
|
40
|
+
### mime.lookup(path)
|
41
|
+
|
42
|
+
Lookup the content-type associated with a file.
|
43
|
+
|
44
|
+
```js
|
45
|
+
mime.lookup('json') // 'application/json'
|
46
|
+
mime.lookup('.md') // 'text/x-markdown'
|
47
|
+
mime.lookup('file.html') // 'text/html'
|
48
|
+
mime.lookup('folder/file.js') // 'application/javascript'
|
49
|
+
mime.lookup('folder/.htaccess') // false
|
50
|
+
|
51
|
+
mime.lookup('cats') // false
|
52
|
+
```
|
53
|
+
|
54
|
+
### mime.contentType(type)
|
55
|
+
|
56
|
+
Create a full content-type header given a content-type or extension.
|
57
|
+
|
58
|
+
```js
|
59
|
+
mime.contentType('markdown') // 'text/x-markdown; charset=utf-8'
|
60
|
+
mime.contentType('file.json') // 'application/json; charset=utf-8'
|
61
|
+
|
62
|
+
// from a full path
|
63
|
+
mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8'
|
64
|
+
```
|
65
|
+
|
66
|
+
### mime.extension(type)
|
67
|
+
|
68
|
+
Get the default extension for a content-type.
|
69
|
+
|
70
|
+
```js
|
71
|
+
mime.extension('application/octet-stream') // 'bin'
|
72
|
+
```
|
73
|
+
|
74
|
+
### mime.charset(type)
|
75
|
+
|
76
|
+
Lookup the implied default charset of a content-type.
|
77
|
+
|
78
|
+
```js
|
79
|
+
mime.charset('text/x-markdown') // 'UTF-8'
|
80
|
+
```
|
81
|
+
|
82
|
+
### var type = mime.types[extension]
|
83
|
+
|
84
|
+
A map of content-types by extension.
|
85
|
+
|
86
|
+
### [extensions...] = mime.extensions[type]
|
87
|
+
|
88
|
+
A map of extensions by content-type.
|
89
|
+
|
90
|
+
## License
|
91
|
+
|
92
|
+
[MIT](LICENSE)
|
93
|
+
|
94
|
+
[npm-image]: https://img.shields.io/npm/v/mime-types.svg
|
95
|
+
[npm-url]: https://npmjs.org/package/mime-types
|
96
|
+
[node-version-image]: https://img.shields.io/node/v/mime-types.svg
|
97
|
+
[node-version-url]: http://nodejs.org/download/
|
98
|
+
[travis-image]: https://img.shields.io/travis/jshttp/mime-types/master.svg
|
99
|
+
[travis-url]: https://travis-ci.org/jshttp/mime-types
|
100
|
+
[coveralls-image]: https://img.shields.io/coveralls/jshttp/mime-types/master.svg
|
101
|
+
[coveralls-url]: https://coveralls.io/r/jshttp/mime-types
|
102
|
+
[downloads-image]: https://img.shields.io/npm/dm/mime-types.svg
|
103
|
+
[downloads-url]: https://npmjs.org/package/mime-types
|
data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/mime-types/index.js
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
/*!
|
2
|
+
* mime-types
|
3
|
+
* Copyright(c) 2014 Jonathan Ong
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
5
|
+
* MIT Licensed
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict'
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Module dependencies.
|
12
|
+
* @private
|
13
|
+
*/
|
14
|
+
|
15
|
+
var db = require('mime-db')
|
16
|
+
var extname = require('path').extname
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Module variables.
|
20
|
+
* @private
|
21
|
+
*/
|
22
|
+
|
23
|
+
var extractTypeRegExp = /^\s*([^;\s]*)(?:;|\s|$)/
|
24
|
+
var textTypeRegExp = /^text\//i
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Module exports.
|
28
|
+
* @public
|
29
|
+
*/
|
30
|
+
|
31
|
+
exports.charset = charset
|
32
|
+
exports.charsets = { lookup: charset }
|
33
|
+
exports.contentType = contentType
|
34
|
+
exports.extension = extension
|
35
|
+
exports.extensions = Object.create(null)
|
36
|
+
exports.lookup = lookup
|
37
|
+
exports.types = Object.create(null)
|
38
|
+
|
39
|
+
// Populate the extensions/types maps
|
40
|
+
populateMaps(exports.extensions, exports.types)
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Get the default charset for a MIME type.
|
44
|
+
*
|
45
|
+
* @param {string} type
|
46
|
+
* @return {boolean|string}
|
47
|
+
*/
|
48
|
+
|
49
|
+
function charset(type) {
|
50
|
+
if (!type || typeof type !== 'string') {
|
51
|
+
return false
|
52
|
+
}
|
53
|
+
|
54
|
+
// TODO: use media-typer
|
55
|
+
var match = extractTypeRegExp.exec(type)
|
56
|
+
var mime = match && db[match[1].toLowerCase()]
|
57
|
+
|
58
|
+
if (mime && mime.charset) {
|
59
|
+
return mime.charset
|
60
|
+
}
|
61
|
+
|
62
|
+
// default text/* to utf-8
|
63
|
+
if (match && textTypeRegExp.test(match[1])) {
|
64
|
+
return 'UTF-8'
|
65
|
+
}
|
66
|
+
|
67
|
+
return false
|
68
|
+
}
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Create a full Content-Type header given a MIME type or extension.
|
72
|
+
*
|
73
|
+
* @param {string} str
|
74
|
+
* @return {boolean|string}
|
75
|
+
*/
|
76
|
+
|
77
|
+
function contentType(str) {
|
78
|
+
// TODO: should this even be in this module?
|
79
|
+
if (!str || typeof str !== 'string') {
|
80
|
+
return false
|
81
|
+
}
|
82
|
+
|
83
|
+
var mime = str.indexOf('/') === -1
|
84
|
+
? exports.lookup(str)
|
85
|
+
: str
|
86
|
+
|
87
|
+
if (!mime) {
|
88
|
+
return false
|
89
|
+
}
|
90
|
+
|
91
|
+
// TODO: use content-type or other module
|
92
|
+
if (mime.indexOf('charset') === -1) {
|
93
|
+
var charset = exports.charset(mime)
|
94
|
+
if (charset) mime += '; charset=' + charset.toLowerCase()
|
95
|
+
}
|
96
|
+
|
97
|
+
return mime
|
98
|
+
}
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Get the default extension for a MIME type.
|
102
|
+
*
|
103
|
+
* @param {string} type
|
104
|
+
* @return {boolean|string}
|
105
|
+
*/
|
106
|
+
|
107
|
+
function extension(type) {
|
108
|
+
if (!type || typeof type !== 'string') {
|
109
|
+
return false
|
110
|
+
}
|
111
|
+
|
112
|
+
// TODO: use media-typer
|
113
|
+
var match = extractTypeRegExp.exec(type)
|
114
|
+
|
115
|
+
// get extensions
|
116
|
+
var exts = match && exports.extensions[match[1].toLowerCase()]
|
117
|
+
|
118
|
+
if (!exts || !exts.length) {
|
119
|
+
return false
|
120
|
+
}
|
121
|
+
|
122
|
+
return exts[0]
|
123
|
+
}
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Lookup the MIME type for a file path/extension.
|
127
|
+
*
|
128
|
+
* @param {string} path
|
129
|
+
* @return {boolean|string}
|
130
|
+
*/
|
131
|
+
|
132
|
+
function lookup(path) {
|
133
|
+
if (!path || typeof path !== 'string') {
|
134
|
+
return false
|
135
|
+
}
|
136
|
+
|
137
|
+
// get the extension ("ext" or ".ext" or full path)
|
138
|
+
var extension = extname('x.' + path)
|
139
|
+
.toLowerCase()
|
140
|
+
.substr(1)
|
141
|
+
|
142
|
+
if (!extension) {
|
143
|
+
return false
|
144
|
+
}
|
145
|
+
|
146
|
+
return exports.types[extension] || false
|
147
|
+
}
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Populate the extensions and types maps.
|
151
|
+
* @private
|
152
|
+
*/
|
153
|
+
|
154
|
+
function populateMaps(extensions, types) {
|
155
|
+
// source preference (least -> most)
|
156
|
+
var preference = ['nginx', 'apache', undefined, 'iana']
|
157
|
+
|
158
|
+
Object.keys(db).forEach(function forEachMimeType(type) {
|
159
|
+
var mime = db[type]
|
160
|
+
var exts = mime.extensions
|
161
|
+
|
162
|
+
if (!exts || !exts.length) {
|
163
|
+
return
|
164
|
+
}
|
165
|
+
|
166
|
+
// mime -> extensions
|
167
|
+
extensions[type] = exts
|
168
|
+
|
169
|
+
// extension -> mime
|
170
|
+
for (var i = 0; i < exts.length; i++) {
|
171
|
+
var extension = exts[i]
|
172
|
+
|
173
|
+
if (types[extension]) {
|
174
|
+
var from = preference.indexOf(db[types[extension]].source)
|
175
|
+
var to = preference.indexOf(mime.source)
|
176
|
+
|
177
|
+
if (types[extension] !== 'application/octet-stream'
|
178
|
+
&& from > to || (from === to && types[extension].substr(0, 12) === 'application/')) {
|
179
|
+
// skip the remapping
|
180
|
+
continue
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
// set the extension -> mime
|
185
|
+
types[extension] = type
|
186
|
+
}
|
187
|
+
})
|
188
|
+
}
|