├── README.md ├── infoMS ├── app.js ├── node_modules │ ├── .package-lock.json │ ├── amqplib │ │ ├── .github │ │ │ └── workflows │ │ │ │ └── test.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── LICENSE-MIT │ │ ├── Makefile │ │ ├── README.md │ │ ├── bin │ │ │ └── generate-defs.js │ │ ├── callback_api.js │ │ ├── channel_api.js │ │ ├── examples │ │ │ ├── headers.js │ │ │ ├── receive_generator.js │ │ │ ├── send_generators.js │ │ │ ├── ssl.js │ │ │ ├── tutorials │ │ │ │ ├── README.md │ │ │ │ ├── callback_api │ │ │ │ │ ├── emit_log.js │ │ │ │ │ ├── emit_log_direct.js │ │ │ │ │ ├── emit_log_topic.js │ │ │ │ │ ├── new_task.js │ │ │ │ │ ├── receive.js │ │ │ │ │ ├── receive_logs.js │ │ │ │ │ ├── receive_logs_direct.js │ │ │ │ │ ├── receive_logs_topic.js │ │ │ │ │ ├── rpc_client.js │ │ │ │ │ ├── rpc_server.js │ │ │ │ │ ├── send.js │ │ │ │ │ └── worker.js │ │ │ │ ├── emit_log.js │ │ │ │ ├── emit_log_direct.js │ │ │ │ ├── emit_log_topic.js │ │ │ │ ├── new_task.js │ │ │ │ ├── package.json │ │ │ │ ├── receive.js │ │ │ │ ├── receive_logs.js │ │ │ │ ├── receive_logs_direct.js │ │ │ │ ├── receive_logs_topic.js │ │ │ │ ├── rpc_client.js │ │ │ │ ├── rpc_server.js │ │ │ │ ├── send.js │ │ │ │ └── worker.js │ │ │ └── waitForConfirms.js │ │ ├── lib │ │ │ ├── api_args.js │ │ │ ├── bitset.js │ │ │ ├── callback_model.js │ │ │ ├── channel.js │ │ │ ├── channel_model.js │ │ │ ├── codec.js │ │ │ ├── connect.js │ │ │ ├── connection.js │ │ │ ├── credentials.js │ │ │ ├── defs.js │ │ │ ├── error.js │ │ │ ├── format.js │ │ │ ├── frame.js │ │ │ ├── heartbeat.js │ │ │ └── mux.js │ │ ├── package.json │ │ └── test │ │ │ ├── bitset.js │ │ │ ├── callback_api.js │ │ │ ├── channel.js │ │ │ ├── channel_api.js │ │ │ ├── codec.js │ │ │ ├── connect.js │ │ │ ├── connection.js │ │ │ ├── data.js │ │ │ ├── frame.js │ │ │ ├── mux.js │ │ │ └── util.js │ ├── bitsyntax │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── LICENSE-MIT │ │ ├── Makefile │ │ ├── README.md │ │ ├── index.js │ │ ├── lib │ │ │ ├── compile.js │ │ │ ├── constructor.js │ │ │ ├── grammar.pegjs │ │ │ ├── interp.js │ │ │ ├── parse.js │ │ │ ├── parser.js │ │ │ └── pattern.js │ │ ├── package.json │ │ └── test │ │ │ ├── consing.js │ │ │ └── matching.js │ ├── buffer-more-ints │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── buffer-more-ints-tests.js │ │ ├── buffer-more-ints.js │ │ ├── package.json │ │ └── polyfill.js │ ├── core-util-is │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ └── util.js │ │ └── package.json │ ├── debug │ │ ├── .coveralls.yml │ │ ├── .eslintrc │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── component.json │ │ ├── karma.conf.js │ │ ├── node.js │ │ ├── package.json │ │ └── src │ │ │ ├── browser.js │ │ │ ├── debug.js │ │ │ ├── index.js │ │ │ ├── inspector-log.js │ │ │ └── node.js │ ├── inherits │ │ ├── LICENSE │ │ ├── README.md │ │ ├── inherits.js │ │ ├── inherits_browser.js │ │ └── package.json │ ├── isarray │ │ ├── README.md │ │ ├── build │ │ │ └── build.js │ │ ├── component.json │ │ ├── index.js │ │ └── package.json │ ├── ms │ │ ├── index.js │ │ ├── license.md │ │ ├── package.json │ │ └── readme.md │ ├── querystringify │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── readable-stream │ │ ├── .npmignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── duplex.js │ │ ├── float.patch │ │ ├── lib │ │ │ ├── _stream_duplex.js │ │ │ ├── _stream_passthrough.js │ │ │ ├── _stream_readable.js │ │ │ ├── _stream_transform.js │ │ │ └── _stream_writable.js │ │ ├── package.json │ │ ├── passthrough.js │ │ ├── readable.js │ │ ├── transform.js │ │ └── writable.js │ ├── requires-port │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ └── test.js │ ├── safe-buffer │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.d.ts │ │ ├── index.js │ │ └── package.json │ ├── string_decoder │ │ ├── .npmignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ └── url-parse │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist │ │ ├── url-parse.js │ │ ├── url-parse.min.js │ │ └── url-parse.min.js.map │ │ ├── index.js │ │ └── package.json ├── package-lock.json └── package.json ├── loggerMS ├── config.js ├── node_modules │ ├── .bin │ │ ├── mime │ │ ├── mime.cmd │ │ └── mime.ps1 │ ├── .package-lock.json │ ├── accepts │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── amqplib │ │ ├── .github │ │ │ └── workflows │ │ │ │ └── test.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── LICENSE-MIT │ │ ├── Makefile │ │ ├── README.md │ │ ├── bin │ │ │ └── generate-defs.js │ │ ├── callback_api.js │ │ ├── channel_api.js │ │ ├── examples │ │ │ ├── headers.js │ │ │ ├── receive_generator.js │ │ │ ├── send_generators.js │ │ │ ├── ssl.js │ │ │ ├── tutorials │ │ │ │ ├── README.md │ │ │ │ ├── callback_api │ │ │ │ │ ├── emit_log.js │ │ │ │ │ ├── emit_log_direct.js │ │ │ │ │ ├── emit_log_topic.js │ │ │ │ │ ├── new_task.js │ │ │ │ │ ├── receive.js │ │ │ │ │ ├── receive_logs.js │ │ │ │ │ ├── receive_logs_direct.js │ │ │ │ │ ├── receive_logs_topic.js │ │ │ │ │ ├── rpc_client.js │ │ │ │ │ ├── rpc_server.js │ │ │ │ │ ├── send.js │ │ │ │ │ └── worker.js │ │ │ │ ├── emit_log.js │ │ │ │ ├── emit_log_direct.js │ │ │ │ ├── emit_log_topic.js │ │ │ │ ├── new_task.js │ │ │ │ ├── package.json │ │ │ │ ├── receive.js │ │ │ │ ├── receive_logs.js │ │ │ │ ├── receive_logs_direct.js │ │ │ │ ├── receive_logs_topic.js │ │ │ │ ├── rpc_client.js │ │ │ │ ├── rpc_server.js │ │ │ │ ├── send.js │ │ │ │ └── worker.js │ │ │ └── waitForConfirms.js │ │ ├── lib │ │ │ ├── api_args.js │ │ │ ├── bitset.js │ │ │ ├── callback_model.js │ │ │ ├── channel.js │ │ │ ├── channel_model.js │ │ │ ├── codec.js │ │ │ ├── connect.js │ │ │ ├── connection.js │ │ │ ├── credentials.js │ │ │ ├── defs.js │ │ │ ├── error.js │ │ │ ├── format.js │ │ │ ├── frame.js │ │ │ ├── heartbeat.js │ │ │ └── mux.js │ │ ├── package.json │ │ └── test │ │ │ ├── bitset.js │ │ │ ├── callback_api.js │ │ │ ├── channel.js │ │ │ ├── channel_api.js │ │ │ ├── codec.js │ │ │ ├── connect.js │ │ │ ├── connection.js │ │ │ ├── data.js │ │ │ ├── frame.js │ │ │ ├── mux.js │ │ │ └── util.js │ ├── array-flatten │ │ ├── LICENSE │ │ ├── README.md │ │ ├── array-flatten.js │ │ └── package.json │ ├── bitsyntax │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── LICENSE-MIT │ │ ├── Makefile │ │ ├── README.md │ │ ├── index.js │ │ ├── lib │ │ │ ├── compile.js │ │ │ ├── constructor.js │ │ │ ├── grammar.pegjs │ │ │ ├── interp.js │ │ │ ├── parse.js │ │ │ ├── parser.js │ │ │ └── pattern.js │ │ ├── package.json │ │ └── test │ │ │ ├── consing.js │ │ │ └── matching.js │ ├── body-parser │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── index.js │ │ ├── lib │ │ │ ├── read.js │ │ │ └── types │ │ │ │ ├── json.js │ │ │ │ ├── raw.js │ │ │ │ ├── text.js │ │ │ │ └── urlencoded.js │ │ └── package.json │ ├── buffer-more-ints │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── buffer-more-ints-tests.js │ │ ├── buffer-more-ints.js │ │ ├── package.json │ │ └── polyfill.js │ ├── bytes │ │ ├── History.md │ │ ├── LICENSE │ │ ├── Readme.md │ │ ├── index.js │ │ └── package.json │ ├── call-bind │ │ ├── .eslintignore │ │ ├── .eslintrc │ │ ├── .github │ │ │ └── FUNDING.yml │ │ ├── .nycrc │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── callBound.js │ │ ├── index.js │ │ ├── package.json │ │ └── test │ │ │ ├── callBound.js │ │ │ └── index.js │ ├── content-disposition │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── node_modules │ │ │ └── safe-buffer │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── index.d.ts │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ └── package.json │ ├── content-type │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── cookie-signature │ │ ├── .npmignore │ │ ├── History.md │ │ ├── Readme.md │ │ ├── index.js │ │ └── package.json │ ├── cookie │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── index.js │ │ └── package.json │ ├── core-util-is │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ │ └── util.js │ │ └── package.json │ ├── debug │ │ ├── .coveralls.yml │ │ ├── .eslintrc │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── component.json │ │ ├── karma.conf.js │ │ ├── node.js │ │ ├── package.json │ │ └── src │ │ │ ├── browser.js │ │ │ ├── debug.js │ │ │ ├── index.js │ │ │ ├── inspector-log.js │ │ │ └── node.js │ ├── depd │ │ ├── History.md │ │ ├── LICENSE │ │ ├── Readme.md │ │ ├── index.js │ │ ├── lib │ │ │ └── browser │ │ │ │ └── index.js │ │ └── package.json │ ├── destroy │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── ee-first │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── encodeurl │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── escape-html │ │ ├── LICENSE │ │ ├── Readme.md │ │ ├── index.js │ │ └── package.json │ ├── etag │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── express │ │ ├── History.md │ │ ├── LICENSE │ │ ├── Readme.md │ │ ├── index.js │ │ ├── lib │ │ │ ├── application.js │ │ │ ├── express.js │ │ │ ├── middleware │ │ │ │ ├── init.js │ │ │ │ └── query.js │ │ │ ├── request.js │ │ │ ├── response.js │ │ │ ├── router │ │ │ │ ├── index.js │ │ │ │ ├── layer.js │ │ │ │ └── route.js │ │ │ ├── utils.js │ │ │ └── view.js │ │ ├── node_modules │ │ │ └── safe-buffer │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── index.d.ts │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ └── package.json │ ├── finalhandler │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── index.js │ │ └── package.json │ ├── forwarded │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── fresh │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── function-bind │ │ ├── .editorconfig │ │ ├── .eslintrc │ │ ├── .jscs.json │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── implementation.js │ │ ├── index.js │ │ ├── package.json │ │ └── test │ │ │ ├── .eslintrc │ │ │ └── index.js │ ├── get-intrinsic │ │ ├── .eslintrc │ │ ├── .github │ │ │ └── FUNDING.yml │ │ ├── .nycrc │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ └── test │ │ │ └── GetIntrinsic.js │ ├── has-symbols │ │ ├── .eslintrc │ │ ├── .github │ │ │ └── FUNDING.yml │ │ ├── .nycrc │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ ├── shams.js │ │ └── test │ │ │ ├── index.js │ │ │ ├── shams │ │ │ ├── core-js.js │ │ │ └── get-own-property-symbols.js │ │ │ └── tests.js │ ├── has │ │ ├── LICENSE-MIT │ │ ├── README.md │ │ ├── package.json │ │ ├── src │ │ │ └── index.js │ │ └── test │ │ │ └── index.js │ ├── http-errors │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── iconv-lite │ │ ├── Changelog.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── encodings │ │ │ ├── dbcs-codec.js │ │ │ ├── dbcs-data.js │ │ │ ├── index.js │ │ │ ├── internal.js │ │ │ ├── sbcs-codec.js │ │ │ ├── sbcs-data-generated.js │ │ │ ├── sbcs-data.js │ │ │ ├── tables │ │ │ │ ├── big5-added.json │ │ │ │ ├── cp936.json │ │ │ │ ├── cp949.json │ │ │ │ ├── cp950.json │ │ │ │ ├── eucjp.json │ │ │ │ ├── gb18030-ranges.json │ │ │ │ ├── gbk-added.json │ │ │ │ └── shiftjis.json │ │ │ ├── utf16.js │ │ │ └── utf7.js │ │ ├── lib │ │ │ ├── bom-handling.js │ │ │ ├── extend-node.js │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ └── streams.js │ │ └── package.json │ ├── inherits │ │ ├── LICENSE │ │ ├── README.md │ │ ├── inherits.js │ │ ├── inherits_browser.js │ │ └── package.json │ ├── ipaddr.js │ │ ├── LICENSE │ │ ├── README.md │ │ ├── ipaddr.min.js │ │ ├── lib │ │ │ ├── ipaddr.js │ │ │ └── ipaddr.js.d.ts │ │ └── package.json │ ├── isarray │ │ ├── README.md │ │ ├── build │ │ │ └── build.js │ │ ├── component.json │ │ ├── index.js │ │ └── package.json │ ├── media-typer │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── merge-descriptors │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── methods │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── mime-db │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── db.json │ │ ├── index.js │ │ └── package.json │ ├── mime-types │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── mime │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── cli.js │ │ ├── mime.js │ │ ├── package.json │ │ ├── src │ │ │ ├── build.js │ │ │ └── test.js │ │ └── types.json │ ├── ms │ │ ├── index.js │ │ ├── license.md │ │ ├── package.json │ │ └── readme.md │ ├── negotiator │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── lib │ │ │ ├── charset.js │ │ │ ├── encoding.js │ │ │ ├── language.js │ │ │ └── mediaType.js │ │ └── package.json │ ├── object-inspect │ │ ├── .eslintrc │ │ ├── .github │ │ │ └── FUNDING.yml │ │ ├── .nycrc │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── example │ │ │ ├── all.js │ │ │ ├── circular.js │ │ │ ├── fn.js │ │ │ └── inspect.js │ │ ├── index.js │ │ ├── package-support.json │ │ ├── package.json │ │ ├── readme.markdown │ │ ├── test-core-js.js │ │ ├── test │ │ │ ├── bigint.js │ │ │ ├── browser │ │ │ │ └── dom.js │ │ │ ├── circular.js │ │ │ ├── deep.js │ │ │ ├── element.js │ │ │ ├── err.js │ │ │ ├── fakes.js │ │ │ ├── fn.js │ │ │ ├── has.js │ │ │ ├── holes.js │ │ │ ├── indent-option.js │ │ │ ├── inspect.js │ │ │ ├── lowbyte.js │ │ │ ├── number.js │ │ │ ├── quoteStyle.js │ │ │ ├── toStringTag.js │ │ │ ├── undef.js │ │ │ └── values.js │ │ └── util.inspect.js │ ├── on-finished │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── parseurl │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── path-to-regexp │ │ ├── History.md │ │ ├── LICENSE │ │ ├── Readme.md │ │ ├── index.js │ │ └── package.json │ ├── proxy-addr │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── qs │ │ ├── .editorconfig │ │ ├── .eslintrc │ │ ├── .github │ │ │ └── FUNDING.yml │ │ ├── .nycrc │ │ ├── CHANGELOG.md │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── dist │ │ │ └── qs.js │ │ ├── lib │ │ │ ├── formats.js │ │ │ ├── index.js │ │ │ ├── parse.js │ │ │ ├── stringify.js │ │ │ └── utils.js │ │ ├── package.json │ │ └── test │ │ │ ├── parse.js │ │ │ ├── stringify.js │ │ │ └── utils.js │ ├── querystringify │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── range-parser │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── raw-body │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── index.d.ts │ │ ├── index.js │ │ └── package.json │ ├── readable-stream │ │ ├── .npmignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── duplex.js │ │ ├── float.patch │ │ ├── lib │ │ │ ├── _stream_duplex.js │ │ │ ├── _stream_passthrough.js │ │ │ ├── _stream_readable.js │ │ │ ├── _stream_transform.js │ │ │ └── _stream_writable.js │ │ ├── package.json │ │ ├── passthrough.js │ │ ├── readable.js │ │ ├── transform.js │ │ └── writable.js │ ├── requires-port │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ └── test.js │ ├── safe-buffer │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.d.ts │ │ ├── index.js │ │ └── package.json │ ├── safer-buffer │ │ ├── LICENSE │ │ ├── Porting-Buffer.md │ │ ├── Readme.md │ │ ├── dangerous.js │ │ ├── package.json │ │ ├── safer.js │ │ └── tests.js │ ├── send │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── index.js │ │ ├── node_modules │ │ │ └── ms │ │ │ │ ├── index.js │ │ │ │ ├── license.md │ │ │ │ ├── package.json │ │ │ │ └── readme.md │ │ └── package.json │ ├── serve-static │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── setprototypeof │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── package.json │ │ └── test │ │ │ └── index.js │ ├── side-channel │ │ ├── .eslintignore │ │ ├── .eslintrc │ │ ├── .github │ │ │ └── FUNDING.yml │ │ ├── .nycrc │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ └── test │ │ │ └── index.js │ ├── statuses │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── codes.json │ │ ├── index.js │ │ └── package.json │ ├── string_decoder │ │ ├── .npmignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── toidentifier │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── type-is │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── unpipe │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ ├── url-parse │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist │ │ │ ├── url-parse.js │ │ │ ├── url-parse.min.js │ │ │ └── url-parse.min.js.map │ │ ├── index.js │ │ └── package.json │ ├── utils-merge │ │ ├── .npmignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json │ └── vary │ │ ├── HISTORY.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.js │ │ └── package.json ├── package-lock.json ├── package.json ├── producer.js └── server.js └── warningAndErrorMS ├── app.js ├── node_modules ├── .package-lock.json ├── amqplib │ ├── .github │ │ └── workflows │ │ │ └── test.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── LICENSE-MIT │ ├── Makefile │ ├── README.md │ ├── bin │ │ └── generate-defs.js │ ├── callback_api.js │ ├── channel_api.js │ ├── examples │ │ ├── headers.js │ │ ├── receive_generator.js │ │ ├── send_generators.js │ │ ├── ssl.js │ │ ├── tutorials │ │ │ ├── README.md │ │ │ ├── callback_api │ │ │ │ ├── emit_log.js │ │ │ │ ├── emit_log_direct.js │ │ │ │ ├── emit_log_topic.js │ │ │ │ ├── new_task.js │ │ │ │ ├── receive.js │ │ │ │ ├── receive_logs.js │ │ │ │ ├── receive_logs_direct.js │ │ │ │ ├── receive_logs_topic.js │ │ │ │ ├── rpc_client.js │ │ │ │ ├── rpc_server.js │ │ │ │ ├── send.js │ │ │ │ └── worker.js │ │ │ ├── emit_log.js │ │ │ ├── emit_log_direct.js │ │ │ ├── emit_log_topic.js │ │ │ ├── new_task.js │ │ │ ├── package.json │ │ │ ├── receive.js │ │ │ ├── receive_logs.js │ │ │ ├── receive_logs_direct.js │ │ │ ├── receive_logs_topic.js │ │ │ ├── rpc_client.js │ │ │ ├── rpc_server.js │ │ │ ├── send.js │ │ │ └── worker.js │ │ └── waitForConfirms.js │ ├── lib │ │ ├── api_args.js │ │ ├── bitset.js │ │ ├── callback_model.js │ │ ├── channel.js │ │ ├── channel_model.js │ │ ├── codec.js │ │ ├── connect.js │ │ ├── connection.js │ │ ├── credentials.js │ │ ├── defs.js │ │ ├── error.js │ │ ├── format.js │ │ ├── frame.js │ │ ├── heartbeat.js │ │ └── mux.js │ ├── package.json │ └── test │ │ ├── bitset.js │ │ ├── callback_api.js │ │ ├── channel.js │ │ ├── channel_api.js │ │ ├── codec.js │ │ ├── connect.js │ │ ├── connection.js │ │ ├── data.js │ │ ├── frame.js │ │ ├── mux.js │ │ └── util.js ├── bitsyntax │ ├── .travis.yml │ ├── LICENSE │ ├── LICENSE-MIT │ ├── Makefile │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── compile.js │ │ ├── constructor.js │ │ ├── grammar.pegjs │ │ ├── interp.js │ │ ├── parse.js │ │ ├── parser.js │ │ └── pattern.js │ ├── package.json │ └── test │ │ ├── consing.js │ │ └── matching.js ├── buffer-more-ints │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── buffer-more-ints-tests.js │ ├── buffer-more-ints.js │ ├── package.json │ └── polyfill.js ├── core-util-is │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── util.js │ └── package.json ├── debug │ ├── .coveralls.yml │ ├── .eslintrc │ ├── .npmignore │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── component.json │ ├── karma.conf.js │ ├── node.js │ ├── package.json │ └── src │ │ ├── browser.js │ │ ├── debug.js │ │ ├── index.js │ │ ├── inspector-log.js │ │ └── node.js ├── inherits │ ├── LICENSE │ ├── README.md │ ├── inherits.js │ ├── inherits_browser.js │ └── package.json ├── isarray │ ├── README.md │ ├── build │ │ └── build.js │ ├── component.json │ ├── index.js │ └── package.json ├── ms │ ├── index.js │ ├── license.md │ ├── package.json │ └── readme.md ├── querystringify │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── readable-stream │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── duplex.js │ ├── float.patch │ ├── lib │ │ ├── _stream_duplex.js │ │ ├── _stream_passthrough.js │ │ ├── _stream_readable.js │ │ ├── _stream_transform.js │ │ └── _stream_writable.js │ ├── package.json │ ├── passthrough.js │ ├── readable.js │ ├── transform.js │ └── writable.js ├── requires-port │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── safe-buffer │ ├── LICENSE │ ├── README.md │ ├── index.d.ts │ ├── index.js │ └── package.json ├── string_decoder │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json └── url-parse │ ├── LICENSE │ ├── README.md │ ├── dist │ ├── url-parse.js │ ├── url-parse.min.js │ └── url-parse.min.js.map │ ├── index.js │ └── package.json ├── package-lock.json └── package.json /README.md: -------------------------------------------------------------------------------- 1 | NodeJs microservices with RabbitMQ implementation of the direct exchange type. 2 | 3 | 2 consumers => loggerMS and warningAndErrorMS 4 | 5 | 1 producer => infoMS 6 | 7 | Idea : Make an API call to create a log, by specifying the log type, which will be used as a message routing key, to be used by the direct exchange, 8 | to correctly route the message to the correct queues. loggerMS and warningAndErrorMS, act as consumers, both listening on 2 different queues, with their own binding keys. 9 | -------------------------------------------------------------------------------- /infoMS/app.js: -------------------------------------------------------------------------------- 1 | const amqp = require("amqplib"); 2 | 3 | //step 1 : Connect to the rabbitmq server 4 | //step 2 : Create a new channel 5 | //step 3 : Create the exchange 6 | //step 4 : Create the queue 7 | //step 5 : Bind the queue to the exchange 8 | //step 6 : Consume messages from the queue 9 | 10 | async function consumeMessages() { 11 | const connection = await amqp.connect("amqp://localhost"); 12 | const channel = await connection.createChannel(); 13 | 14 | await channel.assertExchange("logExchange", "direct"); 15 | 16 | const q = await channel.assertQueue("InfoQueue"); 17 | 18 | await channel.bindQueue(q.queue, "logExchange", "Info"); 19 | 20 | channel.consume(q.queue, (msg) => { 21 | const data = JSON.parse(msg.content); 22 | console.log(data); 23 | channel.ack(msg); 24 | }); 25 | } 26 | 27 | consumeMessages(); 28 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/LICENSE: -------------------------------------------------------------------------------- 1 | amqplib copyright (c) 2013, 2014 2 | Michael Bridgen 3 | 4 | This package, "amqplib", is licensed under the MIT License. A copy may 5 | be found in the file LICENSE-MIT in this directory, or downloaded from 6 | http://opensource.org/licenses/MIT. 7 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/callback_api.js: -------------------------------------------------------------------------------- 1 | var raw_connect = require('./lib/connect').connect; 2 | var CallbackModel = require('./lib/callback_model').CallbackModel; 3 | 4 | // Supports three shapes: 5 | // connect(url, options, callback) 6 | // connect(url, callback) 7 | // connect(callback) 8 | function connect(url, options, cb) { 9 | if (typeof url === 'function') 10 | cb = url, url = false, options = false; 11 | else if (typeof options === 'function') 12 | cb = options, options = false; 13 | 14 | raw_connect(url, options, function(err, c) { 15 | if (err === null) cb(null, new CallbackModel(c)); 16 | else cb(err); 17 | }); 18 | }; 19 | 20 | module.exports.connect = connect; 21 | module.exports.credentials = require('./lib/credentials'); 22 | module.exports.IllegalOperationError = require('./lib/error').IllegalOperationError; 23 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/channel_api.js: -------------------------------------------------------------------------------- 1 | var raw_connect = require('./lib/connect').connect; 2 | var ChannelModel = require('./lib/channel_model').ChannelModel; 3 | var promisify = require('util').promisify; 4 | 5 | function connect(url, connOptions) { 6 | return promisify(function(cb) { 7 | return raw_connect(url, connOptions, cb); 8 | })() 9 | .then(function(conn) { 10 | return new ChannelModel(conn); 11 | }); 12 | }; 13 | 14 | module.exports.connect = connect; 15 | module.exports.credentials = require('./lib/credentials'); 16 | module.exports.IllegalOperationError = require('./lib/error').IllegalOperationError; 17 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/callback_api/emit_log.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | 13 | var ex = 'logs'; 14 | 15 | function on_channel_open(err, ch) { 16 | if (err !== null) return bail(err, conn); 17 | ch.assertExchange(ex, 'fanout', {durable: false}); 18 | var msg = process.argv.slice(2).join(' ') || 19 | 'info: Hello World!'; 20 | ch.publish(ex, '', Buffer.from(msg)); 21 | console.log(" [x] Sent '%s'", msg); 22 | ch.close(function() { conn.close(); }); 23 | } 24 | 25 | conn.createChannel(on_channel_open); 26 | } 27 | 28 | amqp.connect(on_connect); 29 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/callback_api/emit_log_direct.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | var args = process.argv.slice(2); 6 | var severity = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | function bail(err, conn) { 10 | console.error(err); 11 | if (conn) conn.close(function() { process.exit(1); }); 12 | } 13 | 14 | function on_connect(err, conn) { 15 | if (err !== null) return bail(err); 16 | 17 | var ex = 'direct_logs'; 18 | var exopts = {durable: false}; 19 | 20 | function on_channel_open(err, ch) { 21 | if (err !== null) return bail(err, conn); 22 | ch.assertExchange(ex, 'direct', exopts, function(err, ok) { 23 | ch.publish(ex, severity, Buffer.from(message)); 24 | ch.close(function() { conn.close(); }); 25 | }); 26 | } 27 | conn.createChannel(on_channel_open); 28 | } 29 | 30 | amqp.connect(on_connect); 31 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/callback_api/emit_log_topic.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | var args = process.argv.slice(2); 6 | var key = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | function bail(err, conn) { 10 | console.error(err); 11 | if (conn) conn.close(function() { process.exit(1); }); 12 | } 13 | 14 | function on_connect(err, conn) { 15 | if (err !== null) return bail(err); 16 | var ex = 'topic_logs', exopts = {durable: false}; 17 | conn.createChannel(function(err, ch) { 18 | ch.assertExchange(ex, 'topic', exopts, function(err, ok) { 19 | if (err !== null) return bail(err, conn); 20 | ch.publish(ex, key, Buffer.from(message)); 21 | console.log(" [x] Sent %s:'%s'", key, message); 22 | ch.close(function() { conn.close(); }); 23 | }); 24 | }); 25 | } 26 | 27 | amqp.connect(on_connect); 28 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/callback_api/new_task.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | 13 | var q = 'task_queue'; 14 | 15 | conn.createChannel(function(err, ch) { 16 | if (err !== null) return bail(err, conn); 17 | ch.assertQueue(q, {durable: true}, function(err, _ok) { 18 | if (err !== null) return bail(err, conn); 19 | var msg = process.argv.slice(2).join(' ') || "Hello World!"; 20 | ch.sendToQueue(q, Buffer.from(msg), {persistent: true}); 21 | console.log(" [x] Sent '%s'", msg); 22 | ch.close(function() { conn.close(); }); 23 | }); 24 | }); 25 | } 26 | 27 | amqp.connect(on_connect); 28 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/callback_api/receive.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | process.once('SIGINT', function() { conn.close(); }); 13 | 14 | var q = 'hello'; 15 | 16 | function on_channel_open(err, ch) { 17 | ch.assertQueue(q, {durable: false}, function(err, ok) { 18 | if (err !== null) return bail(err, conn); 19 | ch.consume(q, function(msg) { // message callback 20 | console.log(" [x] Received '%s'", msg.content.toString()); 21 | }, {noAck: true}, function(_consumeOk) { // consume callback 22 | console.log(' [*] Waiting for messages. To exit press CTRL+C'); 23 | }); 24 | }); 25 | } 26 | 27 | conn.createChannel(on_channel_open); 28 | } 29 | 30 | amqp.connect(on_connect); 31 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/callback_api/receive_logs.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | process.once('SIGINT', function() { conn.close(); }); 13 | 14 | var ex = 'logs'; 15 | 16 | function on_channel_open(err, ch) { 17 | if (err !== null) return bail(err, conn); 18 | ch.assertQueue('', {exclusive: true}, function(err, ok) { 19 | var q = ok.queue; 20 | ch.bindQueue(q, ex, ''); 21 | ch.consume(q, logMessage, {noAck: true}, function(err, ok) { 22 | if (err !== null) return bail(err, conn); 23 | console.log(" [*] Waiting for logs. To exit press CTRL+C."); 24 | }); 25 | }); 26 | } 27 | 28 | function logMessage(msg) { 29 | if (msg) 30 | console.log(" [x] '%s'", msg.content.toString()); 31 | } 32 | 33 | conn.createChannel(on_channel_open); 34 | } 35 | 36 | amqp.connect(on_connect); 37 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/callback_api/send.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | 13 | var q = 'hello'; 14 | var msg = 'Hello World!'; 15 | 16 | function on_channel_open(err, ch) { 17 | if (err !== null) return bail(err, conn); 18 | ch.assertQueue(q, {durable: false}, function(err, ok) { 19 | if (err !== null) return bail(err, conn); 20 | ch.sendToQueue(q, Buffer.from(msg)); 21 | console.log(" [x] Sent '%s'", msg); 22 | ch.close(function() { conn.close(); }); 23 | }); 24 | } 25 | 26 | conn.createChannel(on_channel_open); 27 | } 28 | 29 | amqp.connect(on_connect); 30 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/callback_api/worker.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | process.once('SIGINT', function() { conn.close(); }); 13 | 14 | var q = 'task_queue'; 15 | 16 | conn.createChannel(function(err, ch) { 17 | if (err !== null) return bail(err, conn); 18 | ch.assertQueue(q, {durable: true}, function(err, _ok) { 19 | ch.consume(q, doWork, {noAck: false}); 20 | console.log(" [*] Waiting for messages. To exit press CTRL+C"); 21 | }); 22 | 23 | function doWork(msg) { 24 | var body = msg.content.toString(); 25 | console.log(" [x] Received '%s'", body); 26 | var secs = body.split('.').length - 1; 27 | setTimeout(function() { 28 | console.log(" [x] Done"); 29 | ch.ack(msg); 30 | }, secs * 1000); 31 | } 32 | }); 33 | } 34 | 35 | amqp.connect(on_connect); 36 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/emit_log.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | return conn.createChannel().then(function(ch) { 7 | var ex = 'logs'; 8 | var ok = ch.assertExchange(ex, 'fanout', {durable: false}) 9 | 10 | var message = process.argv.slice(2).join(' ') || 11 | 'info: Hello World!'; 12 | 13 | return ok.then(function() { 14 | ch.publish(ex, '', Buffer.from(message)); 15 | console.log(" [x] Sent '%s'", message); 16 | return ch.close(); 17 | }); 18 | }).finally(function() { conn.close(); }); 19 | }).catch(console.warn); 20 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/emit_log_direct.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | var args = process.argv.slice(2); 6 | var severity = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | amqp.connect('amqp://localhost').then(function(conn) { 10 | return conn.createChannel().then(function(ch) { 11 | var ex = 'direct_logs'; 12 | var ok = ch.assertExchange(ex, 'direct', {durable: false}); 13 | 14 | return ok.then(function() { 15 | ch.publish(ex, severity, Buffer.from(message)); 16 | console.log(" [x] Sent %s:'%s'", severity, message); 17 | return ch.close(); 18 | }); 19 | }).finally(function() { conn.close(); }); 20 | }).catch(console.warn); 21 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/emit_log_topic.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | var args = process.argv.slice(2); 6 | var key = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | amqp.connect('amqp://localhost').then(function(conn) { 10 | return conn.createChannel().then(function(ch) { 11 | var ex = 'topic_logs'; 12 | var ok = ch.assertExchange(ex, 'topic', {durable: false}); 13 | return ok.then(function() { 14 | ch.publish(ex, key, Buffer.from(message)); 15 | console.log(" [x] Sent %s:'%s'", key, message); 16 | return ch.close(); 17 | }); 18 | }).finally(function() { conn.close(); }) 19 | }).catch(console.log); 20 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/new_task.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // Post a new task to the work queue 3 | 4 | var amqp = require('amqplib'); 5 | 6 | amqp.connect('amqp://localhost').then(function(conn) { 7 | return conn.createChannel().then(function(ch) { 8 | var q = 'task_queue'; 9 | var ok = ch.assertQueue(q, {durable: true}); 10 | 11 | return ok.then(function() { 12 | var msg = process.argv.slice(2).join(' ') || "Hello World!"; 13 | ch.sendToQueue(q, Buffer.from(msg), {deliveryMode: true}); 14 | console.log(" [x] Sent '%s'", msg); 15 | return ch.close(); 16 | }); 17 | }).finally(function() { conn.close(); }); 18 | }).catch(console.warn); 19 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amqplib-tutorials", 3 | "version": "0.0.1", 4 | "description": "The RabbitMQ tutorials, ported to amqplib", 5 | "main": "send.js", 6 | "dependencies": { 7 | "amqplib": "../..", 8 | "uuid": "*" 9 | }, 10 | "scripts": { 11 | "test": "echo \"Error: no test specified\" && exit 1" 12 | }, 13 | "repository": "", 14 | "author": "Michael Bridgen ", 15 | "license": "MPL 2.0" 16 | } 17 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/receive.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | process.once('SIGINT', function() { conn.close(); }); 7 | return conn.createChannel().then(function(ch) { 8 | 9 | var ok = ch.assertQueue('hello', {durable: false}); 10 | 11 | ok = ok.then(function(_qok) { 12 | return ch.consume('hello', function(msg) { 13 | console.log(" [x] Received '%s'", msg.content.toString()); 14 | }, {noAck: true}); 15 | }); 16 | 17 | return ok.then(function(_consumeOk) { 18 | console.log(' [*] Waiting for messages. To exit press CTRL+C'); 19 | }); 20 | }); 21 | }).catch(console.warn); 22 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/receive_logs.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | process.once('SIGINT', function() { conn.close(); }); 7 | return conn.createChannel().then(function(ch) { 8 | var ok = ch.assertExchange('logs', 'fanout', {durable: false}); 9 | ok = ok.then(function() { 10 | return ch.assertQueue('', {exclusive: true}); 11 | }); 12 | ok = ok.then(function(qok) { 13 | return ch.bindQueue(qok.queue, 'logs', '').then(function() { 14 | return qok.queue; 15 | }); 16 | }); 17 | ok = ok.then(function(queue) { 18 | return ch.consume(queue, logMessage, {noAck: true}); 19 | }); 20 | return ok.then(function() { 21 | console.log(' [*] Waiting for logs. To exit press CTRL+C'); 22 | }); 23 | 24 | function logMessage(msg) { 25 | console.log(" [x] '%s'", msg.content.toString()); 26 | } 27 | }); 28 | }).catch(console.warn); 29 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/send.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | return conn.createChannel().then(function(ch) { 7 | var q = 'hello'; 8 | var msg = 'Hello World!'; 9 | 10 | var ok = ch.assertQueue(q, {durable: false}); 11 | 12 | return ok.then(function(_qok) { 13 | // NB: `sentToQueue` and `publish` both return a boolean 14 | // indicating whether it's OK to send again straight away, or 15 | // (when `false`) that you should wait for the event `'drain'` 16 | // to fire before writing again. We're just doing the one write, 17 | // so we'll ignore it. 18 | ch.sendToQueue(q, Buffer.from(msg)); 19 | console.log(" [x] Sent '%s'", msg); 20 | return ch.close(); 21 | }); 22 | }).finally(function() { conn.close(); }); 23 | }).catch(console.warn); 24 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/tutorials/worker.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // Process tasks from the work queue 3 | 4 | var amqp = require('amqplib'); 5 | 6 | amqp.connect('amqp://localhost').then(function(conn) { 7 | process.once('SIGINT', function() { conn.close(); }); 8 | return conn.createChannel().then(function(ch) { 9 | var ok = ch.assertQueue('task_queue', {durable: true}); 10 | ok = ok.then(function() { ch.prefetch(1); }); 11 | ok = ok.then(function() { 12 | ch.consume('task_queue', doWork, {noAck: false}); 13 | console.log(" [*] Waiting for messages. To exit press CTRL+C"); 14 | }); 15 | return ok; 16 | 17 | function doWork(msg) { 18 | var body = msg.content.toString(); 19 | console.log(" [x] Received '%s'", body); 20 | var secs = body.split('.').length - 1; 21 | //console.log(" [x] Task takes %d seconds", secs); 22 | setTimeout(function() { 23 | console.log(" [x] Done"); 24 | ch.ack(msg); 25 | }, secs * 1000); 26 | } 27 | }); 28 | }).catch(console.warn); 29 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/examples/waitForConfirms.js: -------------------------------------------------------------------------------- 1 | var amqp = require('../'); 2 | 3 | var NUM_MSGS = 20; 4 | 5 | function mkCallback(i) { 6 | return (i % 2) === 0 ? function(err) { 7 | if (err !== null) { console.error('Message %d failed!', i); } 8 | else { console.log('Message %d confirmed', i); } 9 | } : null; 10 | } 11 | 12 | amqp.connect().then(function(c) { 13 | c.createConfirmChannel().then(function(ch) { 14 | for (var i=0; i < NUM_MSGS; i++) { 15 | ch.publish('amq.topic', 'whatever', Buffer.from('blah'), {}, mkCallback(i)); 16 | } 17 | ch.waitForConfirms().then(function() { 18 | console.log('All messages done'); 19 | c.close(); 20 | }).catch(console.error); 21 | }); 22 | }); 23 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/lib/error.js: -------------------------------------------------------------------------------- 1 | var inherits = require('util').inherits; 2 | 3 | function trimStack(stack, num) { 4 | return stack && stack.split('\n').slice(num).join('\n'); 5 | } 6 | 7 | function IllegalOperationError(msg, stack) { 8 | var tmp = new Error(); 9 | this.message = msg; 10 | this.stack = this.toString() + '\n' + trimStack(tmp.stack, 2); 11 | this.stackAtStateChange = stack; 12 | } 13 | inherits(IllegalOperationError, Error); 14 | 15 | IllegalOperationError.prototype.name = 'IllegalOperationError'; 16 | 17 | function stackCapture(reason) { 18 | var e = new Error(); 19 | return 'Stack capture: ' + reason + '\n' + 20 | trimStack(e.stack, 2); 21 | } 22 | 23 | module.exports.IllegalOperationError = IllegalOperationError; 24 | module.exports.stackCapture = stackCapture; 25 | -------------------------------------------------------------------------------- /infoMS/node_modules/amqplib/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amqplib", 3 | "homepage": "http://amqp-node.github.io/amqplib/", 4 | "main": "./channel_api.js", 5 | "version": "0.10.0", 6 | "description": "An AMQP 0-9-1 (e.g., RabbitMQ) library and client.", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/amqp-node/amqplib.git" 10 | }, 11 | "engines": { 12 | "node": ">=10" 13 | }, 14 | "dependencies": { 15 | "bitsyntax": "~0.1.0", 16 | "buffer-more-ints": "~1.0.0", 17 | "readable-stream": "1.x >=1.1.9", 18 | "url-parse": "~1.5.10" 19 | }, 20 | "devDependencies": { 21 | "claire": "0.4.1", 22 | "mocha": "^9.2.2", 23 | "nyc": "^15.1.0", 24 | "uglify-js": "2.8.x" 25 | }, 26 | "scripts": { 27 | "test": "make test", 28 | "prepare": "make" 29 | }, 30 | "keywords": [ 31 | "AMQP", 32 | "AMQP 0-9-1", 33 | "RabbitMQ" 34 | ], 35 | "author": "Michael Bridgen ", 36 | "license": "MIT" 37 | } 38 | -------------------------------------------------------------------------------- /infoMS/node_modules/bitsyntax/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - "0.8" 5 | - "0.10" 6 | - "0.12" 7 | - "4.2" 8 | - "6.12" 9 | - "8.9" 10 | - "9.11" 11 | - "10.10" 12 | - "node" 13 | -------------------------------------------------------------------------------- /infoMS/node_modules/bitsyntax/LICENSE: -------------------------------------------------------------------------------- 1 | bitsyntax-js copyright (c) 2012-2014 2 | Michael Bridgen 3 | 4 | This package, "bitsyntax-js", is licensed under the MIT License. A 5 | copy may be found in the file LICENSE-MIT in this directory, or 6 | downloaded from http://opensource.org/licenses/MIT. 7 | -------------------------------------------------------------------------------- /infoMS/node_modules/bitsyntax/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test all 2 | 3 | GRAMMAR=lib/grammar.pegjs 4 | PEGJS=./node_modules/.bin/pegjs 5 | 6 | all: lib/parser.js 7 | 8 | lib/parser.js: $(PEGJS) 9 | $(PEGJS) $(GRAMMAR) $@ 10 | 11 | $(PEGJS): 12 | npm install 13 | 14 | test: lib/parser.js 15 | ./node_modules/.bin/mocha --check-leaks -R list -u tdd test/*.js 16 | -------------------------------------------------------------------------------- /infoMS/node_modules/bitsyntax/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports.parse = require('./lib/parse').parse; 4 | module.exports.match = require('./lib/interp').match; 5 | module.exports.build = require('./lib/constructor').build; 6 | module.exports.write = require('./lib/constructor').write; 7 | 8 | module.exports.matcher = module.exports.compile = 9 | require('./lib/compile').compile; 10 | module.exports.builder = require('./lib/compile').compile_builder; 11 | -------------------------------------------------------------------------------- /infoMS/node_modules/bitsyntax/lib/parse.js: -------------------------------------------------------------------------------- 1 | // Parse patterns in string form into the form we use for interpreting 2 | // (and later, for compiling). 3 | 4 | 'use strict'; 5 | 6 | var ast = require('./pattern'); 7 | var parser = require('./parser'); 8 | 9 | function parse_pattern(string) { 10 | var segments = parser.parse(string); 11 | for (var i=0, len = segments.length; i < len; i++) { 12 | var s = segments[i]; 13 | if (s.string != undefined) { 14 | segments[i] = ast.string(s.string); 15 | } 16 | else if (s.value != undefined) { 17 | segments[i] = ast.value(s.value, s.size, s.specifiers); 18 | } 19 | else if (s.name != undefined) { 20 | segments[i] = ast.variable(s.name, s.size, s.specifiers); 21 | } 22 | else { 23 | throw "Unknown segment " + s; 24 | } 25 | } 26 | return segments; 27 | } 28 | 29 | module.exports.parse = function() { 30 | var str = [].join.call(arguments, ','); 31 | return parse_pattern(str); 32 | }; 33 | -------------------------------------------------------------------------------- /infoMS/node_modules/bitsyntax/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "Michael Bridgen", 4 | "email": "" 5 | }, 6 | "name": "bitsyntax", 7 | "description": "Pattern-matching on byte buffers", 8 | "license": "MIT", 9 | "version": "0.1.0", 10 | "repository": { 11 | "type": "git", 12 | "url": "git://github.com/squaremo/bitsyntax-js.git" 13 | }, 14 | "main": "./index", 15 | "scripts": { 16 | "test": "make test", 17 | "prepublish": "make all" 18 | }, 19 | "engines": { 20 | "node": ">=0.8" 21 | }, 22 | "dependencies": { 23 | "buffer-more-ints": "~1.0.0", 24 | "debug": "~2.6.9", 25 | "safe-buffer": "~5.1.2" 26 | }, 27 | "devDependencies": { 28 | "mocha": "1.x", 29 | "pegjs": "0.7.0" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /infoMS/node_modules/buffer-more-ints/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.11" 4 | - "0.10" 5 | - "0.8" 6 | - "0.6" 7 | -------------------------------------------------------------------------------- /infoMS/node_modules/buffer-more-ints/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 David Wragg. All rights reserved. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to 5 | deal in the Software without restriction, including without limitation the 6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 | sell copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19 | IN THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /infoMS/node_modules/buffer-more-ints/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "buffer-more-ints", 3 | "version": "1.0.0", 4 | "author": "David Wragg ", 5 | "description": "Add support for more integer widths to Buffer", 6 | "homepage": "https://github.com/dpw/node-buffer-more-ints", 7 | "license": "MIT", 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com/dpw/node-buffer-more-ints.git" 11 | }, 12 | "main": "buffer-more-ints.js", 13 | "devDependencies": { 14 | "nodeunit": "" 15 | }, 16 | "scripts": { 17 | "test": "node ./node_modules/nodeunit/bin/nodeunit buffer-more-ints-tests.js" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /infoMS/node_modules/core-util-is/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Node.js contributors. All rights reserved. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to 5 | deal in the Software without restriction, including without limitation the 6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 | sell copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19 | IN THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /infoMS/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /infoMS/node_modules/core-util-is/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core-util-is", 3 | "version": "1.0.3", 4 | "description": "The `util.is*` functions introduced in Node v0.12.", 5 | "main": "lib/util.js", 6 | "files": [ 7 | "lib" 8 | ], 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/isaacs/core-util-is" 12 | }, 13 | "keywords": [ 14 | "util", 15 | "isBuffer", 16 | "isArray", 17 | "isNumber", 18 | "isString", 19 | "isRegExp", 20 | "isThis", 21 | "isThat", 22 | "polyfill" 23 | ], 24 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 25 | "license": "MIT", 26 | "bugs": { 27 | "url": "https://github.com/isaacs/core-util-is/issues" 28 | }, 29 | "scripts": { 30 | "test": "tap test.js", 31 | "preversion": "npm test", 32 | "postversion": "npm publish", 33 | "prepublishOnly": "git push origin --follow-tags" 34 | }, 35 | "devDependencies": { 36 | "tap": "^15.0.9" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /infoMS/node_modules/debug/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve 2 | -------------------------------------------------------------------------------- /infoMS/node_modules/debug/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true 5 | }, 6 | "rules": { 7 | "no-console": 0, 8 | "no-empty": [1, { "allowEmptyCatch": true }] 9 | }, 10 | "extends": "eslint:recommended" 11 | } 12 | -------------------------------------------------------------------------------- /infoMS/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | yarn.lock 8 | coverage 9 | bower.json 10 | -------------------------------------------------------------------------------- /infoMS/node_modules/debug/.travis.yml: -------------------------------------------------------------------------------- 1 | 2 | language: node_js 3 | node_js: 4 | - "6" 5 | - "5" 6 | - "4" 7 | 8 | install: 9 | - make node_modules 10 | 11 | script: 12 | - make lint 13 | - make test 14 | - make coveralls 15 | -------------------------------------------------------------------------------- /infoMS/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "2.6.9", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "src/browser.js", 12 | "scripts": [ 13 | "src/browser.js", 14 | "src/debug.js" 15 | ], 16 | "dependencies": { 17 | "rauchg/ms.js": "0.7.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /infoMS/node_modules/debug/node.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/node'); 2 | -------------------------------------------------------------------------------- /infoMS/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process !== 'undefined' && process.type === 'renderer') { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /infoMS/node_modules/debug/src/inspector-log.js: -------------------------------------------------------------------------------- 1 | module.exports = inspectorLog; 2 | 3 | // black hole 4 | const nullStream = new (require('stream').Writable)(); 5 | nullStream._write = () => {}; 6 | 7 | /** 8 | * Outputs a `console.log()` to the Node.js Inspector console *only*. 9 | */ 10 | function inspectorLog() { 11 | const stdout = console._stdout; 12 | console._stdout = nullStream; 13 | console.log.apply(console, arguments); 14 | console._stdout = stdout; 15 | } 16 | -------------------------------------------------------------------------------- /infoMS/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /infoMS/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | try { 2 | var util = require('util'); 3 | /* istanbul ignore next */ 4 | if (typeof util.inherits !== 'function') throw ''; 5 | module.exports = util.inherits; 6 | } catch (e) { 7 | /* istanbul ignore next */ 8 | module.exports = require('./inherits_browser.js'); 9 | } 10 | -------------------------------------------------------------------------------- /infoMS/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | if (superCtor) { 5 | ctor.super_ = superCtor 6 | ctor.prototype = Object.create(superCtor.prototype, { 7 | constructor: { 8 | value: ctor, 9 | enumerable: false, 10 | writable: true, 11 | configurable: true 12 | } 13 | }) 14 | } 15 | }; 16 | } else { 17 | // old school shim for old browsers 18 | module.exports = function inherits(ctor, superCtor) { 19 | if (superCtor) { 20 | ctor.super_ = superCtor 21 | var TempCtor = function () {} 22 | TempCtor.prototype = superCtor.prototype 23 | ctor.prototype = new TempCtor() 24 | ctor.prototype.constructor = ctor 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /infoMS/node_modules/inherits/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "inherits", 3 | "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", 4 | "version": "2.0.4", 5 | "keywords": [ 6 | "inheritance", 7 | "class", 8 | "klass", 9 | "oop", 10 | "object-oriented", 11 | "inherits", 12 | "browser", 13 | "browserify" 14 | ], 15 | "main": "./inherits.js", 16 | "browser": "./inherits_browser.js", 17 | "repository": "git://github.com/isaacs/inherits", 18 | "license": "ISC", 19 | "scripts": { 20 | "test": "tap" 21 | }, 22 | "devDependencies": { 23 | "tap": "^14.2.4" 24 | }, 25 | "files": [ 26 | "inherits.js", 27 | "inherits_browser.js" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /infoMS/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /infoMS/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /infoMS/node_modules/isarray/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : { 6 | "type" : "git", 7 | "url" : "git://github.com/juliangruber/isarray.git" 8 | }, 9 | "homepage": "https://github.com/juliangruber/isarray", 10 | "main" : "index.js", 11 | "scripts" : { 12 | "test" : "tap test/*.js" 13 | }, 14 | "dependencies" : {}, 15 | "devDependencies" : { 16 | "tap" : "*" 17 | }, 18 | "keywords": ["browser","isarray","array"], 19 | "author": { 20 | "name": "Julian Gruber", 21 | "email": "mail@juliangruber.com", 22 | "url": "http://juliangruber.com" 23 | }, 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /infoMS/node_modules/ms/license.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Zeit, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /infoMS/node_modules/ms/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ms", 3 | "version": "2.0.0", 4 | "description": "Tiny milisecond conversion utility", 5 | "repository": "zeit/ms", 6 | "main": "./index", 7 | "files": [ 8 | "index.js" 9 | ], 10 | "scripts": { 11 | "precommit": "lint-staged", 12 | "lint": "eslint lib/* bin/*", 13 | "test": "mocha tests.js" 14 | }, 15 | "eslintConfig": { 16 | "extends": "eslint:recommended", 17 | "env": { 18 | "node": true, 19 | "es6": true 20 | } 21 | }, 22 | "lint-staged": { 23 | "*.js": [ 24 | "npm run lint", 25 | "prettier --single-quote --write", 26 | "git add" 27 | ] 28 | }, 29 | "license": "MIT", 30 | "devDependencies": { 31 | "eslint": "3.19.0", 32 | "expect.js": "0.3.1", 33 | "husky": "0.13.3", 34 | "lint-staged": "3.4.1", 35 | "mocha": "3.4.1" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /infoMS/node_modules/querystringify/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "querystringify", 3 | "version": "2.2.0", 4 | "description": "Querystringify - Small, simple but powerful query string parser.", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "nyc --reporter=html --reporter=text mocha test.js", 8 | "watch": "mocha --watch test.js" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/unshiftio/querystringify" 13 | }, 14 | "keywords": [ 15 | "query", 16 | "string", 17 | "query-string", 18 | "querystring", 19 | "qs", 20 | "stringify", 21 | "parse", 22 | "decode", 23 | "encode" 24 | ], 25 | "author": "Arnout Kazemier", 26 | "license": "MIT", 27 | "bugs": { 28 | "url": "https://github.com/unshiftio/querystringify/issues" 29 | }, 30 | "homepage": "https://github.com/unshiftio/querystringify", 31 | "devDependencies": { 32 | "assume": "^2.1.0", 33 | "coveralls": "^3.1.0", 34 | "mocha": "^8.1.1", 35 | "nyc": "^15.1.0", 36 | "pre-commit": "^1.2.2" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /infoMS/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /infoMS/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /infoMS/node_modules/readable-stream/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "readable-stream", 3 | "version": "1.1.14", 4 | "description": "Streams3, a user-land copy of the stream library from Node.js v0.11.x", 5 | "main": "readable.js", 6 | "dependencies": { 7 | "core-util-is": "~1.0.0", 8 | "isarray": "0.0.1", 9 | "string_decoder": "~0.10.x", 10 | "inherits": "~2.0.1" 11 | }, 12 | "devDependencies": { 13 | "tap": "~0.2.6" 14 | }, 15 | "scripts": { 16 | "test": "tap test/simple/*.js" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "git://github.com/isaacs/readable-stream" 21 | }, 22 | "keywords": [ 23 | "readable", 24 | "stream", 25 | "pipe" 26 | ], 27 | "browser": { 28 | "util": false 29 | }, 30 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 31 | "license": "MIT" 32 | } 33 | -------------------------------------------------------------------------------- /infoMS/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /infoMS/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = require('stream'); 3 | exports.Readable = exports; 4 | exports.Writable = require('./lib/_stream_writable.js'); 5 | exports.Duplex = require('./lib/_stream_duplex.js'); 6 | exports.Transform = require('./lib/_stream_transform.js'); 7 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 8 | if (!process.browser && process.env.READABLE_STREAM === 'disable') { 9 | module.exports = require('stream'); 10 | } 11 | -------------------------------------------------------------------------------- /infoMS/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /infoMS/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /infoMS/node_modules/requires-port/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | -------------------------------------------------------------------------------- /infoMS/node_modules/requires-port/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "4" 5 | - "iojs" 6 | - "0.12" 7 | - "0.10" 8 | script: 9 | - "npm run test-travis" 10 | after_script: 11 | - "npm install coveralls@2 && cat coverage/lcov.info | coveralls" 12 | matrix: 13 | fast_finish: true 14 | notifications: 15 | irc: 16 | channels: 17 | - "irc.freenode.org#unshift" 18 | on_success: change 19 | on_failure: change 20 | -------------------------------------------------------------------------------- /infoMS/node_modules/requires-port/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Check if we're required to add a port number. 5 | * 6 | * @see https://url.spec.whatwg.org/#default-port 7 | * @param {Number|String} port Port number we need to check 8 | * @param {String} protocol Protocol we need to check against. 9 | * @returns {Boolean} Is it a default port for the given protocol 10 | * @api private 11 | */ 12 | module.exports = function required(port, protocol) { 13 | protocol = protocol.split(':')[0]; 14 | port = +port; 15 | 16 | if (!port) return false; 17 | 18 | switch (protocol) { 19 | case 'http': 20 | case 'ws': 21 | return port !== 80; 22 | 23 | case 'https': 24 | case 'wss': 25 | return port !== 443; 26 | 27 | case 'ftp': 28 | return port !== 21; 29 | 30 | case 'gopher': 31 | return port !== 70; 32 | 33 | case 'file': 34 | return false; 35 | } 36 | 37 | return port !== 0; 38 | }; 39 | -------------------------------------------------------------------------------- /infoMS/node_modules/safe-buffer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "safe-buffer", 3 | "description": "Safer Node.js Buffer API", 4 | "version": "5.1.2", 5 | "author": { 6 | "name": "Feross Aboukhadijeh", 7 | "email": "feross@feross.org", 8 | "url": "http://feross.org" 9 | }, 10 | "bugs": { 11 | "url": "https://github.com/feross/safe-buffer/issues" 12 | }, 13 | "devDependencies": { 14 | "standard": "*", 15 | "tape": "^4.0.0" 16 | }, 17 | "homepage": "https://github.com/feross/safe-buffer", 18 | "keywords": [ 19 | "buffer", 20 | "buffer allocate", 21 | "node security", 22 | "safe", 23 | "safe-buffer", 24 | "security", 25 | "uninitialized" 26 | ], 27 | "license": "MIT", 28 | "main": "index.js", 29 | "types": "index.d.ts", 30 | "repository": { 31 | "type": "git", 32 | "url": "git://github.com/feross/safe-buffer.git" 33 | }, 34 | "scripts": { 35 | "test": "standard && tape test/*.js" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /infoMS/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /infoMS/node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /infoMS/node_modules/string_decoder/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "string_decoder", 3 | "version": "0.10.31", 4 | "description": "The string_decoder module from Node core", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": { 8 | "tap": "~0.4.8" 9 | }, 10 | "scripts": { 11 | "test": "tap test/simple/*.js" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/rvagg/string_decoder.git" 16 | }, 17 | "homepage": "https://github.com/rvagg/string_decoder", 18 | "keywords": [ 19 | "string", 20 | "decoder", 21 | "browser", 22 | "browserify" 23 | ], 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /infoMS/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "infoms", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "amqplib": "^0.10.0" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /loggerMS/config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | rabbitMQ: { 3 | url: "amqp://localhost", 4 | exchangeName: "logExchange", 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /loggerMS/node_modules/.bin/mime: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | exec "$basedir/node" "$basedir/../mime/cli.js" "$@" 10 | else 11 | exec node "$basedir/../mime/cli.js" "$@" 12 | fi 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/.bin/mime.cmd: -------------------------------------------------------------------------------- 1 | @ECHO off 2 | GOTO start 3 | :find_dp0 4 | SET dp0=%~dp0 5 | EXIT /b 6 | :start 7 | SETLOCAL 8 | CALL :find_dp0 9 | 10 | IF EXIST "%dp0%\node.exe" ( 11 | SET "_prog=%dp0%\node.exe" 12 | ) ELSE ( 13 | SET "_prog=node" 14 | SET PATHEXT=%PATHEXT:;.JS;=;% 15 | ) 16 | 17 | endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mime\cli.js" %* 18 | -------------------------------------------------------------------------------- /loggerMS/node_modules/.bin/mime.ps1: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env pwsh 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent 3 | 4 | $exe="" 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { 6 | # Fix case when both the Windows and Linux builds of Node 7 | # are installed in the same directory 8 | $exe=".exe" 9 | } 10 | $ret=0 11 | if (Test-Path "$basedir/node$exe") { 12 | # Support pipeline input 13 | if ($MyInvocation.ExpectingInput) { 14 | $input | & "$basedir/node$exe" "$basedir/../mime/cli.js" $args 15 | } else { 16 | & "$basedir/node$exe" "$basedir/../mime/cli.js" $args 17 | } 18 | $ret=$LASTEXITCODE 19 | } else { 20 | # Support pipeline input 21 | if ($MyInvocation.ExpectingInput) { 22 | $input | & "node$exe" "$basedir/../mime/cli.js" $args 23 | } else { 24 | & "node$exe" "$basedir/../mime/cli.js" $args 25 | } 26 | $ret=$LASTEXITCODE 27 | } 28 | exit $ret 29 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/LICENSE: -------------------------------------------------------------------------------- 1 | amqplib copyright (c) 2013, 2014 2 | Michael Bridgen 3 | 4 | This package, "amqplib", is licensed under the MIT License. A copy may 5 | be found in the file LICENSE-MIT in this directory, or downloaded from 6 | http://opensource.org/licenses/MIT. 7 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/callback_api.js: -------------------------------------------------------------------------------- 1 | var raw_connect = require('./lib/connect').connect; 2 | var CallbackModel = require('./lib/callback_model').CallbackModel; 3 | 4 | // Supports three shapes: 5 | // connect(url, options, callback) 6 | // connect(url, callback) 7 | // connect(callback) 8 | function connect(url, options, cb) { 9 | if (typeof url === 'function') 10 | cb = url, url = false, options = false; 11 | else if (typeof options === 'function') 12 | cb = options, options = false; 13 | 14 | raw_connect(url, options, function(err, c) { 15 | if (err === null) cb(null, new CallbackModel(c)); 16 | else cb(err); 17 | }); 18 | }; 19 | 20 | module.exports.connect = connect; 21 | module.exports.credentials = require('./lib/credentials'); 22 | module.exports.IllegalOperationError = require('./lib/error').IllegalOperationError; 23 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/channel_api.js: -------------------------------------------------------------------------------- 1 | var raw_connect = require('./lib/connect').connect; 2 | var ChannelModel = require('./lib/channel_model').ChannelModel; 3 | var promisify = require('util').promisify; 4 | 5 | function connect(url, connOptions) { 6 | return promisify(function(cb) { 7 | return raw_connect(url, connOptions, cb); 8 | })() 9 | .then(function(conn) { 10 | return new ChannelModel(conn); 11 | }); 12 | }; 13 | 14 | module.exports.connect = connect; 15 | module.exports.credentials = require('./lib/credentials'); 16 | module.exports.IllegalOperationError = require('./lib/error').IllegalOperationError; 17 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/callback_api/emit_log.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | 13 | var ex = 'logs'; 14 | 15 | function on_channel_open(err, ch) { 16 | if (err !== null) return bail(err, conn); 17 | ch.assertExchange(ex, 'fanout', {durable: false}); 18 | var msg = process.argv.slice(2).join(' ') || 19 | 'info: Hello World!'; 20 | ch.publish(ex, '', Buffer.from(msg)); 21 | console.log(" [x] Sent '%s'", msg); 22 | ch.close(function() { conn.close(); }); 23 | } 24 | 25 | conn.createChannel(on_channel_open); 26 | } 27 | 28 | amqp.connect(on_connect); 29 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/callback_api/emit_log_direct.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | var args = process.argv.slice(2); 6 | var severity = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | function bail(err, conn) { 10 | console.error(err); 11 | if (conn) conn.close(function() { process.exit(1); }); 12 | } 13 | 14 | function on_connect(err, conn) { 15 | if (err !== null) return bail(err); 16 | 17 | var ex = 'direct_logs'; 18 | var exopts = {durable: false}; 19 | 20 | function on_channel_open(err, ch) { 21 | if (err !== null) return bail(err, conn); 22 | ch.assertExchange(ex, 'direct', exopts, function(err, ok) { 23 | ch.publish(ex, severity, Buffer.from(message)); 24 | ch.close(function() { conn.close(); }); 25 | }); 26 | } 27 | conn.createChannel(on_channel_open); 28 | } 29 | 30 | amqp.connect(on_connect); 31 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/callback_api/emit_log_topic.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | var args = process.argv.slice(2); 6 | var key = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | function bail(err, conn) { 10 | console.error(err); 11 | if (conn) conn.close(function() { process.exit(1); }); 12 | } 13 | 14 | function on_connect(err, conn) { 15 | if (err !== null) return bail(err); 16 | var ex = 'topic_logs', exopts = {durable: false}; 17 | conn.createChannel(function(err, ch) { 18 | ch.assertExchange(ex, 'topic', exopts, function(err, ok) { 19 | if (err !== null) return bail(err, conn); 20 | ch.publish(ex, key, Buffer.from(message)); 21 | console.log(" [x] Sent %s:'%s'", key, message); 22 | ch.close(function() { conn.close(); }); 23 | }); 24 | }); 25 | } 26 | 27 | amqp.connect(on_connect); 28 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/callback_api/new_task.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | 13 | var q = 'task_queue'; 14 | 15 | conn.createChannel(function(err, ch) { 16 | if (err !== null) return bail(err, conn); 17 | ch.assertQueue(q, {durable: true}, function(err, _ok) { 18 | if (err !== null) return bail(err, conn); 19 | var msg = process.argv.slice(2).join(' ') || "Hello World!"; 20 | ch.sendToQueue(q, Buffer.from(msg), {persistent: true}); 21 | console.log(" [x] Sent '%s'", msg); 22 | ch.close(function() { conn.close(); }); 23 | }); 24 | }); 25 | } 26 | 27 | amqp.connect(on_connect); 28 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/callback_api/receive.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | process.once('SIGINT', function() { conn.close(); }); 13 | 14 | var q = 'hello'; 15 | 16 | function on_channel_open(err, ch) { 17 | ch.assertQueue(q, {durable: false}, function(err, ok) { 18 | if (err !== null) return bail(err, conn); 19 | ch.consume(q, function(msg) { // message callback 20 | console.log(" [x] Received '%s'", msg.content.toString()); 21 | }, {noAck: true}, function(_consumeOk) { // consume callback 22 | console.log(' [*] Waiting for messages. To exit press CTRL+C'); 23 | }); 24 | }); 25 | } 26 | 27 | conn.createChannel(on_channel_open); 28 | } 29 | 30 | amqp.connect(on_connect); 31 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/callback_api/receive_logs.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | process.once('SIGINT', function() { conn.close(); }); 13 | 14 | var ex = 'logs'; 15 | 16 | function on_channel_open(err, ch) { 17 | if (err !== null) return bail(err, conn); 18 | ch.assertQueue('', {exclusive: true}, function(err, ok) { 19 | var q = ok.queue; 20 | ch.bindQueue(q, ex, ''); 21 | ch.consume(q, logMessage, {noAck: true}, function(err, ok) { 22 | if (err !== null) return bail(err, conn); 23 | console.log(" [*] Waiting for logs. To exit press CTRL+C."); 24 | }); 25 | }); 26 | } 27 | 28 | function logMessage(msg) { 29 | if (msg) 30 | console.log(" [x] '%s'", msg.content.toString()); 31 | } 32 | 33 | conn.createChannel(on_channel_open); 34 | } 35 | 36 | amqp.connect(on_connect); 37 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/callback_api/send.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | 13 | var q = 'hello'; 14 | var msg = 'Hello World!'; 15 | 16 | function on_channel_open(err, ch) { 17 | if (err !== null) return bail(err, conn); 18 | ch.assertQueue(q, {durable: false}, function(err, ok) { 19 | if (err !== null) return bail(err, conn); 20 | ch.sendToQueue(q, Buffer.from(msg)); 21 | console.log(" [x] Sent '%s'", msg); 22 | ch.close(function() { conn.close(); }); 23 | }); 24 | } 25 | 26 | conn.createChannel(on_channel_open); 27 | } 28 | 29 | amqp.connect(on_connect); 30 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/callback_api/worker.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | process.once('SIGINT', function() { conn.close(); }); 13 | 14 | var q = 'task_queue'; 15 | 16 | conn.createChannel(function(err, ch) { 17 | if (err !== null) return bail(err, conn); 18 | ch.assertQueue(q, {durable: true}, function(err, _ok) { 19 | ch.consume(q, doWork, {noAck: false}); 20 | console.log(" [*] Waiting for messages. To exit press CTRL+C"); 21 | }); 22 | 23 | function doWork(msg) { 24 | var body = msg.content.toString(); 25 | console.log(" [x] Received '%s'", body); 26 | var secs = body.split('.').length - 1; 27 | setTimeout(function() { 28 | console.log(" [x] Done"); 29 | ch.ack(msg); 30 | }, secs * 1000); 31 | } 32 | }); 33 | } 34 | 35 | amqp.connect(on_connect); 36 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/emit_log.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | return conn.createChannel().then(function(ch) { 7 | var ex = 'logs'; 8 | var ok = ch.assertExchange(ex, 'fanout', {durable: false}) 9 | 10 | var message = process.argv.slice(2).join(' ') || 11 | 'info: Hello World!'; 12 | 13 | return ok.then(function() { 14 | ch.publish(ex, '', Buffer.from(message)); 15 | console.log(" [x] Sent '%s'", message); 16 | return ch.close(); 17 | }); 18 | }).finally(function() { conn.close(); }); 19 | }).catch(console.warn); 20 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/emit_log_direct.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | var args = process.argv.slice(2); 6 | var severity = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | amqp.connect('amqp://localhost').then(function(conn) { 10 | return conn.createChannel().then(function(ch) { 11 | var ex = 'direct_logs'; 12 | var ok = ch.assertExchange(ex, 'direct', {durable: false}); 13 | 14 | return ok.then(function() { 15 | ch.publish(ex, severity, Buffer.from(message)); 16 | console.log(" [x] Sent %s:'%s'", severity, message); 17 | return ch.close(); 18 | }); 19 | }).finally(function() { conn.close(); }); 20 | }).catch(console.warn); 21 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/emit_log_topic.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | var args = process.argv.slice(2); 6 | var key = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | amqp.connect('amqp://localhost').then(function(conn) { 10 | return conn.createChannel().then(function(ch) { 11 | var ex = 'topic_logs'; 12 | var ok = ch.assertExchange(ex, 'topic', {durable: false}); 13 | return ok.then(function() { 14 | ch.publish(ex, key, Buffer.from(message)); 15 | console.log(" [x] Sent %s:'%s'", key, message); 16 | return ch.close(); 17 | }); 18 | }).finally(function() { conn.close(); }) 19 | }).catch(console.log); 20 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/new_task.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // Post a new task to the work queue 3 | 4 | var amqp = require('amqplib'); 5 | 6 | amqp.connect('amqp://localhost').then(function(conn) { 7 | return conn.createChannel().then(function(ch) { 8 | var q = 'task_queue'; 9 | var ok = ch.assertQueue(q, {durable: true}); 10 | 11 | return ok.then(function() { 12 | var msg = process.argv.slice(2).join(' ') || "Hello World!"; 13 | ch.sendToQueue(q, Buffer.from(msg), {deliveryMode: true}); 14 | console.log(" [x] Sent '%s'", msg); 15 | return ch.close(); 16 | }); 17 | }).finally(function() { conn.close(); }); 18 | }).catch(console.warn); 19 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amqplib-tutorials", 3 | "version": "0.0.1", 4 | "description": "The RabbitMQ tutorials, ported to amqplib", 5 | "main": "send.js", 6 | "dependencies": { 7 | "amqplib": "../..", 8 | "uuid": "*" 9 | }, 10 | "scripts": { 11 | "test": "echo \"Error: no test specified\" && exit 1" 12 | }, 13 | "repository": "", 14 | "author": "Michael Bridgen ", 15 | "license": "MPL 2.0" 16 | } 17 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/receive.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | process.once('SIGINT', function() { conn.close(); }); 7 | return conn.createChannel().then(function(ch) { 8 | 9 | var ok = ch.assertQueue('hello', {durable: false}); 10 | 11 | ok = ok.then(function(_qok) { 12 | return ch.consume('hello', function(msg) { 13 | console.log(" [x] Received '%s'", msg.content.toString()); 14 | }, {noAck: true}); 15 | }); 16 | 17 | return ok.then(function(_consumeOk) { 18 | console.log(' [*] Waiting for messages. To exit press CTRL+C'); 19 | }); 20 | }); 21 | }).catch(console.warn); 22 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/receive_logs.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | process.once('SIGINT', function() { conn.close(); }); 7 | return conn.createChannel().then(function(ch) { 8 | var ok = ch.assertExchange('logs', 'fanout', {durable: false}); 9 | ok = ok.then(function() { 10 | return ch.assertQueue('', {exclusive: true}); 11 | }); 12 | ok = ok.then(function(qok) { 13 | return ch.bindQueue(qok.queue, 'logs', '').then(function() { 14 | return qok.queue; 15 | }); 16 | }); 17 | ok = ok.then(function(queue) { 18 | return ch.consume(queue, logMessage, {noAck: true}); 19 | }); 20 | return ok.then(function() { 21 | console.log(' [*] Waiting for logs. To exit press CTRL+C'); 22 | }); 23 | 24 | function logMessage(msg) { 25 | console.log(" [x] '%s'", msg.content.toString()); 26 | } 27 | }); 28 | }).catch(console.warn); 29 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/send.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | return conn.createChannel().then(function(ch) { 7 | var q = 'hello'; 8 | var msg = 'Hello World!'; 9 | 10 | var ok = ch.assertQueue(q, {durable: false}); 11 | 12 | return ok.then(function(_qok) { 13 | // NB: `sentToQueue` and `publish` both return a boolean 14 | // indicating whether it's OK to send again straight away, or 15 | // (when `false`) that you should wait for the event `'drain'` 16 | // to fire before writing again. We're just doing the one write, 17 | // so we'll ignore it. 18 | ch.sendToQueue(q, Buffer.from(msg)); 19 | console.log(" [x] Sent '%s'", msg); 20 | return ch.close(); 21 | }); 22 | }).finally(function() { conn.close(); }); 23 | }).catch(console.warn); 24 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/tutorials/worker.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // Process tasks from the work queue 3 | 4 | var amqp = require('amqplib'); 5 | 6 | amqp.connect('amqp://localhost').then(function(conn) { 7 | process.once('SIGINT', function() { conn.close(); }); 8 | return conn.createChannel().then(function(ch) { 9 | var ok = ch.assertQueue('task_queue', {durable: true}); 10 | ok = ok.then(function() { ch.prefetch(1); }); 11 | ok = ok.then(function() { 12 | ch.consume('task_queue', doWork, {noAck: false}); 13 | console.log(" [*] Waiting for messages. To exit press CTRL+C"); 14 | }); 15 | return ok; 16 | 17 | function doWork(msg) { 18 | var body = msg.content.toString(); 19 | console.log(" [x] Received '%s'", body); 20 | var secs = body.split('.').length - 1; 21 | //console.log(" [x] Task takes %d seconds", secs); 22 | setTimeout(function() { 23 | console.log(" [x] Done"); 24 | ch.ack(msg); 25 | }, secs * 1000); 26 | } 27 | }); 28 | }).catch(console.warn); 29 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/examples/waitForConfirms.js: -------------------------------------------------------------------------------- 1 | var amqp = require('../'); 2 | 3 | var NUM_MSGS = 20; 4 | 5 | function mkCallback(i) { 6 | return (i % 2) === 0 ? function(err) { 7 | if (err !== null) { console.error('Message %d failed!', i); } 8 | else { console.log('Message %d confirmed', i); } 9 | } : null; 10 | } 11 | 12 | amqp.connect().then(function(c) { 13 | c.createConfirmChannel().then(function(ch) { 14 | for (var i=0; i < NUM_MSGS; i++) { 15 | ch.publish('amq.topic', 'whatever', Buffer.from('blah'), {}, mkCallback(i)); 16 | } 17 | ch.waitForConfirms().then(function() { 18 | console.log('All messages done'); 19 | c.close(); 20 | }).catch(console.error); 21 | }); 22 | }); 23 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/lib/error.js: -------------------------------------------------------------------------------- 1 | var inherits = require('util').inherits; 2 | 3 | function trimStack(stack, num) { 4 | return stack && stack.split('\n').slice(num).join('\n'); 5 | } 6 | 7 | function IllegalOperationError(msg, stack) { 8 | var tmp = new Error(); 9 | this.message = msg; 10 | this.stack = this.toString() + '\n' + trimStack(tmp.stack, 2); 11 | this.stackAtStateChange = stack; 12 | } 13 | inherits(IllegalOperationError, Error); 14 | 15 | IllegalOperationError.prototype.name = 'IllegalOperationError'; 16 | 17 | function stackCapture(reason) { 18 | var e = new Error(); 19 | return 'Stack capture: ' + reason + '\n' + 20 | trimStack(e.stack, 2); 21 | } 22 | 23 | module.exports.IllegalOperationError = IllegalOperationError; 24 | module.exports.stackCapture = stackCapture; 25 | -------------------------------------------------------------------------------- /loggerMS/node_modules/amqplib/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amqplib", 3 | "homepage": "http://amqp-node.github.io/amqplib/", 4 | "main": "./channel_api.js", 5 | "version": "0.10.0", 6 | "description": "An AMQP 0-9-1 (e.g., RabbitMQ) library and client.", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/amqp-node/amqplib.git" 10 | }, 11 | "engines": { 12 | "node": ">=10" 13 | }, 14 | "dependencies": { 15 | "bitsyntax": "~0.1.0", 16 | "buffer-more-ints": "~1.0.0", 17 | "readable-stream": "1.x >=1.1.9", 18 | "url-parse": "~1.5.10" 19 | }, 20 | "devDependencies": { 21 | "claire": "0.4.1", 22 | "mocha": "^9.2.2", 23 | "nyc": "^15.1.0", 24 | "uglify-js": "2.8.x" 25 | }, 26 | "scripts": { 27 | "test": "make test", 28 | "prepare": "make" 29 | }, 30 | "keywords": [ 31 | "AMQP", 32 | "AMQP 0-9-1", 33 | "RabbitMQ" 34 | ], 35 | "author": "Michael Bridgen ", 36 | "license": "MIT" 37 | } 38 | -------------------------------------------------------------------------------- /loggerMS/node_modules/array-flatten/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "array-flatten", 3 | "version": "1.1.1", 4 | "description": "Flatten an array of nested arrays into a single flat array", 5 | "main": "array-flatten.js", 6 | "files": [ 7 | "array-flatten.js", 8 | "LICENSE" 9 | ], 10 | "scripts": { 11 | "test": "istanbul cover _mocha -- -R spec" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/blakeembrey/array-flatten.git" 16 | }, 17 | "keywords": [ 18 | "array", 19 | "flatten", 20 | "arguments", 21 | "depth" 22 | ], 23 | "author": { 24 | "name": "Blake Embrey", 25 | "email": "hello@blakeembrey.com", 26 | "url": "http://blakeembrey.me" 27 | }, 28 | "license": "MIT", 29 | "bugs": { 30 | "url": "https://github.com/blakeembrey/array-flatten/issues" 31 | }, 32 | "homepage": "https://github.com/blakeembrey/array-flatten", 33 | "devDependencies": { 34 | "istanbul": "^0.3.13", 35 | "mocha": "^2.2.4", 36 | "pre-commit": "^1.0.7", 37 | "standard": "^3.7.3" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /loggerMS/node_modules/bitsyntax/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - "0.8" 5 | - "0.10" 6 | - "0.12" 7 | - "4.2" 8 | - "6.12" 9 | - "8.9" 10 | - "9.11" 11 | - "10.10" 12 | - "node" 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/bitsyntax/LICENSE: -------------------------------------------------------------------------------- 1 | bitsyntax-js copyright (c) 2012-2014 2 | Michael Bridgen 3 | 4 | This package, "bitsyntax-js", is licensed under the MIT License. A 5 | copy may be found in the file LICENSE-MIT in this directory, or 6 | downloaded from http://opensource.org/licenses/MIT. 7 | -------------------------------------------------------------------------------- /loggerMS/node_modules/bitsyntax/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test all 2 | 3 | GRAMMAR=lib/grammar.pegjs 4 | PEGJS=./node_modules/.bin/pegjs 5 | 6 | all: lib/parser.js 7 | 8 | lib/parser.js: $(PEGJS) 9 | $(PEGJS) $(GRAMMAR) $@ 10 | 11 | $(PEGJS): 12 | npm install 13 | 14 | test: lib/parser.js 15 | ./node_modules/.bin/mocha --check-leaks -R list -u tdd test/*.js 16 | -------------------------------------------------------------------------------- /loggerMS/node_modules/bitsyntax/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports.parse = require('./lib/parse').parse; 4 | module.exports.match = require('./lib/interp').match; 5 | module.exports.build = require('./lib/constructor').build; 6 | module.exports.write = require('./lib/constructor').write; 7 | 8 | module.exports.matcher = module.exports.compile = 9 | require('./lib/compile').compile; 10 | module.exports.builder = require('./lib/compile').compile_builder; 11 | -------------------------------------------------------------------------------- /loggerMS/node_modules/bitsyntax/lib/parse.js: -------------------------------------------------------------------------------- 1 | // Parse patterns in string form into the form we use for interpreting 2 | // (and later, for compiling). 3 | 4 | 'use strict'; 5 | 6 | var ast = require('./pattern'); 7 | var parser = require('./parser'); 8 | 9 | function parse_pattern(string) { 10 | var segments = parser.parse(string); 11 | for (var i=0, len = segments.length; i < len; i++) { 12 | var s = segments[i]; 13 | if (s.string != undefined) { 14 | segments[i] = ast.string(s.string); 15 | } 16 | else if (s.value != undefined) { 17 | segments[i] = ast.value(s.value, s.size, s.specifiers); 18 | } 19 | else if (s.name != undefined) { 20 | segments[i] = ast.variable(s.name, s.size, s.specifiers); 21 | } 22 | else { 23 | throw "Unknown segment " + s; 24 | } 25 | } 26 | return segments; 27 | } 28 | 29 | module.exports.parse = function() { 30 | var str = [].join.call(arguments, ','); 31 | return parse_pattern(str); 32 | }; 33 | -------------------------------------------------------------------------------- /loggerMS/node_modules/bitsyntax/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "Michael Bridgen", 4 | "email": "" 5 | }, 6 | "name": "bitsyntax", 7 | "description": "Pattern-matching on byte buffers", 8 | "license": "MIT", 9 | "version": "0.1.0", 10 | "repository": { 11 | "type": "git", 12 | "url": "git://github.com/squaremo/bitsyntax-js.git" 13 | }, 14 | "main": "./index", 15 | "scripts": { 16 | "test": "make test", 17 | "prepublish": "make all" 18 | }, 19 | "engines": { 20 | "node": ">=0.8" 21 | }, 22 | "dependencies": { 23 | "buffer-more-ints": "~1.0.0", 24 | "debug": "~2.6.9", 25 | "safe-buffer": "~5.1.2" 26 | }, 27 | "devDependencies": { 28 | "mocha": "1.x", 29 | "pegjs": "0.7.0" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /loggerMS/node_modules/buffer-more-ints/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.11" 4 | - "0.10" 5 | - "0.8" 6 | - "0.6" 7 | -------------------------------------------------------------------------------- /loggerMS/node_modules/buffer-more-ints/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "buffer-more-ints", 3 | "version": "1.0.0", 4 | "author": "David Wragg ", 5 | "description": "Add support for more integer widths to Buffer", 6 | "homepage": "https://github.com/dpw/node-buffer-more-ints", 7 | "license": "MIT", 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com/dpw/node-buffer-more-ints.git" 11 | }, 12 | "main": "buffer-more-ints.js", 13 | "devDependencies": { 14 | "nodeunit": "" 15 | }, 16 | "scripts": { 17 | "test": "node ./node_modules/nodeunit/bin/nodeunit buffer-more-ints-tests.js" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /loggerMS/node_modules/bytes/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bytes", 3 | "description": "Utility to parse a string bytes to bytes and vice-versa", 4 | "version": "3.1.2", 5 | "author": "TJ Holowaychuk (http://tjholowaychuk.com)", 6 | "contributors": [ 7 | "Jed Watson ", 8 | "Théo FIDRY " 9 | ], 10 | "license": "MIT", 11 | "keywords": [ 12 | "byte", 13 | "bytes", 14 | "utility", 15 | "parse", 16 | "parser", 17 | "convert", 18 | "converter" 19 | ], 20 | "repository": "visionmedia/bytes.js", 21 | "devDependencies": { 22 | "eslint": "7.32.0", 23 | "eslint-plugin-markdown": "2.2.1", 24 | "mocha": "9.2.0", 25 | "nyc": "15.1.0" 26 | }, 27 | "files": [ 28 | "History.md", 29 | "LICENSE", 30 | "Readme.md", 31 | "index.js" 32 | ], 33 | "engines": { 34 | "node": ">= 0.8" 35 | }, 36 | "scripts": { 37 | "lint": "eslint .", 38 | "test": "mocha --check-leaks --reporter spec", 39 | "test-ci": "nyc --reporter=lcov --reporter=text npm test", 40 | "test-cov": "nyc --reporter=html --reporter=text npm test" 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /loggerMS/node_modules/call-bind/.eslintignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | -------------------------------------------------------------------------------- /loggerMS/node_modules/call-bind/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "func-name-matching": 0, 8 | "id-length": 0, 9 | "new-cap": [2, { 10 | "capIsNewExceptions": [ 11 | "GetIntrinsic", 12 | ], 13 | }], 14 | "no-magic-numbers": 0, 15 | "operator-linebreak": [2, "before"], 16 | }, 17 | } 18 | -------------------------------------------------------------------------------- /loggerMS/node_modules/call-bind/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/call-bind 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/call-bind/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "test" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /loggerMS/node_modules/call-bind/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Jordan Harband 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /loggerMS/node_modules/call-bind/README.md: -------------------------------------------------------------------------------- 1 | # call-bind 2 | Robustly `.call.bind()` a function. 3 | -------------------------------------------------------------------------------- /loggerMS/node_modules/call-bind/callBound.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var GetIntrinsic = require('get-intrinsic'); 4 | 5 | var callBind = require('./'); 6 | 7 | var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); 8 | 9 | module.exports = function callBoundIntrinsic(name, allowMissing) { 10 | var intrinsic = GetIntrinsic(name, !!allowMissing); 11 | if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { 12 | return callBind(intrinsic); 13 | } 14 | return intrinsic; 15 | }; 16 | -------------------------------------------------------------------------------- /loggerMS/node_modules/content-type/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.4 / 2017-09-11 2 | ================== 3 | 4 | * perf: skip parameter parsing when no parameters 5 | 6 | 1.0.3 / 2017-09-10 7 | ================== 8 | 9 | * perf: remove argument reassignment 10 | 11 | 1.0.2 / 2016-05-09 12 | ================== 13 | 14 | * perf: enable strict mode 15 | 16 | 1.0.1 / 2015-02-13 17 | ================== 18 | 19 | * Improve missing `Content-Type` header error message 20 | 21 | 1.0.0 / 2015-02-01 22 | ================== 23 | 24 | * Initial implementation, derived from `media-typer@0.3.0` 25 | -------------------------------------------------------------------------------- /loggerMS/node_modules/cookie-signature/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /loggerMS/node_modules/cookie-signature/History.md: -------------------------------------------------------------------------------- 1 | 1.0.6 / 2015-02-03 2 | ================== 3 | 4 | * use `npm test` instead of `make test` to run tests 5 | * clearer assertion messages when checking input 6 | 7 | 8 | 1.0.5 / 2014-09-05 9 | ================== 10 | 11 | * add license to package.json 12 | 13 | 1.0.4 / 2014-06-25 14 | ================== 15 | 16 | * corrected avoidance of timing attacks (thanks @tenbits!) 17 | 18 | 1.0.3 / 2014-01-28 19 | ================== 20 | 21 | * [incorrect] fix for timing attacks 22 | 23 | 1.0.2 / 2014-01-28 24 | ================== 25 | 26 | * fix missing repository warning 27 | * fix typo in test 28 | 29 | 1.0.1 / 2013-04-15 30 | ================== 31 | 32 | * Revert "Changed underlying HMAC algo. to sha512." 33 | * Revert "Fix for timing attacks on MAC verification." 34 | 35 | 0.0.1 / 2010-01-03 36 | ================== 37 | 38 | * Initial release 39 | -------------------------------------------------------------------------------- /loggerMS/node_modules/cookie-signature/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cookie-signature", 3 | "version": "1.0.6", 4 | "description": "Sign and unsign cookies", 5 | "keywords": ["cookie", "sign", "unsign"], 6 | "author": "TJ Holowaychuk ", 7 | "license": "MIT", 8 | "repository": { "type": "git", "url": "https://github.com/visionmedia/node-cookie-signature.git"}, 9 | "dependencies": {}, 10 | "devDependencies": { 11 | "mocha": "*", 12 | "should": "*" 13 | }, 14 | "scripts": { 15 | "test": "mocha --require should --reporter spec" 16 | }, 17 | "main": "index" 18 | } 19 | -------------------------------------------------------------------------------- /loggerMS/node_modules/core-util-is/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Node.js contributors. All rights reserved. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to 5 | deal in the Software without restriction, including without limitation the 6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 | sell copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19 | IN THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /loggerMS/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /loggerMS/node_modules/core-util-is/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core-util-is", 3 | "version": "1.0.3", 4 | "description": "The `util.is*` functions introduced in Node v0.12.", 5 | "main": "lib/util.js", 6 | "files": [ 7 | "lib" 8 | ], 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/isaacs/core-util-is" 12 | }, 13 | "keywords": [ 14 | "util", 15 | "isBuffer", 16 | "isArray", 17 | "isNumber", 18 | "isString", 19 | "isRegExp", 20 | "isThis", 21 | "isThat", 22 | "polyfill" 23 | ], 24 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 25 | "license": "MIT", 26 | "bugs": { 27 | "url": "https://github.com/isaacs/core-util-is/issues" 28 | }, 29 | "scripts": { 30 | "test": "tap test.js", 31 | "preversion": "npm test", 32 | "postversion": "npm publish", 33 | "prepublishOnly": "git push origin --follow-tags" 34 | }, 35 | "devDependencies": { 36 | "tap": "^15.0.9" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /loggerMS/node_modules/debug/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve 2 | -------------------------------------------------------------------------------- /loggerMS/node_modules/debug/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true 5 | }, 6 | "rules": { 7 | "no-console": 0, 8 | "no-empty": [1, { "allowEmptyCatch": true }] 9 | }, 10 | "extends": "eslint:recommended" 11 | } 12 | -------------------------------------------------------------------------------- /loggerMS/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | yarn.lock 8 | coverage 9 | bower.json 10 | -------------------------------------------------------------------------------- /loggerMS/node_modules/debug/.travis.yml: -------------------------------------------------------------------------------- 1 | 2 | language: node_js 3 | node_js: 4 | - "6" 5 | - "5" 6 | - "4" 7 | 8 | install: 9 | - make node_modules 10 | 11 | script: 12 | - make lint 13 | - make test 14 | - make coveralls 15 | -------------------------------------------------------------------------------- /loggerMS/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "2.6.9", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "src/browser.js", 12 | "scripts": [ 13 | "src/browser.js", 14 | "src/debug.js" 15 | ], 16 | "dependencies": { 17 | "rauchg/ms.js": "0.7.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /loggerMS/node_modules/debug/node.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/node'); 2 | -------------------------------------------------------------------------------- /loggerMS/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process !== 'undefined' && process.type === 'renderer') { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /loggerMS/node_modules/debug/src/inspector-log.js: -------------------------------------------------------------------------------- 1 | module.exports = inspectorLog; 2 | 3 | // black hole 4 | const nullStream = new (require('stream').Writable)(); 5 | nullStream._write = () => {}; 6 | 7 | /** 8 | * Outputs a `console.log()` to the Node.js Inspector console *only*. 9 | */ 10 | function inspectorLog() { 11 | const stdout = console._stdout; 12 | console._stdout = nullStream; 13 | console.log.apply(console, arguments); 14 | console._stdout = stdout; 15 | } 16 | -------------------------------------------------------------------------------- /loggerMS/node_modules/ee-first/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ee-first", 3 | "description": "return the first event in a set of ee/event pairs", 4 | "version": "1.1.1", 5 | "author": { 6 | "name": "Jonathan Ong", 7 | "email": "me@jongleberry.com", 8 | "url": "http://jongleberry.com", 9 | "twitter": "https://twitter.com/jongleberry" 10 | }, 11 | "contributors": [ 12 | "Douglas Christopher Wilson " 13 | ], 14 | "license": "MIT", 15 | "repository": "jonathanong/ee-first", 16 | "devDependencies": { 17 | "istanbul": "0.3.9", 18 | "mocha": "2.2.5" 19 | }, 20 | "files": [ 21 | "index.js", 22 | "LICENSE" 23 | ], 24 | "scripts": { 25 | "test": "mocha --reporter spec --bail --check-leaks test/", 26 | "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", 27 | "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /loggerMS/node_modules/encodeurl/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.2 / 2018-01-21 2 | ================== 3 | 4 | * Fix encoding `%` as last character 5 | 6 | 1.0.1 / 2016-06-09 7 | ================== 8 | 9 | * Fix encoding unpaired surrogates at start/end of string 10 | 11 | 1.0.0 / 2016-06-08 12 | ================== 13 | 14 | * Initial release 15 | -------------------------------------------------------------------------------- /loggerMS/node_modules/escape-html/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # escape-html 3 | 4 | Escape string for use in HTML 5 | 6 | ## Example 7 | 8 | ```js 9 | var escape = require('escape-html'); 10 | var html = escape('foo & bar'); 11 | // -> foo & bar 12 | ``` 13 | 14 | ## Benchmark 15 | 16 | ``` 17 | $ npm run-script bench 18 | 19 | > escape-html@1.0.3 bench nodejs-escape-html 20 | > node benchmark/index.js 21 | 22 | 23 | http_parser@1.0 24 | node@0.10.33 25 | v8@3.14.5.9 26 | ares@1.9.0-DEV 27 | uv@0.10.29 28 | zlib@1.2.3 29 | modules@11 30 | openssl@1.0.1j 31 | 32 | 1 test completed. 33 | 2 tests completed. 34 | 3 tests completed. 35 | 36 | no special characters x 19,435,271 ops/sec ±0.85% (187 runs sampled) 37 | single special character x 6,132,421 ops/sec ±0.67% (194 runs sampled) 38 | many special characters x 3,175,826 ops/sec ±0.65% (193 runs sampled) 39 | ``` 40 | 41 | ## License 42 | 43 | MIT -------------------------------------------------------------------------------- /loggerMS/node_modules/escape-html/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-html", 3 | "description": "Escape string for use in HTML", 4 | "version": "1.0.3", 5 | "license": "MIT", 6 | "keywords": [ 7 | "escape", 8 | "html", 9 | "utility" 10 | ], 11 | "repository": "component/escape-html", 12 | "devDependencies": { 13 | "benchmark": "1.0.0", 14 | "beautify-benchmark": "0.2.4" 15 | }, 16 | "files": [ 17 | "LICENSE", 18 | "Readme.md", 19 | "index.js" 20 | ], 21 | "scripts": { 22 | "bench": "node benchmark/index.js" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /loggerMS/node_modules/express/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * express 3 | * Copyright(c) 2009-2013 TJ Holowaychuk 4 | * Copyright(c) 2013 Roman Shtylman 5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson 6 | * MIT Licensed 7 | */ 8 | 9 | 'use strict'; 10 | 11 | module.exports = require('./lib/express'); 12 | -------------------------------------------------------------------------------- /loggerMS/node_modules/express/lib/middleware/init.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * express 3 | * Copyright(c) 2009-2013 TJ Holowaychuk 4 | * Copyright(c) 2013 Roman Shtylman 5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson 6 | * MIT Licensed 7 | */ 8 | 9 | 'use strict'; 10 | 11 | /** 12 | * Module dependencies. 13 | * @private 14 | */ 15 | 16 | var setPrototypeOf = require('setprototypeof') 17 | 18 | /** 19 | * Initialization middleware, exposing the 20 | * request and response to each other, as well 21 | * as defaulting the X-Powered-By header field. 22 | * 23 | * @param {Function} app 24 | * @return {Function} 25 | * @api private 26 | */ 27 | 28 | exports.init = function(app){ 29 | return function expressInit(req, res, next){ 30 | if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express'); 31 | req.res = res; 32 | res.req = req; 33 | req.next = next; 34 | 35 | setPrototypeOf(req, app.request) 36 | setPrototypeOf(res, app.response) 37 | 38 | res.locals = res.locals || Object.create(null); 39 | 40 | next(); 41 | }; 42 | }; 43 | 44 | -------------------------------------------------------------------------------- /loggerMS/node_modules/express/lib/middleware/query.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * express 3 | * Copyright(c) 2009-2013 TJ Holowaychuk 4 | * Copyright(c) 2013 Roman Shtylman 5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson 6 | * MIT Licensed 7 | */ 8 | 9 | 'use strict'; 10 | 11 | /** 12 | * Module dependencies. 13 | */ 14 | 15 | var merge = require('utils-merge') 16 | var parseUrl = require('parseurl'); 17 | var qs = require('qs'); 18 | 19 | /** 20 | * @param {Object} options 21 | * @return {Function} 22 | * @api public 23 | */ 24 | 25 | module.exports = function query(options) { 26 | var opts = merge({}, options) 27 | var queryparse = qs.parse; 28 | 29 | if (typeof options === 'function') { 30 | queryparse = options; 31 | opts = undefined; 32 | } 33 | 34 | if (opts !== undefined && opts.allowPrototypes === undefined) { 35 | // back-compat for qs module 36 | opts.allowPrototypes = true; 37 | } 38 | 39 | return function query(req, res, next){ 40 | if (!req.query) { 41 | var val = parseUrl(req).query; 42 | req.query = queryparse(val, opts); 43 | } 44 | 45 | next(); 46 | }; 47 | }; 48 | -------------------------------------------------------------------------------- /loggerMS/node_modules/forwarded/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.2.0 / 2021-05-31 2 | ================== 3 | 4 | * Use `req.socket` over deprecated `req.connection` 5 | 6 | 0.1.2 / 2017-09-14 7 | ================== 8 | 9 | * perf: improve header parsing 10 | * perf: reduce overhead when no `X-Forwarded-For` header 11 | 12 | 0.1.1 / 2017-09-10 13 | ================== 14 | 15 | * Fix trimming leading / trailing OWS 16 | * perf: hoist regular expression 17 | 18 | 0.1.0 / 2014-09-21 19 | ================== 20 | 21 | * Initial release 22 | -------------------------------------------------------------------------------- /loggerMS/node_modules/function-bind/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | indent_size = 4 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | max_line_length = 120 11 | 12 | [CHANGELOG.md] 13 | indent_style = space 14 | indent_size = 2 15 | 16 | [*.json] 17 | max_line_length = off 18 | 19 | [Makefile] 20 | max_line_length = off 21 | -------------------------------------------------------------------------------- /loggerMS/node_modules/function-bind/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "func-name-matching": 0, 8 | "indent": [2, 4], 9 | "max-nested-callbacks": [2, 3], 10 | "max-params": [2, 3], 11 | "max-statements": [2, 20], 12 | "no-new-func": [1], 13 | "strict": [0] 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /loggerMS/node_modules/function-bind/.npmignore: -------------------------------------------------------------------------------- 1 | # gitignore 2 | .DS_Store 3 | .monitor 4 | .*.swp 5 | .nodemonignore 6 | releases 7 | *.log 8 | *.err 9 | fleet.json 10 | public/browserify 11 | bin/*.json 12 | .bin 13 | build 14 | compile 15 | .lock-wscript 16 | coverage 17 | node_modules 18 | 19 | # Only apps should have lockfiles 20 | npm-shrinkwrap.json 21 | package-lock.json 22 | yarn.lock 23 | -------------------------------------------------------------------------------- /loggerMS/node_modules/function-bind/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Raynos. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | 21 | -------------------------------------------------------------------------------- /loggerMS/node_modules/function-bind/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var implementation = require('./implementation'); 4 | 5 | module.exports = Function.prototype.bind || implementation; 6 | -------------------------------------------------------------------------------- /loggerMS/node_modules/function-bind/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "array-bracket-newline": 0, 4 | "array-element-newline": 0, 5 | "max-statements-per-line": [2, { "max": 2 }], 6 | "no-invalid-this": 0, 7 | "no-magic-numbers": 0, 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /loggerMS/node_modules/get-intrinsic/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "env": { 7 | "es6": true, 8 | "es2017": true, 9 | "es2020": true, 10 | "es2021": true, 11 | "es2022": true, 12 | }, 13 | 14 | "rules": { 15 | "array-bracket-newline": 0, 16 | "complexity": 0, 17 | "eqeqeq": [2, "allow-null"], 18 | "func-name-matching": 0, 19 | "id-length": 0, 20 | "max-lines-per-function": [2, 90], 21 | "max-params": [2, 4], 22 | "max-statements": 0, 23 | "max-statements-per-line": [2, { "max": 2 }], 24 | "multiline-comment-style": 0, 25 | "no-magic-numbers": 0, 26 | "sort-keys": 0, 27 | }, 28 | 29 | "overrides": [ 30 | { 31 | "files": "test/**", 32 | "rules": { 33 | "new-cap": 0, 34 | }, 35 | }, 36 | ], 37 | } 38 | -------------------------------------------------------------------------------- /loggerMS/node_modules/get-intrinsic/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/get-intrinsic 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/get-intrinsic/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "exclude": [ 6 | "coverage", 7 | "test" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has-symbols/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "max-statements-per-line": [2, { "max": 2 }], 8 | "no-magic-numbers": 0, 9 | "multiline-comment-style": 0, 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has-symbols/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/has-symbols 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has-symbols/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "exclude": [ 6 | "coverage", 7 | "test" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has-symbols/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Jordan Harband 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has-symbols/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var origSymbol = typeof Symbol !== 'undefined' && Symbol; 4 | var hasSymbolSham = require('./shams'); 5 | 6 | module.exports = function hasNativeSymbols() { 7 | if (typeof origSymbol !== 'function') { return false; } 8 | if (typeof Symbol !== 'function') { return false; } 9 | if (typeof origSymbol('foo') !== 'symbol') { return false; } 10 | if (typeof Symbol('bar') !== 'symbol') { return false; } 11 | 12 | return hasSymbolSham(); 13 | }; 14 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has-symbols/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | var hasSymbols = require('../'); 5 | var runSymbolTests = require('./tests'); 6 | 7 | test('interface', function (t) { 8 | t.equal(typeof hasSymbols, 'function', 'is a function'); 9 | t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean'); 10 | t.end(); 11 | }); 12 | 13 | test('Symbols are supported', { skip: !hasSymbols() }, function (t) { 14 | runSymbolTests(t); 15 | t.end(); 16 | }); 17 | 18 | test('Symbols are not supported', { skip: hasSymbols() }, function (t) { 19 | t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined'); 20 | t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist'); 21 | t.end(); 22 | }); 23 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has-symbols/test/shams/core-js.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | 5 | if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') { 6 | test('has native Symbol support', function (t) { 7 | t.equal(typeof Symbol, 'function'); 8 | t.equal(typeof Symbol(), 'symbol'); 9 | t.end(); 10 | }); 11 | return; 12 | } 13 | 14 | var hasSymbols = require('../../shams'); 15 | 16 | test('polyfilled Symbols', function (t) { 17 | /* eslint-disable global-require */ 18 | t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling'); 19 | require('core-js/fn/symbol'); 20 | require('core-js/fn/symbol/to-string-tag'); 21 | 22 | require('../tests')(t); 23 | 24 | var hasSymbolsAfter = hasSymbols(); 25 | t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling'); 26 | /* eslint-enable global-require */ 27 | t.end(); 28 | }); 29 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has-symbols/test/shams/get-own-property-symbols.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | 5 | if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') { 6 | test('has native Symbol support', function (t) { 7 | t.equal(typeof Symbol, 'function'); 8 | t.equal(typeof Symbol(), 'symbol'); 9 | t.end(); 10 | }); 11 | return; 12 | } 13 | 14 | var hasSymbols = require('../../shams'); 15 | 16 | test('polyfilled Symbols', function (t) { 17 | /* eslint-disable global-require */ 18 | t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling'); 19 | 20 | require('get-own-property-symbols'); 21 | 22 | require('../tests')(t); 23 | 24 | var hasSymbolsAfter = hasSymbols(); 25 | t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling'); 26 | /* eslint-enable global-require */ 27 | t.end(); 28 | }); 29 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Thiago de Arruda 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has/README.md: -------------------------------------------------------------------------------- 1 | # has 2 | 3 | > Object.prototype.hasOwnProperty.call shortcut 4 | 5 | ## Installation 6 | 7 | ```sh 8 | npm install --save has 9 | ``` 10 | 11 | ## Usage 12 | 13 | ```js 14 | var has = require('has'); 15 | 16 | has({}, 'hasOwnProperty'); // false 17 | has(Object.prototype, 'hasOwnProperty'); // true 18 | ``` 19 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has/src/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var bind = require('function-bind'); 4 | 5 | module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); 6 | -------------------------------------------------------------------------------- /loggerMS/node_modules/has/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | var has = require('../'); 5 | 6 | test('has', function (t) { 7 | t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"'); 8 | t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"'); 9 | t.end(); 10 | }); 11 | -------------------------------------------------------------------------------- /loggerMS/node_modules/iconv-lite/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Alexander Shtuchkin 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /loggerMS/node_modules/iconv-lite/encodings/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // Update this array if you add/rename/remove files in this directory. 4 | // We support Browserify by skipping automatic module discovery and requiring modules directly. 5 | var modules = [ 6 | require("./internal"), 7 | require("./utf16"), 8 | require("./utf7"), 9 | require("./sbcs-codec"), 10 | require("./sbcs-data"), 11 | require("./sbcs-data-generated"), 12 | require("./dbcs-codec"), 13 | require("./dbcs-data"), 14 | ]; 15 | 16 | // Put all encoding/alias/codec definitions to single object and export it. 17 | for (var i = 0; i < modules.length; i++) { 18 | var module = modules[i]; 19 | for (var enc in module) 20 | if (Object.prototype.hasOwnProperty.call(module, enc)) 21 | exports[enc] = module[enc]; 22 | } 23 | -------------------------------------------------------------------------------- /loggerMS/node_modules/iconv-lite/lib/index.d.ts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. 4 | * REQUIREMENT: This definition is dependent on the @types/node definition. 5 | * Install with `npm install @types/node --save-dev` 6 | *--------------------------------------------------------------------------------------------*/ 7 | 8 | declare module 'iconv-lite' { 9 | export function decode(buffer: Buffer, encoding: string, options?: Options): string; 10 | 11 | export function encode(content: string, encoding: string, options?: Options): Buffer; 12 | 13 | export function encodingExists(encoding: string): boolean; 14 | 15 | export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; 16 | 17 | export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; 18 | } 19 | 20 | export interface Options { 21 | stripBOM?: boolean; 22 | addBOM?: boolean; 23 | defaultEncoding?: string; 24 | } 25 | -------------------------------------------------------------------------------- /loggerMS/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /loggerMS/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | try { 2 | var util = require('util'); 3 | /* istanbul ignore next */ 4 | if (typeof util.inherits !== 'function') throw ''; 5 | module.exports = util.inherits; 6 | } catch (e) { 7 | /* istanbul ignore next */ 8 | module.exports = require('./inherits_browser.js'); 9 | } 10 | -------------------------------------------------------------------------------- /loggerMS/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | if (superCtor) { 5 | ctor.super_ = superCtor 6 | ctor.prototype = Object.create(superCtor.prototype, { 7 | constructor: { 8 | value: ctor, 9 | enumerable: false, 10 | writable: true, 11 | configurable: true 12 | } 13 | }) 14 | } 15 | }; 16 | } else { 17 | // old school shim for old browsers 18 | module.exports = function inherits(ctor, superCtor) { 19 | if (superCtor) { 20 | ctor.super_ = superCtor 21 | var TempCtor = function () {} 22 | TempCtor.prototype = superCtor.prototype 23 | ctor.prototype = new TempCtor() 24 | ctor.prototype.constructor = ctor 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /loggerMS/node_modules/inherits/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "inherits", 3 | "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", 4 | "version": "2.0.4", 5 | "keywords": [ 6 | "inheritance", 7 | "class", 8 | "klass", 9 | "oop", 10 | "object-oriented", 11 | "inherits", 12 | "browser", 13 | "browserify" 14 | ], 15 | "main": "./inherits.js", 16 | "browser": "./inherits_browser.js", 17 | "repository": "git://github.com/isaacs/inherits", 18 | "license": "ISC", 19 | "scripts": { 20 | "test": "tap" 21 | }, 22 | "devDependencies": { 23 | "tap": "^14.2.4" 24 | }, 25 | "files": [ 26 | "inherits.js", 27 | "inherits_browser.js" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /loggerMS/node_modules/ipaddr.js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ipaddr.js", 3 | "description": "A library for manipulating IPv4 and IPv6 addresses in JavaScript.", 4 | "version": "1.9.1", 5 | "author": "whitequark ", 6 | "directories": { 7 | "lib": "./lib" 8 | }, 9 | "dependencies": {}, 10 | "devDependencies": { 11 | "coffee-script": "~1.12.6", 12 | "nodeunit": "^0.11.3", 13 | "uglify-js": "~3.0.19" 14 | }, 15 | "scripts": { 16 | "test": "cake build test" 17 | }, 18 | "files": [ 19 | "lib/", 20 | "LICENSE", 21 | "ipaddr.min.js" 22 | ], 23 | "keywords": [ 24 | "ip", 25 | "ipv4", 26 | "ipv6" 27 | ], 28 | "repository": "git://github.com/whitequark/ipaddr.js", 29 | "main": "./lib/ipaddr.js", 30 | "engines": { 31 | "node": ">= 0.10" 32 | }, 33 | "license": "MIT", 34 | "types": "./lib/ipaddr.js.d.ts" 35 | } 36 | -------------------------------------------------------------------------------- /loggerMS/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /loggerMS/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /loggerMS/node_modules/isarray/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : { 6 | "type" : "git", 7 | "url" : "git://github.com/juliangruber/isarray.git" 8 | }, 9 | "homepage": "https://github.com/juliangruber/isarray", 10 | "main" : "index.js", 11 | "scripts" : { 12 | "test" : "tap test/*.js" 13 | }, 14 | "dependencies" : {}, 15 | "devDependencies" : { 16 | "tap" : "*" 17 | }, 18 | "keywords": ["browser","isarray","array"], 19 | "author": { 20 | "name": "Julian Gruber", 21 | "email": "mail@juliangruber.com", 22 | "url": "http://juliangruber.com" 23 | }, 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /loggerMS/node_modules/media-typer/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.3.0 / 2014-09-07 2 | ================== 3 | 4 | * Support Node.js 0.6 5 | * Throw error when parameter format invalid on parse 6 | 7 | 0.2.0 / 2014-06-18 8 | ================== 9 | 10 | * Add `typer.format()` to format media types 11 | 12 | 0.1.0 / 2014-06-17 13 | ================== 14 | 15 | * Accept `req` as argument to `parse` 16 | * Accept `res` as argument to `parse` 17 | * Parse media type with extra LWS between type and first parameter 18 | 19 | 0.0.0 / 2014-06-13 20 | ================== 21 | 22 | * Initial implementation 23 | -------------------------------------------------------------------------------- /loggerMS/node_modules/media-typer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "media-typer", 3 | "description": "Simple RFC 6838 media type parser and formatter", 4 | "version": "0.3.0", 5 | "author": "Douglas Christopher Wilson ", 6 | "license": "MIT", 7 | "repository": "jshttp/media-typer", 8 | "devDependencies": { 9 | "istanbul": "0.3.2", 10 | "mocha": "~1.21.4", 11 | "should": "~4.0.4" 12 | }, 13 | "files": [ 14 | "LICENSE", 15 | "HISTORY.md", 16 | "index.js" 17 | ], 18 | "engines": { 19 | "node": ">= 0.6" 20 | }, 21 | "scripts": { 22 | "test": "mocha --reporter spec --check-leaks --bail test/", 23 | "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", 24 | "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /loggerMS/node_modules/merge-descriptors/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2016-01-17 2 | ================== 3 | 4 | * perf: enable strict mode 5 | 6 | 1.0.0 / 2015-03-01 7 | ================== 8 | 9 | * Add option to only add new descriptors 10 | * Add simple argument validation 11 | * Add jsdoc to source file 12 | 13 | 0.0.2 / 2013-12-14 14 | ================== 15 | 16 | * Move repository to `component` organization 17 | 18 | 0.0.1 / 2013-10-29 19 | ================== 20 | 21 | * Initial release 22 | -------------------------------------------------------------------------------- /loggerMS/node_modules/merge-descriptors/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "merge-descriptors", 3 | "description": "Merge objects using descriptors", 4 | "version": "1.0.1", 5 | "author": { 6 | "name": "Jonathan Ong", 7 | "email": "me@jongleberry.com", 8 | "url": "http://jongleberry.com", 9 | "twitter": "https://twitter.com/jongleberry" 10 | }, 11 | "contributors": [ 12 | "Douglas Christopher Wilson ", 13 | "Mike Grabowski " 14 | ], 15 | "license": "MIT", 16 | "repository": "component/merge-descriptors", 17 | "devDependencies": { 18 | "istanbul": "0.4.1", 19 | "mocha": "1.21.5" 20 | }, 21 | "files": [ 22 | "HISTORY.md", 23 | "LICENSE", 24 | "README.md", 25 | "index.js" 26 | ], 27 | "scripts": { 28 | "test": "mocha --reporter spec --bail --check-leaks test/", 29 | "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/", 30 | "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /loggerMS/node_modules/methods/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.1.2 / 2016-01-17 2 | ================== 3 | 4 | * perf: enable strict mode 5 | 6 | 1.1.1 / 2014-12-30 7 | ================== 8 | 9 | * Improve `browserify` support 10 | 11 | 1.1.0 / 2014-07-05 12 | ================== 13 | 14 | * Add `CONNECT` method 15 | 16 | 1.0.1 / 2014-06-02 17 | ================== 18 | 19 | * Fix module to work with harmony transform 20 | 21 | 1.0.0 / 2014-05-08 22 | ================== 23 | 24 | * Add `PURGE` method 25 | 26 | 0.1.0 / 2013-10-28 27 | ================== 28 | 29 | * Add `http.METHODS` support 30 | -------------------------------------------------------------------------------- /loggerMS/node_modules/methods/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "methods", 3 | "description": "HTTP methods that node supports", 4 | "version": "1.1.2", 5 | "contributors": [ 6 | "Douglas Christopher Wilson ", 7 | "Jonathan Ong (http://jongleberry.com)", 8 | "TJ Holowaychuk (http://tjholowaychuk.com)" 9 | ], 10 | "license": "MIT", 11 | "repository": "jshttp/methods", 12 | "devDependencies": { 13 | "istanbul": "0.4.1", 14 | "mocha": "1.21.5" 15 | }, 16 | "files": [ 17 | "index.js", 18 | "HISTORY.md", 19 | "LICENSE" 20 | ], 21 | "engines": { 22 | "node": ">= 0.6" 23 | }, 24 | "scripts": { 25 | "test": "mocha --reporter spec --bail --check-leaks test/", 26 | "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", 27 | "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" 28 | }, 29 | "browser": { 30 | "http": false 31 | }, 32 | "keywords": [ 33 | "http", 34 | "methods" 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /loggerMS/node_modules/mime-db/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * mime-db 3 | * Copyright(c) 2014 Jonathan Ong 4 | * Copyright(c) 2015-2022 Douglas Christopher Wilson 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module exports. 10 | */ 11 | 12 | module.exports = require('./db.json') 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/mime/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/charbelh3/RabbitMQ-Logger-Example/c8a7846c09260a632ed90a25b3f0767a555a8aef/loggerMS/node_modules/mime/.npmignore -------------------------------------------------------------------------------- /loggerMS/node_modules/mime/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var mime = require('./mime.js'); 4 | var file = process.argv[2]; 5 | var type = mime.lookup(file); 6 | 7 | process.stdout.write(type + '\n'); 8 | 9 | -------------------------------------------------------------------------------- /loggerMS/node_modules/mime/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "Robert Kieffer", 4 | "url": "http://github.com/broofa", 5 | "email": "robert@broofa.com" 6 | }, 7 | "bin": { 8 | "mime": "cli.js" 9 | }, 10 | "engines": { 11 | "node": ">=4" 12 | }, 13 | "contributors": [ 14 | { 15 | "name": "Benjamin Thomas", 16 | "url": "http://github.com/bentomas", 17 | "email": "benjamin@benjaminthomas.org" 18 | } 19 | ], 20 | "description": "A comprehensive library for mime-type mapping", 21 | "license": "MIT", 22 | "dependencies": {}, 23 | "devDependencies": { 24 | "github-release-notes": "0.13.1", 25 | "mime-db": "1.31.0", 26 | "mime-score": "1.1.0" 27 | }, 28 | "scripts": { 29 | "prepare": "node src/build.js", 30 | "changelog": "gren changelog --tags=all --generate --override", 31 | "test": "node src/test.js" 32 | }, 33 | "keywords": [ 34 | "util", 35 | "mime" 36 | ], 37 | "main": "mime.js", 38 | "name": "mime", 39 | "repository": { 40 | "url": "https://github.com/broofa/node-mime", 41 | "type": "git" 42 | }, 43 | "version": "1.6.0" 44 | } 45 | -------------------------------------------------------------------------------- /loggerMS/node_modules/ms/license.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Zeit, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /loggerMS/node_modules/ms/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ms", 3 | "version": "2.0.0", 4 | "description": "Tiny milisecond conversion utility", 5 | "repository": "zeit/ms", 6 | "main": "./index", 7 | "files": [ 8 | "index.js" 9 | ], 10 | "scripts": { 11 | "precommit": "lint-staged", 12 | "lint": "eslint lib/* bin/*", 13 | "test": "mocha tests.js" 14 | }, 15 | "eslintConfig": { 16 | "extends": "eslint:recommended", 17 | "env": { 18 | "node": true, 19 | "es6": true 20 | } 21 | }, 22 | "lint-staged": { 23 | "*.js": [ 24 | "npm run lint", 25 | "prettier --single-quote --write", 26 | "git add" 27 | ] 28 | }, 29 | "license": "MIT", 30 | "devDependencies": { 31 | "eslint": "3.19.0", 32 | "expect.js": "0.3.1", 33 | "husky": "0.13.3", 34 | "lint-staged": "3.4.1", 35 | "mocha": "3.4.1" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/object-inspect 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "instrumentation": false, 5 | "sourceMap": false, 6 | "reporter": ["text-summary", "text", "html", "json"], 7 | "exclude": [ 8 | "coverage", 9 | "example", 10 | "test", 11 | "test-core-js.js" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/example/all.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var Buffer = require('safer-buffer').Buffer; 5 | 6 | var holes = ['a', 'b']; 7 | holes[4] = 'e'; 8 | holes[6] = 'g'; 9 | 10 | var obj = { 11 | a: 1, 12 | b: [3, 4, undefined, null], 13 | c: undefined, 14 | d: null, 15 | e: { 16 | regex: /^x/i, 17 | buf: Buffer.from('abc'), 18 | holes: holes 19 | }, 20 | now: new Date() 21 | }; 22 | obj.self = obj; 23 | console.log(inspect(obj)); 24 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/example/circular.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var obj = { a: 1, b: [3, 4] }; 5 | obj.c = obj; 6 | console.log(inspect(obj)); 7 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/example/fn.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var obj = [1, 2, function f(n) { return n + 5; }, 4]; 5 | console.log(inspect(obj)); 6 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/example/inspect.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* eslint-env browser */ 4 | var inspect = require('../'); 5 | 6 | var d = document.createElement('div'); 7 | d.setAttribute('id', 'beep'); 8 | d.innerHTML = 'woooiiiii'; 9 | 10 | console.log(inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }])); 11 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/package-support.json: -------------------------------------------------------------------------------- 1 | { 2 | "versions": [ 3 | { 4 | "version": "*", 5 | "target": { 6 | "node": "all" 7 | }, 8 | "response": { 9 | "type": "time-permitting" 10 | }, 11 | "backing": { 12 | "npm-funding": true, 13 | "donations": [ 14 | "https://github.com/ljharb", 15 | "https://tidelift.com/funding/github/npm/object-inspect" 16 | ] 17 | } 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test-core-js.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('core-js'); 4 | 5 | var inspect = require('./'); 6 | var test = require('tape'); 7 | 8 | test('Maps', function (t) { 9 | t.equal(inspect(new Map([[1, 2]])), 'Map (1) {1 => 2}'); 10 | t.end(); 11 | }); 12 | 13 | test('WeakMaps', function (t) { 14 | t.equal(inspect(new WeakMap([[{}, 2]])), 'WeakMap { ? }'); 15 | t.end(); 16 | }); 17 | 18 | test('Sets', function (t) { 19 | t.equal(inspect(new Set([[1, 2]])), 'Set (1) {[ 1, 2 ]}'); 20 | t.end(); 21 | }); 22 | 23 | test('WeakSets', function (t) { 24 | t.equal(inspect(new WeakSet([[1, 2]])), 'WeakSet { ? }'); 25 | t.end(); 26 | }); 27 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test/browser/dom.js: -------------------------------------------------------------------------------- 1 | var inspect = require('../../'); 2 | var test = require('tape'); 3 | 4 | test('dom element', function (t) { 5 | t.plan(1); 6 | 7 | var d = document.createElement('div'); 8 | d.setAttribute('id', 'beep'); 9 | d.innerHTML = 'woooiiiii'; 10 | 11 | t.equal( 12 | inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }]), 13 | '[
...
, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [Object] ] ] ] } ]' 14 | ); 15 | }); 16 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test/circular.js: -------------------------------------------------------------------------------- 1 | var inspect = require('../'); 2 | var test = require('tape'); 3 | 4 | test('circular', function (t) { 5 | t.plan(2); 6 | var obj = { a: 1, b: [3, 4] }; 7 | obj.c = obj; 8 | t.equal(inspect(obj), '{ a: 1, b: [ 3, 4 ], c: [Circular] }'); 9 | 10 | var double = {}; 11 | double.a = [double]; 12 | double.b = {}; 13 | double.b.inner = double.b; 14 | double.b.obj = double; 15 | t.equal(inspect(double), '{ a: [ [Circular] ], b: { inner: [Circular], obj: [Circular] } }'); 16 | }); 17 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test/deep.js: -------------------------------------------------------------------------------- 1 | var inspect = require('../'); 2 | var test = require('tape'); 3 | 4 | test('deep', function (t) { 5 | t.plan(4); 6 | var obj = [[[[[[500]]]]]]; 7 | t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]'); 8 | t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]'); 9 | t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]'); 10 | 11 | t.equal(inspect([[[{ a: 1 }]]], { depth: 3 }), '[ [ [ [Object] ] ] ]'); 12 | }); 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test/fakes.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var test = require('tape'); 5 | var hasToStringTag = require('has-tostringtag/shams')(); 6 | var forEach = require('for-each'); 7 | 8 | test('fakes', { skip: !hasToStringTag }, function (t) { 9 | forEach([ 10 | 'Array', 11 | 'Boolean', 12 | 'Date', 13 | 'Error', 14 | 'Number', 15 | 'RegExp', 16 | 'String' 17 | ], function (expected) { 18 | var faker = {}; 19 | faker[Symbol.toStringTag] = expected; 20 | 21 | t.equal( 22 | inspect(faker), 23 | '{ [Symbol(Symbol.toStringTag)]: \'' + expected + '\' }', 24 | 'faker masquerading as ' + expected + ' is not shown as one' 25 | ); 26 | }); 27 | 28 | t.end(); 29 | }); 30 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test/has.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var test = require('tape'); 5 | var mockProperty = require('mock-property'); 6 | 7 | test('when Object#hasOwnProperty is deleted', function (t) { 8 | t.plan(1); 9 | var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays 10 | 11 | t.teardown(mockProperty(Array.prototype, 1, { value: 2 })); // this is needed to account for "in" vs "hasOwnProperty" 12 | t.teardown(mockProperty(Object.prototype, 'hasOwnProperty', { 'delete': true })); 13 | 14 | t.equal(inspect(arr), '[ 1, , 3 ]'); 15 | }); 16 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test/holes.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var inspect = require('../'); 3 | 4 | var xs = ['a', 'b']; 5 | xs[5] = 'f'; 6 | xs[7] = 'j'; 7 | xs[8] = 'k'; 8 | 9 | test('holes', function (t) { 10 | t.plan(1); 11 | t.equal( 12 | inspect(xs), 13 | "[ 'a', 'b', , , , 'f', , 'j', 'k' ]" 14 | ); 15 | }); 16 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test/lowbyte.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var inspect = require('../'); 3 | 4 | var obj = { x: 'a\r\nb', y: '\x05! \x1f \x12' }; 5 | 6 | test('interpolate low bytes', function (t) { 7 | t.plan(1); 8 | t.equal( 9 | inspect(obj), 10 | "{ x: 'a\\r\\nb', y: '\\x05! \\x1F \\x12' }" 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test/quoteStyle.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var test = require('tape'); 5 | 6 | test('quoteStyle option', function (t) { 7 | t['throws'](function () { inspect(null, { quoteStyle: false }); }, 'false is not a valid value'); 8 | t['throws'](function () { inspect(null, { quoteStyle: true }); }, 'true is not a valid value'); 9 | t['throws'](function () { inspect(null, { quoteStyle: '' }); }, '"" is not a valid value'); 10 | t['throws'](function () { inspect(null, { quoteStyle: {} }); }, '{} is not a valid value'); 11 | t['throws'](function () { inspect(null, { quoteStyle: [] }); }, '[] is not a valid value'); 12 | t['throws'](function () { inspect(null, { quoteStyle: 42 }); }, '42 is not a valid value'); 13 | t['throws'](function () { inspect(null, { quoteStyle: NaN }); }, 'NaN is not a valid value'); 14 | t['throws'](function () { inspect(null, { quoteStyle: function () {} }); }, 'a function is not a valid value'); 15 | 16 | t.end(); 17 | }); 18 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/test/undef.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var inspect = require('../'); 3 | 4 | var obj = { a: 1, b: [3, 4, undefined, null], c: undefined, d: null }; 5 | 6 | test('undef and null', function (t) { 7 | t.plan(1); 8 | t.equal( 9 | inspect(obj), 10 | '{ a: 1, b: [ 3, 4, undefined, null ], c: undefined, d: null }' 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/object-inspect/util.inspect.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inspect; 2 | -------------------------------------------------------------------------------- /loggerMS/node_modules/path-to-regexp/History.md: -------------------------------------------------------------------------------- 1 | 0.1.7 / 2015-07-28 2 | ================== 3 | 4 | * Fixed regression with escaped round brackets and matching groups. 5 | 6 | 0.1.6 / 2015-06-19 7 | ================== 8 | 9 | * Replace `index` feature by outputting all parameters, unnamed and named. 10 | 11 | 0.1.5 / 2015-05-08 12 | ================== 13 | 14 | * Add an index property for position in match result. 15 | 16 | 0.1.4 / 2015-03-05 17 | ================== 18 | 19 | * Add license information 20 | 21 | 0.1.3 / 2014-07-06 22 | ================== 23 | 24 | * Better array support 25 | * Improved support for trailing slash in non-ending mode 26 | 27 | 0.1.0 / 2014-03-06 28 | ================== 29 | 30 | * add options.end 31 | 32 | 0.0.2 / 2013-02-10 33 | ================== 34 | 35 | * Update to match current express 36 | * add .license property to component.json 37 | -------------------------------------------------------------------------------- /loggerMS/node_modules/path-to-regexp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "path-to-regexp", 3 | "description": "Express style path to RegExp utility", 4 | "version": "0.1.7", 5 | "files": [ 6 | "index.js", 7 | "LICENSE" 8 | ], 9 | "scripts": { 10 | "test": "istanbul cover _mocha -- -R spec" 11 | }, 12 | "keywords": [ 13 | "express", 14 | "regexp" 15 | ], 16 | "component": { 17 | "scripts": { 18 | "path-to-regexp": "index.js" 19 | } 20 | }, 21 | "license": "MIT", 22 | "repository": { 23 | "type": "git", 24 | "url": "https://github.com/component/path-to-regexp.git" 25 | }, 26 | "devDependencies": { 27 | "mocha": "^1.17.1", 28 | "istanbul": "^0.2.6" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /loggerMS/node_modules/qs/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 4 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | max_line_length = 160 11 | quote_type = single 12 | 13 | [test/*] 14 | max_line_length = off 15 | 16 | [LICENSE.md] 17 | indent_size = off 18 | 19 | [*.md] 20 | max_line_length = off 21 | 22 | [*.json] 23 | max_line_length = off 24 | 25 | [Makefile] 26 | max_line_length = off 27 | 28 | [CHANGELOG.md] 29 | indent_style = space 30 | indent_size = 2 31 | 32 | [LICENSE] 33 | indent_size = 2 34 | max_line_length = off 35 | 36 | [coverage/**/*] 37 | indent_size = off 38 | indent_style = off 39 | indent = off 40 | max_line_length = off 41 | -------------------------------------------------------------------------------- /loggerMS/node_modules/qs/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/qs 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with a single custom sponsorship URL 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/qs/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "dist" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /loggerMS/node_modules/qs/lib/formats.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var replace = String.prototype.replace; 4 | var percentTwenties = /%20/g; 5 | 6 | var Format = { 7 | RFC1738: 'RFC1738', 8 | RFC3986: 'RFC3986' 9 | }; 10 | 11 | module.exports = { 12 | 'default': Format.RFC3986, 13 | formatters: { 14 | RFC1738: function (value) { 15 | return replace.call(value, percentTwenties, '+'); 16 | }, 17 | RFC3986: function (value) { 18 | return String(value); 19 | } 20 | }, 21 | RFC1738: Format.RFC1738, 22 | RFC3986: Format.RFC3986 23 | }; 24 | -------------------------------------------------------------------------------- /loggerMS/node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var stringify = require('./stringify'); 4 | var parse = require('./parse'); 5 | var formats = require('./formats'); 6 | 7 | module.exports = { 8 | formats: formats, 9 | parse: parse, 10 | stringify: stringify 11 | }; 12 | -------------------------------------------------------------------------------- /loggerMS/node_modules/querystringify/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "querystringify", 3 | "version": "2.2.0", 4 | "description": "Querystringify - Small, simple but powerful query string parser.", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "nyc --reporter=html --reporter=text mocha test.js", 8 | "watch": "mocha --watch test.js" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/unshiftio/querystringify" 13 | }, 14 | "keywords": [ 15 | "query", 16 | "string", 17 | "query-string", 18 | "querystring", 19 | "qs", 20 | "stringify", 21 | "parse", 22 | "decode", 23 | "encode" 24 | ], 25 | "author": "Arnout Kazemier", 26 | "license": "MIT", 27 | "bugs": { 28 | "url": "https://github.com/unshiftio/querystringify/issues" 29 | }, 30 | "homepage": "https://github.com/unshiftio/querystringify", 31 | "devDependencies": { 32 | "assume": "^2.1.0", 33 | "coveralls": "^3.1.0", 34 | "mocha": "^8.1.1", 35 | "nyc": "^15.1.0", 36 | "pre-commit": "^1.2.2" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /loggerMS/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /loggerMS/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /loggerMS/node_modules/readable-stream/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "readable-stream", 3 | "version": "1.1.14", 4 | "description": "Streams3, a user-land copy of the stream library from Node.js v0.11.x", 5 | "main": "readable.js", 6 | "dependencies": { 7 | "core-util-is": "~1.0.0", 8 | "isarray": "0.0.1", 9 | "string_decoder": "~0.10.x", 10 | "inherits": "~2.0.1" 11 | }, 12 | "devDependencies": { 13 | "tap": "~0.2.6" 14 | }, 15 | "scripts": { 16 | "test": "tap test/simple/*.js" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "git://github.com/isaacs/readable-stream" 21 | }, 22 | "keywords": [ 23 | "readable", 24 | "stream", 25 | "pipe" 26 | ], 27 | "browser": { 28 | "util": false 29 | }, 30 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 31 | "license": "MIT" 32 | } 33 | -------------------------------------------------------------------------------- /loggerMS/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /loggerMS/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = require('stream'); 3 | exports.Readable = exports; 4 | exports.Writable = require('./lib/_stream_writable.js'); 5 | exports.Duplex = require('./lib/_stream_duplex.js'); 6 | exports.Transform = require('./lib/_stream_transform.js'); 7 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 8 | if (!process.browser && process.env.READABLE_STREAM === 'disable') { 9 | module.exports = require('stream'); 10 | } 11 | -------------------------------------------------------------------------------- /loggerMS/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /loggerMS/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /loggerMS/node_modules/requires-port/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | -------------------------------------------------------------------------------- /loggerMS/node_modules/requires-port/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "4" 5 | - "iojs" 6 | - "0.12" 7 | - "0.10" 8 | script: 9 | - "npm run test-travis" 10 | after_script: 11 | - "npm install coveralls@2 && cat coverage/lcov.info | coveralls" 12 | matrix: 13 | fast_finish: true 14 | notifications: 15 | irc: 16 | channels: 17 | - "irc.freenode.org#unshift" 18 | on_success: change 19 | on_failure: change 20 | -------------------------------------------------------------------------------- /loggerMS/node_modules/requires-port/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Check if we're required to add a port number. 5 | * 6 | * @see https://url.spec.whatwg.org/#default-port 7 | * @param {Number|String} port Port number we need to check 8 | * @param {String} protocol Protocol we need to check against. 9 | * @returns {Boolean} Is it a default port for the given protocol 10 | * @api private 11 | */ 12 | module.exports = function required(port, protocol) { 13 | protocol = protocol.split(':')[0]; 14 | port = +port; 15 | 16 | if (!port) return false; 17 | 18 | switch (protocol) { 19 | case 'http': 20 | case 'ws': 21 | return port !== 80; 22 | 23 | case 'https': 24 | case 'wss': 25 | return port !== 443; 26 | 27 | case 'ftp': 28 | return port !== 21; 29 | 30 | case 'gopher': 31 | return port !== 70; 32 | 33 | case 'file': 34 | return false; 35 | } 36 | 37 | return port !== 0; 38 | }; 39 | -------------------------------------------------------------------------------- /loggerMS/node_modules/safe-buffer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "safe-buffer", 3 | "description": "Safer Node.js Buffer API", 4 | "version": "5.1.2", 5 | "author": { 6 | "name": "Feross Aboukhadijeh", 7 | "email": "feross@feross.org", 8 | "url": "http://feross.org" 9 | }, 10 | "bugs": { 11 | "url": "https://github.com/feross/safe-buffer/issues" 12 | }, 13 | "devDependencies": { 14 | "standard": "*", 15 | "tape": "^4.0.0" 16 | }, 17 | "homepage": "https://github.com/feross/safe-buffer", 18 | "keywords": [ 19 | "buffer", 20 | "buffer allocate", 21 | "node security", 22 | "safe", 23 | "safe-buffer", 24 | "security", 25 | "uninitialized" 26 | ], 27 | "license": "MIT", 28 | "main": "index.js", 29 | "types": "index.d.ts", 30 | "repository": { 31 | "type": "git", 32 | "url": "git://github.com/feross/safe-buffer.git" 33 | }, 34 | "scripts": { 35 | "test": "standard && tape test/*.js" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /loggerMS/node_modules/safer-buffer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "safer-buffer", 3 | "version": "2.1.2", 4 | "description": "Modern Buffer API polyfill without footguns", 5 | "main": "safer.js", 6 | "scripts": { 7 | "browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js", 8 | "test": "standard && tape tests.js" 9 | }, 10 | "author": { 11 | "name": "Nikita Skovoroda", 12 | "email": "chalkerx@gmail.com", 13 | "url": "https://github.com/ChALkeR" 14 | }, 15 | "license": "MIT", 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/ChALkeR/safer-buffer.git" 19 | }, 20 | "bugs": { 21 | "url": "https://github.com/ChALkeR/safer-buffer/issues" 22 | }, 23 | "devDependencies": { 24 | "standard": "^11.0.1", 25 | "tape": "^4.9.0" 26 | }, 27 | "files": [ 28 | "Porting-Buffer.md", 29 | "Readme.md", 30 | "tests.js", 31 | "dangerous.js", 32 | "safer.js" 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /loggerMS/node_modules/send/node_modules/ms/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ms", 3 | "version": "2.1.3", 4 | "description": "Tiny millisecond conversion utility", 5 | "repository": "vercel/ms", 6 | "main": "./index", 7 | "files": [ 8 | "index.js" 9 | ], 10 | "scripts": { 11 | "precommit": "lint-staged", 12 | "lint": "eslint lib/* bin/*", 13 | "test": "mocha tests.js" 14 | }, 15 | "eslintConfig": { 16 | "extends": "eslint:recommended", 17 | "env": { 18 | "node": true, 19 | "es6": true 20 | } 21 | }, 22 | "lint-staged": { 23 | "*.js": [ 24 | "npm run lint", 25 | "prettier --single-quote --write", 26 | "git add" 27 | ] 28 | }, 29 | "license": "MIT", 30 | "devDependencies": { 31 | "eslint": "4.18.2", 32 | "expect.js": "0.3.1", 33 | "husky": "0.14.3", 34 | "lint-staged": "5.0.0", 35 | "mocha": "4.0.1", 36 | "prettier": "2.0.5" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /loggerMS/node_modules/setprototypeof/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Wes Todd 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any 4 | purpose with or without fee is hereby granted, provided that the above 5 | copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 10 | SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 12 | OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 13 | CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 | -------------------------------------------------------------------------------- /loggerMS/node_modules/setprototypeof/README.md: -------------------------------------------------------------------------------- 1 | # Polyfill for `Object.setPrototypeOf` 2 | 3 | [![NPM Version](https://img.shields.io/npm/v/setprototypeof.svg)](https://npmjs.org/package/setprototypeof) 4 | [![NPM Downloads](https://img.shields.io/npm/dm/setprototypeof.svg)](https://npmjs.org/package/setprototypeof) 5 | [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/standard/standard) 6 | 7 | A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8. 8 | 9 | ## Usage: 10 | 11 | ``` 12 | $ npm install --save setprototypeof 13 | ``` 14 | 15 | ```javascript 16 | var setPrototypeOf = require('setprototypeof') 17 | 18 | var obj = {} 19 | setPrototypeOf(obj, { 20 | foo: function () { 21 | return 'bar' 22 | } 23 | }) 24 | obj.foo() // bar 25 | ``` 26 | 27 | TypeScript is also supported: 28 | 29 | ```typescript 30 | import setPrototypeOf from 'setprototypeof' 31 | ``` 32 | -------------------------------------------------------------------------------- /loggerMS/node_modules/setprototypeof/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function setPrototypeOf(o: any, proto: object | null): any; 2 | export = setPrototypeOf; 3 | -------------------------------------------------------------------------------- /loggerMS/node_modules/setprototypeof/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | /* eslint no-proto: 0 */ 3 | module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties) 4 | 5 | function setProtoOf (obj, proto) { 6 | obj.__proto__ = proto 7 | return obj 8 | } 9 | 10 | function mixinProperties (obj, proto) { 11 | for (var prop in proto) { 12 | if (!Object.prototype.hasOwnProperty.call(obj, prop)) { 13 | obj[prop] = proto[prop] 14 | } 15 | } 16 | return obj 17 | } 18 | -------------------------------------------------------------------------------- /loggerMS/node_modules/setprototypeof/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | /* eslint-env mocha */ 3 | /* eslint no-proto: 0 */ 4 | var assert = require('assert') 5 | var setPrototypeOf = require('..') 6 | 7 | describe('setProtoOf(obj, proto)', function () { 8 | it('should merge objects', function () { 9 | var obj = { a: 1, b: 2 } 10 | var proto = { b: 3, c: 4 } 11 | var mergeObj = setPrototypeOf(obj, proto) 12 | 13 | if (Object.getPrototypeOf) { 14 | assert.strictEqual(Object.getPrototypeOf(obj), proto) 15 | } else if ({ __proto__: [] } instanceof Array) { 16 | assert.strictEqual(obj.__proto__, proto) 17 | } else { 18 | assert.strictEqual(obj.a, 1) 19 | assert.strictEqual(obj.b, 2) 20 | assert.strictEqual(obj.c, 4) 21 | } 22 | assert.strictEqual(mergeObj, obj) 23 | }) 24 | }) 25 | -------------------------------------------------------------------------------- /loggerMS/node_modules/side-channel/.eslintignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | -------------------------------------------------------------------------------- /loggerMS/node_modules/side-channel/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "max-lines-per-function": 0, 8 | "max-params": 0, 9 | "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }], 10 | }, 11 | } 12 | -------------------------------------------------------------------------------- /loggerMS/node_modules/side-channel/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/side-channel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /loggerMS/node_modules/side-channel/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "test" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /loggerMS/node_modules/side-channel/README.md: -------------------------------------------------------------------------------- 1 | # side-channel 2 | Store information about any JS value in a side channel. Uses WeakMap if available. 3 | -------------------------------------------------------------------------------- /loggerMS/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /loggerMS/node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /loggerMS/node_modules/string_decoder/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "string_decoder", 3 | "version": "0.10.31", 4 | "description": "The string_decoder module from Node core", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": { 8 | "tap": "~0.4.8" 9 | }, 10 | "scripts": { 11 | "test": "tap test/simple/*.js" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/rvagg/string_decoder.git" 16 | }, 17 | "homepage": "https://github.com/rvagg/string_decoder", 18 | "keywords": [ 19 | "string", 20 | "decoder", 21 | "browser", 22 | "browserify" 23 | ], 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /loggerMS/node_modules/toidentifier/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2021-11-14 2 | ================== 3 | 4 | * pref: enable strict mode 5 | 6 | 1.0.0 / 2018-07-09 7 | ================== 8 | 9 | * Initial release 10 | -------------------------------------------------------------------------------- /loggerMS/node_modules/toidentifier/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * toidentifier 3 | * Copyright(c) 2016 Douglas Christopher Wilson 4 | * MIT Licensed 5 | */ 6 | 7 | 'use strict' 8 | 9 | /** 10 | * Module exports. 11 | * @public 12 | */ 13 | 14 | module.exports = toIdentifier 15 | 16 | /** 17 | * Trasform the given string into a JavaScript identifier 18 | * 19 | * @param {string} str 20 | * @returns {string} 21 | * @public 22 | */ 23 | 24 | function toIdentifier (str) { 25 | return str 26 | .split(' ') 27 | .map(function (token) { 28 | return token.slice(0, 1).toUpperCase() + token.slice(1) 29 | }) 30 | .join('') 31 | .replace(/[^ _0-9a-z]/gi, '') 32 | } 33 | -------------------------------------------------------------------------------- /loggerMS/node_modules/unpipe/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.0 / 2015-06-14 2 | ================== 3 | 4 | * Initial release 5 | -------------------------------------------------------------------------------- /loggerMS/node_modules/unpipe/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "unpipe", 3 | "description": "Unpipe a stream from all destinations", 4 | "version": "1.0.0", 5 | "author": "Douglas Christopher Wilson ", 6 | "license": "MIT", 7 | "repository": "stream-utils/unpipe", 8 | "devDependencies": { 9 | "istanbul": "0.3.15", 10 | "mocha": "2.2.5", 11 | "readable-stream": "1.1.13" 12 | }, 13 | "files": [ 14 | "HISTORY.md", 15 | "LICENSE", 16 | "README.md", 17 | "index.js" 18 | ], 19 | "engines": { 20 | "node": ">= 0.8" 21 | }, 22 | "scripts": { 23 | "test": "mocha --reporter spec --bail --check-leaks test/", 24 | "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", 25 | "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /loggerMS/node_modules/utils-merge/.npmignore: -------------------------------------------------------------------------------- 1 | CONTRIBUTING.md 2 | Makefile 3 | docs/ 4 | examples/ 5 | reports/ 6 | test/ 7 | 8 | .jshintrc 9 | .travis.yml 10 | -------------------------------------------------------------------------------- /loggerMS/node_modules/utils-merge/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Merge object b with object a. 3 | * 4 | * var a = { foo: 'bar' } 5 | * , b = { bar: 'baz' }; 6 | * 7 | * merge(a, b); 8 | * // => { foo: 'bar', bar: 'baz' } 9 | * 10 | * @param {Object} a 11 | * @param {Object} b 12 | * @return {Object} 13 | * @api public 14 | */ 15 | 16 | exports = module.exports = function(a, b){ 17 | if (a && b) { 18 | for (var key in b) { 19 | a[key] = b[key]; 20 | } 21 | } 22 | return a; 23 | }; 24 | -------------------------------------------------------------------------------- /loggerMS/node_modules/utils-merge/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "utils-merge", 3 | "version": "1.0.1", 4 | "description": "merge() utility function", 5 | "keywords": [ 6 | "util" 7 | ], 8 | "author": { 9 | "name": "Jared Hanson", 10 | "email": "jaredhanson@gmail.com", 11 | "url": "http://www.jaredhanson.net/" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/jaredhanson/utils-merge.git" 16 | }, 17 | "bugs": { 18 | "url": "http://github.com/jaredhanson/utils-merge/issues" 19 | }, 20 | "license": "MIT", 21 | "licenses": [ 22 | { 23 | "type": "MIT", 24 | "url": "http://opensource.org/licenses/MIT" 25 | } 26 | ], 27 | "main": "./index", 28 | "dependencies": {}, 29 | "devDependencies": { 30 | "make-node": "0.3.x", 31 | "mocha": "1.x.x", 32 | "chai": "1.x.x" 33 | }, 34 | "engines": { 35 | "node": ">= 0.4.0" 36 | }, 37 | "scripts": { 38 | "test": "node_modules/.bin/mocha --reporter spec --require test/bootstrap/node test/*.test.js" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /loggerMS/node_modules/vary/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.1.2 / 2017-09-23 2 | ================== 3 | 4 | * perf: improve header token parsing speed 5 | 6 | 1.1.1 / 2017-03-20 7 | ================== 8 | 9 | * perf: hoist regular expression 10 | 11 | 1.1.0 / 2015-09-29 12 | ================== 13 | 14 | * Only accept valid field names in the `field` argument 15 | - Ensures the resulting string is a valid HTTP header value 16 | 17 | 1.0.1 / 2015-07-08 18 | ================== 19 | 20 | * Fix setting empty header from empty `field` 21 | * perf: enable strict mode 22 | * perf: remove argument reassignments 23 | 24 | 1.0.0 / 2014-08-10 25 | ================== 26 | 27 | * Accept valid `Vary` header string as `field` 28 | * Add `vary.append` for low-level string manipulation 29 | * Move to `jshttp` orgainzation 30 | 31 | 0.1.0 / 2014-06-05 32 | ================== 33 | 34 | * Support array of fields to set 35 | 36 | 0.0.0 / 2014-06-04 37 | ================== 38 | 39 | * Initial release 40 | -------------------------------------------------------------------------------- /loggerMS/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "loggerms", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "amqplib": "^0.10.0", 14 | "body-parser": "^1.20.0", 15 | "express": "^4.18.1" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /loggerMS/server.js: -------------------------------------------------------------------------------- 1 | const express = require("express"); 2 | const bodyParser = require("body-parser"); 3 | const app = express(); 4 | const Producer = require("./producer"); 5 | const producer = new Producer(); 6 | 7 | app.use(bodyParser.json("application/json")); 8 | 9 | app.post("/sendLog", async (req, res, next) => { 10 | await producer.publishMessage(req.body.logType, req.body.message); 11 | res.send(); 12 | }); 13 | 14 | app.listen(3000, () => { 15 | console.log("Server started..."); 16 | }); 17 | -------------------------------------------------------------------------------- /warningAndErrorMS/app.js: -------------------------------------------------------------------------------- 1 | const amqp = require("amqplib"); 2 | 3 | //step 1 : Connect to the rabbitmq server 4 | //step 2 : Create a new channel 5 | //step 3 : Create the exchange 6 | //step 4 : Create the queue 7 | //step 5 : Bind the queue to the exchange 8 | //step 6 : Consume messages from the queue 9 | 10 | async function consumeMessages() { 11 | const connection = await amqp.connect("amqp://localhost"); 12 | const channel = await connection.createChannel(); 13 | 14 | await channel.assertExchange("logExchange", "direct"); 15 | 16 | const q = await channel.assertQueue("WarningAndErrorsQueue"); 17 | 18 | await channel.bindQueue(q.queue, "logExchange", "Warning"); 19 | await channel.bindQueue(q.queue, "logExchange", "Error"); 20 | 21 | channel.consume(q.queue, (msg) => { 22 | const data = JSON.parse(msg.content); 23 | console.log(data); 24 | channel.ack(msg); 25 | }); 26 | } 27 | 28 | consumeMessages(); 29 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/LICENSE: -------------------------------------------------------------------------------- 1 | amqplib copyright (c) 2013, 2014 2 | Michael Bridgen 3 | 4 | This package, "amqplib", is licensed under the MIT License. A copy may 5 | be found in the file LICENSE-MIT in this directory, or downloaded from 6 | http://opensource.org/licenses/MIT. 7 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/callback_api.js: -------------------------------------------------------------------------------- 1 | var raw_connect = require('./lib/connect').connect; 2 | var CallbackModel = require('./lib/callback_model').CallbackModel; 3 | 4 | // Supports three shapes: 5 | // connect(url, options, callback) 6 | // connect(url, callback) 7 | // connect(callback) 8 | function connect(url, options, cb) { 9 | if (typeof url === 'function') 10 | cb = url, url = false, options = false; 11 | else if (typeof options === 'function') 12 | cb = options, options = false; 13 | 14 | raw_connect(url, options, function(err, c) { 15 | if (err === null) cb(null, new CallbackModel(c)); 16 | else cb(err); 17 | }); 18 | }; 19 | 20 | module.exports.connect = connect; 21 | module.exports.credentials = require('./lib/credentials'); 22 | module.exports.IllegalOperationError = require('./lib/error').IllegalOperationError; 23 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/channel_api.js: -------------------------------------------------------------------------------- 1 | var raw_connect = require('./lib/connect').connect; 2 | var ChannelModel = require('./lib/channel_model').ChannelModel; 3 | var promisify = require('util').promisify; 4 | 5 | function connect(url, connOptions) { 6 | return promisify(function(cb) { 7 | return raw_connect(url, connOptions, cb); 8 | })() 9 | .then(function(conn) { 10 | return new ChannelModel(conn); 11 | }); 12 | }; 13 | 14 | module.exports.connect = connect; 15 | module.exports.credentials = require('./lib/credentials'); 16 | module.exports.IllegalOperationError = require('./lib/error').IllegalOperationError; 17 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/callback_api/emit_log.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | 13 | var ex = 'logs'; 14 | 15 | function on_channel_open(err, ch) { 16 | if (err !== null) return bail(err, conn); 17 | ch.assertExchange(ex, 'fanout', {durable: false}); 18 | var msg = process.argv.slice(2).join(' ') || 19 | 'info: Hello World!'; 20 | ch.publish(ex, '', Buffer.from(msg)); 21 | console.log(" [x] Sent '%s'", msg); 22 | ch.close(function() { conn.close(); }); 23 | } 24 | 25 | conn.createChannel(on_channel_open); 26 | } 27 | 28 | amqp.connect(on_connect); 29 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/callback_api/emit_log_direct.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | var args = process.argv.slice(2); 6 | var severity = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | function bail(err, conn) { 10 | console.error(err); 11 | if (conn) conn.close(function() { process.exit(1); }); 12 | } 13 | 14 | function on_connect(err, conn) { 15 | if (err !== null) return bail(err); 16 | 17 | var ex = 'direct_logs'; 18 | var exopts = {durable: false}; 19 | 20 | function on_channel_open(err, ch) { 21 | if (err !== null) return bail(err, conn); 22 | ch.assertExchange(ex, 'direct', exopts, function(err, ok) { 23 | ch.publish(ex, severity, Buffer.from(message)); 24 | ch.close(function() { conn.close(); }); 25 | }); 26 | } 27 | conn.createChannel(on_channel_open); 28 | } 29 | 30 | amqp.connect(on_connect); 31 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/callback_api/emit_log_topic.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | var args = process.argv.slice(2); 6 | var key = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | function bail(err, conn) { 10 | console.error(err); 11 | if (conn) conn.close(function() { process.exit(1); }); 12 | } 13 | 14 | function on_connect(err, conn) { 15 | if (err !== null) return bail(err); 16 | var ex = 'topic_logs', exopts = {durable: false}; 17 | conn.createChannel(function(err, ch) { 18 | ch.assertExchange(ex, 'topic', exopts, function(err, ok) { 19 | if (err !== null) return bail(err, conn); 20 | ch.publish(ex, key, Buffer.from(message)); 21 | console.log(" [x] Sent %s:'%s'", key, message); 22 | ch.close(function() { conn.close(); }); 23 | }); 24 | }); 25 | } 26 | 27 | amqp.connect(on_connect); 28 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/callback_api/new_task.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | 13 | var q = 'task_queue'; 14 | 15 | conn.createChannel(function(err, ch) { 16 | if (err !== null) return bail(err, conn); 17 | ch.assertQueue(q, {durable: true}, function(err, _ok) { 18 | if (err !== null) return bail(err, conn); 19 | var msg = process.argv.slice(2).join(' ') || "Hello World!"; 20 | ch.sendToQueue(q, Buffer.from(msg), {persistent: true}); 21 | console.log(" [x] Sent '%s'", msg); 22 | ch.close(function() { conn.close(); }); 23 | }); 24 | }); 25 | } 26 | 27 | amqp.connect(on_connect); 28 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/callback_api/receive.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | process.once('SIGINT', function() { conn.close(); }); 13 | 14 | var q = 'hello'; 15 | 16 | function on_channel_open(err, ch) { 17 | ch.assertQueue(q, {durable: false}, function(err, ok) { 18 | if (err !== null) return bail(err, conn); 19 | ch.consume(q, function(msg) { // message callback 20 | console.log(" [x] Received '%s'", msg.content.toString()); 21 | }, {noAck: true}, function(_consumeOk) { // consume callback 22 | console.log(' [*] Waiting for messages. To exit press CTRL+C'); 23 | }); 24 | }); 25 | } 26 | 27 | conn.createChannel(on_channel_open); 28 | } 29 | 30 | amqp.connect(on_connect); 31 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/callback_api/receive_logs.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | process.once('SIGINT', function() { conn.close(); }); 13 | 14 | var ex = 'logs'; 15 | 16 | function on_channel_open(err, ch) { 17 | if (err !== null) return bail(err, conn); 18 | ch.assertQueue('', {exclusive: true}, function(err, ok) { 19 | var q = ok.queue; 20 | ch.bindQueue(q, ex, ''); 21 | ch.consume(q, logMessage, {noAck: true}, function(err, ok) { 22 | if (err !== null) return bail(err, conn); 23 | console.log(" [*] Waiting for logs. To exit press CTRL+C."); 24 | }); 25 | }); 26 | } 27 | 28 | function logMessage(msg) { 29 | if (msg) 30 | console.log(" [x] '%s'", msg.content.toString()); 31 | } 32 | 33 | conn.createChannel(on_channel_open); 34 | } 35 | 36 | amqp.connect(on_connect); 37 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/callback_api/send.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | 13 | var q = 'hello'; 14 | var msg = 'Hello World!'; 15 | 16 | function on_channel_open(err, ch) { 17 | if (err !== null) return bail(err, conn); 18 | ch.assertQueue(q, {durable: false}, function(err, ok) { 19 | if (err !== null) return bail(err, conn); 20 | ch.sendToQueue(q, Buffer.from(msg)); 21 | console.log(" [x] Sent '%s'", msg); 22 | ch.close(function() { conn.close(); }); 23 | }); 24 | } 25 | 26 | conn.createChannel(on_channel_open); 27 | } 28 | 29 | amqp.connect(on_connect); 30 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/callback_api/worker.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib/callback_api'); 4 | 5 | function bail(err, conn) { 6 | console.error(err); 7 | if (conn) conn.close(function() { process.exit(1); }); 8 | } 9 | 10 | function on_connect(err, conn) { 11 | if (err !== null) return bail(err); 12 | process.once('SIGINT', function() { conn.close(); }); 13 | 14 | var q = 'task_queue'; 15 | 16 | conn.createChannel(function(err, ch) { 17 | if (err !== null) return bail(err, conn); 18 | ch.assertQueue(q, {durable: true}, function(err, _ok) { 19 | ch.consume(q, doWork, {noAck: false}); 20 | console.log(" [*] Waiting for messages. To exit press CTRL+C"); 21 | }); 22 | 23 | function doWork(msg) { 24 | var body = msg.content.toString(); 25 | console.log(" [x] Received '%s'", body); 26 | var secs = body.split('.').length - 1; 27 | setTimeout(function() { 28 | console.log(" [x] Done"); 29 | ch.ack(msg); 30 | }, secs * 1000); 31 | } 32 | }); 33 | } 34 | 35 | amqp.connect(on_connect); 36 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/emit_log.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | return conn.createChannel().then(function(ch) { 7 | var ex = 'logs'; 8 | var ok = ch.assertExchange(ex, 'fanout', {durable: false}) 9 | 10 | var message = process.argv.slice(2).join(' ') || 11 | 'info: Hello World!'; 12 | 13 | return ok.then(function() { 14 | ch.publish(ex, '', Buffer.from(message)); 15 | console.log(" [x] Sent '%s'", message); 16 | return ch.close(); 17 | }); 18 | }).finally(function() { conn.close(); }); 19 | }).catch(console.warn); 20 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/emit_log_direct.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | var args = process.argv.slice(2); 6 | var severity = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | amqp.connect('amqp://localhost').then(function(conn) { 10 | return conn.createChannel().then(function(ch) { 11 | var ex = 'direct_logs'; 12 | var ok = ch.assertExchange(ex, 'direct', {durable: false}); 13 | 14 | return ok.then(function() { 15 | ch.publish(ex, severity, Buffer.from(message)); 16 | console.log(" [x] Sent %s:'%s'", severity, message); 17 | return ch.close(); 18 | }); 19 | }).finally(function() { conn.close(); }); 20 | }).catch(console.warn); 21 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/emit_log_topic.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | var args = process.argv.slice(2); 6 | var key = (args.length > 0) ? args[0] : 'info'; 7 | var message = args.slice(1).join(' ') || 'Hello World!'; 8 | 9 | amqp.connect('amqp://localhost').then(function(conn) { 10 | return conn.createChannel().then(function(ch) { 11 | var ex = 'topic_logs'; 12 | var ok = ch.assertExchange(ex, 'topic', {durable: false}); 13 | return ok.then(function() { 14 | ch.publish(ex, key, Buffer.from(message)); 15 | console.log(" [x] Sent %s:'%s'", key, message); 16 | return ch.close(); 17 | }); 18 | }).finally(function() { conn.close(); }) 19 | }).catch(console.log); 20 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/new_task.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // Post a new task to the work queue 3 | 4 | var amqp = require('amqplib'); 5 | 6 | amqp.connect('amqp://localhost').then(function(conn) { 7 | return conn.createChannel().then(function(ch) { 8 | var q = 'task_queue'; 9 | var ok = ch.assertQueue(q, {durable: true}); 10 | 11 | return ok.then(function() { 12 | var msg = process.argv.slice(2).join(' ') || "Hello World!"; 13 | ch.sendToQueue(q, Buffer.from(msg), {deliveryMode: true}); 14 | console.log(" [x] Sent '%s'", msg); 15 | return ch.close(); 16 | }); 17 | }).finally(function() { conn.close(); }); 18 | }).catch(console.warn); 19 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amqplib-tutorials", 3 | "version": "0.0.1", 4 | "description": "The RabbitMQ tutorials, ported to amqplib", 5 | "main": "send.js", 6 | "dependencies": { 7 | "amqplib": "../..", 8 | "uuid": "*" 9 | }, 10 | "scripts": { 11 | "test": "echo \"Error: no test specified\" && exit 1" 12 | }, 13 | "repository": "", 14 | "author": "Michael Bridgen ", 15 | "license": "MPL 2.0" 16 | } 17 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/receive.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | process.once('SIGINT', function() { conn.close(); }); 7 | return conn.createChannel().then(function(ch) { 8 | 9 | var ok = ch.assertQueue('hello', {durable: false}); 10 | 11 | ok = ok.then(function(_qok) { 12 | return ch.consume('hello', function(msg) { 13 | console.log(" [x] Received '%s'", msg.content.toString()); 14 | }, {noAck: true}); 15 | }); 16 | 17 | return ok.then(function(_consumeOk) { 18 | console.log(' [*] Waiting for messages. To exit press CTRL+C'); 19 | }); 20 | }); 21 | }).catch(console.warn); 22 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/receive_logs.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | process.once('SIGINT', function() { conn.close(); }); 7 | return conn.createChannel().then(function(ch) { 8 | var ok = ch.assertExchange('logs', 'fanout', {durable: false}); 9 | ok = ok.then(function() { 10 | return ch.assertQueue('', {exclusive: true}); 11 | }); 12 | ok = ok.then(function(qok) { 13 | return ch.bindQueue(qok.queue, 'logs', '').then(function() { 14 | return qok.queue; 15 | }); 16 | }); 17 | ok = ok.then(function(queue) { 18 | return ch.consume(queue, logMessage, {noAck: true}); 19 | }); 20 | return ok.then(function() { 21 | console.log(' [*] Waiting for logs. To exit press CTRL+C'); 22 | }); 23 | 24 | function logMessage(msg) { 25 | console.log(" [x] '%s'", msg.content.toString()); 26 | } 27 | }); 28 | }).catch(console.warn); 29 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/send.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var amqp = require('amqplib'); 4 | 5 | amqp.connect('amqp://localhost').then(function(conn) { 6 | return conn.createChannel().then(function(ch) { 7 | var q = 'hello'; 8 | var msg = 'Hello World!'; 9 | 10 | var ok = ch.assertQueue(q, {durable: false}); 11 | 12 | return ok.then(function(_qok) { 13 | // NB: `sentToQueue` and `publish` both return a boolean 14 | // indicating whether it's OK to send again straight away, or 15 | // (when `false`) that you should wait for the event `'drain'` 16 | // to fire before writing again. We're just doing the one write, 17 | // so we'll ignore it. 18 | ch.sendToQueue(q, Buffer.from(msg)); 19 | console.log(" [x] Sent '%s'", msg); 20 | return ch.close(); 21 | }); 22 | }).finally(function() { conn.close(); }); 23 | }).catch(console.warn); 24 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/tutorials/worker.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | // Process tasks from the work queue 3 | 4 | var amqp = require('amqplib'); 5 | 6 | amqp.connect('amqp://localhost').then(function(conn) { 7 | process.once('SIGINT', function() { conn.close(); }); 8 | return conn.createChannel().then(function(ch) { 9 | var ok = ch.assertQueue('task_queue', {durable: true}); 10 | ok = ok.then(function() { ch.prefetch(1); }); 11 | ok = ok.then(function() { 12 | ch.consume('task_queue', doWork, {noAck: false}); 13 | console.log(" [*] Waiting for messages. To exit press CTRL+C"); 14 | }); 15 | return ok; 16 | 17 | function doWork(msg) { 18 | var body = msg.content.toString(); 19 | console.log(" [x] Received '%s'", body); 20 | var secs = body.split('.').length - 1; 21 | //console.log(" [x] Task takes %d seconds", secs); 22 | setTimeout(function() { 23 | console.log(" [x] Done"); 24 | ch.ack(msg); 25 | }, secs * 1000); 26 | } 27 | }); 28 | }).catch(console.warn); 29 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/examples/waitForConfirms.js: -------------------------------------------------------------------------------- 1 | var amqp = require('../'); 2 | 3 | var NUM_MSGS = 20; 4 | 5 | function mkCallback(i) { 6 | return (i % 2) === 0 ? function(err) { 7 | if (err !== null) { console.error('Message %d failed!', i); } 8 | else { console.log('Message %d confirmed', i); } 9 | } : null; 10 | } 11 | 12 | amqp.connect().then(function(c) { 13 | c.createConfirmChannel().then(function(ch) { 14 | for (var i=0; i < NUM_MSGS; i++) { 15 | ch.publish('amq.topic', 'whatever', Buffer.from('blah'), {}, mkCallback(i)); 16 | } 17 | ch.waitForConfirms().then(function() { 18 | console.log('All messages done'); 19 | c.close(); 20 | }).catch(console.error); 21 | }); 22 | }); 23 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/lib/error.js: -------------------------------------------------------------------------------- 1 | var inherits = require('util').inherits; 2 | 3 | function trimStack(stack, num) { 4 | return stack && stack.split('\n').slice(num).join('\n'); 5 | } 6 | 7 | function IllegalOperationError(msg, stack) { 8 | var tmp = new Error(); 9 | this.message = msg; 10 | this.stack = this.toString() + '\n' + trimStack(tmp.stack, 2); 11 | this.stackAtStateChange = stack; 12 | } 13 | inherits(IllegalOperationError, Error); 14 | 15 | IllegalOperationError.prototype.name = 'IllegalOperationError'; 16 | 17 | function stackCapture(reason) { 18 | var e = new Error(); 19 | return 'Stack capture: ' + reason + '\n' + 20 | trimStack(e.stack, 2); 21 | } 22 | 23 | module.exports.IllegalOperationError = IllegalOperationError; 24 | module.exports.stackCapture = stackCapture; 25 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/amqplib/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amqplib", 3 | "homepage": "http://amqp-node.github.io/amqplib/", 4 | "main": "./channel_api.js", 5 | "version": "0.10.0", 6 | "description": "An AMQP 0-9-1 (e.g., RabbitMQ) library and client.", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/amqp-node/amqplib.git" 10 | }, 11 | "engines": { 12 | "node": ">=10" 13 | }, 14 | "dependencies": { 15 | "bitsyntax": "~0.1.0", 16 | "buffer-more-ints": "~1.0.0", 17 | "readable-stream": "1.x >=1.1.9", 18 | "url-parse": "~1.5.10" 19 | }, 20 | "devDependencies": { 21 | "claire": "0.4.1", 22 | "mocha": "^9.2.2", 23 | "nyc": "^15.1.0", 24 | "uglify-js": "2.8.x" 25 | }, 26 | "scripts": { 27 | "test": "make test", 28 | "prepare": "make" 29 | }, 30 | "keywords": [ 31 | "AMQP", 32 | "AMQP 0-9-1", 33 | "RabbitMQ" 34 | ], 35 | "author": "Michael Bridgen ", 36 | "license": "MIT" 37 | } 38 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/bitsyntax/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - "0.8" 5 | - "0.10" 6 | - "0.12" 7 | - "4.2" 8 | - "6.12" 9 | - "8.9" 10 | - "9.11" 11 | - "10.10" 12 | - "node" 13 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/bitsyntax/LICENSE: -------------------------------------------------------------------------------- 1 | bitsyntax-js copyright (c) 2012-2014 2 | Michael Bridgen 3 | 4 | This package, "bitsyntax-js", is licensed under the MIT License. A 5 | copy may be found in the file LICENSE-MIT in this directory, or 6 | downloaded from http://opensource.org/licenses/MIT. 7 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/bitsyntax/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test all 2 | 3 | GRAMMAR=lib/grammar.pegjs 4 | PEGJS=./node_modules/.bin/pegjs 5 | 6 | all: lib/parser.js 7 | 8 | lib/parser.js: $(PEGJS) 9 | $(PEGJS) $(GRAMMAR) $@ 10 | 11 | $(PEGJS): 12 | npm install 13 | 14 | test: lib/parser.js 15 | ./node_modules/.bin/mocha --check-leaks -R list -u tdd test/*.js 16 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/bitsyntax/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports.parse = require('./lib/parse').parse; 4 | module.exports.match = require('./lib/interp').match; 5 | module.exports.build = require('./lib/constructor').build; 6 | module.exports.write = require('./lib/constructor').write; 7 | 8 | module.exports.matcher = module.exports.compile = 9 | require('./lib/compile').compile; 10 | module.exports.builder = require('./lib/compile').compile_builder; 11 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/bitsyntax/lib/parse.js: -------------------------------------------------------------------------------- 1 | // Parse patterns in string form into the form we use for interpreting 2 | // (and later, for compiling). 3 | 4 | 'use strict'; 5 | 6 | var ast = require('./pattern'); 7 | var parser = require('./parser'); 8 | 9 | function parse_pattern(string) { 10 | var segments = parser.parse(string); 11 | for (var i=0, len = segments.length; i < len; i++) { 12 | var s = segments[i]; 13 | if (s.string != undefined) { 14 | segments[i] = ast.string(s.string); 15 | } 16 | else if (s.value != undefined) { 17 | segments[i] = ast.value(s.value, s.size, s.specifiers); 18 | } 19 | else if (s.name != undefined) { 20 | segments[i] = ast.variable(s.name, s.size, s.specifiers); 21 | } 22 | else { 23 | throw "Unknown segment " + s; 24 | } 25 | } 26 | return segments; 27 | } 28 | 29 | module.exports.parse = function() { 30 | var str = [].join.call(arguments, ','); 31 | return parse_pattern(str); 32 | }; 33 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/bitsyntax/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "Michael Bridgen", 4 | "email": "" 5 | }, 6 | "name": "bitsyntax", 7 | "description": "Pattern-matching on byte buffers", 8 | "license": "MIT", 9 | "version": "0.1.0", 10 | "repository": { 11 | "type": "git", 12 | "url": "git://github.com/squaremo/bitsyntax-js.git" 13 | }, 14 | "main": "./index", 15 | "scripts": { 16 | "test": "make test", 17 | "prepublish": "make all" 18 | }, 19 | "engines": { 20 | "node": ">=0.8" 21 | }, 22 | "dependencies": { 23 | "buffer-more-ints": "~1.0.0", 24 | "debug": "~2.6.9", 25 | "safe-buffer": "~5.1.2" 26 | }, 27 | "devDependencies": { 28 | "mocha": "1.x", 29 | "pegjs": "0.7.0" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/buffer-more-ints/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.11" 4 | - "0.10" 5 | - "0.8" 6 | - "0.6" 7 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/buffer-more-ints/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "buffer-more-ints", 3 | "version": "1.0.0", 4 | "author": "David Wragg ", 5 | "description": "Add support for more integer widths to Buffer", 6 | "homepage": "https://github.com/dpw/node-buffer-more-ints", 7 | "license": "MIT", 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com/dpw/node-buffer-more-ints.git" 11 | }, 12 | "main": "buffer-more-ints.js", 13 | "devDependencies": { 14 | "nodeunit": "" 15 | }, 16 | "scripts": { 17 | "test": "node ./node_modules/nodeunit/bin/nodeunit buffer-more-ints-tests.js" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/core-util-is/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core-util-is", 3 | "version": "1.0.3", 4 | "description": "The `util.is*` functions introduced in Node v0.12.", 5 | "main": "lib/util.js", 6 | "files": [ 7 | "lib" 8 | ], 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/isaacs/core-util-is" 12 | }, 13 | "keywords": [ 14 | "util", 15 | "isBuffer", 16 | "isArray", 17 | "isNumber", 18 | "isString", 19 | "isRegExp", 20 | "isThis", 21 | "isThat", 22 | "polyfill" 23 | ], 24 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 25 | "license": "MIT", 26 | "bugs": { 27 | "url": "https://github.com/isaacs/core-util-is/issues" 28 | }, 29 | "scripts": { 30 | "test": "tap test.js", 31 | "preversion": "npm test", 32 | "postversion": "npm publish", 33 | "prepublishOnly": "git push origin --follow-tags" 34 | }, 35 | "devDependencies": { 36 | "tap": "^15.0.9" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/debug/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve 2 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/debug/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true 5 | }, 6 | "rules": { 7 | "no-console": 0, 8 | "no-empty": [1, { "allowEmptyCatch": true }] 9 | }, 10 | "extends": "eslint:recommended" 11 | } 12 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | yarn.lock 8 | coverage 9 | bower.json 10 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/debug/.travis.yml: -------------------------------------------------------------------------------- 1 | 2 | language: node_js 3 | node_js: 4 | - "6" 5 | - "5" 6 | - "4" 7 | 8 | install: 9 | - make node_modules 10 | 11 | script: 12 | - make lint 13 | - make test 14 | - make coveralls 15 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "2.6.9", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "src/browser.js", 12 | "scripts": [ 13 | "src/browser.js", 14 | "src/debug.js" 15 | ], 16 | "dependencies": { 17 | "rauchg/ms.js": "0.7.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/debug/node.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/node'); 2 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process !== 'undefined' && process.type === 'renderer') { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/debug/src/inspector-log.js: -------------------------------------------------------------------------------- 1 | module.exports = inspectorLog; 2 | 3 | // black hole 4 | const nullStream = new (require('stream').Writable)(); 5 | nullStream._write = () => {}; 6 | 7 | /** 8 | * Outputs a `console.log()` to the Node.js Inspector console *only*. 9 | */ 10 | function inspectorLog() { 11 | const stdout = console._stdout; 12 | console._stdout = nullStream; 13 | console.log.apply(console, arguments); 14 | console._stdout = stdout; 15 | } 16 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | try { 2 | var util = require('util'); 3 | /* istanbul ignore next */ 4 | if (typeof util.inherits !== 'function') throw ''; 5 | module.exports = util.inherits; 6 | } catch (e) { 7 | /* istanbul ignore next */ 8 | module.exports = require('./inherits_browser.js'); 9 | } 10 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | if (superCtor) { 5 | ctor.super_ = superCtor 6 | ctor.prototype = Object.create(superCtor.prototype, { 7 | constructor: { 8 | value: ctor, 9 | enumerable: false, 10 | writable: true, 11 | configurable: true 12 | } 13 | }) 14 | } 15 | }; 16 | } else { 17 | // old school shim for old browsers 18 | module.exports = function inherits(ctor, superCtor) { 19 | if (superCtor) { 20 | ctor.super_ = superCtor 21 | var TempCtor = function () {} 22 | TempCtor.prototype = superCtor.prototype 23 | ctor.prototype = new TempCtor() 24 | ctor.prototype.constructor = ctor 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/inherits/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "inherits", 3 | "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", 4 | "version": "2.0.4", 5 | "keywords": [ 6 | "inheritance", 7 | "class", 8 | "klass", 9 | "oop", 10 | "object-oriented", 11 | "inherits", 12 | "browser", 13 | "browserify" 14 | ], 15 | "main": "./inherits.js", 16 | "browser": "./inherits_browser.js", 17 | "repository": "git://github.com/isaacs/inherits", 18 | "license": "ISC", 19 | "scripts": { 20 | "test": "tap" 21 | }, 22 | "devDependencies": { 23 | "tap": "^14.2.4" 24 | }, 25 | "files": [ 26 | "inherits.js", 27 | "inherits_browser.js" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/isarray/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : { 6 | "type" : "git", 7 | "url" : "git://github.com/juliangruber/isarray.git" 8 | }, 9 | "homepage": "https://github.com/juliangruber/isarray", 10 | "main" : "index.js", 11 | "scripts" : { 12 | "test" : "tap test/*.js" 13 | }, 14 | "dependencies" : {}, 15 | "devDependencies" : { 16 | "tap" : "*" 17 | }, 18 | "keywords": ["browser","isarray","array"], 19 | "author": { 20 | "name": "Julian Gruber", 21 | "email": "mail@juliangruber.com", 22 | "url": "http://juliangruber.com" 23 | }, 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/ms/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ms", 3 | "version": "2.0.0", 4 | "description": "Tiny milisecond conversion utility", 5 | "repository": "zeit/ms", 6 | "main": "./index", 7 | "files": [ 8 | "index.js" 9 | ], 10 | "scripts": { 11 | "precommit": "lint-staged", 12 | "lint": "eslint lib/* bin/*", 13 | "test": "mocha tests.js" 14 | }, 15 | "eslintConfig": { 16 | "extends": "eslint:recommended", 17 | "env": { 18 | "node": true, 19 | "es6": true 20 | } 21 | }, 22 | "lint-staged": { 23 | "*.js": [ 24 | "npm run lint", 25 | "prettier --single-quote --write", 26 | "git add" 27 | ] 28 | }, 29 | "license": "MIT", 30 | "devDependencies": { 31 | "eslint": "3.19.0", 32 | "expect.js": "0.3.1", 33 | "husky": "0.13.3", 34 | "lint-staged": "3.4.1", 35 | "mocha": "3.4.1" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/querystringify/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "querystringify", 3 | "version": "2.2.0", 4 | "description": "Querystringify - Small, simple but powerful query string parser.", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "nyc --reporter=html --reporter=text mocha test.js", 8 | "watch": "mocha --watch test.js" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/unshiftio/querystringify" 13 | }, 14 | "keywords": [ 15 | "query", 16 | "string", 17 | "query-string", 18 | "querystring", 19 | "qs", 20 | "stringify", 21 | "parse", 22 | "decode", 23 | "encode" 24 | ], 25 | "author": "Arnout Kazemier", 26 | "license": "MIT", 27 | "bugs": { 28 | "url": "https://github.com/unshiftio/querystringify/issues" 29 | }, 30 | "homepage": "https://github.com/unshiftio/querystringify", 31 | "devDependencies": { 32 | "assume": "^2.1.0", 33 | "coveralls": "^3.1.0", 34 | "mocha": "^8.1.1", 35 | "nyc": "^15.1.0", 36 | "pre-commit": "^1.2.2" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/readable-stream/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "readable-stream", 3 | "version": "1.1.14", 4 | "description": "Streams3, a user-land copy of the stream library from Node.js v0.11.x", 5 | "main": "readable.js", 6 | "dependencies": { 7 | "core-util-is": "~1.0.0", 8 | "isarray": "0.0.1", 9 | "string_decoder": "~0.10.x", 10 | "inherits": "~2.0.1" 11 | }, 12 | "devDependencies": { 13 | "tap": "~0.2.6" 14 | }, 15 | "scripts": { 16 | "test": "tap test/simple/*.js" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "git://github.com/isaacs/readable-stream" 21 | }, 22 | "keywords": [ 23 | "readable", 24 | "stream", 25 | "pipe" 26 | ], 27 | "browser": { 28 | "util": false 29 | }, 30 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 31 | "license": "MIT" 32 | } 33 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = require('stream'); 3 | exports.Readable = exports; 4 | exports.Writable = require('./lib/_stream_writable.js'); 5 | exports.Duplex = require('./lib/_stream_duplex.js'); 6 | exports.Transform = require('./lib/_stream_transform.js'); 7 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 8 | if (!process.browser && process.env.READABLE_STREAM === 'disable') { 9 | module.exports = require('stream'); 10 | } 11 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/requires-port/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/requires-port/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "4" 5 | - "iojs" 6 | - "0.12" 7 | - "0.10" 8 | script: 9 | - "npm run test-travis" 10 | after_script: 11 | - "npm install coveralls@2 && cat coverage/lcov.info | coveralls" 12 | matrix: 13 | fast_finish: true 14 | notifications: 15 | irc: 16 | channels: 17 | - "irc.freenode.org#unshift" 18 | on_success: change 19 | on_failure: change 20 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/requires-port/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Check if we're required to add a port number. 5 | * 6 | * @see https://url.spec.whatwg.org/#default-port 7 | * @param {Number|String} port Port number we need to check 8 | * @param {String} protocol Protocol we need to check against. 9 | * @returns {Boolean} Is it a default port for the given protocol 10 | * @api private 11 | */ 12 | module.exports = function required(port, protocol) { 13 | protocol = protocol.split(':')[0]; 14 | port = +port; 15 | 16 | if (!port) return false; 17 | 18 | switch (protocol) { 19 | case 'http': 20 | case 'ws': 21 | return port !== 80; 22 | 23 | case 'https': 24 | case 'wss': 25 | return port !== 443; 26 | 27 | case 'ftp': 28 | return port !== 21; 29 | 30 | case 'gopher': 31 | return port !== 70; 32 | 33 | case 'file': 34 | return false; 35 | } 36 | 37 | return port !== 0; 38 | }; 39 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/safe-buffer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "safe-buffer", 3 | "description": "Safer Node.js Buffer API", 4 | "version": "5.1.2", 5 | "author": { 6 | "name": "Feross Aboukhadijeh", 7 | "email": "feross@feross.org", 8 | "url": "http://feross.org" 9 | }, 10 | "bugs": { 11 | "url": "https://github.com/feross/safe-buffer/issues" 12 | }, 13 | "devDependencies": { 14 | "standard": "*", 15 | "tape": "^4.0.0" 16 | }, 17 | "homepage": "https://github.com/feross/safe-buffer", 18 | "keywords": [ 19 | "buffer", 20 | "buffer allocate", 21 | "node security", 22 | "safe", 23 | "safe-buffer", 24 | "security", 25 | "uninitialized" 26 | ], 27 | "license": "MIT", 28 | "main": "index.js", 29 | "types": "index.d.ts", 30 | "repository": { 31 | "type": "git", 32 | "url": "git://github.com/feross/safe-buffer.git" 33 | }, 34 | "scripts": { 35 | "test": "standard && tape test/*.js" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /warningAndErrorMS/node_modules/string_decoder/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "string_decoder", 3 | "version": "0.10.31", 4 | "description": "The string_decoder module from Node core", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": { 8 | "tap": "~0.4.8" 9 | }, 10 | "scripts": { 11 | "test": "tap test/simple/*.js" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/rvagg/string_decoder.git" 16 | }, 17 | "homepage": "https://github.com/rvagg/string_decoder", 18 | "keywords": [ 19 | "string", 20 | "decoder", 21 | "browser", 22 | "browserify" 23 | ], 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /warningAndErrorMS/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "warninganderrorms", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "amqplib": "^0.10.0" 14 | } 15 | } 16 | --------------------------------------------------------------------------------