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,73 @@
|
|
1
|
+
{
|
2
|
+
"name": "debug",
|
3
|
+
"version": "2.2.0",
|
4
|
+
"repository": {
|
5
|
+
"type": "git",
|
6
|
+
"url": "git://github.com/visionmedia/debug.git"
|
7
|
+
},
|
8
|
+
"description": "small debugging utility",
|
9
|
+
"keywords": [
|
10
|
+
"debug",
|
11
|
+
"log",
|
12
|
+
"debugger"
|
13
|
+
],
|
14
|
+
"author": {
|
15
|
+
"name": "TJ Holowaychuk",
|
16
|
+
"email": "tj@vision-media.ca"
|
17
|
+
},
|
18
|
+
"contributors": [
|
19
|
+
{
|
20
|
+
"name": "Nathan Rajlich",
|
21
|
+
"email": "nathan@tootallnate.net",
|
22
|
+
"url": "http://n8.io"
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"license": "MIT",
|
26
|
+
"dependencies": {
|
27
|
+
"ms": "0.7.1"
|
28
|
+
},
|
29
|
+
"devDependencies": {
|
30
|
+
"browserify": "9.0.3",
|
31
|
+
"mocha": "*"
|
32
|
+
},
|
33
|
+
"main": "./node.js",
|
34
|
+
"browser": "./browser.js",
|
35
|
+
"component": {
|
36
|
+
"scripts": {
|
37
|
+
"debug/index.js": "browser.js",
|
38
|
+
"debug/debug.js": "debug.js"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"gitHead": "b38458422b5aa8aa6d286b10dfe427e8a67e2b35",
|
42
|
+
"bugs": {
|
43
|
+
"url": "https://github.com/visionmedia/debug/issues"
|
44
|
+
},
|
45
|
+
"homepage": "https://github.com/visionmedia/debug",
|
46
|
+
"_id": "debug@2.2.0",
|
47
|
+
"scripts": {},
|
48
|
+
"_shasum": "f87057e995b1a1f6ae6a4960664137bc56f039da",
|
49
|
+
"_from": "debug@>=2.2.0 <2.3.0",
|
50
|
+
"_npmVersion": "2.7.4",
|
51
|
+
"_nodeVersion": "0.12.2",
|
52
|
+
"_npmUser": {
|
53
|
+
"name": "tootallnate",
|
54
|
+
"email": "nathan@tootallnate.net"
|
55
|
+
},
|
56
|
+
"maintainers": [
|
57
|
+
{
|
58
|
+
"name": "tjholowaychuk",
|
59
|
+
"email": "tj@vision-media.ca"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"name": "tootallnate",
|
63
|
+
"email": "nathan@tootallnate.net"
|
64
|
+
}
|
65
|
+
],
|
66
|
+
"dist": {
|
67
|
+
"shasum": "f87057e995b1a1f6ae6a4960664137bc56f039da",
|
68
|
+
"tarball": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz"
|
69
|
+
},
|
70
|
+
"directories": {},
|
71
|
+
"_resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz",
|
72
|
+
"readme": "ERROR: No README data found!"
|
73
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
1.0.1 / 2015-04-07
|
2
|
+
==================
|
3
|
+
|
4
|
+
* Fix `TypeError`s when under `'use strict'` code
|
5
|
+
* Fix useless type name on auto-generated messages
|
6
|
+
* Support io.js 1.x
|
7
|
+
* Support Node.js 0.12
|
8
|
+
|
9
|
+
1.0.0 / 2014-09-17
|
10
|
+
==================
|
11
|
+
|
12
|
+
* No changes
|
13
|
+
|
14
|
+
0.4.5 / 2014-09-09
|
15
|
+
==================
|
16
|
+
|
17
|
+
* Improve call speed to functions using the function wrapper
|
18
|
+
* Support Node.js 0.6
|
19
|
+
|
20
|
+
0.4.4 / 2014-07-27
|
21
|
+
==================
|
22
|
+
|
23
|
+
* Work-around v8 generating empty stack traces
|
24
|
+
|
25
|
+
0.4.3 / 2014-07-26
|
26
|
+
==================
|
27
|
+
|
28
|
+
* Fix exception when global `Error.stackTraceLimit` is too low
|
29
|
+
|
30
|
+
0.4.2 / 2014-07-19
|
31
|
+
==================
|
32
|
+
|
33
|
+
* Correct call site for wrapped functions and properties
|
34
|
+
|
35
|
+
0.4.1 / 2014-07-19
|
36
|
+
==================
|
37
|
+
|
38
|
+
* Improve automatic message generation for function properties
|
39
|
+
|
40
|
+
0.4.0 / 2014-07-19
|
41
|
+
==================
|
42
|
+
|
43
|
+
* Add `TRACE_DEPRECATION` environment variable
|
44
|
+
* Remove non-standard grey color from color output
|
45
|
+
* Support `--no-deprecation` argument
|
46
|
+
* Support `--trace-deprecation` argument
|
47
|
+
* Support `deprecate.property(fn, prop, message)`
|
48
|
+
|
49
|
+
0.3.0 / 2014-06-16
|
50
|
+
==================
|
51
|
+
|
52
|
+
* Add `NO_DEPRECATION` environment variable
|
53
|
+
|
54
|
+
0.2.0 / 2014-06-15
|
55
|
+
==================
|
56
|
+
|
57
|
+
* Add `deprecate.property(obj, prop, message)`
|
58
|
+
* Remove `supports-color` dependency for node.js 0.8
|
59
|
+
|
60
|
+
0.1.0 / 2014-06-15
|
61
|
+
==================
|
62
|
+
|
63
|
+
* Add `deprecate.function(fn, message)`
|
64
|
+
* Add `process.on('deprecation', fn)` emitter
|
65
|
+
* Automatically generate message when omitted from `deprecate()`
|
66
|
+
|
67
|
+
0.0.1 / 2014-06-15
|
68
|
+
==================
|
69
|
+
|
70
|
+
* Fix warning for dynamic calls at singe call site
|
71
|
+
|
72
|
+
0.0.0 / 2014-06-15
|
73
|
+
==================
|
74
|
+
|
75
|
+
* Initial implementation
|
@@ -0,0 +1,22 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2014 Douglas Christopher Wilson
|
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,274 @@
|
|
1
|
+
# depd
|
2
|
+
|
3
|
+
[![NPM Version][npm-version-image]][npm-url]
|
4
|
+
[![NPM Downloads][npm-downloads-image]][npm-url]
|
5
|
+
[![Node.js Version][node-image]][node-url]
|
6
|
+
[![Linux Build][travis-image]][travis-url]
|
7
|
+
[![Windows Build][appveyor-image]][appveyor-url]
|
8
|
+
[![Coverage Status][coveralls-image]][coveralls-url]
|
9
|
+
[![Gratipay][gratipay-image]][gratipay-url]
|
10
|
+
|
11
|
+
Deprecate all the things
|
12
|
+
|
13
|
+
> With great modules comes great responsibility; mark things deprecated!
|
14
|
+
|
15
|
+
## Install
|
16
|
+
|
17
|
+
```sh
|
18
|
+
$ npm install depd
|
19
|
+
```
|
20
|
+
|
21
|
+
## API
|
22
|
+
|
23
|
+
```js
|
24
|
+
var deprecate = require('depd')('my-module')
|
25
|
+
```
|
26
|
+
|
27
|
+
This library allows you to display deprecation messages to your users.
|
28
|
+
This library goes above and beyond with deprecation warnings by
|
29
|
+
introspection of the call stack (but only the bits that it is interested
|
30
|
+
in).
|
31
|
+
|
32
|
+
Instead of just warning on the first invocation of a deprecated
|
33
|
+
function and never again, this module will warn on the first invocation
|
34
|
+
of a deprecated function per unique call site, making it ideal to alert
|
35
|
+
users of all deprecated uses across the code base, rather than just
|
36
|
+
whatever happens to execute first.
|
37
|
+
|
38
|
+
The deprecation warnings from this module also include the file and line
|
39
|
+
information for the call into the module that the deprecated function was
|
40
|
+
in.
|
41
|
+
|
42
|
+
**NOTE** this library has a similar interface to the `debug` module, and
|
43
|
+
this module uses the calling file to get the boundary for the call stacks,
|
44
|
+
so you should always create a new `deprecate` object in each file and not
|
45
|
+
within some central file.
|
46
|
+
|
47
|
+
### depd(namespace)
|
48
|
+
|
49
|
+
Create a new deprecate function that uses the given namespace name in the
|
50
|
+
messages and will display the call site prior to the stack entering the
|
51
|
+
file this function was called from. It is highly suggested you use the
|
52
|
+
name of your module as the namespace.
|
53
|
+
|
54
|
+
### deprecate(message)
|
55
|
+
|
56
|
+
Call this function from deprecated code to display a deprecation message.
|
57
|
+
This message will appear once per unique caller site. Caller site is the
|
58
|
+
first call site in the stack in a different file from the caller of this
|
59
|
+
function.
|
60
|
+
|
61
|
+
If the message is omitted, a message is generated for you based on the site
|
62
|
+
of the `deprecate()` call and will display the name of the function called,
|
63
|
+
similar to the name displayed in a stack trace.
|
64
|
+
|
65
|
+
### deprecate.function(fn, message)
|
66
|
+
|
67
|
+
Call this function to wrap a given function in a deprecation message on any
|
68
|
+
call to the function. An optional message can be supplied to provide a custom
|
69
|
+
message.
|
70
|
+
|
71
|
+
### deprecate.property(obj, prop, message)
|
72
|
+
|
73
|
+
Call this function to wrap a given property on object in a deprecation message
|
74
|
+
on any accessing or setting of the property. An optional message can be supplied
|
75
|
+
to provide a custom message.
|
76
|
+
|
77
|
+
The method must be called on the object where the property belongs (not
|
78
|
+
inherited from the prototype).
|
79
|
+
|
80
|
+
If the property is a data descriptor, it will be converted to an accessor
|
81
|
+
descriptor in order to display the deprecation message.
|
82
|
+
|
83
|
+
### process.on('deprecation', fn)
|
84
|
+
|
85
|
+
This module will allow easy capturing of deprecation errors by emitting the
|
86
|
+
errors as the type "deprecation" on the global `process`. If there are no
|
87
|
+
listeners for this type, the errors are written to STDERR as normal, but if
|
88
|
+
there are any listeners, nothing will be written to STDERR and instead only
|
89
|
+
emitted. From there, you can write the errors in a different format or to a
|
90
|
+
logging source.
|
91
|
+
|
92
|
+
The error represents the deprecation and is emitted only once with the same
|
93
|
+
rules as writing to STDERR. The error has the following properties:
|
94
|
+
|
95
|
+
- `message` - This is the message given by the library
|
96
|
+
- `name` - This is always `'DeprecationError'`
|
97
|
+
- `namespace` - This is the namespace the deprecation came from
|
98
|
+
- `stack` - This is the stack of the call to the deprecated thing
|
99
|
+
|
100
|
+
Example `error.stack` output:
|
101
|
+
|
102
|
+
```
|
103
|
+
DeprecationError: my-cool-module deprecated oldfunction
|
104
|
+
at Object.<anonymous> ([eval]-wrapper:6:22)
|
105
|
+
at Module._compile (module.js:456:26)
|
106
|
+
at evalScript (node.js:532:25)
|
107
|
+
at startup (node.js:80:7)
|
108
|
+
at node.js:902:3
|
109
|
+
```
|
110
|
+
|
111
|
+
### process.env.NO_DEPRECATION
|
112
|
+
|
113
|
+
As a user of modules that are deprecated, the environment variable `NO_DEPRECATION`
|
114
|
+
is provided as a quick solution to silencing deprecation warnings from being
|
115
|
+
output. The format of this is similar to that of `DEBUG`:
|
116
|
+
|
117
|
+
```sh
|
118
|
+
$ NO_DEPRECATION=my-module,othermod node app.js
|
119
|
+
```
|
120
|
+
|
121
|
+
This will suppress deprecations from being output for "my-module" and "othermod".
|
122
|
+
The value is a list of comma-separated namespaces. To suppress every warning
|
123
|
+
across all namespaces, use the value `*` for a namespace.
|
124
|
+
|
125
|
+
Providing the argument `--no-deprecation` to the `node` executable will suppress
|
126
|
+
all deprecations (only available in Node.js 0.8 or higher).
|
127
|
+
|
128
|
+
**NOTE** This will not suppress the deperecations given to any "deprecation"
|
129
|
+
event listeners, just the output to STDERR.
|
130
|
+
|
131
|
+
### process.env.TRACE_DEPRECATION
|
132
|
+
|
133
|
+
As a user of modules that are deprecated, the environment variable `TRACE_DEPRECATION`
|
134
|
+
is provided as a solution to getting more detailed location information in deprecation
|
135
|
+
warnings by including the entire stack trace. The format of this is the same as
|
136
|
+
`NO_DEPRECATION`:
|
137
|
+
|
138
|
+
```sh
|
139
|
+
$ TRACE_DEPRECATION=my-module,othermod node app.js
|
140
|
+
```
|
141
|
+
|
142
|
+
This will include stack traces for deprecations being output for "my-module" and
|
143
|
+
"othermod". The value is a list of comma-separated namespaces. To trace every
|
144
|
+
warning across all namespaces, use the value `*` for a namespace.
|
145
|
+
|
146
|
+
Providing the argument `--trace-deprecation` to the `node` executable will trace
|
147
|
+
all deprecations (only available in Node.js 0.8 or higher).
|
148
|
+
|
149
|
+
**NOTE** This will not trace the deperecations silenced by `NO_DEPRECATION`.
|
150
|
+
|
151
|
+
## Display
|
152
|
+
|
153
|
+
![message](files/message.png)
|
154
|
+
|
155
|
+
When a user calls a function in your library that you mark deprecated, they
|
156
|
+
will see the following written to STDERR (in the given colors, similar colors
|
157
|
+
and layout to the `debug` module):
|
158
|
+
|
159
|
+
```
|
160
|
+
bright cyan bright yellow
|
161
|
+
| | reset cyan
|
162
|
+
| | | |
|
163
|
+
▼ ▼ ▼ ▼
|
164
|
+
my-cool-module deprecated oldfunction [eval]-wrapper:6:22
|
165
|
+
▲ ▲ ▲ ▲
|
166
|
+
| | | |
|
167
|
+
namespace | | location of mycoolmod.oldfunction() call
|
168
|
+
| deprecation message
|
169
|
+
the word "deprecated"
|
170
|
+
```
|
171
|
+
|
172
|
+
If the user redirects their STDERR to a file or somewhere that does not support
|
173
|
+
colors, they see (similar layout to the `debug` module):
|
174
|
+
|
175
|
+
```
|
176
|
+
Sun, 15 Jun 2014 05:21:37 GMT my-cool-module deprecated oldfunction at [eval]-wrapper:6:22
|
177
|
+
▲ ▲ ▲ ▲ ▲
|
178
|
+
| | | | |
|
179
|
+
timestamp of message namespace | | location of mycoolmod.oldfunction() call
|
180
|
+
| deprecation message
|
181
|
+
the word "deprecated"
|
182
|
+
```
|
183
|
+
|
184
|
+
## Examples
|
185
|
+
|
186
|
+
### Deprecating all calls to a function
|
187
|
+
|
188
|
+
This will display a deprecated message about "oldfunction" being deprecated
|
189
|
+
from "my-module" on STDERR.
|
190
|
+
|
191
|
+
```js
|
192
|
+
var deprecate = require('depd')('my-cool-module')
|
193
|
+
|
194
|
+
// message automatically derived from function name
|
195
|
+
// Object.oldfunction
|
196
|
+
exports.oldfunction = deprecate.function(function oldfunction() {
|
197
|
+
// all calls to function are deprecated
|
198
|
+
})
|
199
|
+
|
200
|
+
// specific message
|
201
|
+
exports.oldfunction = deprecate.function(function () {
|
202
|
+
// all calls to function are deprecated
|
203
|
+
}, 'oldfunction')
|
204
|
+
```
|
205
|
+
|
206
|
+
### Conditionally deprecating a function call
|
207
|
+
|
208
|
+
This will display a deprecated message about "weirdfunction" being deprecated
|
209
|
+
from "my-module" on STDERR when called with less than 2 arguments.
|
210
|
+
|
211
|
+
```js
|
212
|
+
var deprecate = require('depd')('my-cool-module')
|
213
|
+
|
214
|
+
exports.weirdfunction = function () {
|
215
|
+
if (arguments.length < 2) {
|
216
|
+
// calls with 0 or 1 args are deprecated
|
217
|
+
deprecate('weirdfunction args < 2')
|
218
|
+
}
|
219
|
+
}
|
220
|
+
```
|
221
|
+
|
222
|
+
When calling `deprecate` as a function, the warning is counted per call site
|
223
|
+
within your own module, so you can display different deprecations depending
|
224
|
+
on different situations and the users will still get all the warnings:
|
225
|
+
|
226
|
+
```js
|
227
|
+
var deprecate = require('depd')('my-cool-module')
|
228
|
+
|
229
|
+
exports.weirdfunction = function () {
|
230
|
+
if (arguments.length < 2) {
|
231
|
+
// calls with 0 or 1 args are deprecated
|
232
|
+
deprecate('weirdfunction args < 2')
|
233
|
+
} else if (typeof arguments[0] !== 'string') {
|
234
|
+
// calls with non-string first argument are deprecated
|
235
|
+
deprecate('weirdfunction non-string first arg')
|
236
|
+
}
|
237
|
+
}
|
238
|
+
```
|
239
|
+
|
240
|
+
### Deprecating property access
|
241
|
+
|
242
|
+
This will display a deprecated message about "oldprop" being deprecated
|
243
|
+
from "my-module" on STDERR when accessed. A deprecation will be displayed
|
244
|
+
when setting the value and when getting the value.
|
245
|
+
|
246
|
+
```js
|
247
|
+
var deprecate = require('depd')('my-cool-module')
|
248
|
+
|
249
|
+
exports.oldprop = 'something'
|
250
|
+
|
251
|
+
// message automatically derives from property name
|
252
|
+
deprecate.property(exports, 'oldprop')
|
253
|
+
|
254
|
+
// explicit message
|
255
|
+
deprecate.property(exports, 'oldprop', 'oldprop >= 0.10')
|
256
|
+
```
|
257
|
+
|
258
|
+
## License
|
259
|
+
|
260
|
+
[MIT](LICENSE)
|
261
|
+
|
262
|
+
[npm-version-image]: https://img.shields.io/npm/v/depd.svg
|
263
|
+
[npm-downloads-image]: https://img.shields.io/npm/dm/depd.svg
|
264
|
+
[npm-url]: https://npmjs.org/package/depd
|
265
|
+
[travis-image]: https://img.shields.io/travis/dougwilson/nodejs-depd/master.svg?label=linux
|
266
|
+
[travis-url]: https://travis-ci.org/dougwilson/nodejs-depd
|
267
|
+
[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/nodejs-depd/master.svg?label=windows
|
268
|
+
[appveyor-url]: https://ci.appveyor.com/project/dougwilson/nodejs-depd
|
269
|
+
[coveralls-image]: https://img.shields.io/coveralls/dougwilson/nodejs-depd/master.svg
|
270
|
+
[coveralls-url]: https://coveralls.io/r/dougwilson/nodejs-depd?branch=master
|
271
|
+
[node-image]: https://img.shields.io/node/v/depd.svg
|
272
|
+
[node-url]: http://nodejs.org/download/
|
273
|
+
[gratipay-image]: https://img.shields.io/gratipay/dougwilson.svg
|
274
|
+
[gratipay-url]: https://www.gratipay.com/dougwilson/
|