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,125 @@
|
|
1
|
+
/**
|
2
|
+
* Helpers.
|
3
|
+
*/
|
4
|
+
|
5
|
+
var s = 1000;
|
6
|
+
var m = s * 60;
|
7
|
+
var h = m * 60;
|
8
|
+
var d = h * 24;
|
9
|
+
var y = d * 365.25;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Parse or format the given `val`.
|
13
|
+
*
|
14
|
+
* Options:
|
15
|
+
*
|
16
|
+
* - `long` verbose formatting [false]
|
17
|
+
*
|
18
|
+
* @param {String|Number} val
|
19
|
+
* @param {Object} options
|
20
|
+
* @return {String|Number}
|
21
|
+
* @api public
|
22
|
+
*/
|
23
|
+
|
24
|
+
module.exports = function(val, options){
|
25
|
+
options = options || {};
|
26
|
+
if ('string' == typeof val) return parse(val);
|
27
|
+
return options.long
|
28
|
+
? long(val)
|
29
|
+
: short(val);
|
30
|
+
};
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Parse the given `str` and return milliseconds.
|
34
|
+
*
|
35
|
+
* @param {String} str
|
36
|
+
* @return {Number}
|
37
|
+
* @api private
|
38
|
+
*/
|
39
|
+
|
40
|
+
function parse(str) {
|
41
|
+
str = '' + str;
|
42
|
+
if (str.length > 10000) return;
|
43
|
+
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
|
44
|
+
if (!match) return;
|
45
|
+
var n = parseFloat(match[1]);
|
46
|
+
var type = (match[2] || 'ms').toLowerCase();
|
47
|
+
switch (type) {
|
48
|
+
case 'years':
|
49
|
+
case 'year':
|
50
|
+
case 'yrs':
|
51
|
+
case 'yr':
|
52
|
+
case 'y':
|
53
|
+
return n * y;
|
54
|
+
case 'days':
|
55
|
+
case 'day':
|
56
|
+
case 'd':
|
57
|
+
return n * d;
|
58
|
+
case 'hours':
|
59
|
+
case 'hour':
|
60
|
+
case 'hrs':
|
61
|
+
case 'hr':
|
62
|
+
case 'h':
|
63
|
+
return n * h;
|
64
|
+
case 'minutes':
|
65
|
+
case 'minute':
|
66
|
+
case 'mins':
|
67
|
+
case 'min':
|
68
|
+
case 'm':
|
69
|
+
return n * m;
|
70
|
+
case 'seconds':
|
71
|
+
case 'second':
|
72
|
+
case 'secs':
|
73
|
+
case 'sec':
|
74
|
+
case 's':
|
75
|
+
return n * s;
|
76
|
+
case 'milliseconds':
|
77
|
+
case 'millisecond':
|
78
|
+
case 'msecs':
|
79
|
+
case 'msec':
|
80
|
+
case 'ms':
|
81
|
+
return n;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Short format for `ms`.
|
87
|
+
*
|
88
|
+
* @param {Number} ms
|
89
|
+
* @return {String}
|
90
|
+
* @api private
|
91
|
+
*/
|
92
|
+
|
93
|
+
function short(ms) {
|
94
|
+
if (ms >= d) return Math.round(ms / d) + 'd';
|
95
|
+
if (ms >= h) return Math.round(ms / h) + 'h';
|
96
|
+
if (ms >= m) return Math.round(ms / m) + 'm';
|
97
|
+
if (ms >= s) return Math.round(ms / s) + 's';
|
98
|
+
return ms + 'ms';
|
99
|
+
}
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Long format for `ms`.
|
103
|
+
*
|
104
|
+
* @param {Number} ms
|
105
|
+
* @return {String}
|
106
|
+
* @api private
|
107
|
+
*/
|
108
|
+
|
109
|
+
function long(ms) {
|
110
|
+
return plural(ms, d, 'day')
|
111
|
+
|| plural(ms, h, 'hour')
|
112
|
+
|| plural(ms, m, 'minute')
|
113
|
+
|| plural(ms, s, 'second')
|
114
|
+
|| ms + ' ms';
|
115
|
+
}
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Pluralization helper.
|
119
|
+
*/
|
120
|
+
|
121
|
+
function plural(ms, n, name) {
|
122
|
+
if (ms < n) return;
|
123
|
+
if (ms < n * 1.5) return Math.floor(ms / n) + ' ' + name;
|
124
|
+
return Math.ceil(ms / n) + ' ' + name + 's';
|
125
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
{
|
2
|
+
"name": "ms",
|
3
|
+
"version": "0.7.1",
|
4
|
+
"description": "Tiny ms conversion utility",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "git://github.com/guille/ms.js.git"
|
8
|
+
},
|
9
|
+
"main": "./index",
|
10
|
+
"devDependencies": {
|
11
|
+
"mocha": "*",
|
12
|
+
"expect.js": "*",
|
13
|
+
"serve": "*"
|
14
|
+
},
|
15
|
+
"component": {
|
16
|
+
"scripts": {
|
17
|
+
"ms/index.js": "index.js"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"gitHead": "713dcf26d9e6fd9dbc95affe7eff9783b7f1b909",
|
21
|
+
"bugs": {
|
22
|
+
"url": "https://github.com/guille/ms.js/issues"
|
23
|
+
},
|
24
|
+
"homepage": "https://github.com/guille/ms.js",
|
25
|
+
"_id": "ms@0.7.1",
|
26
|
+
"scripts": {},
|
27
|
+
"_shasum": "9cd13c03adbff25b65effde7ce864ee952017098",
|
28
|
+
"_from": "ms@0.7.1",
|
29
|
+
"_npmVersion": "2.7.5",
|
30
|
+
"_nodeVersion": "0.12.2",
|
31
|
+
"_npmUser": {
|
32
|
+
"name": "rauchg",
|
33
|
+
"email": "rauchg@gmail.com"
|
34
|
+
},
|
35
|
+
"maintainers": [
|
36
|
+
{
|
37
|
+
"name": "rauchg",
|
38
|
+
"email": "rauchg@gmail.com"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"dist": {
|
42
|
+
"shasum": "9cd13c03adbff25b65effde7ce864ee952017098",
|
43
|
+
"tarball": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz"
|
44
|
+
},
|
45
|
+
"directories": {},
|
46
|
+
"_resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz"
|
47
|
+
}
|
@@ -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,114 @@
|
|
1
|
+
# Statuses
|
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
|
+
HTTP status utility for node.
|
10
|
+
|
11
|
+
## API
|
12
|
+
|
13
|
+
```js
|
14
|
+
var status = require('statuses');
|
15
|
+
```
|
16
|
+
|
17
|
+
### var code = status(Integer || String)
|
18
|
+
|
19
|
+
If `Integer` or `String` is a valid HTTP code or status message, then the appropriate `code` will be returned. Otherwise, an error will be thrown.
|
20
|
+
|
21
|
+
```js
|
22
|
+
status(403) // => 'Forbidden'
|
23
|
+
status('403') // => 'Forbidden'
|
24
|
+
status('forbidden') // => 403
|
25
|
+
status('Forbidden') // => 403
|
26
|
+
status(306) // throws, as it's not supported by node.js
|
27
|
+
```
|
28
|
+
|
29
|
+
### status.codes
|
30
|
+
|
31
|
+
Returns an array of all the status codes as `Integer`s.
|
32
|
+
|
33
|
+
### var msg = status[code]
|
34
|
+
|
35
|
+
Map of `code` to `status message`. `undefined` for invalid `code`s.
|
36
|
+
|
37
|
+
```js
|
38
|
+
status[404] // => 'Not Found'
|
39
|
+
```
|
40
|
+
|
41
|
+
### var code = status[msg]
|
42
|
+
|
43
|
+
Map of `status message` to `code`. `msg` can either be title-cased or lower-cased. `undefined` for invalid `status message`s.
|
44
|
+
|
45
|
+
```js
|
46
|
+
status['not found'] // => 404
|
47
|
+
status['Not Found'] // => 404
|
48
|
+
```
|
49
|
+
|
50
|
+
### status.redirect[code]
|
51
|
+
|
52
|
+
Returns `true` if a status code is a valid redirect status.
|
53
|
+
|
54
|
+
```js
|
55
|
+
status.redirect[200] // => undefined
|
56
|
+
status.redirect[301] // => true
|
57
|
+
```
|
58
|
+
|
59
|
+
### status.empty[code]
|
60
|
+
|
61
|
+
Returns `true` if a status code expects an empty body.
|
62
|
+
|
63
|
+
```js
|
64
|
+
status.empty[200] // => undefined
|
65
|
+
status.empty[204] // => true
|
66
|
+
status.empty[304] // => true
|
67
|
+
```
|
68
|
+
|
69
|
+
### status.retry[code]
|
70
|
+
|
71
|
+
Returns `true` if you should retry the rest.
|
72
|
+
|
73
|
+
```js
|
74
|
+
status.retry[501] // => undefined
|
75
|
+
status.retry[503] // => true
|
76
|
+
```
|
77
|
+
|
78
|
+
### statuses/codes.json
|
79
|
+
|
80
|
+
```js
|
81
|
+
var codes = require('statuses/codes.json');
|
82
|
+
```
|
83
|
+
|
84
|
+
This is a JSON file of the status codes
|
85
|
+
taken from `require('http').STATUS_CODES`.
|
86
|
+
This is saved so that codes are consistent even in older node.js versions.
|
87
|
+
For example, `308` will be added in v0.12.
|
88
|
+
|
89
|
+
## Adding Status Codes
|
90
|
+
|
91
|
+
The status codes are primarily sourced from http://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv.
|
92
|
+
Additionally, custom codes are added from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes.
|
93
|
+
These are added manually in the `lib/*.json` files.
|
94
|
+
If you would like to add a status code, add it to the appropriate JSON file.
|
95
|
+
|
96
|
+
To rebuild `codes.json`, run the following:
|
97
|
+
|
98
|
+
```bash
|
99
|
+
# update src/iana.json
|
100
|
+
npm run update
|
101
|
+
# build codes.json
|
102
|
+
npm run build
|
103
|
+
```
|
104
|
+
|
105
|
+
[npm-image]: https://img.shields.io/npm/v/statuses.svg?style=flat
|
106
|
+
[npm-url]: https://npmjs.org/package/statuses
|
107
|
+
[node-version-image]: http://img.shields.io/badge/node.js-%3E%3D_0.6-brightgreen.svg?style=flat
|
108
|
+
[node-version-url]: http://nodejs.org/download/
|
109
|
+
[travis-image]: https://img.shields.io/travis/jshttp/statuses.svg?style=flat
|
110
|
+
[travis-url]: https://travis-ci.org/jshttp/statuses
|
111
|
+
[coveralls-image]: https://img.shields.io/coveralls/jshttp/statuses.svg?style=flat
|
112
|
+
[coveralls-url]: https://coveralls.io/r/jshttp/statuses?branch=master
|
113
|
+
[downloads-image]: http://img.shields.io/npm/dm/statuses.svg?style=flat
|
114
|
+
[downloads-url]: https://npmjs.org/package/statuses
|
data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/codes.json
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
{
|
2
|
+
"100": "Continue",
|
3
|
+
"101": "Switching Protocols",
|
4
|
+
"102": "Processing",
|
5
|
+
"200": "OK",
|
6
|
+
"201": "Created",
|
7
|
+
"202": "Accepted",
|
8
|
+
"203": "Non-Authoritative Information",
|
9
|
+
"204": "No Content",
|
10
|
+
"205": "Reset Content",
|
11
|
+
"206": "Partial Content",
|
12
|
+
"207": "Multi-Status",
|
13
|
+
"208": "Already Reported",
|
14
|
+
"226": "IM Used",
|
15
|
+
"300": "Multiple Choices",
|
16
|
+
"301": "Moved Permanently",
|
17
|
+
"302": "Found",
|
18
|
+
"303": "See Other",
|
19
|
+
"304": "Not Modified",
|
20
|
+
"305": "Use Proxy",
|
21
|
+
"306": "(Unused)",
|
22
|
+
"307": "Temporary Redirect",
|
23
|
+
"308": "Permanent Redirect",
|
24
|
+
"400": "Bad Request",
|
25
|
+
"401": "Unauthorized",
|
26
|
+
"402": "Payment Required",
|
27
|
+
"403": "Forbidden",
|
28
|
+
"404": "Not Found",
|
29
|
+
"405": "Method Not Allowed",
|
30
|
+
"406": "Not Acceptable",
|
31
|
+
"407": "Proxy Authentication Required",
|
32
|
+
"408": "Request Timeout",
|
33
|
+
"409": "Conflict",
|
34
|
+
"410": "Gone",
|
35
|
+
"411": "Length Required",
|
36
|
+
"412": "Precondition Failed",
|
37
|
+
"413": "Payload Too Large",
|
38
|
+
"414": "URI Too Long",
|
39
|
+
"415": "Unsupported Media Type",
|
40
|
+
"416": "Range Not Satisfiable",
|
41
|
+
"417": "Expectation Failed",
|
42
|
+
"418": "I'm a teapot",
|
43
|
+
"422": "Unprocessable Entity",
|
44
|
+
"423": "Locked",
|
45
|
+
"424": "Failed Dependency",
|
46
|
+
"425": "Unordered Collection",
|
47
|
+
"426": "Upgrade Required",
|
48
|
+
"428": "Precondition Required",
|
49
|
+
"429": "Too Many Requests",
|
50
|
+
"431": "Request Header Fields Too Large",
|
51
|
+
"451": "Unavailable For Legal Reasons",
|
52
|
+
"500": "Internal Server Error",
|
53
|
+
"501": "Not Implemented",
|
54
|
+
"502": "Bad Gateway",
|
55
|
+
"503": "Service Unavailable",
|
56
|
+
"504": "Gateway Timeout",
|
57
|
+
"505": "HTTP Version Not Supported",
|
58
|
+
"506": "Variant Also Negotiates",
|
59
|
+
"507": "Insufficient Storage",
|
60
|
+
"508": "Loop Detected",
|
61
|
+
"509": "Bandwidth Limit Exceeded",
|
62
|
+
"510": "Not Extended",
|
63
|
+
"511": "Network Authentication Required"
|
64
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
|
2
|
+
var codes = require('./codes.json');
|
3
|
+
|
4
|
+
module.exports = status;
|
5
|
+
|
6
|
+
// [Integer...]
|
7
|
+
status.codes = Object.keys(codes).map(function (code) {
|
8
|
+
code = ~~code;
|
9
|
+
var msg = codes[code];
|
10
|
+
status[code] = msg;
|
11
|
+
status[msg] = status[msg.toLowerCase()] = code;
|
12
|
+
return code;
|
13
|
+
});
|
14
|
+
|
15
|
+
// status codes for redirects
|
16
|
+
status.redirect = {
|
17
|
+
300: true,
|
18
|
+
301: true,
|
19
|
+
302: true,
|
20
|
+
303: true,
|
21
|
+
305: true,
|
22
|
+
307: true,
|
23
|
+
308: true,
|
24
|
+
};
|
25
|
+
|
26
|
+
// status codes for empty bodies
|
27
|
+
status.empty = {
|
28
|
+
204: true,
|
29
|
+
205: true,
|
30
|
+
304: true,
|
31
|
+
};
|
32
|
+
|
33
|
+
// status codes for when you should retry the request
|
34
|
+
status.retry = {
|
35
|
+
502: true,
|
36
|
+
503: true,
|
37
|
+
504: true,
|
38
|
+
};
|
39
|
+
|
40
|
+
function status(code) {
|
41
|
+
if (typeof code === 'number') {
|
42
|
+
if (!status[code]) throw new Error('invalid status code: ' + code);
|
43
|
+
return code;
|
44
|
+
}
|
45
|
+
|
46
|
+
if (typeof code !== 'string') {
|
47
|
+
throw new TypeError('code must be a number or string');
|
48
|
+
}
|
49
|
+
|
50
|
+
// '403'
|
51
|
+
var n = parseInt(code, 10)
|
52
|
+
if (!isNaN(n)) {
|
53
|
+
if (!status[n]) throw new Error('invalid status code: ' + n);
|
54
|
+
return n;
|
55
|
+
}
|
56
|
+
|
57
|
+
n = status[code.toLowerCase()];
|
58
|
+
if (!n) throw new Error('invalid status message: "' + code + '"');
|
59
|
+
return n;
|
60
|
+
}
|
data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/statuses/package.json
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
{
|
2
|
+
"name": "statuses",
|
3
|
+
"description": "HTTP status utility",
|
4
|
+
"version": "1.2.1",
|
5
|
+
"author": {
|
6
|
+
"name": "Jonathan Ong",
|
7
|
+
"email": "me@jongleberry.com",
|
8
|
+
"url": "http://jongleberry.com"
|
9
|
+
},
|
10
|
+
"repository": {
|
11
|
+
"type": "git",
|
12
|
+
"url": "git+https://github.com/jshttp/statuses.git"
|
13
|
+
},
|
14
|
+
"license": "MIT",
|
15
|
+
"keywords": [
|
16
|
+
"http",
|
17
|
+
"status",
|
18
|
+
"code"
|
19
|
+
],
|
20
|
+
"files": [
|
21
|
+
"index.js",
|
22
|
+
"codes.json",
|
23
|
+
"LICENSE"
|
24
|
+
],
|
25
|
+
"devDependencies": {
|
26
|
+
"csv-parse": "0.0.6",
|
27
|
+
"istanbul": "0",
|
28
|
+
"mocha": "1",
|
29
|
+
"stream-to-array": "2"
|
30
|
+
},
|
31
|
+
"scripts": {
|
32
|
+
"build": "node scripts/build.js",
|
33
|
+
"update": "node scripts/update.js",
|
34
|
+
"test": "mocha --reporter spec --bail --check-leaks",
|
35
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks",
|
36
|
+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks"
|
37
|
+
},
|
38
|
+
"gitHead": "49e6ac7ae4c63ee8186f56cb52112a7eeda28ed7",
|
39
|
+
"bugs": {
|
40
|
+
"url": "https://github.com/jshttp/statuses/issues"
|
41
|
+
},
|
42
|
+
"homepage": "https://github.com/jshttp/statuses",
|
43
|
+
"_id": "statuses@1.2.1",
|
44
|
+
"_shasum": "dded45cc18256d51ed40aec142489d5c61026d28",
|
45
|
+
"_from": "statuses@>=1.2.1 <1.3.0",
|
46
|
+
"_npmVersion": "1.4.28",
|
47
|
+
"_npmUser": {
|
48
|
+
"name": "dougwilson",
|
49
|
+
"email": "doug@somethingdoug.com"
|
50
|
+
},
|
51
|
+
"maintainers": [
|
52
|
+
{
|
53
|
+
"name": "jongleberry",
|
54
|
+
"email": "jonathanrichardong@gmail.com"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"name": "tjholowaychuk",
|
58
|
+
"email": "tj@vision-media.ca"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"name": "dougwilson",
|
62
|
+
"email": "doug@somethingdoug.com"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"name": "shtylman",
|
66
|
+
"email": "shtylman@gmail.com"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"name": "mscdex",
|
70
|
+
"email": "mscdex@mscdex.net"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"name": "fishrock123",
|
74
|
+
"email": "fishrock123@rocketmail.com"
|
75
|
+
}
|
76
|
+
],
|
77
|
+
"dist": {
|
78
|
+
"shasum": "dded45cc18256d51ed40aec142489d5c61026d28",
|
79
|
+
"tarball": "http://registry.npmjs.org/statuses/-/statuses-1.2.1.tgz"
|
80
|
+
},
|
81
|
+
"directories": {},
|
82
|
+
"_resolved": "http://registry.npmjs.org/statuses/-/statuses-1.2.1.tgz",
|
83
|
+
"readme": "ERROR: No README data found!"
|
84
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
{
|
2
|
+
"name": "send",
|
3
|
+
"description": "Better streaming static file server with Range and conditional-GET support",
|
4
|
+
"version": "0.13.0",
|
5
|
+
"author": {
|
6
|
+
"name": "TJ Holowaychuk",
|
7
|
+
"email": "tj@vision-media.ca"
|
8
|
+
},
|
9
|
+
"contributors": [
|
10
|
+
{
|
11
|
+
"name": "Douglas Christopher Wilson",
|
12
|
+
"email": "doug@somethingdoug.com"
|
13
|
+
}
|
14
|
+
],
|
15
|
+
"license": "MIT",
|
16
|
+
"repository": {
|
17
|
+
"type": "git",
|
18
|
+
"url": "git+https://github.com/pillarjs/send.git"
|
19
|
+
},
|
20
|
+
"keywords": [
|
21
|
+
"static",
|
22
|
+
"file",
|
23
|
+
"server"
|
24
|
+
],
|
25
|
+
"dependencies": {
|
26
|
+
"debug": "~2.2.0",
|
27
|
+
"depd": "~1.0.1",
|
28
|
+
"destroy": "1.0.3",
|
29
|
+
"escape-html": "1.0.2",
|
30
|
+
"etag": "~1.7.0",
|
31
|
+
"fresh": "0.3.0",
|
32
|
+
"http-errors": "~1.3.1",
|
33
|
+
"mime": "1.3.4",
|
34
|
+
"ms": "0.7.1",
|
35
|
+
"on-finished": "~2.3.0",
|
36
|
+
"range-parser": "~1.0.2",
|
37
|
+
"statuses": "~1.2.1"
|
38
|
+
},
|
39
|
+
"devDependencies": {
|
40
|
+
"after": "0.8.1",
|
41
|
+
"istanbul": "0.3.9",
|
42
|
+
"mocha": "2.2.5",
|
43
|
+
"supertest": "1.0.1"
|
44
|
+
},
|
45
|
+
"files": [
|
46
|
+
"HISTORY.md",
|
47
|
+
"LICENSE",
|
48
|
+
"README.md",
|
49
|
+
"index.js"
|
50
|
+
],
|
51
|
+
"engines": {
|
52
|
+
"node": ">= 0.8.0"
|
53
|
+
},
|
54
|
+
"scripts": {
|
55
|
+
"test": "mocha --check-leaks --reporter spec --bail",
|
56
|
+
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --reporter spec",
|
57
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --reporter dot"
|
58
|
+
},
|
59
|
+
"gitHead": "80cfa7f54ce87c75e92619d5bc510406bd69133a",
|
60
|
+
"bugs": {
|
61
|
+
"url": "https://github.com/pillarjs/send/issues"
|
62
|
+
},
|
63
|
+
"homepage": "https://github.com/pillarjs/send",
|
64
|
+
"_id": "send@0.13.0",
|
65
|
+
"_shasum": "518f921aeb0560aec7dcab2990b14cf6f3cce5de",
|
66
|
+
"_from": "send@0.13.0",
|
67
|
+
"_npmVersion": "1.4.28",
|
68
|
+
"_npmUser": {
|
69
|
+
"name": "dougwilson",
|
70
|
+
"email": "doug@somethingdoug.com"
|
71
|
+
},
|
72
|
+
"maintainers": [
|
73
|
+
{
|
74
|
+
"name": "tjholowaychuk",
|
75
|
+
"email": "tj@vision-media.ca"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"name": "dougwilson",
|
79
|
+
"email": "doug@somethingdoug.com"
|
80
|
+
}
|
81
|
+
],
|
82
|
+
"dist": {
|
83
|
+
"shasum": "518f921aeb0560aec7dcab2990b14cf6f3cce5de",
|
84
|
+
"tarball": "http://registry.npmjs.org/send/-/send-0.13.0.tgz"
|
85
|
+
},
|
86
|
+
"directories": {},
|
87
|
+
"_resolved": "http://registry.npmjs.org/send/-/send-0.13.0.tgz",
|
88
|
+
"readme": "ERROR: No README data found!"
|
89
|
+
}
|