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
|
+
0.3.0 / 2015-05-12
|
2
|
+
==================
|
3
|
+
|
4
|
+
* Add weak `ETag` matching support
|
5
|
+
|
6
|
+
0.2.4 / 2014-09-07
|
7
|
+
==================
|
8
|
+
|
9
|
+
* Support Node.js 0.6
|
10
|
+
|
11
|
+
0.2.3 / 2014-09-07
|
12
|
+
==================
|
13
|
+
|
14
|
+
* Move repository to jshttp
|
15
|
+
|
16
|
+
0.2.2 / 2014-02-19
|
17
|
+
==================
|
18
|
+
|
19
|
+
* Revert "Fix for blank page on Safari reload"
|
20
|
+
|
21
|
+
0.2.1 / 2014-01-29
|
22
|
+
==================
|
23
|
+
|
24
|
+
* Fix for blank page on Safari reload
|
25
|
+
|
26
|
+
0.2.0 / 2013-08-11
|
27
|
+
==================
|
28
|
+
|
29
|
+
* Return stale for `Cache-Control: no-cache`
|
30
|
+
|
31
|
+
0.1.0 / 2012-06-15
|
32
|
+
==================
|
33
|
+
* Add `If-None-Match: *` support
|
34
|
+
|
35
|
+
0.0.1 / 2012-06-10
|
36
|
+
==================
|
37
|
+
|
38
|
+
* Initial release
|
@@ -0,0 +1,22 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# fresh
|
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 response freshness testing
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
```
|
14
|
+
$ npm install fresh
|
15
|
+
```
|
16
|
+
|
17
|
+
## API
|
18
|
+
|
19
|
+
```js
|
20
|
+
var fresh = require('fresh')
|
21
|
+
```
|
22
|
+
|
23
|
+
### fresh(req, res)
|
24
|
+
|
25
|
+
Check freshness of `req` and `res` headers.
|
26
|
+
|
27
|
+
When the cache is "fresh" __true__ is returned,
|
28
|
+
otherwise __false__ is returned to indicate that
|
29
|
+
the cache is now stale.
|
30
|
+
|
31
|
+
## Example
|
32
|
+
|
33
|
+
```js
|
34
|
+
var req = { 'if-none-match': 'tobi' };
|
35
|
+
var res = { 'etag': 'luna' };
|
36
|
+
fresh(req, res);
|
37
|
+
// => false
|
38
|
+
|
39
|
+
var req = { 'if-none-match': 'tobi' };
|
40
|
+
var res = { 'etag': 'tobi' };
|
41
|
+
fresh(req, res);
|
42
|
+
// => true
|
43
|
+
```
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
[MIT](LICENSE)
|
48
|
+
|
49
|
+
[npm-image]: https://img.shields.io/npm/v/fresh.svg
|
50
|
+
[npm-url]: https://npmjs.org/package/fresh
|
51
|
+
[node-version-image]: https://img.shields.io/node/v/fresh.svg
|
52
|
+
[node-version-url]: http://nodejs.org/download/
|
53
|
+
[travis-image]: https://img.shields.io/travis/jshttp/fresh/master.svg
|
54
|
+
[travis-url]: https://travis-ci.org/jshttp/fresh
|
55
|
+
[coveralls-image]: https://img.shields.io/coveralls/jshttp/fresh/master.svg
|
56
|
+
[coveralls-url]: https://coveralls.io/r/jshttp/fresh?branch=master
|
57
|
+
[downloads-image]: https://img.shields.io/npm/dm/fresh.svg
|
58
|
+
[downloads-url]: https://npmjs.org/package/fresh
|
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* Expose `fresh()`.
|
4
|
+
*/
|
5
|
+
|
6
|
+
module.exports = fresh;
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Check freshness of `req` and `res` headers.
|
10
|
+
*
|
11
|
+
* When the cache is "fresh" __true__ is returned,
|
12
|
+
* otherwise __false__ is returned to indicate that
|
13
|
+
* the cache is now stale.
|
14
|
+
*
|
15
|
+
* @param {Object} req
|
16
|
+
* @param {Object} res
|
17
|
+
* @return {Boolean}
|
18
|
+
* @api public
|
19
|
+
*/
|
20
|
+
|
21
|
+
function fresh(req, res) {
|
22
|
+
// defaults
|
23
|
+
var etagMatches = true;
|
24
|
+
var notModified = true;
|
25
|
+
|
26
|
+
// fields
|
27
|
+
var modifiedSince = req['if-modified-since'];
|
28
|
+
var noneMatch = req['if-none-match'];
|
29
|
+
var lastModified = res['last-modified'];
|
30
|
+
var etag = res['etag'];
|
31
|
+
var cc = req['cache-control'];
|
32
|
+
|
33
|
+
// unconditional request
|
34
|
+
if (!modifiedSince && !noneMatch) return false;
|
35
|
+
|
36
|
+
// check for no-cache cache request directive
|
37
|
+
if (cc && cc.indexOf('no-cache') !== -1) return false;
|
38
|
+
|
39
|
+
// parse if-none-match
|
40
|
+
if (noneMatch) noneMatch = noneMatch.split(/ *, */);
|
41
|
+
|
42
|
+
// if-none-match
|
43
|
+
if (noneMatch) {
|
44
|
+
etagMatches = noneMatch.some(function (match) {
|
45
|
+
return match === '*' || match === etag || match === 'W/' + etag;
|
46
|
+
});
|
47
|
+
}
|
48
|
+
|
49
|
+
// if-modified-since
|
50
|
+
if (modifiedSince) {
|
51
|
+
modifiedSince = new Date(modifiedSince);
|
52
|
+
lastModified = new Date(lastModified);
|
53
|
+
notModified = lastModified <= modifiedSince;
|
54
|
+
}
|
55
|
+
|
56
|
+
return !! (etagMatches && notModified);
|
57
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
{
|
2
|
+
"name": "fresh",
|
3
|
+
"description": "HTTP response freshness testing",
|
4
|
+
"version": "0.3.0",
|
5
|
+
"author": {
|
6
|
+
"name": "TJ Holowaychuk",
|
7
|
+
"email": "tj@vision-media.ca",
|
8
|
+
"url": "http://tjholowaychuk.com"
|
9
|
+
},
|
10
|
+
"contributors": [
|
11
|
+
{
|
12
|
+
"name": "Douglas Christopher Wilson",
|
13
|
+
"email": "doug@somethingdoug.com"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"name": "Jonathan Ong",
|
17
|
+
"email": "me@jongleberry.com",
|
18
|
+
"url": "http://jongleberry.com"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"license": "MIT",
|
22
|
+
"keywords": [
|
23
|
+
"fresh",
|
24
|
+
"http",
|
25
|
+
"conditional",
|
26
|
+
"cache"
|
27
|
+
],
|
28
|
+
"repository": {
|
29
|
+
"type": "git",
|
30
|
+
"url": "git+https://github.com/jshttp/fresh.git"
|
31
|
+
},
|
32
|
+
"devDependencies": {
|
33
|
+
"istanbul": "0.3.9",
|
34
|
+
"mocha": "1.21.5"
|
35
|
+
},
|
36
|
+
"files": [
|
37
|
+
"HISTORY.md",
|
38
|
+
"LICENSE",
|
39
|
+
"index.js"
|
40
|
+
],
|
41
|
+
"engines": {
|
42
|
+
"node": ">= 0.6"
|
43
|
+
},
|
44
|
+
"scripts": {
|
45
|
+
"test": "mocha --reporter spec --bail --check-leaks test/",
|
46
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
|
47
|
+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
|
48
|
+
},
|
49
|
+
"gitHead": "14616c9748368ca08cd6a955dd88ab659b778634",
|
50
|
+
"bugs": {
|
51
|
+
"url": "https://github.com/jshttp/fresh/issues"
|
52
|
+
},
|
53
|
+
"homepage": "https://github.com/jshttp/fresh",
|
54
|
+
"_id": "fresh@0.3.0",
|
55
|
+
"_shasum": "651f838e22424e7566de161d8358caa199f83d4f",
|
56
|
+
"_from": "fresh@0.3.0",
|
57
|
+
"_npmVersion": "1.4.28",
|
58
|
+
"_npmUser": {
|
59
|
+
"name": "dougwilson",
|
60
|
+
"email": "doug@somethingdoug.com"
|
61
|
+
},
|
62
|
+
"maintainers": [
|
63
|
+
{
|
64
|
+
"name": "tjholowaychuk",
|
65
|
+
"email": "tj@vision-media.ca"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"name": "jonathanong",
|
69
|
+
"email": "jonathanrichardong@gmail.com"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"name": "dougwilson",
|
73
|
+
"email": "doug@somethingdoug.com"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"name": "jongleberry",
|
77
|
+
"email": "jonathanrichardong@gmail.com"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"dist": {
|
81
|
+
"shasum": "651f838e22424e7566de161d8358caa199f83d4f",
|
82
|
+
"tarball": "http://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz"
|
83
|
+
},
|
84
|
+
"directories": {},
|
85
|
+
"_resolved": "http://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz",
|
86
|
+
"readme": "ERROR: No README data found!"
|
87
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2013 Jonathan Ong <me@jongleberry.com>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Merge Descriptors
|
2
|
+
|
3
|
+
Merge objects using descriptors.
|
4
|
+
|
5
|
+
```js
|
6
|
+
var thing = {
|
7
|
+
get name() {
|
8
|
+
return 'jon'
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
var animal = {
|
13
|
+
|
14
|
+
}
|
15
|
+
|
16
|
+
merge(animal, thing)
|
17
|
+
|
18
|
+
animal.name === 'jon'
|
19
|
+
```
|
20
|
+
|
21
|
+
## API
|
22
|
+
|
23
|
+
### merge(destination, source)
|
24
|
+
|
25
|
+
Redefines `destination`'s descriptors with `source`'s.
|
26
|
+
|
27
|
+
### merge(destination, source, false)
|
28
|
+
|
29
|
+
Defines `source`'s descriptors on `destination` if `destination` does not have
|
30
|
+
a descriptor by the same name.
|
31
|
+
|
32
|
+
## License
|
33
|
+
|
34
|
+
[MIT](LICENSE)
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/*!
|
2
|
+
* merge-descriptors
|
3
|
+
* Copyright(c) 2014 Jonathan Ong
|
4
|
+
* MIT Licensed
|
5
|
+
*/
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Module exports.
|
9
|
+
* @public
|
10
|
+
*/
|
11
|
+
|
12
|
+
module.exports = merge
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Module variables.
|
16
|
+
* @private
|
17
|
+
*/
|
18
|
+
|
19
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Merge the property descriptors of `src` into `dest`
|
23
|
+
*
|
24
|
+
* @param {object} dest Object to add descriptors to
|
25
|
+
* @param {object} src Object to clone descriptors from
|
26
|
+
* @param {boolean} [redefine=true] Redefine `dest` properties with `src` properties
|
27
|
+
* @returns {object} Reference to dest
|
28
|
+
* @public
|
29
|
+
*/
|
30
|
+
|
31
|
+
function merge(dest, src, redefine) {
|
32
|
+
if (!dest) {
|
33
|
+
throw new TypeError('argument dest is required')
|
34
|
+
}
|
35
|
+
|
36
|
+
if (!src) {
|
37
|
+
throw new TypeError('argument src is required')
|
38
|
+
}
|
39
|
+
|
40
|
+
if (redefine === undefined) {
|
41
|
+
// Default to true
|
42
|
+
redefine = true
|
43
|
+
}
|
44
|
+
|
45
|
+
Object.getOwnPropertyNames(src).forEach(function forEachOwnPropertyName(name) {
|
46
|
+
if (!redefine && hasOwnProperty.call(dest, name)) {
|
47
|
+
// Skip desriptor
|
48
|
+
return
|
49
|
+
}
|
50
|
+
|
51
|
+
// Copy descriptor
|
52
|
+
var descriptor = Object.getOwnPropertyDescriptor(src, name)
|
53
|
+
Object.defineProperty(dest, name, descriptor)
|
54
|
+
})
|
55
|
+
|
56
|
+
return dest
|
57
|
+
}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
{
|
2
|
+
"name": "merge-descriptors",
|
3
|
+
"description": "Merge objects using descriptors",
|
4
|
+
"version": "1.0.0",
|
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/component/merge-descriptors.git"
|
20
|
+
},
|
21
|
+
"bugs": {
|
22
|
+
"url": "https://github.com/component/merge-descriptors/issues"
|
23
|
+
},
|
24
|
+
"files": [
|
25
|
+
"LICENSE",
|
26
|
+
"README.md",
|
27
|
+
"index.js"
|
28
|
+
],
|
29
|
+
"gitHead": "81d7a3c14099884c391bd237d7d8edf23c6d6f18",
|
30
|
+
"homepage": "https://github.com/component/merge-descriptors",
|
31
|
+
"_id": "merge-descriptors@1.0.0",
|
32
|
+
"scripts": {},
|
33
|
+
"_shasum": "2169cf7538e1b0cc87fb88e1502d8474bbf79864",
|
34
|
+
"_from": "merge-descriptors@1.0.0",
|
35
|
+
"_npmVersion": "1.4.28",
|
36
|
+
"_npmUser": {
|
37
|
+
"name": "dougwilson",
|
38
|
+
"email": "doug@somethingdoug.com"
|
39
|
+
},
|
40
|
+
"maintainers": [
|
41
|
+
{
|
42
|
+
"name": "jongleberry",
|
43
|
+
"email": "jonathanrichardong@gmail.com"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"name": "tootallnate",
|
47
|
+
"email": "nathan@tootallnate.net"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"name": "juliangruber",
|
51
|
+
"email": "julian@juliangruber.com"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"name": "yields",
|
55
|
+
"email": "yields@icloud.com"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"name": "ianstormtaylor",
|
59
|
+
"email": "ian@ianstormtaylor.com"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"name": "tjholowaychuk",
|
63
|
+
"email": "tj@vision-media.ca"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"name": "timoxley",
|
67
|
+
"email": "secoif@gmail.com"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"name": "mattmueller",
|
71
|
+
"email": "mattmuelle@gmail.com"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"name": "jonathanong",
|
75
|
+
"email": "jonathanrichardong@gmail.com"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"name": "queckezz",
|
79
|
+
"email": "fabian.eichenberger@gmail.com"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"name": "anthonyshort",
|
83
|
+
"email": "antshort@gmail.com"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"name": "dominicbarnes",
|
87
|
+
"email": "dominic@dbarnes.info"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"name": "clintwood",
|
91
|
+
"email": "clint@anotherway.co.za"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"name": "thehydroimpulse",
|
95
|
+
"email": "dnfagnan@gmail.com"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"name": "stephenmathieson",
|
99
|
+
"email": "me@stephenmathieson.com"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"name": "trevorgerhardt",
|
103
|
+
"email": "trevorgerhardt@gmail.com"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"name": "timaschew",
|
107
|
+
"email": "timaschew@gmail.com"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"name": "hughsk",
|
111
|
+
"email": "hughskennedy@gmail.com"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"name": "dougwilson",
|
115
|
+
"email": "doug@somethingdoug.com"
|
116
|
+
}
|
117
|
+
],
|
118
|
+
"dist": {
|
119
|
+
"shasum": "2169cf7538e1b0cc87fb88e1502d8474bbf79864",
|
120
|
+
"tarball": "http://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.0.tgz"
|
121
|
+
},
|
122
|
+
"directories": {},
|
123
|
+
"_resolved": "http://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.0.tgz",
|
124
|
+
"readme": "ERROR: No README data found!"
|
125
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
1.1.1 / 2014-12-30
|
2
|
+
==================
|
3
|
+
|
4
|
+
* Improve `browserify` support
|
5
|
+
|
6
|
+
1.1.0 / 2014-07-05
|
7
|
+
==================
|
8
|
+
|
9
|
+
* Add `CONNECT` method
|
10
|
+
|
11
|
+
1.0.1 / 2014-06-02
|
12
|
+
==================
|
13
|
+
|
14
|
+
* Fix module to work with harmony transform
|
15
|
+
|
16
|
+
1.0.0 / 2014-05-08
|
17
|
+
==================
|
18
|
+
|
19
|
+
* Add `PURGE` method
|
20
|
+
|
21
|
+
0.1.0 / 2013-10-28
|
22
|
+
==================
|
23
|
+
|
24
|
+
* Add `http.METHODS` support
|
@@ -0,0 +1,23 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2013-2014 TJ Holowaychuk <tj@vision-media.ca>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Methods
|
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 verbs that node core's parser supports.
|
10
|
+
|
11
|
+
|
12
|
+
## Install
|
13
|
+
|
14
|
+
```bash
|
15
|
+
$ npm install methods
|
16
|
+
```
|
17
|
+
|
18
|
+
## API
|
19
|
+
|
20
|
+
```js
|
21
|
+
var methods = require('methods')
|
22
|
+
```
|
23
|
+
|
24
|
+
### methods
|
25
|
+
|
26
|
+
This is an array of lower-case method names that Node.js supports.
|
27
|
+
|
28
|
+
## License
|
29
|
+
|
30
|
+
[MIT](LICENSE)
|
31
|
+
|
32
|
+
[npm-image]: https://img.shields.io/npm/v/methods.svg?style=flat
|
33
|
+
[npm-url]: https://npmjs.org/package/methods
|
34
|
+
[node-version-image]: https://img.shields.io/node/v/methods.svg?style=flat
|
35
|
+
[node-version-url]: http://nodejs.org/download/
|
36
|
+
[travis-image]: https://img.shields.io/travis/jshttp/methods.svg?style=flat
|
37
|
+
[travis-url]: https://travis-ci.org/jshttp/methods
|
38
|
+
[coveralls-image]: https://img.shields.io/coveralls/jshttp/methods.svg?style=flat
|
39
|
+
[coveralls-url]: https://coveralls.io/r/jshttp/methods?branch=master
|
40
|
+
[downloads-image]: https://img.shields.io/npm/dm/methods.svg?style=flat
|
41
|
+
[downloads-url]: https://npmjs.org/package/methods
|
@@ -0,0 +1,42 @@
|
|
1
|
+
|
2
|
+
var http = require('http');
|
3
|
+
|
4
|
+
/* istanbul ignore next: implementation differs on version */
|
5
|
+
if (http.METHODS) {
|
6
|
+
|
7
|
+
module.exports = http.METHODS.map(function(method){
|
8
|
+
return method.toLowerCase();
|
9
|
+
});
|
10
|
+
|
11
|
+
} else {
|
12
|
+
|
13
|
+
module.exports = [
|
14
|
+
'get',
|
15
|
+
'post',
|
16
|
+
'put',
|
17
|
+
'head',
|
18
|
+
'delete',
|
19
|
+
'options',
|
20
|
+
'trace',
|
21
|
+
'copy',
|
22
|
+
'lock',
|
23
|
+
'mkcol',
|
24
|
+
'move',
|
25
|
+
'purge',
|
26
|
+
'propfind',
|
27
|
+
'proppatch',
|
28
|
+
'unlock',
|
29
|
+
'report',
|
30
|
+
'mkactivity',
|
31
|
+
'checkout',
|
32
|
+
'merge',
|
33
|
+
'm-search',
|
34
|
+
'notify',
|
35
|
+
'subscribe',
|
36
|
+
'unsubscribe',
|
37
|
+
'patch',
|
38
|
+
'search',
|
39
|
+
'connect'
|
40
|
+
];
|
41
|
+
|
42
|
+
}
|