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,274 @@
|
|
1
|
+
1.19.0 / 2015-09-17
|
2
|
+
===================
|
3
|
+
|
4
|
+
* Add `application/vnd.3gpp-prose-pc3ch+xml`
|
5
|
+
* Add `application/vnd.3gpp.srvcc-info+xml`
|
6
|
+
* Add `application/vnd.apple.pkpass`
|
7
|
+
* Add `application/vnd.drive+json`
|
8
|
+
|
9
|
+
1.18.0 / 2015-09-03
|
10
|
+
===================
|
11
|
+
|
12
|
+
* Add `application/pkcs12`
|
13
|
+
* Add `application/vnd.3gpp-prose+xml`
|
14
|
+
* Add `application/vnd.3gpp.mid-call+xml`
|
15
|
+
* Add `application/vnd.3gpp.state-and-event-info+xml`
|
16
|
+
* Add `application/vnd.anki`
|
17
|
+
* Add `application/vnd.firemonkeys.cloudcell`
|
18
|
+
* Add `application/vnd.openblox.game+xml`
|
19
|
+
* Add `application/vnd.openblox.game-binary`
|
20
|
+
|
21
|
+
1.17.0 / 2015-08-13
|
22
|
+
===================
|
23
|
+
|
24
|
+
* Add `application/x-msdos-program`
|
25
|
+
* Add `audio/g711-0`
|
26
|
+
* Add `image/vnd.mozilla.apng`
|
27
|
+
* Add extension `.exe` to `application/x-msdos-program`
|
28
|
+
|
29
|
+
1.16.0 / 2015-07-29
|
30
|
+
===================
|
31
|
+
|
32
|
+
* Add `application/vnd.uri-map`
|
33
|
+
|
34
|
+
1.15.0 / 2015-07-13
|
35
|
+
===================
|
36
|
+
|
37
|
+
* Add `application/x-httpd-php`
|
38
|
+
|
39
|
+
1.14.0 / 2015-06-25
|
40
|
+
===================
|
41
|
+
|
42
|
+
* Add `application/scim+json`
|
43
|
+
* Add `application/vnd.3gpp.ussd+xml`
|
44
|
+
* Add `application/vnd.biopax.rdf+xml`
|
45
|
+
* Add `text/x-processing`
|
46
|
+
|
47
|
+
1.13.0 / 2015-06-07
|
48
|
+
===================
|
49
|
+
|
50
|
+
* Add nginx as a source
|
51
|
+
* Add `application/x-cocoa`
|
52
|
+
* Add `application/x-java-archive-diff`
|
53
|
+
* Add `application/x-makeself`
|
54
|
+
* Add `application/x-perl`
|
55
|
+
* Add `application/x-pilot`
|
56
|
+
* Add `application/x-redhat-package-manager`
|
57
|
+
* Add `application/x-sea`
|
58
|
+
* Add `audio/x-m4a`
|
59
|
+
* Add `audio/x-realaudio`
|
60
|
+
* Add `image/x-jng`
|
61
|
+
* Add `text/mathml`
|
62
|
+
|
63
|
+
1.12.0 / 2015-06-05
|
64
|
+
===================
|
65
|
+
|
66
|
+
* Add `application/bdoc`
|
67
|
+
* Add `application/vnd.hyperdrive+json`
|
68
|
+
* Add `application/x-bdoc`
|
69
|
+
* Add extension `.rtf` to `text/rtf`
|
70
|
+
|
71
|
+
1.11.0 / 2015-05-31
|
72
|
+
===================
|
73
|
+
|
74
|
+
* Add `audio/wav`
|
75
|
+
* Add `audio/wave`
|
76
|
+
* Add extension `.litcoffee` to `text/coffeescript`
|
77
|
+
* Add extension `.sfd-hdstx` to `application/vnd.hydrostatix.sof-data`
|
78
|
+
* Add extension `.n-gage` to `application/vnd.nokia.n-gage.symbian.install`
|
79
|
+
|
80
|
+
1.10.0 / 2015-05-19
|
81
|
+
===================
|
82
|
+
|
83
|
+
* Add `application/vnd.balsamiq.bmpr`
|
84
|
+
* Add `application/vnd.microsoft.portable-executable`
|
85
|
+
* Add `application/x-ns-proxy-autoconfig`
|
86
|
+
|
87
|
+
1.9.1 / 2015-04-19
|
88
|
+
==================
|
89
|
+
|
90
|
+
* Remove `.json` extension from `application/manifest+json`
|
91
|
+
- This is causing bugs downstream
|
92
|
+
|
93
|
+
1.9.0 / 2015-04-19
|
94
|
+
==================
|
95
|
+
|
96
|
+
* Add `application/manifest+json`
|
97
|
+
* Add `application/vnd.micro+json`
|
98
|
+
* Add `image/vnd.zbrush.pcx`
|
99
|
+
* Add `image/x-ms-bmp`
|
100
|
+
|
101
|
+
1.8.0 / 2015-03-13
|
102
|
+
==================
|
103
|
+
|
104
|
+
* Add `application/vnd.citationstyles.style+xml`
|
105
|
+
* Add `application/vnd.fastcopy-disk-image`
|
106
|
+
* Add `application/vnd.gov.sk.xmldatacontainer+xml`
|
107
|
+
* Add extension `.jsonld` to `application/ld+json`
|
108
|
+
|
109
|
+
1.7.0 / 2015-02-08
|
110
|
+
==================
|
111
|
+
|
112
|
+
* Add `application/vnd.gerber`
|
113
|
+
* Add `application/vnd.msa-disk-image`
|
114
|
+
|
115
|
+
1.6.1 / 2015-02-05
|
116
|
+
==================
|
117
|
+
|
118
|
+
* Community extensions ownership transferred from `node-mime`
|
119
|
+
|
120
|
+
1.6.0 / 2015-01-29
|
121
|
+
==================
|
122
|
+
|
123
|
+
* Add `application/jose`
|
124
|
+
* Add `application/jose+json`
|
125
|
+
* Add `application/json-seq`
|
126
|
+
* Add `application/jwk+json`
|
127
|
+
* Add `application/jwk-set+json`
|
128
|
+
* Add `application/jwt`
|
129
|
+
* Add `application/rdap+json`
|
130
|
+
* Add `application/vnd.gov.sk.e-form+xml`
|
131
|
+
* Add `application/vnd.ims.imsccv1p3`
|
132
|
+
|
133
|
+
1.5.0 / 2014-12-30
|
134
|
+
==================
|
135
|
+
|
136
|
+
* Add `application/vnd.oracle.resource+json`
|
137
|
+
* Fix various invalid MIME type entries
|
138
|
+
- `application/mbox+xml`
|
139
|
+
- `application/oscp-response`
|
140
|
+
- `application/vwg-multiplexed`
|
141
|
+
- `audio/g721`
|
142
|
+
|
143
|
+
1.4.0 / 2014-12-21
|
144
|
+
==================
|
145
|
+
|
146
|
+
* Add `application/vnd.ims.imsccv1p2`
|
147
|
+
* Fix various invalid MIME type entries
|
148
|
+
- `application/vnd-acucobol`
|
149
|
+
- `application/vnd-curl`
|
150
|
+
- `application/vnd-dart`
|
151
|
+
- `application/vnd-dxr`
|
152
|
+
- `application/vnd-fdf`
|
153
|
+
- `application/vnd-mif`
|
154
|
+
- `application/vnd-sema`
|
155
|
+
- `application/vnd-wap-wmlc`
|
156
|
+
- `application/vnd.adobe.flash-movie`
|
157
|
+
- `application/vnd.dece-zip`
|
158
|
+
- `application/vnd.dvb_service`
|
159
|
+
- `application/vnd.micrografx-igx`
|
160
|
+
- `application/vnd.sealed-doc`
|
161
|
+
- `application/vnd.sealed-eml`
|
162
|
+
- `application/vnd.sealed-mht`
|
163
|
+
- `application/vnd.sealed-ppt`
|
164
|
+
- `application/vnd.sealed-tiff`
|
165
|
+
- `application/vnd.sealed-xls`
|
166
|
+
- `application/vnd.sealedmedia.softseal-html`
|
167
|
+
- `application/vnd.sealedmedia.softseal-pdf`
|
168
|
+
- `application/vnd.wap-slc`
|
169
|
+
- `application/vnd.wap-wbxml`
|
170
|
+
- `audio/vnd.sealedmedia.softseal-mpeg`
|
171
|
+
- `image/vnd-djvu`
|
172
|
+
- `image/vnd-svf`
|
173
|
+
- `image/vnd-wap-wbmp`
|
174
|
+
- `image/vnd.sealed-png`
|
175
|
+
- `image/vnd.sealedmedia.softseal-gif`
|
176
|
+
- `image/vnd.sealedmedia.softseal-jpg`
|
177
|
+
- `model/vnd-dwf`
|
178
|
+
- `model/vnd.parasolid.transmit-binary`
|
179
|
+
- `model/vnd.parasolid.transmit-text`
|
180
|
+
- `text/vnd-a`
|
181
|
+
- `text/vnd-curl`
|
182
|
+
- `text/vnd.wap-wml`
|
183
|
+
* Remove example template MIME types
|
184
|
+
- `application/example`
|
185
|
+
- `audio/example`
|
186
|
+
- `image/example`
|
187
|
+
- `message/example`
|
188
|
+
- `model/example`
|
189
|
+
- `multipart/example`
|
190
|
+
- `text/example`
|
191
|
+
- `video/example`
|
192
|
+
|
193
|
+
1.3.1 / 2014-12-16
|
194
|
+
==================
|
195
|
+
|
196
|
+
* Fix missing extensions
|
197
|
+
- `application/json5`
|
198
|
+
- `text/hjson`
|
199
|
+
|
200
|
+
1.3.0 / 2014-12-07
|
201
|
+
==================
|
202
|
+
|
203
|
+
* Add `application/a2l`
|
204
|
+
* Add `application/aml`
|
205
|
+
* Add `application/atfx`
|
206
|
+
* Add `application/atxml`
|
207
|
+
* Add `application/cdfx+xml`
|
208
|
+
* Add `application/dii`
|
209
|
+
* Add `application/json5`
|
210
|
+
* Add `application/lxf`
|
211
|
+
* Add `application/mf4`
|
212
|
+
* Add `application/vnd.apache.thrift.compact`
|
213
|
+
* Add `application/vnd.apache.thrift.json`
|
214
|
+
* Add `application/vnd.coffeescript`
|
215
|
+
* Add `application/vnd.enphase.envoy`
|
216
|
+
* Add `application/vnd.ims.imsccv1p1`
|
217
|
+
* Add `text/csv-schema`
|
218
|
+
* Add `text/hjson`
|
219
|
+
* Add `text/markdown`
|
220
|
+
* Add `text/yaml`
|
221
|
+
|
222
|
+
1.2.0 / 2014-11-09
|
223
|
+
==================
|
224
|
+
|
225
|
+
* Add `application/cea`
|
226
|
+
* Add `application/dit`
|
227
|
+
* Add `application/vnd.gov.sk.e-form+zip`
|
228
|
+
* Add `application/vnd.tmd.mediaflex.api+xml`
|
229
|
+
* Type `application/epub+zip` is now IANA-registered
|
230
|
+
|
231
|
+
1.1.2 / 2014-10-23
|
232
|
+
==================
|
233
|
+
|
234
|
+
* Rebuild database for `application/x-www-form-urlencoded` change
|
235
|
+
|
236
|
+
1.1.1 / 2014-10-20
|
237
|
+
==================
|
238
|
+
|
239
|
+
* Mark `application/x-www-form-urlencoded` as compressible.
|
240
|
+
|
241
|
+
1.1.0 / 2014-09-28
|
242
|
+
==================
|
243
|
+
|
244
|
+
* Add `application/font-woff2`
|
245
|
+
|
246
|
+
1.0.3 / 2014-09-25
|
247
|
+
==================
|
248
|
+
|
249
|
+
* Fix engine requirement in package
|
250
|
+
|
251
|
+
1.0.2 / 2014-09-25
|
252
|
+
==================
|
253
|
+
|
254
|
+
* Add `application/coap-group+json`
|
255
|
+
* Add `application/dcd`
|
256
|
+
* Add `application/vnd.apache.thrift.binary`
|
257
|
+
* Add `image/vnd.tencent.tap`
|
258
|
+
* Mark all JSON-derived types as compressible
|
259
|
+
* Update `text/vtt` data
|
260
|
+
|
261
|
+
1.0.1 / 2014-08-30
|
262
|
+
==================
|
263
|
+
|
264
|
+
* Fix extension ordering
|
265
|
+
|
266
|
+
1.0.0 / 2014-08-30
|
267
|
+
==================
|
268
|
+
|
269
|
+
* Add `application/atf`
|
270
|
+
* Add `application/merge-patch+json`
|
271
|
+
* Add `multipart/x-mixed-replace`
|
272
|
+
* Add `source: 'apache'` metadata
|
273
|
+
* Add `source: 'iana'` metadata
|
274
|
+
* Remove badly-assumed charset data
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
The MIT License (MIT)
|
3
|
+
|
4
|
+
Copyright (c) 2014 Jonathan Ong me@jongleberry.com
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# mime-db
|
2
|
+
|
3
|
+
[![NPM Version][npm-version-image]][npm-url]
|
4
|
+
[![NPM Downloads][npm-downloads-image]][npm-url]
|
5
|
+
[![Node.js Version][node-image]][node-url]
|
6
|
+
[![Build Status][travis-image]][travis-url]
|
7
|
+
[![Coverage Status][coveralls-image]][coveralls-url]
|
8
|
+
|
9
|
+
This is a database of all mime types.
|
10
|
+
It consists of a single, public JSON file and does not include any logic,
|
11
|
+
allowing it to remain as un-opinionated as possible with an API.
|
12
|
+
It aggregates data from the following sources:
|
13
|
+
|
14
|
+
- http://www.iana.org/assignments/media-types/media-types.xhtml
|
15
|
+
- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
|
16
|
+
- http://hg.nginx.org/nginx/raw-file/default/conf/mime.types
|
17
|
+
|
18
|
+
## Installation
|
19
|
+
|
20
|
+
```bash
|
21
|
+
npm install mime-db
|
22
|
+
```
|
23
|
+
|
24
|
+
### Database Download
|
25
|
+
|
26
|
+
If you're crazy enough to use this in the browser, you can just grab the
|
27
|
+
JSON file using [RawGit](https://rawgit.com/). It is recommended to replace
|
28
|
+
`master` with [a release tag](https://github.com/jshttp/mime-db/tags) as the
|
29
|
+
JSON format may change in the future.
|
30
|
+
|
31
|
+
```
|
32
|
+
https://cdn.rawgit.com/jshttp/mime-db/master/db.json
|
33
|
+
```
|
34
|
+
|
35
|
+
## Usage
|
36
|
+
|
37
|
+
```js
|
38
|
+
var db = require('mime-db');
|
39
|
+
|
40
|
+
// grab data on .js files
|
41
|
+
var data = db['application/javascript'];
|
42
|
+
```
|
43
|
+
|
44
|
+
## Data Structure
|
45
|
+
|
46
|
+
The JSON file is a map lookup for lowercased mime types.
|
47
|
+
Each mime type has the following properties:
|
48
|
+
|
49
|
+
- `.source` - where the mime type is defined.
|
50
|
+
If not set, it's probably a custom media type.
|
51
|
+
- `apache` - [Apache common media types](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types)
|
52
|
+
- `iana` - [IANA-defined media types](http://www.iana.org/assignments/media-types/media-types.xhtml)
|
53
|
+
- `nginx` - [nginx media types](http://hg.nginx.org/nginx/raw-file/default/conf/mime.types)
|
54
|
+
- `.extensions[]` - known extensions associated with this mime type.
|
55
|
+
- `.compressible` - whether a file of this type is can be gzipped.
|
56
|
+
- `.charset` - the default charset associated with this type, if any.
|
57
|
+
|
58
|
+
If unknown, every property could be `undefined`.
|
59
|
+
|
60
|
+
## Contributing
|
61
|
+
|
62
|
+
To edit the database, only make PRs against `src/custom.json` or
|
63
|
+
`src/custom-suffix.json`.
|
64
|
+
|
65
|
+
To update the build, run `npm run build`.
|
66
|
+
|
67
|
+
## Adding Custom Media Types
|
68
|
+
|
69
|
+
The best way to get new media types included in this library is to register
|
70
|
+
them with the IANA. The community registration procedure is outlined in
|
71
|
+
[RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types
|
72
|
+
registered with the IANA are automatically pulled into this library.
|
73
|
+
|
74
|
+
[npm-version-image]: https://img.shields.io/npm/v/mime-db.svg
|
75
|
+
[npm-downloads-image]: https://img.shields.io/npm/dm/mime-db.svg
|
76
|
+
[npm-url]: https://npmjs.org/package/mime-db
|
77
|
+
[travis-image]: https://img.shields.io/travis/jshttp/mime-db/master.svg
|
78
|
+
[travis-url]: https://travis-ci.org/jshttp/mime-db
|
79
|
+
[coveralls-image]: https://img.shields.io/coveralls/jshttp/mime-db/master.svg
|
80
|
+
[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master
|
81
|
+
[node-image]: https://img.shields.io/node/v/mime-db.svg
|
82
|
+
[node-url]: http://nodejs.org/download/
|