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,38 @@
|
|
1
|
+
# Destroy
|
2
|
+
|
3
|
+
[![NPM version][npm-image]][npm-url]
|
4
|
+
[![Build status][travis-image]][travis-url]
|
5
|
+
[![Test coverage][coveralls-image]][coveralls-url]
|
6
|
+
[![Dependency Status][david-image]][david-url]
|
7
|
+
[![License][license-image]][license-url]
|
8
|
+
[![Downloads][downloads-image]][downloads-url]
|
9
|
+
[![Gittip][gittip-image]][gittip-url]
|
10
|
+
|
11
|
+
Destroy a stream.
|
12
|
+
|
13
|
+
## API
|
14
|
+
|
15
|
+
```js
|
16
|
+
var destroy = require('destroy')
|
17
|
+
|
18
|
+
var fs = require('fs')
|
19
|
+
var stream = fs.createReadStream('package.json')
|
20
|
+
destroy(stream)
|
21
|
+
```
|
22
|
+
|
23
|
+
[npm-image]: https://img.shields.io/npm/v/destroy.svg?style=flat-square
|
24
|
+
[npm-url]: https://npmjs.org/package/destroy
|
25
|
+
[github-tag]: http://img.shields.io/github/tag/stream-utils/destroy.svg?style=flat-square
|
26
|
+
[github-url]: https://github.com/stream-utils/destroy/tags
|
27
|
+
[travis-image]: https://img.shields.io/travis/stream-utils/destroy.svg?style=flat-square
|
28
|
+
[travis-url]: https://travis-ci.org/stream-utils/destroy
|
29
|
+
[coveralls-image]: https://img.shields.io/coveralls/stream-utils/destroy.svg?style=flat-square
|
30
|
+
[coveralls-url]: https://coveralls.io/r/stream-utils/destroy?branch=master
|
31
|
+
[david-image]: http://img.shields.io/david/stream-utils/destroy.svg?style=flat-square
|
32
|
+
[david-url]: https://david-dm.org/stream-utils/destroy
|
33
|
+
[license-image]: http://img.shields.io/npm/l/destroy.svg?style=flat-square
|
34
|
+
[license-url]: LICENSE.md
|
35
|
+
[downloads-image]: http://img.shields.io/npm/dm/destroy.svg?style=flat-square
|
36
|
+
[downloads-url]: https://npmjs.org/package/destroy
|
37
|
+
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
|
38
|
+
[gittip-url]: https://www.gittip.com/jonathanong/
|
@@ -0,0 +1,36 @@
|
|
1
|
+
var ReadStream = require('fs').ReadStream
|
2
|
+
var Stream = require('stream')
|
3
|
+
|
4
|
+
module.exports = function destroy(stream) {
|
5
|
+
if (stream instanceof ReadStream) {
|
6
|
+
return destroyReadStream(stream)
|
7
|
+
}
|
8
|
+
|
9
|
+
if (!(stream instanceof Stream)) {
|
10
|
+
return stream
|
11
|
+
}
|
12
|
+
|
13
|
+
if (typeof stream.destroy === 'function') {
|
14
|
+
stream.destroy()
|
15
|
+
}
|
16
|
+
|
17
|
+
return stream
|
18
|
+
}
|
19
|
+
|
20
|
+
function destroyReadStream(stream) {
|
21
|
+
stream.destroy()
|
22
|
+
|
23
|
+
if (typeof stream.close === 'function') {
|
24
|
+
// node.js core bug work-around
|
25
|
+
stream.on('open', onopenClose)
|
26
|
+
}
|
27
|
+
|
28
|
+
return stream
|
29
|
+
}
|
30
|
+
|
31
|
+
function onopenClose() {
|
32
|
+
if (typeof this.fd === 'number') {
|
33
|
+
// actually close down the fd
|
34
|
+
this.close()
|
35
|
+
}
|
36
|
+
}
|
data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/destroy/package.json
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
{
|
2
|
+
"name": "destroy",
|
3
|
+
"description": "destroy a stream if possible",
|
4
|
+
"version": "1.0.3",
|
5
|
+
"author": {
|
6
|
+
"name": "Jonathan Ong",
|
7
|
+
"email": "me@jongleberry.com",
|
8
|
+
"url": "http://jongleberry.com"
|
9
|
+
},
|
10
|
+
"contributors": [
|
11
|
+
{
|
12
|
+
"name": "Douglas Christopher Wilson",
|
13
|
+
"email": "doug@somethingdoug.com"
|
14
|
+
}
|
15
|
+
],
|
16
|
+
"license": "MIT",
|
17
|
+
"repository": {
|
18
|
+
"type": "git",
|
19
|
+
"url": "git+https://github.com/stream-utils/destroy.git"
|
20
|
+
},
|
21
|
+
"devDependencies": {
|
22
|
+
"istanbul": "0",
|
23
|
+
"mocha": "1"
|
24
|
+
},
|
25
|
+
"scripts": {
|
26
|
+
"test": "mocha --reporter spec",
|
27
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
|
28
|
+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
|
29
|
+
},
|
30
|
+
"files": [
|
31
|
+
"index.js"
|
32
|
+
],
|
33
|
+
"keywords": [
|
34
|
+
"stream",
|
35
|
+
"streams",
|
36
|
+
"destroy",
|
37
|
+
"cleanup",
|
38
|
+
"leak",
|
39
|
+
"fd"
|
40
|
+
],
|
41
|
+
"gitHead": "50af95ece4a70202f9301bc3edc8f9fdbbad0f26",
|
42
|
+
"bugs": {
|
43
|
+
"url": "https://github.com/stream-utils/destroy/issues"
|
44
|
+
},
|
45
|
+
"homepage": "https://github.com/stream-utils/destroy",
|
46
|
+
"_id": "destroy@1.0.3",
|
47
|
+
"_shasum": "b433b4724e71fd8551d9885174851c5fc377e2c9",
|
48
|
+
"_from": "destroy@1.0.3",
|
49
|
+
"_npmVersion": "1.4.21",
|
50
|
+
"_npmUser": {
|
51
|
+
"name": "jongleberry",
|
52
|
+
"email": "jonathanrichardong@gmail.com"
|
53
|
+
},
|
54
|
+
"maintainers": [
|
55
|
+
{
|
56
|
+
"name": "jongleberry",
|
57
|
+
"email": "jonathanrichardong@gmail.com"
|
58
|
+
}
|
59
|
+
],
|
60
|
+
"dist": {
|
61
|
+
"shasum": "b433b4724e71fd8551d9885174851c5fc377e2c9",
|
62
|
+
"tarball": "http://registry.npmjs.org/destroy/-/destroy-1.0.3.tgz"
|
63
|
+
},
|
64
|
+
"directories": {},
|
65
|
+
"_resolved": "http://registry.npmjs.org/destroy/-/destroy-1.0.3.tgz",
|
66
|
+
"readme": "ERROR: No README data found!"
|
67
|
+
}
|
data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/HISTORY.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
2015-02-02 / 1.3.1
|
2
|
+
==================
|
3
|
+
|
4
|
+
* Fix regression where status can be overwritten in `createError` `props`
|
5
|
+
|
6
|
+
2015-02-01 / 1.3.0
|
7
|
+
==================
|
8
|
+
|
9
|
+
* Construct errors using defined constructors from `createError`
|
10
|
+
* Fix error names that are not identifiers
|
11
|
+
- `createError["I'mateapot"]` is now `createError.ImATeapot`
|
12
|
+
* Set a meaningful `name` property on constructed errors
|
13
|
+
|
14
|
+
2014-12-09 / 1.2.8
|
15
|
+
==================
|
16
|
+
|
17
|
+
* Fix stack trace from exported function
|
18
|
+
* Remove `arguments.callee` usage
|
19
|
+
|
20
|
+
2014-10-14 / 1.2.7
|
21
|
+
==================
|
22
|
+
|
23
|
+
* Remove duplicate line
|
24
|
+
|
25
|
+
2014-10-02 / 1.2.6
|
26
|
+
==================
|
27
|
+
|
28
|
+
* Fix `expose` to be `true` for `ClientError` constructor
|
29
|
+
|
30
|
+
2014-09-28 / 1.2.5
|
31
|
+
==================
|
32
|
+
|
33
|
+
* deps: statuses@1
|
34
|
+
|
35
|
+
2014-09-21 / 1.2.4
|
36
|
+
==================
|
37
|
+
|
38
|
+
* Fix dependency version to work with old `npm`s
|
39
|
+
|
40
|
+
2014-09-21 / 1.2.3
|
41
|
+
==================
|
42
|
+
|
43
|
+
* deps: statuses@~1.1.0
|
44
|
+
|
45
|
+
2014-09-21 / 1.2.2
|
46
|
+
==================
|
47
|
+
|
48
|
+
* Fix publish error
|
49
|
+
|
50
|
+
2014-09-21 / 1.2.1
|
51
|
+
==================
|
52
|
+
|
53
|
+
* Support Node.js 0.6
|
54
|
+
* Use `inherits` instead of `util`
|
55
|
+
|
56
|
+
2014-09-09 / 1.2.0
|
57
|
+
==================
|
58
|
+
|
59
|
+
* Fix the way inheriting functions
|
60
|
+
* Support `expose` being provided in properties argument
|
61
|
+
|
62
|
+
2014-09-08 / 1.1.0
|
63
|
+
==================
|
64
|
+
|
65
|
+
* Default status to 500
|
66
|
+
* Support provided `error` to extend
|
67
|
+
|
68
|
+
2014-09-08 / 1.0.1
|
69
|
+
==================
|
70
|
+
|
71
|
+
* Fix accepting string message
|
72
|
+
|
73
|
+
2014-09-08 / 1.0.0
|
74
|
+
==================
|
75
|
+
|
76
|
+
* Initial release
|
data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/LICENSE
ADDED
@@ -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.
|
data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# http-errors
|
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
|
+
Create HTTP errors for Express, Koa, Connect, etc. with ease.
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```js
|
14
|
+
var createError = require('http-errors');
|
15
|
+
|
16
|
+
app.use(function (req, res, next) {
|
17
|
+
if (!req.user) return next(createError(401, 'Please login to view this page.'));
|
18
|
+
next();
|
19
|
+
})
|
20
|
+
```
|
21
|
+
|
22
|
+
## API
|
23
|
+
|
24
|
+
This is the current API, currently extracted from Koa and subject to change.
|
25
|
+
|
26
|
+
### Error Properties
|
27
|
+
|
28
|
+
- `message`
|
29
|
+
- `status` and `statusCode` - the status code of the error, defaulting to `500`
|
30
|
+
|
31
|
+
### createError([status], [message], [properties])
|
32
|
+
|
33
|
+
```js
|
34
|
+
var err = createError(404, 'This video does not exist!');
|
35
|
+
```
|
36
|
+
|
37
|
+
- `status: 500` - the status code as a number
|
38
|
+
- `message` - the message of the error, defaulting to node's text for that status code.
|
39
|
+
- `properties` - custom properties to attach to the object
|
40
|
+
|
41
|
+
### new createError\[code || name\](\[msg]\))
|
42
|
+
|
43
|
+
```js
|
44
|
+
var err = new createError.NotFound();
|
45
|
+
```
|
46
|
+
|
47
|
+
- `code` - the status code as a number
|
48
|
+
- `name` - the name of the error as a "bumpy case", i.e. `NotFound` or `InternalServerError`.
|
49
|
+
|
50
|
+
## License
|
51
|
+
|
52
|
+
[MIT](LICENSE)
|
53
|
+
|
54
|
+
[npm-image]: https://img.shields.io/npm/v/http-errors.svg?style=flat
|
55
|
+
[npm-url]: https://npmjs.org/package/http-errors
|
56
|
+
[node-version-image]: https://img.shields.io/node/v/http-errors.svg?style=flat
|
57
|
+
[node-version-url]: http://nodejs.org/download/
|
58
|
+
[travis-image]: https://img.shields.io/travis/jshttp/http-errors.svg?style=flat
|
59
|
+
[travis-url]: https://travis-ci.org/jshttp/http-errors
|
60
|
+
[coveralls-image]: https://img.shields.io/coveralls/jshttp/http-errors.svg?style=flat
|
61
|
+
[coveralls-url]: https://coveralls.io/r/jshttp/http-errors
|
62
|
+
[downloads-image]: https://img.shields.io/npm/dm/http-errors.svg?style=flat
|
63
|
+
[downloads-url]: https://npmjs.org/package/http-errors
|
data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/index.js
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
|
2
|
+
var statuses = require('statuses');
|
3
|
+
var inherits = require('inherits');
|
4
|
+
|
5
|
+
function toIdentifier(str) {
|
6
|
+
return str.split(' ').map(function (token) {
|
7
|
+
return token.slice(0, 1).toUpperCase() + token.slice(1)
|
8
|
+
}).join('').replace(/[^ _0-9a-z]/gi, '')
|
9
|
+
}
|
10
|
+
|
11
|
+
exports = module.exports = function httpError() {
|
12
|
+
// so much arity going on ~_~
|
13
|
+
var err;
|
14
|
+
var msg;
|
15
|
+
var status = 500;
|
16
|
+
var props = {};
|
17
|
+
for (var i = 0; i < arguments.length; i++) {
|
18
|
+
var arg = arguments[i];
|
19
|
+
if (arg instanceof Error) {
|
20
|
+
err = arg;
|
21
|
+
status = err.status || err.statusCode || status;
|
22
|
+
continue;
|
23
|
+
}
|
24
|
+
switch (typeof arg) {
|
25
|
+
case 'string':
|
26
|
+
msg = arg;
|
27
|
+
break;
|
28
|
+
case 'number':
|
29
|
+
status = arg;
|
30
|
+
break;
|
31
|
+
case 'object':
|
32
|
+
props = arg;
|
33
|
+
break;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
if (typeof status !== 'number' || !statuses[status]) {
|
38
|
+
status = 500
|
39
|
+
}
|
40
|
+
|
41
|
+
// constructor
|
42
|
+
var HttpError = exports[status]
|
43
|
+
|
44
|
+
if (!err) {
|
45
|
+
// create error
|
46
|
+
err = HttpError
|
47
|
+
? new HttpError(msg)
|
48
|
+
: new Error(msg || statuses[status])
|
49
|
+
Error.captureStackTrace(err, httpError)
|
50
|
+
}
|
51
|
+
|
52
|
+
if (!HttpError || !(err instanceof HttpError)) {
|
53
|
+
// add properties to generic error
|
54
|
+
err.expose = status < 500
|
55
|
+
err.status = err.statusCode = status
|
56
|
+
}
|
57
|
+
|
58
|
+
for (var key in props) {
|
59
|
+
if (key !== 'status' && key !== 'statusCode') {
|
60
|
+
err[key] = props[key]
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
return err;
|
65
|
+
};
|
66
|
+
|
67
|
+
// create generic error objects
|
68
|
+
var codes = statuses.codes.filter(function (num) {
|
69
|
+
return num >= 400;
|
70
|
+
});
|
71
|
+
|
72
|
+
codes.forEach(function (code) {
|
73
|
+
var name = toIdentifier(statuses[code])
|
74
|
+
var className = name.match(/Error$/) ? name : name + 'Error'
|
75
|
+
|
76
|
+
if (code >= 500) {
|
77
|
+
var ServerError = function ServerError(msg) {
|
78
|
+
var self = new Error(msg != null ? msg : statuses[code])
|
79
|
+
Error.captureStackTrace(self, ServerError)
|
80
|
+
self.__proto__ = ServerError.prototype
|
81
|
+
Object.defineProperty(self, 'name', {
|
82
|
+
enumerable: false,
|
83
|
+
configurable: true,
|
84
|
+
value: className,
|
85
|
+
writable: true
|
86
|
+
})
|
87
|
+
return self
|
88
|
+
}
|
89
|
+
inherits(ServerError, Error);
|
90
|
+
ServerError.prototype.status =
|
91
|
+
ServerError.prototype.statusCode = code;
|
92
|
+
ServerError.prototype.expose = false;
|
93
|
+
exports[code] =
|
94
|
+
exports[name] = ServerError
|
95
|
+
return;
|
96
|
+
}
|
97
|
+
|
98
|
+
var ClientError = function ClientError(msg) {
|
99
|
+
var self = new Error(msg != null ? msg : statuses[code])
|
100
|
+
Error.captureStackTrace(self, ClientError)
|
101
|
+
self.__proto__ = ClientError.prototype
|
102
|
+
Object.defineProperty(self, 'name', {
|
103
|
+
enumerable: false,
|
104
|
+
configurable: true,
|
105
|
+
value: className,
|
106
|
+
writable: true
|
107
|
+
})
|
108
|
+
return self
|
109
|
+
}
|
110
|
+
inherits(ClientError, Error);
|
111
|
+
ClientError.prototype.status =
|
112
|
+
ClientError.prototype.statusCode = code;
|
113
|
+
ClientError.prototype.expose = true;
|
114
|
+
exports[code] =
|
115
|
+
exports[name] = ClientError
|
116
|
+
return;
|
117
|
+
});
|
118
|
+
|
119
|
+
// backwards-compatibility
|
120
|
+
exports["I'mateapot"] = exports.ImATeapot
|
@@ -0,0 +1,16 @@
|
|
1
|
+
The ISC License
|
2
|
+
|
3
|
+
Copyright (c) Isaac Z. Schlueter
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
11
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
13
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
14
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
15
|
+
PERFORMANCE OF THIS SOFTWARE.
|
16
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
Browser-friendly inheritance fully compatible with standard node.js
|
2
|
+
[inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
|
3
|
+
|
4
|
+
This package exports standard `inherits` from node.js `util` module in
|
5
|
+
node environment, but also provides alternative browser-friendly
|
6
|
+
implementation through [browser
|
7
|
+
field](https://gist.github.com/shtylman/4339901). Alternative
|
8
|
+
implementation is a literal copy of standard one located in standalone
|
9
|
+
module to avoid requiring of `util`. It also has a shim for old
|
10
|
+
browsers with no `Object.create` support.
|
11
|
+
|
12
|
+
While keeping you sure you are using standard `inherits`
|
13
|
+
implementation in node.js environment, it allows bundlers such as
|
14
|
+
[browserify](https://github.com/substack/node-browserify) to not
|
15
|
+
include full `util` package to your client code if all you need is
|
16
|
+
just `inherits` function. It worth, because browser shim for `util`
|
17
|
+
package is large and `inherits` is often the single function you need
|
18
|
+
from it.
|
19
|
+
|
20
|
+
It's recommended to use this package instead of
|
21
|
+
`require('util').inherits` for any code that has chances to be used
|
22
|
+
not only in node.js but in browser too.
|
23
|
+
|
24
|
+
## usage
|
25
|
+
|
26
|
+
```js
|
27
|
+
var inherits = require('inherits');
|
28
|
+
// then use exactly as the standard one
|
29
|
+
```
|
30
|
+
|
31
|
+
## note on version ~1.0
|
32
|
+
|
33
|
+
Version ~1.0 had completely different motivation and is not compatible
|
34
|
+
neither with 2.0 nor with standard node.js `inherits`.
|
35
|
+
|
36
|
+
If you are using version ~1.0 and planning to switch to ~2.0, be
|
37
|
+
careful:
|
38
|
+
|
39
|
+
* new version uses `super_` instead of `super` for referencing
|
40
|
+
superclass
|
41
|
+
* new version overwrites current prototype while old one preserves any
|
42
|
+
existing fields on it
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('util').inherits
|
@@ -0,0 +1,23 @@
|
|
1
|
+
if (typeof Object.create === 'function') {
|
2
|
+
// implementation from standard node.js 'util' module
|
3
|
+
module.exports = function inherits(ctor, superCtor) {
|
4
|
+
ctor.super_ = superCtor
|
5
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
6
|
+
constructor: {
|
7
|
+
value: ctor,
|
8
|
+
enumerable: false,
|
9
|
+
writable: true,
|
10
|
+
configurable: true
|
11
|
+
}
|
12
|
+
});
|
13
|
+
};
|
14
|
+
} else {
|
15
|
+
// old school shim for old browsers
|
16
|
+
module.exports = function inherits(ctor, superCtor) {
|
17
|
+
ctor.super_ = superCtor
|
18
|
+
var TempCtor = function () {}
|
19
|
+
TempCtor.prototype = superCtor.prototype
|
20
|
+
ctor.prototype = new TempCtor()
|
21
|
+
ctor.prototype.constructor = ctor
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"name": "inherits",
|
3
|
+
"description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
|
4
|
+
"version": "2.0.1",
|
5
|
+
"keywords": [
|
6
|
+
"inheritance",
|
7
|
+
"class",
|
8
|
+
"klass",
|
9
|
+
"oop",
|
10
|
+
"object-oriented",
|
11
|
+
"inherits",
|
12
|
+
"browser",
|
13
|
+
"browserify"
|
14
|
+
],
|
15
|
+
"main": "./inherits.js",
|
16
|
+
"browser": "./inherits_browser.js",
|
17
|
+
"repository": {
|
18
|
+
"type": "git",
|
19
|
+
"url": "git://github.com/isaacs/inherits.git"
|
20
|
+
},
|
21
|
+
"license": "ISC",
|
22
|
+
"scripts": {
|
23
|
+
"test": "node test"
|
24
|
+
},
|
25
|
+
"bugs": {
|
26
|
+
"url": "https://github.com/isaacs/inherits/issues"
|
27
|
+
},
|
28
|
+
"_id": "inherits@2.0.1",
|
29
|
+
"dist": {
|
30
|
+
"shasum": "b17d08d326b4423e568eff719f91b0b1cbdf69f1",
|
31
|
+
"tarball": "http://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz"
|
32
|
+
},
|
33
|
+
"_from": "inherits@>=2.0.1 <2.1.0",
|
34
|
+
"_npmVersion": "1.3.8",
|
35
|
+
"_npmUser": {
|
36
|
+
"name": "isaacs",
|
37
|
+
"email": "i@izs.me"
|
38
|
+
},
|
39
|
+
"maintainers": [
|
40
|
+
{
|
41
|
+
"name": "isaacs",
|
42
|
+
"email": "i@izs.me"
|
43
|
+
}
|
44
|
+
],
|
45
|
+
"directories": {},
|
46
|
+
"_shasum": "b17d08d326b4423e568eff719f91b0b1cbdf69f1",
|
47
|
+
"_resolved": "http://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
|
48
|
+
"readme": "ERROR: No README data found!",
|
49
|
+
"homepage": "https://github.com/isaacs/inherits#readme"
|
50
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
var inherits = require('./inherits.js')
|
2
|
+
var assert = require('assert')
|
3
|
+
|
4
|
+
function test(c) {
|
5
|
+
assert(c.constructor === Child)
|
6
|
+
assert(c.constructor.super_ === Parent)
|
7
|
+
assert(Object.getPrototypeOf(c) === Child.prototype)
|
8
|
+
assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
|
9
|
+
assert(c instanceof Child)
|
10
|
+
assert(c instanceof Parent)
|
11
|
+
}
|
12
|
+
|
13
|
+
function Child() {
|
14
|
+
Parent.call(this)
|
15
|
+
test(this)
|
16
|
+
}
|
17
|
+
|
18
|
+
function Parent() {}
|
19
|
+
|
20
|
+
inherits(Child, Parent)
|
21
|
+
|
22
|
+
var c = new Child
|
23
|
+
test(c)
|
24
|
+
|
25
|
+
console.log('ok')
|
data/lib/webpack_rails/node_modules/express/node_modules/send/node_modules/http-errors/package.json
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
{
|
2
|
+
"name": "http-errors",
|
3
|
+
"description": "Create HTTP error objects",
|
4
|
+
"version": "1.3.1",
|
5
|
+
"author": {
|
6
|
+
"name": "Jonathan Ong",
|
7
|
+
"email": "me@jongleberry.com",
|
8
|
+
"url": "http://jongleberry.com"
|
9
|
+
},
|
10
|
+
"contributors": [
|
11
|
+
{
|
12
|
+
"name": "Alan Plum",
|
13
|
+
"email": "me@pluma.io"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"name": "Douglas Christopher Wilson",
|
17
|
+
"email": "doug@somethingdoug.com"
|
18
|
+
}
|
19
|
+
],
|
20
|
+
"license": "MIT",
|
21
|
+
"repository": {
|
22
|
+
"type": "git",
|
23
|
+
"url": "git+https://github.com/jshttp/http-errors.git"
|
24
|
+
},
|
25
|
+
"dependencies": {
|
26
|
+
"inherits": "~2.0.1",
|
27
|
+
"statuses": "1"
|
28
|
+
},
|
29
|
+
"devDependencies": {
|
30
|
+
"istanbul": "0",
|
31
|
+
"mocha": "1"
|
32
|
+
},
|
33
|
+
"engines": {
|
34
|
+
"node": ">= 0.6"
|
35
|
+
},
|
36
|
+
"scripts": {
|
37
|
+
"test": "mocha --reporter spec --bail",
|
38
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
|
39
|
+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
|
40
|
+
},
|
41
|
+
"keywords": [
|
42
|
+
"http",
|
43
|
+
"error"
|
44
|
+
],
|
45
|
+
"files": [
|
46
|
+
"index.js",
|
47
|
+
"HISTORY.md",
|
48
|
+
"LICENSE",
|
49
|
+
"README.md"
|
50
|
+
],
|
51
|
+
"gitHead": "89a8502b40d5dd42da2908f265275e2eeb8d0699",
|
52
|
+
"bugs": {
|
53
|
+
"url": "https://github.com/jshttp/http-errors/issues"
|
54
|
+
},
|
55
|
+
"homepage": "https://github.com/jshttp/http-errors",
|
56
|
+
"_id": "http-errors@1.3.1",
|
57
|
+
"_shasum": "197e22cdebd4198585e8694ef6786197b91ed942",
|
58
|
+
"_from": "http-errors@>=1.3.1 <1.4.0",
|
59
|
+
"_npmVersion": "1.4.28",
|
60
|
+
"_npmUser": {
|
61
|
+
"name": "dougwilson",
|
62
|
+
"email": "doug@somethingdoug.com"
|
63
|
+
},
|
64
|
+
"maintainers": [
|
65
|
+
{
|
66
|
+
"name": "egeste",
|
67
|
+
"email": "npm@egeste.net"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"name": "jongleberry",
|
71
|
+
"email": "jonathanrichardong@gmail.com"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"name": "dougwilson",
|
75
|
+
"email": "doug@somethingdoug.com"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"dist": {
|
79
|
+
"shasum": "197e22cdebd4198585e8694ef6786197b91ed942",
|
80
|
+
"tarball": "http://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz"
|
81
|
+
},
|
82
|
+
"directories": {},
|
83
|
+
"_resolved": "http://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz",
|
84
|
+
"readme": "ERROR: No README data found!"
|
85
|
+
}
|