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,94 @@
|
|
1
|
+
{
|
2
|
+
"name": "mime-db",
|
3
|
+
"description": "Media Type Database",
|
4
|
+
"version": "1.19.0",
|
5
|
+
"contributors": [
|
6
|
+
{
|
7
|
+
"name": "Douglas Christopher Wilson",
|
8
|
+
"email": "doug@somethingdoug.com"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"name": "Jonathan Ong",
|
12
|
+
"email": "me@jongleberry.com",
|
13
|
+
"url": "http://jongleberry.com"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"name": "Robert Kieffer",
|
17
|
+
"email": "robert@broofa.com",
|
18
|
+
"url": "http://github.com/broofa"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"license": "MIT",
|
22
|
+
"keywords": [
|
23
|
+
"mime",
|
24
|
+
"db",
|
25
|
+
"type",
|
26
|
+
"types",
|
27
|
+
"database",
|
28
|
+
"charset",
|
29
|
+
"charsets"
|
30
|
+
],
|
31
|
+
"repository": {
|
32
|
+
"type": "git",
|
33
|
+
"url": "git+https://github.com/jshttp/mime-db.git"
|
34
|
+
},
|
35
|
+
"devDependencies": {
|
36
|
+
"bluebird": "2.10.0",
|
37
|
+
"co": "4.6.0",
|
38
|
+
"cogent": "1.0.1",
|
39
|
+
"csv-parse": "1.0.0",
|
40
|
+
"gnode": "0.1.1",
|
41
|
+
"istanbul": "0.3.20",
|
42
|
+
"mocha": "1.21.5",
|
43
|
+
"raw-body": "2.1.3",
|
44
|
+
"stream-to-array": "2"
|
45
|
+
},
|
46
|
+
"files": [
|
47
|
+
"HISTORY.md",
|
48
|
+
"LICENSE",
|
49
|
+
"README.md",
|
50
|
+
"db.json",
|
51
|
+
"index.js"
|
52
|
+
],
|
53
|
+
"engines": {
|
54
|
+
"node": ">= 0.6"
|
55
|
+
},
|
56
|
+
"scripts": {
|
57
|
+
"build": "node scripts/build",
|
58
|
+
"fetch": "gnode scripts/fetch-apache && gnode scripts/fetch-iana && gnode scripts/fetch-nginx",
|
59
|
+
"test": "mocha --reporter spec --bail --check-leaks test/",
|
60
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
|
61
|
+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
|
62
|
+
"update": "npm run fetch && npm run build"
|
63
|
+
},
|
64
|
+
"gitHead": "46a40f0524a01fb3075a7ecde92e8e04fc93d599",
|
65
|
+
"bugs": {
|
66
|
+
"url": "https://github.com/jshttp/mime-db/issues"
|
67
|
+
},
|
68
|
+
"homepage": "https://github.com/jshttp/mime-db",
|
69
|
+
"_id": "mime-db@1.19.0",
|
70
|
+
"_shasum": "496a18198a7ce8244534e25bb102b74fb420fd56",
|
71
|
+
"_from": "mime-db@>=1.19.0 <1.20.0",
|
72
|
+
"_npmVersion": "1.4.28",
|
73
|
+
"_npmUser": {
|
74
|
+
"name": "dougwilson",
|
75
|
+
"email": "doug@somethingdoug.com"
|
76
|
+
},
|
77
|
+
"maintainers": [
|
78
|
+
{
|
79
|
+
"name": "jongleberry",
|
80
|
+
"email": "jonathanrichardong@gmail.com"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"name": "dougwilson",
|
84
|
+
"email": "doug@somethingdoug.com"
|
85
|
+
}
|
86
|
+
],
|
87
|
+
"dist": {
|
88
|
+
"shasum": "496a18198a7ce8244534e25bb102b74fb420fd56",
|
89
|
+
"tarball": "http://registry.npmjs.org/mime-db/-/mime-db-1.19.0.tgz"
|
90
|
+
},
|
91
|
+
"directories": {},
|
92
|
+
"_resolved": "http://registry.npmjs.org/mime-db/-/mime-db-1.19.0.tgz",
|
93
|
+
"readme": "ERROR: No README data found!"
|
94
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
{
|
2
|
+
"name": "mime-types",
|
3
|
+
"description": "The ultimate javascript content-type utility.",
|
4
|
+
"version": "2.1.7",
|
5
|
+
"contributors": [
|
6
|
+
{
|
7
|
+
"name": "Douglas Christopher Wilson",
|
8
|
+
"email": "doug@somethingdoug.com"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"name": "Jeremiah Senkpiel",
|
12
|
+
"email": "fishrock123@rocketmail.com",
|
13
|
+
"url": "https://searchbeam.jit.su"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"name": "Jonathan Ong",
|
17
|
+
"email": "me@jongleberry.com",
|
18
|
+
"url": "http://jongleberry.com"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"license": "MIT",
|
22
|
+
"keywords": [
|
23
|
+
"mime",
|
24
|
+
"types"
|
25
|
+
],
|
26
|
+
"repository": {
|
27
|
+
"type": "git",
|
28
|
+
"url": "git+https://github.com/jshttp/mime-types.git"
|
29
|
+
},
|
30
|
+
"dependencies": {
|
31
|
+
"mime-db": "~1.19.0"
|
32
|
+
},
|
33
|
+
"devDependencies": {
|
34
|
+
"istanbul": "0.3.20",
|
35
|
+
"mocha": "~1.21.5"
|
36
|
+
},
|
37
|
+
"files": [
|
38
|
+
"HISTORY.md",
|
39
|
+
"LICENSE",
|
40
|
+
"index.js"
|
41
|
+
],
|
42
|
+
"engines": {
|
43
|
+
"node": ">= 0.6"
|
44
|
+
},
|
45
|
+
"scripts": {
|
46
|
+
"test": "mocha --reporter spec test/test.js",
|
47
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/test.js",
|
48
|
+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot test/test.js"
|
49
|
+
},
|
50
|
+
"gitHead": "43f860c7df4a70246272194d601348865d550298",
|
51
|
+
"bugs": {
|
52
|
+
"url": "https://github.com/jshttp/mime-types/issues"
|
53
|
+
},
|
54
|
+
"homepage": "https://github.com/jshttp/mime-types",
|
55
|
+
"_id": "mime-types@2.1.7",
|
56
|
+
"_shasum": "ff603970e3c731ef6f7f4df3c9a0f463a13c2755",
|
57
|
+
"_from": "mime-types@>=2.1.7 <2.2.0",
|
58
|
+
"_npmVersion": "1.4.28",
|
59
|
+
"_npmUser": {
|
60
|
+
"name": "dougwilson",
|
61
|
+
"email": "doug@somethingdoug.com"
|
62
|
+
},
|
63
|
+
"maintainers": [
|
64
|
+
{
|
65
|
+
"name": "jongleberry",
|
66
|
+
"email": "jonathanrichardong@gmail.com"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"name": "fishrock123",
|
70
|
+
"email": "fishrock123@rocketmail.com"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"name": "dougwilson",
|
74
|
+
"email": "doug@somethingdoug.com"
|
75
|
+
}
|
76
|
+
],
|
77
|
+
"dist": {
|
78
|
+
"shasum": "ff603970e3c731ef6f7f4df3c9a0f463a13c2755",
|
79
|
+
"tarball": "http://registry.npmjs.org/mime-types/-/mime-types-2.1.7.tgz"
|
80
|
+
},
|
81
|
+
"directories": {},
|
82
|
+
"_resolved": "http://registry.npmjs.org/mime-types/-/mime-types-2.1.7.tgz",
|
83
|
+
"readme": "ERROR: No README data found!"
|
84
|
+
}
|
data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/HISTORY.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
0.5.3 / 2015-05-10
|
2
|
+
==================
|
3
|
+
|
4
|
+
* Fix media type parameter matching to be case-insensitive
|
5
|
+
|
6
|
+
0.5.2 / 2015-05-06
|
7
|
+
==================
|
8
|
+
|
9
|
+
* Fix comparing media types with quoted values
|
10
|
+
* Fix splitting media types with quoted commas
|
11
|
+
|
12
|
+
0.5.1 / 2015-02-14
|
13
|
+
==================
|
14
|
+
|
15
|
+
* Fix preference sorting to be stable for long acceptable lists
|
16
|
+
|
17
|
+
0.5.0 / 2014-12-18
|
18
|
+
==================
|
19
|
+
|
20
|
+
* Fix list return order when large accepted list
|
21
|
+
* Fix missing identity encoding when q=0 exists
|
22
|
+
* Remove dynamic building of Negotiator class
|
23
|
+
|
24
|
+
0.4.9 / 2014-10-14
|
25
|
+
==================
|
26
|
+
|
27
|
+
* Fix error when media type has invalid parameter
|
28
|
+
|
29
|
+
0.4.8 / 2014-09-28
|
30
|
+
==================
|
31
|
+
|
32
|
+
* Fix all negotiations to be case-insensitive
|
33
|
+
* Stable sort preferences of same quality according to client order
|
34
|
+
* Support Node.js 0.6
|
35
|
+
|
36
|
+
0.4.7 / 2014-06-24
|
37
|
+
==================
|
38
|
+
|
39
|
+
* Handle invalid provided languages
|
40
|
+
* Handle invalid provided media types
|
41
|
+
|
42
|
+
0.4.6 / 2014-06-11
|
43
|
+
==================
|
44
|
+
|
45
|
+
* Order by specificity when quality is the same
|
46
|
+
|
47
|
+
0.4.5 / 2014-05-29
|
48
|
+
==================
|
49
|
+
|
50
|
+
* Fix regression in empty header handling
|
51
|
+
|
52
|
+
0.4.4 / 2014-05-29
|
53
|
+
==================
|
54
|
+
|
55
|
+
* Fix behaviors when headers are not present
|
56
|
+
|
57
|
+
0.4.3 / 2014-04-16
|
58
|
+
==================
|
59
|
+
|
60
|
+
* Handle slashes on media params correctly
|
61
|
+
|
62
|
+
0.4.2 / 2014-02-28
|
63
|
+
==================
|
64
|
+
|
65
|
+
* Fix media type sorting
|
66
|
+
* Handle media types params strictly
|
67
|
+
|
68
|
+
0.4.1 / 2014-01-16
|
69
|
+
==================
|
70
|
+
|
71
|
+
* Use most specific matches
|
72
|
+
|
73
|
+
0.4.0 / 2014-01-09
|
74
|
+
==================
|
75
|
+
|
76
|
+
* Remove preferred prefix from methods
|
data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/LICENSE
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2012-2014 Federico Romero
|
4
|
+
Copyright (c) 2012-2014 Isaac Z. Schlueter
|
5
|
+
Copyright (c) 2014-2015 Douglas Christopher Wilson
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
a copy of this software and associated documentation files (the
|
9
|
+
'Software'), to deal in the Software without restriction, including
|
10
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
the following conditions:
|
14
|
+
|
15
|
+
The above copyright notice and this permission notice shall be
|
16
|
+
included in all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
21
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
22
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
23
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
24
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/README.md
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
# negotiator
|
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
|
+
An HTTP content negotiator for Node.js
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
```sh
|
14
|
+
$ npm install negotiator
|
15
|
+
```
|
16
|
+
|
17
|
+
## API
|
18
|
+
|
19
|
+
```js
|
20
|
+
var Negotiator = require('negotiator')
|
21
|
+
```
|
22
|
+
|
23
|
+
### Accept Negotiation
|
24
|
+
|
25
|
+
```js
|
26
|
+
availableMediaTypes = ['text/html', 'text/plain', 'application/json']
|
27
|
+
|
28
|
+
// The negotiator constructor receives a request object
|
29
|
+
negotiator = new Negotiator(request)
|
30
|
+
|
31
|
+
// Let's say Accept header is 'text/html, application/*;q=0.2, image/jpeg;q=0.8'
|
32
|
+
|
33
|
+
negotiator.mediaTypes()
|
34
|
+
// -> ['text/html', 'image/jpeg', 'application/*']
|
35
|
+
|
36
|
+
negotiator.mediaTypes(availableMediaTypes)
|
37
|
+
// -> ['text/html', 'application/json']
|
38
|
+
|
39
|
+
negotiator.mediaType(availableMediaTypes)
|
40
|
+
// -> 'text/html'
|
41
|
+
```
|
42
|
+
|
43
|
+
You can check a working example at `examples/accept.js`.
|
44
|
+
|
45
|
+
#### Methods
|
46
|
+
|
47
|
+
##### mediaType()
|
48
|
+
|
49
|
+
Returns the most preferred media type from the client.
|
50
|
+
|
51
|
+
##### mediaType(availableMediaType)
|
52
|
+
|
53
|
+
Returns the most preferred media type from a list of available media types.
|
54
|
+
|
55
|
+
##### mediaTypes()
|
56
|
+
|
57
|
+
Returns an array of preferred media types ordered by the client preference.
|
58
|
+
|
59
|
+
##### mediaTypes(availableMediaTypes)
|
60
|
+
|
61
|
+
Returns an array of preferred media types ordered by priority from a list of
|
62
|
+
available media types.
|
63
|
+
|
64
|
+
### Accept-Language Negotiation
|
65
|
+
|
66
|
+
```js
|
67
|
+
negotiator = new Negotiator(request)
|
68
|
+
|
69
|
+
availableLanguages = 'en', 'es', 'fr'
|
70
|
+
|
71
|
+
// Let's say Accept-Language header is 'en;q=0.8, es, pt'
|
72
|
+
|
73
|
+
negotiator.languages()
|
74
|
+
// -> ['es', 'pt', 'en']
|
75
|
+
|
76
|
+
negotiator.languages(availableLanguages)
|
77
|
+
// -> ['es', 'en']
|
78
|
+
|
79
|
+
language = negotiator.language(availableLanguages)
|
80
|
+
// -> 'es'
|
81
|
+
```
|
82
|
+
|
83
|
+
You can check a working example at `examples/language.js`.
|
84
|
+
|
85
|
+
#### Methods
|
86
|
+
|
87
|
+
##### language()
|
88
|
+
|
89
|
+
Returns the most preferred language from the client.
|
90
|
+
|
91
|
+
##### language(availableLanguages)
|
92
|
+
|
93
|
+
Returns the most preferred language from a list of available languages.
|
94
|
+
|
95
|
+
##### languages()
|
96
|
+
|
97
|
+
Returns an array of preferred languages ordered by the client preference.
|
98
|
+
|
99
|
+
##### languages(availableLanguages)
|
100
|
+
|
101
|
+
Returns an array of preferred languages ordered by priority from a list of
|
102
|
+
available languages.
|
103
|
+
|
104
|
+
### Accept-Charset Negotiation
|
105
|
+
|
106
|
+
```js
|
107
|
+
availableCharsets = ['utf-8', 'iso-8859-1', 'iso-8859-5']
|
108
|
+
|
109
|
+
negotiator = new Negotiator(request)
|
110
|
+
|
111
|
+
// Let's say Accept-Charset header is 'utf-8, iso-8859-1;q=0.8, utf-7;q=0.2'
|
112
|
+
|
113
|
+
negotiator.charsets()
|
114
|
+
// -> ['utf-8', 'iso-8859-1', 'utf-7']
|
115
|
+
|
116
|
+
negotiator.charsets(availableCharsets)
|
117
|
+
// -> ['utf-8', 'iso-8859-1']
|
118
|
+
|
119
|
+
negotiator.charset(availableCharsets)
|
120
|
+
// -> 'utf-8'
|
121
|
+
```
|
122
|
+
|
123
|
+
You can check a working example at `examples/charset.js`.
|
124
|
+
|
125
|
+
#### Methods
|
126
|
+
|
127
|
+
##### charset()
|
128
|
+
|
129
|
+
Returns the most preferred charset from the client.
|
130
|
+
|
131
|
+
##### charset(availableCharsets)
|
132
|
+
|
133
|
+
Returns the most preferred charset from a list of available charsets.
|
134
|
+
|
135
|
+
##### charsets()
|
136
|
+
|
137
|
+
Returns an array of preferred charsets ordered by the client preference.
|
138
|
+
|
139
|
+
##### charsets(availableCharsets)
|
140
|
+
|
141
|
+
Returns an array of preferred charsets ordered by priority from a list of
|
142
|
+
available charsets.
|
143
|
+
|
144
|
+
### Accept-Encoding Negotiation
|
145
|
+
|
146
|
+
```js
|
147
|
+
availableEncodings = ['identity', 'gzip']
|
148
|
+
|
149
|
+
negotiator = new Negotiator(request)
|
150
|
+
|
151
|
+
// Let's say Accept-Encoding header is 'gzip, compress;q=0.2, identity;q=0.5'
|
152
|
+
|
153
|
+
negotiator.encodings()
|
154
|
+
// -> ['gzip', 'identity', 'compress']
|
155
|
+
|
156
|
+
negotiator.encodings(availableEncodings)
|
157
|
+
// -> ['gzip', 'identity']
|
158
|
+
|
159
|
+
negotiator.encoding(availableEncodings)
|
160
|
+
// -> 'gzip'
|
161
|
+
```
|
162
|
+
|
163
|
+
You can check a working example at `examples/encoding.js`.
|
164
|
+
|
165
|
+
#### Methods
|
166
|
+
|
167
|
+
##### encoding()
|
168
|
+
|
169
|
+
Returns the most preferred encoding from the client.
|
170
|
+
|
171
|
+
##### encoding(availableEncodings)
|
172
|
+
|
173
|
+
Returns the most preferred encoding from a list of available encodings.
|
174
|
+
|
175
|
+
##### encodings()
|
176
|
+
|
177
|
+
Returns an array of preferred encodings ordered by the client preference.
|
178
|
+
|
179
|
+
##### encodings(availableEncodings)
|
180
|
+
|
181
|
+
Returns an array of preferred encodings ordered by priority from a list of
|
182
|
+
available encodings.
|
183
|
+
|
184
|
+
## See Also
|
185
|
+
|
186
|
+
The [accepts](https://npmjs.org/package/accepts#readme) module builds on
|
187
|
+
this module and provides an alternative interface, mime type validation,
|
188
|
+
and more.
|
189
|
+
|
190
|
+
## License
|
191
|
+
|
192
|
+
[MIT](LICENSE)
|
193
|
+
|
194
|
+
[npm-image]: https://img.shields.io/npm/v/negotiator.svg
|
195
|
+
[npm-url]: https://npmjs.org/package/negotiator
|
196
|
+
[node-version-image]: https://img.shields.io/node/v/negotiator.svg
|
197
|
+
[node-version-url]: http://nodejs.org/download/
|
198
|
+
[travis-image]: https://img.shields.io/travis/jshttp/negotiator/master.svg
|
199
|
+
[travis-url]: https://travis-ci.org/jshttp/negotiator
|
200
|
+
[coveralls-image]: https://img.shields.io/coveralls/jshttp/negotiator/master.svg
|
201
|
+
[coveralls-url]: https://coveralls.io/r/jshttp/negotiator?branch=master
|
202
|
+
[downloads-image]: https://img.shields.io/npm/dm/negotiator.svg
|
203
|
+
[downloads-url]: https://npmjs.org/package/negotiator
|
data/lib/webpack_rails/node_modules/express/node_modules/accepts/node_modules/negotiator/index.js
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
|
2
|
+
var preferredCharsets = require('./lib/charset');
|
3
|
+
var preferredEncodings = require('./lib/encoding');
|
4
|
+
var preferredLanguages = require('./lib/language');
|
5
|
+
var preferredMediaTypes = require('./lib/mediaType');
|
6
|
+
|
7
|
+
module.exports = Negotiator;
|
8
|
+
Negotiator.Negotiator = Negotiator;
|
9
|
+
|
10
|
+
function Negotiator(request) {
|
11
|
+
if (!(this instanceof Negotiator)) {
|
12
|
+
return new Negotiator(request);
|
13
|
+
}
|
14
|
+
|
15
|
+
this.request = request;
|
16
|
+
}
|
17
|
+
|
18
|
+
Negotiator.prototype.charset = function charset(available) {
|
19
|
+
var set = this.charsets(available);
|
20
|
+
return set && set[0];
|
21
|
+
};
|
22
|
+
|
23
|
+
Negotiator.prototype.charsets = function charsets(available) {
|
24
|
+
return preferredCharsets(this.request.headers['accept-charset'], available);
|
25
|
+
};
|
26
|
+
|
27
|
+
Negotiator.prototype.encoding = function encoding(available) {
|
28
|
+
var set = this.encodings(available);
|
29
|
+
return set && set[0];
|
30
|
+
};
|
31
|
+
|
32
|
+
Negotiator.prototype.encodings = function encodings(available) {
|
33
|
+
return preferredEncodings(this.request.headers['accept-encoding'], available);
|
34
|
+
};
|
35
|
+
|
36
|
+
Negotiator.prototype.language = function language(available) {
|
37
|
+
var set = this.languages(available);
|
38
|
+
return set && set[0];
|
39
|
+
};
|
40
|
+
|
41
|
+
Negotiator.prototype.languages = function languages(available) {
|
42
|
+
return preferredLanguages(this.request.headers['accept-language'], available);
|
43
|
+
};
|
44
|
+
|
45
|
+
Negotiator.prototype.mediaType = function mediaType(available) {
|
46
|
+
var set = this.mediaTypes(available);
|
47
|
+
return set && set[0];
|
48
|
+
};
|
49
|
+
|
50
|
+
Negotiator.prototype.mediaTypes = function mediaTypes(available) {
|
51
|
+
return preferredMediaTypes(this.request.headers.accept, available);
|
52
|
+
};
|
53
|
+
|
54
|
+
// Backwards compatibility
|
55
|
+
Negotiator.prototype.preferredCharset = Negotiator.prototype.charset;
|
56
|
+
Negotiator.prototype.preferredCharsets = Negotiator.prototype.charsets;
|
57
|
+
Negotiator.prototype.preferredEncoding = Negotiator.prototype.encoding;
|
58
|
+
Negotiator.prototype.preferredEncodings = Negotiator.prototype.encodings;
|
59
|
+
Negotiator.prototype.preferredLanguage = Negotiator.prototype.language;
|
60
|
+
Negotiator.prototype.preferredLanguages = Negotiator.prototype.languages;
|
61
|
+
Negotiator.prototype.preferredMediaType = Negotiator.prototype.mediaType;
|
62
|
+
Negotiator.prototype.preferredMediaTypes = Negotiator.prototype.mediaTypes;
|
@@ -0,0 +1,102 @@
|
|
1
|
+
module.exports = preferredCharsets;
|
2
|
+
preferredCharsets.preferredCharsets = preferredCharsets;
|
3
|
+
|
4
|
+
function parseAcceptCharset(accept) {
|
5
|
+
var accepts = accept.split(',');
|
6
|
+
|
7
|
+
for (var i = 0, j = 0; i < accepts.length; i++) {
|
8
|
+
var charset = parseCharset(accepts[i].trim(), i);
|
9
|
+
|
10
|
+
if (charset) {
|
11
|
+
accepts[j++] = charset;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
// trim accepts
|
16
|
+
accepts.length = j;
|
17
|
+
|
18
|
+
return accepts;
|
19
|
+
}
|
20
|
+
|
21
|
+
function parseCharset(s, i) {
|
22
|
+
var match = s.match(/^\s*(\S+?)\s*(?:;(.*))?$/);
|
23
|
+
if (!match) return null;
|
24
|
+
|
25
|
+
var charset = match[1];
|
26
|
+
var q = 1;
|
27
|
+
if (match[2]) {
|
28
|
+
var params = match[2].split(';')
|
29
|
+
for (var i = 0; i < params.length; i ++) {
|
30
|
+
var p = params[i].trim().split('=');
|
31
|
+
if (p[0] === 'q') {
|
32
|
+
q = parseFloat(p[1]);
|
33
|
+
break;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
return {
|
39
|
+
charset: charset,
|
40
|
+
q: q,
|
41
|
+
i: i
|
42
|
+
};
|
43
|
+
}
|
44
|
+
|
45
|
+
function getCharsetPriority(charset, accepted, index) {
|
46
|
+
var priority = {o: -1, q: 0, s: 0};
|
47
|
+
|
48
|
+
for (var i = 0; i < accepted.length; i++) {
|
49
|
+
var spec = specify(charset, accepted[i], index);
|
50
|
+
|
51
|
+
if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) {
|
52
|
+
priority = spec;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
return priority;
|
57
|
+
}
|
58
|
+
|
59
|
+
function specify(charset, spec, index) {
|
60
|
+
var s = 0;
|
61
|
+
if(spec.charset.toLowerCase() === charset.toLowerCase()){
|
62
|
+
s |= 1;
|
63
|
+
} else if (spec.charset !== '*' ) {
|
64
|
+
return null
|
65
|
+
}
|
66
|
+
|
67
|
+
return {
|
68
|
+
i: index,
|
69
|
+
o: spec.i,
|
70
|
+
q: spec.q,
|
71
|
+
s: s
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
function preferredCharsets(accept, provided) {
|
76
|
+
// RFC 2616 sec 14.2: no header = *
|
77
|
+
var accepts = parseAcceptCharset(accept === undefined ? '*' : accept || '');
|
78
|
+
|
79
|
+
if (!provided) {
|
80
|
+
// sorted list of all charsets
|
81
|
+
return accepts.filter(isQuality).sort(compareSpecs).map(function getCharset(spec) {
|
82
|
+
return spec.charset;
|
83
|
+
});
|
84
|
+
}
|
85
|
+
|
86
|
+
var priorities = provided.map(function getPriority(type, index) {
|
87
|
+
return getCharsetPriority(type, accepts, index);
|
88
|
+
});
|
89
|
+
|
90
|
+
// sorted list of accepted charsets
|
91
|
+
return priorities.filter(isQuality).sort(compareSpecs).map(function getCharset(priority) {
|
92
|
+
return provided[priorities.indexOf(priority)];
|
93
|
+
});
|
94
|
+
}
|
95
|
+
|
96
|
+
function compareSpecs(a, b) {
|
97
|
+
return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
function isQuality(spec) {
|
101
|
+
return spec.q > 0;
|
102
|
+
}
|