From b907489a752368acf6df30adb682f5d64b3c2fe2 Mon Sep 17 00:00:00 2001 From: Jonasz Bigda Date: Thu, 20 Aug 2020 20:27:14 +0200 Subject: [PATCH] Refactoring day1 --- .gitignore | 1 - loaders/express.js | 2 - node_modules/@babel/runtime/package.json | 10 +- node_modules/@sindresorhus/is/package.json | 6 +- .../@szmarczak/http-timer/package.json | 6 +- node_modules/@types/color-name/package.json | 4 + node_modules/abbrev/package.json | 6 +- node_modules/accepts/package.json | 6 +- .../node_modules/string-width/package.json | 6 +- node_modules/ansi-align/package.json | 6 +- node_modules/ansi-regex/index.js | 8 +- node_modules/ansi-regex/package.json | 20 +- node_modules/ansi-regex/readme.md | 35 +- node_modules/ansi-styles/package.json | 6 +- node_modules/anymatch/package.json | 6 +- node_modules/append-field/package.json | 6 +- node_modules/aproba/package.json | 6 +- node_modules/are-we-there-yet/package.json | 6 +- node_modules/array-flatten/package.json | 6 +- node_modules/balanced-match/package.json | 6 +- node_modules/bcrypt/package.json | 6 +- node_modules/binary-extensions/package.json | 6 +- node_modules/bl/package.json | 6 +- node_modules/bluebird/package.json | 6 +- node_modules/body-parser/package.json | 6 +- node_modules/bowser/package.json | 6 +- node_modules/boxen/package.json | 6 +- node_modules/brace-expansion/package.json | 6 +- node_modules/braces/package.json | 6 +- node_modules/bson/HISTORY.md | 11 - node_modules/bson/bower.json | 3 +- node_modules/bson/lib/bson/objectid.js | 7 +- node_modules/bson/package.json | 12 +- .../buffer-equal-constant-time/package.json | 6 +- node_modules/buffer-from/package.json | 6 +- .../busboy/node_modules/isarray/package.json | 6 +- .../node_modules/readable-stream/package.json | 6 +- .../node_modules/string_decoder/package.json | 6 +- node_modules/busboy/package.json | 6 +- node_modules/bytes/package.json | 6 +- .../node_modules/get-stream/index.d.ts | 2 +- .../node_modules/get-stream/index.js | 4 +- .../node_modules/get-stream/license | 2 +- .../node_modules/get-stream/package.json | 15 +- .../node_modules/get-stream/readme.md | 35 +- .../node_modules/lowercase-keys/package.json | 6 +- node_modules/cacheable-request/package.json | 6 +- node_modules/camelcase/package.json | 6 +- node_modules/camelize/package.json | 6 +- node_modules/chalk/index.d.ts | 64 +- .../chalk/node_modules/has-flag/package.json | 126 +-- .../node_modules/supports-color/package.json | 140 ++- node_modules/chalk/package.json | 23 +- node_modules/chalk/readme.md | 21 +- node_modules/chalk/source/index.js | 28 +- node_modules/chalk/source/templates.js | 6 +- node_modules/chokidar/README.md | 10 +- node_modules/chokidar/index.js | 24 +- node_modules/chokidar/lib/constants.js | 2 - node_modules/chokidar/lib/fsevents-handler.js | 8 +- node_modules/chokidar/lib/nodefs-handler.js | 18 +- node_modules/chokidar/package.json | 12 +- node_modules/chownr/package.json | 6 +- node_modules/ci-info/package.json | 6 +- node_modules/cli-boxes/package.json | 6 +- node_modules/clone-response/package.json | 6 +- node_modules/code-point-at/package.json | 6 +- node_modules/color-convert/package.json | 6 +- node_modules/color-name/package.json | 6 +- node_modules/concat-map/package.json | 6 +- node_modules/concat-stream/package.json | 6 +- node_modules/configstore/package.json | 6 +- .../console-control-strings/package.json | 6 +- node_modules/content-disposition/package.json | 6 +- .../package.json | 6 +- node_modules/content-type/package.json | 6 +- node_modules/cookie-signature/package.json | 6 +- node_modules/cookie/package.json | 6 +- node_modules/core-util-is/package.json | 6 +- node_modules/cors/package.json | 6 +- .../crypto-random-string/package.json | 6 +- node_modules/dasherize/package.json | 6 +- node_modules/debug/package.json | 6 +- node_modules/decompress-response/package.json | 6 +- node_modules/deep-extend/package.json | 6 +- node_modules/defer-to-connect/package.json | 6 +- node_modules/delegates/package.json | 6 +- node_modules/denque/package.json | 6 +- node_modules/depd/package.json | 6 +- node_modules/destroy/package.json | 6 +- node_modules/detect-libc/package.json | 6 +- .../dicer/node_modules/isarray/package.json | 6 +- .../node_modules/readable-stream/package.json | 6 +- .../node_modules/string_decoder/package.json | 6 +- node_modules/dicer/package.json | 6 +- node_modules/dont-sniff-mimetype/package.json | 6 +- node_modules/dot-prop/package.json | 6 +- node_modules/dotenv/package.json | 6 +- node_modules/duplexer3/package.json | 6 +- node_modules/ecdsa-sig-formatter/package.json | 6 +- node_modules/ee-first/package.json | 6 +- node_modules/emoji-regex/README.md | 2 +- node_modules/emoji-regex/es2015/index.js | 2 +- node_modules/emoji-regex/es2015/text.js | 2 +- node_modules/emoji-regex/index.d.ts | 18 - node_modules/emoji-regex/index.js | 2 +- node_modules/emoji-regex/package.json | 21 +- node_modules/emoji-regex/text.js | 2 +- node_modules/encodeurl/package.json | 6 +- node_modules/end-of-stream/package.json | 6 +- node_modules/escape-goat/package.json | 6 +- node_modules/escape-html/package.json | 6 +- node_modules/esm/package.json | 6 +- node_modules/etag/package.json | 6 +- node_modules/express-rate-limit/package.json | 6 +- node_modules/express/package.json | 6 +- node_modules/feature-policy/package.json | 6 +- node_modules/fill-range/package.json | 6 +- node_modules/finalhandler/package.json | 6 +- node_modules/forwarded/package.json | 6 +- node_modules/fresh/package.json | 6 +- node_modules/fs-minipass/package.json | 6 +- node_modules/fs.realpath/package.json | 6 +- .../node_modules/ansi-regex/package.json | 6 +- .../is-fullwidth-code-point/package.json | 6 +- .../node_modules/string-width/package.json | 6 +- .../node_modules/strip-ansi/package.json | 6 +- node_modules/gauge/package.json | 6 +- node_modules/get-stream/package.json | 6 +- node_modules/gitignore/package.json | 6 +- node_modules/glob-parent/package.json | 6 +- node_modules/glob/package.json | 6 +- node_modules/global-dirs/package.json | 6 +- node_modules/got/package.json | 6 +- node_modules/graceful-fs/package.json | 6 +- node_modules/has-flag/index.js | 10 +- node_modules/has-flag/package.json | 92 +- node_modules/has-flag/readme.md | 19 - node_modules/has-unicode/package.json | 6 +- node_modules/has-yarn/package.json | 6 +- node_modules/helmet-crossdomain/package.json | 6 +- node_modules/helmet-csp/package.json | 6 +- .../helmet/node_modules/depd/package.json | 6 +- node_modules/helmet/package.json | 6 +- node_modules/hide-powered-by/package.json | 6 +- node_modules/hpkp/package.json | 6 +- .../hsts/node_modules/depd/package.json | 6 +- node_modules/hsts/package.json | 6 +- .../http-cache-semantics/package.json | 6 +- node_modules/http-errors/package.json | 6 +- node_modules/iconv-lite/package.json | 6 +- node_modules/ignore-by-default/package.json | 6 +- node_modules/ignore-walk/package.json | 6 +- node_modules/import-lazy/package.json | 6 +- node_modules/imurmurhash/package.json | 6 +- node_modules/inflight/package.json | 6 +- node_modules/inherits/inherits.js | 2 - node_modules/inherits/inherits_browser.js | 32 +- node_modules/inherits/package.json | 12 +- node_modules/ini/package.json | 6 +- node_modules/ipaddr.js/package.json | 6 +- node_modules/is-binary-path/package.json | 6 +- node_modules/is-ci/package.json | 6 +- node_modules/is-extglob/package.json | 6 +- .../is-fullwidth-code-point/package.json | 6 +- node_modules/is-glob/package.json | 6 +- .../is-installed-globally/package.json | 6 +- node_modules/is-npm/package.json | 6 +- node_modules/is-number/LICENSE | 2 +- node_modules/is-number/README.md | 196 ++-- node_modules/is-number/index.js | 22 +- node_modules/is-number/package.json | 57 +- node_modules/is-obj/package.json | 6 +- node_modules/is-path-inside/package.json | 6 +- node_modules/is-stream/index.js | 38 +- node_modules/is-stream/license | 20 +- node_modules/is-stream/package.json | 81 +- node_modules/is-stream/readme.md | 17 +- node_modules/is-typedarray/package.json | 6 +- node_modules/is-yarn-global/package.json | 6 +- node_modules/isarray/package.json | 6 +- node_modules/js-tokens/package.json | 6 +- node_modules/json-buffer/package.json | 6 +- .../jsonwebtoken/node_modules/ms/package.json | 76 +- node_modules/jsonwebtoken/package.json | 6 +- node_modules/jwa/package.json | 6 +- node_modules/jws/package.json | 6 +- node_modules/kareem/package.json | 6 +- node_modules/keyv/package.json | 6 +- node_modules/latest-version/package.json | 6 +- node_modules/lodash.includes/package.json | 6 +- node_modules/lodash.isboolean/package.json | 6 +- node_modules/lodash.isinteger/package.json | 6 +- node_modules/lodash.isnumber/package.json | 6 +- .../lodash.isplainobject/package.json | 6 +- node_modules/lodash.isstring/package.json | 6 +- node_modules/lodash.once/package.json | 6 +- node_modules/loose-envify/package.json | 6 +- node_modules/lowercase-keys/package.json | 6 +- .../make-dir/node_modules/semver/package.json | 6 +- node_modules/make-dir/package.json | 6 +- node_modules/media-typer/package.json | 6 +- node_modules/memory-pager/package.json | 6 +- node_modules/merge-descriptors/package.json | 6 +- node_modules/methods/package.json | 6 +- node_modules/mime-db/package.json | 6 +- node_modules/mime-types/package.json | 6 +- node_modules/mime/package.json | 6 +- node_modules/mimic-response/package.json | 6 +- node_modules/minimatch/package.json | 6 +- node_modules/minimist/package.json | 6 +- node_modules/minipass/package.json | 6 +- node_modules/minizlib/package.json | 6 +- node_modules/mkdirp/package.json | 6 +- node_modules/mongodb/HISTORY.md | 134 +-- node_modules/mongodb/lib/admin.js | 1 - node_modules/mongodb/lib/bulk/common.js | 52 +- node_modules/mongodb/lib/change_stream.js | 10 +- node_modules/mongodb/lib/cmap/connection.js | 15 +- node_modules/mongodb/lib/collection.js | 145 +-- .../mongodb/lib/core/auth/auth_provider.js | 169 +++- .../lib/core/auth/defaultAuthProviders.js | 4 +- node_modules/mongodb/lib/core/auth/gssapi.js | 288 ++++-- .../lib/core/auth/mongo_credentials.js | 32 +- node_modules/mongodb/lib/core/auth/mongocr.js | 18 +- node_modules/mongodb/lib/core/auth/plain.js | 17 +- node_modules/mongodb/lib/core/auth/scram.js | 441 +++++---- node_modules/mongodb/lib/core/auth/x509.js | 41 +- .../mongodb/lib/core/connection/connect.js | 258 ++++-- .../mongodb/lib/core/connection/connection.js | 74 +- .../mongodb/lib/core/connection/pool.js | 4 +- node_modules/mongodb/lib/core/cursor.js | 67 +- node_modules/mongodb/lib/core/error.js | 90 +- node_modules/mongodb/lib/core/sdam/common.js | 8 - node_modules/mongodb/lib/core/sdam/monitor.js | 329 ++----- node_modules/mongodb/lib/core/sdam/server.js | 99 +-- .../lib/core/sdam/server_description.js | 49 +- .../mongodb/lib/core/sdam/topology.js | 75 +- .../lib/core/sdam/topology_description.js | 24 +- node_modules/mongodb/lib/core/sessions.js | 30 +- .../mongodb/lib/core/topologies/mongos.js | 24 +- .../lib/core/topologies/read_preference.js | 78 +- .../mongodb/lib/core/topologies/replset.js | 8 +- .../mongodb/lib/core/topologies/server.js | 2 +- .../mongodb/lib/core/topologies/shared.js | 55 +- node_modules/mongodb/lib/core/uri_parser.js | 47 +- node_modules/mongodb/lib/core/utils.js | 30 - .../mongodb/lib/core/wireprotocol/command.js | 12 +- .../lib/core/wireprotocol/constants.js | 4 +- .../mongodb/lib/core/wireprotocol/query.js | 4 - node_modules/mongodb/lib/cursor.js | 1 + node_modules/mongodb/lib/db.js | 13 +- node_modules/mongodb/lib/error.js | 7 +- .../mongodb/lib/gridfs-stream/download.js | 15 +- node_modules/mongodb/lib/mongo_client.js | 10 +- .../mongodb/lib/operations/collection_ops.js | 23 +- .../mongodb/lib/operations/command.js | 5 +- .../mongodb/lib/operations/command_v2.js | 15 +- .../lib/operations/common_functions.js | 3 - .../mongodb/lib/operations/connect.js | 25 +- .../lib/operations/create_collection.js | 93 +- .../mongodb/lib/operations/create_indexes.js | 124 +-- node_modules/mongodb/lib/operations/db_ops.js | 3 +- node_modules/mongodb/lib/operations/find.js | 12 +- .../mongodb/lib/operations/find_and_modify.js | 17 - .../lib/operations/find_one_and_delete.js | 5 - .../lib/operations/find_one_and_replace.js | 13 - .../lib/operations/find_one_and_update.js | 13 - .../lib/operations/geo_haystack_search.js | 4 +- .../mongodb/lib/operations/map_reduce.js | 6 +- .../mongodb/lib/operations/operation.js | 3 +- .../mongodb/lib/operations/re_index.js | 39 +- .../mongodb/lib/operations/replace_one.js | 15 +- .../mongodb/lib/operations/update_many.js | 5 - .../mongodb/lib/operations/update_one.js | 5 - .../lib/operations/validate_collection.js | 3 +- node_modules/mongodb/lib/topologies/mongos.js | 2 +- .../mongodb/lib/topologies/replset.js | 2 +- node_modules/mongodb/lib/topologies/server.js | 2 +- .../mongodb/lib/topologies/topology_base.js | 8 +- node_modules/mongodb/lib/utils.js | 78 +- node_modules/mongodb/lib/write_concern.js | 10 - node_modules/mongodb/package.json | 10 +- .../mongoose-legacy-pluralize/package.json | 6 +- node_modules/mongoose/History.md | 83 -- node_modules/mongoose/dist/browser.umd.js | 837 ++++++++---------- node_modules/mongoose/lib/aggregate.js | 26 - node_modules/mongoose/lib/cast.js | 5 - node_modules/mongoose/lib/cast/boolean.js | 9 +- node_modules/mongoose/lib/collection.js | 31 +- node_modules/mongoose/lib/connection.js | 385 +++----- node_modules/mongoose/lib/document.js | 153 +--- .../drivers/node-mongodb-native/collection.js | 9 +- .../mongoose/lib/error/serverSelection.js | 3 +- node_modules/mongoose/lib/error/validation.js | 5 +- node_modules/mongoose/lib/error/validator.js | 8 - .../mongoose/lib/helpers/arrayDepth.js | 6 +- .../mongoose/lib/helpers/document/compile.js | 13 +- .../lib/helpers/indexes/isIndexEqual.js | 51 +- .../lib/helpers/model/castBulkWrite.js | 23 +- .../lib/helpers/model/discriminator.js | 12 +- .../lib/helpers/populate/assignVals.js | 36 +- .../populate/getModelsMapForPopulate.js | 13 +- .../mongoose/lib/helpers/query/castUpdate.js | 8 - .../lib/helpers/schematype/handleImmutable.js | 6 +- .../lib/helpers/setDefaultsOnInsert.js | 17 +- node_modules/mongoose/lib/helpers/symbols.js | 1 - .../update/applyTimestampsToChildren.js | 169 ++-- node_modules/mongoose/lib/index.js | 12 +- node_modules/mongoose/lib/model.js | 168 ++-- .../mongoose/lib/options/PopulateOptions.js | 1 - node_modules/mongoose/lib/query.js | 55 +- node_modules/mongoose/lib/schema.js | 16 +- .../mongoose/lib/schema/SingleNestedPath.js | 22 +- node_modules/mongoose/lib/schema/array.js | 2 +- node_modules/mongoose/lib/schema/boolean.js | 24 - .../mongoose/lib/schema/documentarray.js | 25 - node_modules/mongoose/lib/schema/string.js | 4 - node_modules/mongoose/lib/schematype.js | 43 +- node_modules/mongoose/lib/types/core_array.js | 4 +- node_modules/mongoose/lib/types/embedded.js | 4 +- .../mongoose/lib/types/subdocument.js | 10 +- node_modules/mongoose/lib/validoptions.js | 7 +- .../mongoose/node_modules/ms/package.json | 76 +- .../node_modules/safe-buffer/package.json | 79 +- node_modules/mongoose/package.json | 17 +- node_modules/mongoose/webpack.base.config.js | 2 +- node_modules/mpath/package.json | 6 +- .../mquery/node_modules/debug/package.json | 6 +- node_modules/mquery/package.json | 6 +- node_modules/ms/index.js | 48 +- node_modules/ms/package.json | 18 +- node_modules/ms/readme.md | 27 +- node_modules/multer/package.json | 6 +- .../needle/node_modules/debug/package.json | 6 +- .../needle/node_modules/ms/package.json | 76 +- node_modules/needle/package.json | 6 +- node_modules/negotiator/package.json | 6 +- node_modules/nocache/package.json | 6 +- node_modules/node-addon-api/CHANGELOG.md | 39 +- node_modules/node-addon-api/README.md | 8 +- node_modules/node-addon-api/doc/bigint.md | 2 +- node_modules/node-addon-api/doc/env.md | 55 ++ .../node-addon-api/doc/object_wrap.md | 50 +- node_modules/node-addon-api/index.js | 6 +- node_modules/node-addon-api/napi-inl.h | 25 +- node_modules/node-addon-api/napi.h | 4 +- node_modules/node-addon-api/package.json | 24 +- .../node_modules/nopt/package.json | 73 +- node_modules/node-pre-gyp/package.json | 6 +- .../nodemon/node_modules/debug/package.json | 6 +- .../nodemon/node_modules/ms/package.json | 76 +- node_modules/nodemon/package.json | 6 +- node_modules/nopt/LICENSE | 32 +- node_modules/nopt/README.md | 87 +- node_modules/nopt/bin/nopt.js | 14 +- node_modules/nopt/lib/nopt.js | 361 +++++--- node_modules/nopt/package.json | 46 +- node_modules/normalize-path/package.json | 6 +- node_modules/normalize-url/package.json | 6 +- node_modules/npm-bundled/package.json | 6 +- .../npm-normalize-package-bin/package.json | 6 +- node_modules/npm-packlist/package.json | 6 +- node_modules/npmlog/package.json | 6 +- node_modules/number-is-nan/package.json | 6 +- node_modules/object-assign/package.json | 6 +- node_modules/on-finished/package.json | 6 +- node_modules/once/package.json | 6 +- node_modules/os-homedir/package.json | 6 +- node_modules/os-tmpdir/package.json | 6 +- node_modules/osenv/package.json | 6 +- node_modules/p-cancelable/package.json | 6 +- .../node_modules/semver/package.json | 6 +- node_modules/package-json/package.json | 6 +- node_modules/parseurl/package.json | 6 +- node_modules/path-is-absolute/package.json | 6 +- node_modules/path-to-regexp/package.json | 6 +- node_modules/picomatch/package.json | 6 +- node_modules/prepend-http/package.json | 6 +- .../process-nextick-args/package.json | 6 +- node_modules/proxy-addr/package.json | 6 +- node_modules/pstree.remy/package.json | 6 +- node_modules/pump/package.json | 6 +- node_modules/pupa/package.json | 6 +- node_modules/qs/package.json | 6 +- node_modules/range-parser/package.json | 6 +- node_modules/raw-body/package.json | 6 +- node_modules/rc/package.json | 6 +- node_modules/react-is/package.json | 6 +- node_modules/readable-stream/package.json | 6 +- node_modules/readdirp/package.json | 6 +- node_modules/referrer-policy/package.json | 6 +- node_modules/regenerator-runtime/README.md | 2 +- node_modules/regenerator-runtime/package.json | 11 +- node_modules/regenerator-runtime/path.js | 7 + node_modules/regenerator-runtime/runtime.js | 123 ++- node_modules/regexp-clone/package.json | 6 +- node_modules/registry-auth-token/CHANGELOG.md | 6 - node_modules/registry-auth-token/index.js | 4 +- node_modules/registry-auth-token/package.json | 8 +- .../test/auth-token.test.js | 33 - node_modules/registry-url/package.json | 6 +- node_modules/require_optional/package.json | 6 +- node_modules/resolve-from/index.js | 54 +- node_modules/resolve-from/license | 20 +- node_modules/resolve-from/package.json | 72 +- node_modules/resolve-from/readme.md | 32 +- node_modules/responselike/package.json | 6 +- node_modules/rimraf/package.json | 6 +- node_modules/safe-buffer/index.js | 3 - node_modules/safe-buffer/package.json | 28 +- node_modules/safer-buffer/package.json | 6 +- node_modules/saslprep/package.json | 6 +- node_modules/sax/package.json | 6 +- .../node_modules/semver/package.json | 6 +- node_modules/semver-diff/package.json | 6 +- node_modules/semver/package.json | 6 +- .../send/node_modules/ms/package.json | 6 +- node_modules/send/package.json | 6 +- node_modules/serve-static/package.json | 6 +- node_modules/set-blocking/package.json | 4 + node_modules/setprototypeof/package.json | 6 +- node_modules/sift/package.json | 6 +- node_modules/signal-exit/package.json | 6 +- node_modules/sliced/package.json | 6 +- node_modules/sparse-bitfield/package.json | 6 +- node_modules/statuses/package.json | 6 +- node_modules/streamsearch/package.json | 4 + node_modules/string-sanitizer/package.json | 6 +- .../node_modules/ansi-regex/package.json | 144 ++- .../node_modules/emoji-regex/package.json | 87 +- .../is-fullwidth-code-point/package.json | 6 +- .../node_modules/strip-ansi/package.json | 142 ++- node_modules/string-width/package.json | 6 +- node_modules/string_decoder/package.json | 6 +- node_modules/strip-ansi/index.d.ts | 6 +- node_modules/strip-ansi/index.js | 5 +- node_modules/strip-ansi/package.json | 20 +- node_modules/strip-ansi/readme.md | 23 +- node_modules/strip-json-comments/package.json | 6 +- node_modules/supports-color/index.js | 54 +- node_modules/supports-color/package.json | 18 +- node_modules/supports-color/readme.md | 16 +- node_modules/tar/package.json | 6 +- node_modules/term-size/package.json | 6 +- node_modules/to-readable-stream/package.json | 6 +- node_modules/to-regex-range/package.json | 6 +- node_modules/toidentifier/package.json | 6 +- node_modules/touch/package.json | 6 +- node_modules/type-fest/package.json | 6 +- node_modules/type-is/package.json | 6 +- .../typedarray-to-buffer/package.json | 6 +- node_modules/typedarray/package.json | 6 +- node_modules/undefsafe/package.json | 4 + node_modules/unique-string/package.json | 6 +- node_modules/unpipe/package.json | 6 +- node_modules/update-notifier/index.js | 4 +- node_modules/update-notifier/package.json | 10 +- node_modules/update-notifier/readme.md | 4 +- node_modules/url-parse-lax/package.json | 6 +- node_modules/util-deprecate/package.json | 6 +- node_modules/utils-merge/package.json | 6 +- node_modules/validator/package.json | 6 +- node_modules/vary/package.json | 6 +- .../node_modules/ansi-regex/package.json | 6 +- .../node_modules/string-width/package.json | 6 +- .../node_modules/strip-ansi/package.json | 6 +- node_modules/wide-align/package.json | 6 +- node_modules/widest-line/package.json | 6 +- node_modules/wrappy/package.json | 6 +- node_modules/write-file-atomic/package.json | 6 +- node_modules/x-xss-protection/package.json | 6 +- node_modules/xdg-basedir/package.json | 6 +- node_modules/xtend/package.json | 6 +- node_modules/yallist/package.json | 6 +- package.json | 2 +- routes/routeCity.js | 1 - routes/routeRestaurant.js | 83 +- services/azureServices.test.js | 9 +- services/services.js | 47 +- services/services.test.js | 19 + 481 files changed, 5321 insertions(+), 5616 deletions(-) create mode 100644 services/services.test.js diff --git a/.gitignore b/.gitignore index 5a5900b..13dfa36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ .env -images/ node_modules/ \ No newline at end of file diff --git a/loaders/express.js b/loaders/express.js index bde03e9..689cf87 100644 --- a/loaders/express.js +++ b/loaders/express.js @@ -8,7 +8,6 @@ import routeRestaurant from "../routes/routeRestaurant.js"; import routeUser from "../routes/routeUser.js"; import routeSearch from "../routes/routeSearch.js"; import routeImg from "../routes/routeImg.js"; -import cookieParser from "cookie-parser"; export default ({ app, secret }) => { const limiter = rateLimiter({ @@ -24,7 +23,6 @@ export default ({ app, secret }) => { app.use(function (err, req, res, next) { if (err) res.sendStatus(422); }); - app.use(cookieParser(secret)); app.use("/dish", routeDish); app.use("/city", routeCity); app.use("/restaurant", routeRestaurant); diff --git a/node_modules/@babel/runtime/package.json b/node_modules/@babel/runtime/package.json index c42e79a..f6e4be6 100644 --- a/node_modules/@babel/runtime/package.json +++ b/node_modules/@babel/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@babel/runtime", - "version": "7.11.2", + "version": "7.10.5", "description": "babel's modular runtime helpers", "license": "MIT", "publishConfig": { @@ -19,5 +19,9 @@ "devDependencies": { "@babel/helpers": "^7.10.4" }, - "gitHead": "bc7a811fce3ceeea393229299c1cdb63858608e6" -} + "gitHead": "f7964a9ac51356f7df6404a25b27ba1cffba1ba7" + +,"_resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.10.5.tgz" +,"_integrity": "sha512-otddXKhdNn7d0ptoFRHtMLa8LqDxLYwTjB4nYgM1yy5N6gU/MUf8zqyyLltCH3yAVitBzmwK4us+DD0l/MauAg==" +,"_from": "@babel/runtime@7.10.5" +} \ No newline at end of file diff --git a/node_modules/@sindresorhus/is/package.json b/node_modules/@sindresorhus/is/package.json index bf0d9fe..b08acf0 100644 --- a/node_modules/@sindresorhus/is/package.json +++ b/node_modules/@sindresorhus/is/package.json @@ -60,4 +60,8 @@ "zen-observable": "^0.8.8" }, "types": "dist/index.d.ts" -} + +,"_resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz" +,"_integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" +,"_from": "@sindresorhus/is@0.14.0" +} \ No newline at end of file diff --git a/node_modules/@szmarczak/http-timer/package.json b/node_modules/@szmarczak/http-timer/package.json index 9346648..ce9d4c6 100644 --- a/node_modules/@szmarczak/http-timer/package.json +++ b/node_modules/@szmarczak/http-timer/package.json @@ -44,4 +44,8 @@ "dependencies": { "defer-to-connect": "^1.0.1" } -} + +,"_resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz" +,"_integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==" +,"_from": "@szmarczak/http-timer@1.1.2" +} \ No newline at end of file diff --git a/node_modules/@types/color-name/package.json b/node_modules/@types/color-name/package.json index d5e367e..da77dae 100644 --- a/node_modules/@types/color-name/package.json +++ b/node_modules/@types/color-name/package.json @@ -20,4 +20,8 @@ "dependencies": {}, "typesPublisherContentHash": "e22c6881e2dcf766e32142cbb82d9acf9c08258bdf0da8e76c8a448d1be44ac7", "typeScriptVersion": "2.0" + +,"_resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz" +,"_integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" +,"_from": "@types/color-name@1.1.1" } \ No newline at end of file diff --git a/node_modules/abbrev/package.json b/node_modules/abbrev/package.json index bf4e801..dace5cf 100644 --- a/node_modules/abbrev/package.json +++ b/node_modules/abbrev/package.json @@ -18,4 +18,8 @@ "files": [ "abbrev.js" ] -} + +,"_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz" +,"_integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" +,"_from": "abbrev@1.1.1" +} \ No newline at end of file diff --git a/node_modules/accepts/package.json b/node_modules/accepts/package.json index bc750cf..3f34961 100644 --- a/node_modules/accepts/package.json +++ b/node_modules/accepts/package.json @@ -44,4 +44,8 @@ "accept", "accepts" ] -} + +,"_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz" +,"_integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==" +,"_from": "accepts@1.3.7" +} \ No newline at end of file diff --git a/node_modules/ansi-align/node_modules/string-width/package.json b/node_modules/ansi-align/node_modules/string-width/package.json index e040183..04b9312 100644 --- a/node_modules/ansi-align/node_modules/string-width/package.json +++ b/node_modules/ansi-align/node_modules/string-width/package.json @@ -53,4 +53,8 @@ "ava": "^1.0.1", "xo": "^0.23.0" } -} + +,"_resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz" +,"_integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==" +,"_from": "string-width@3.1.0" +} \ No newline at end of file diff --git a/node_modules/ansi-align/package.json b/node_modules/ansi-align/package.json index 819540b..c44a43b 100644 --- a/node_modules/ansi-align/package.json +++ b/node_modules/ansi-align/package.json @@ -40,4 +40,8 @@ "standard": "^12.0.1", "standard-version": "^4.4.0" } -} + +,"_resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz" +,"_integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==" +,"_from": "ansi-align@3.0.0" +} \ No newline at end of file diff --git a/node_modules/ansi-regex/index.js b/node_modules/ansi-regex/index.js index 35054aa..c254480 100644 --- a/node_modules/ansi-regex/index.js +++ b/node_modules/ansi-regex/index.js @@ -1,10 +1,14 @@ 'use strict'; -module.exports = ({onlyFirst = false} = {}) => { +module.exports = options => { + options = Object.assign({ + onlyFirst: false + }, options); + const pattern = [ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))' ].join('|'); - return new RegExp(pattern, onlyFirst ? undefined : 'g'); + return new RegExp(pattern, options.onlyFirst ? undefined : 'g'); }; diff --git a/node_modules/ansi-regex/package.json b/node_modules/ansi-regex/package.json index 7af801f..3a7e5ef 100644 --- a/node_modules/ansi-regex/package.json +++ b/node_modules/ansi-regex/package.json @@ -1,6 +1,6 @@ { "name": "ansi-regex", - "version": "5.0.0", + "version": "4.1.0", "description": "Regular expression for matching ANSI escape codes", "license": "MIT", "repository": "chalk/ansi-regex", @@ -10,15 +10,14 @@ "url": "sindresorhus.com" }, "engines": { - "node": ">=8" + "node": ">=6" }, "scripts": { - "test": "xo && ava && tsd", + "test": "xo && ava", "view-supported": "node fixtures/view-codes.js" }, "files": [ - "index.js", - "index.d.ts" + "index.js" ], "keywords": [ "ansi", @@ -48,8 +47,11 @@ "pattern" ], "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.9.0", - "xo": "^0.25.3" + "ava": "^0.25.0", + "xo": "^0.23.0" } -} + +,"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz" +,"_integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" +,"_from": "ansi-regex@4.1.0" +} \ No newline at end of file diff --git a/node_modules/ansi-regex/readme.md b/node_modules/ansi-regex/readme.md index 3c2b77c..d19c446 100644 --- a/node_modules/ansi-regex/readme.md +++ b/node_modules/ansi-regex/readme.md @@ -2,6 +2,20 @@ > Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) +--- + +
+ + Get professional support for this package with a Tidelift subscription + +
+ + Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. +
+
+ +--- + ## Install @@ -34,14 +48,12 @@ ansiRegex().test('cake'); ## API -### ansiRegex(options?) +### ansiRegex([options]) Returns a regex for matching ANSI escape codes. #### options -Type: `object` - ##### onlyFirst Type: `boolean`
@@ -59,20 +71,17 @@ Some of the codes we run as a test are codes that we acquired finding various li On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out. +## Security + +To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. + + ## Maintainers - [Sindre Sorhus](https://github.com/sindresorhus) - [Josh Junon](https://github.com/qix-) ---- +## License -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
+MIT diff --git a/node_modules/ansi-styles/package.json b/node_modules/ansi-styles/package.json index 347b035..f970a55 100644 --- a/node_modules/ansi-styles/package.json +++ b/node_modules/ansi-styles/package.json @@ -54,4 +54,8 @@ "tsd": "^0.11.0", "xo": "^0.25.3" } -} + +,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" +,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" +,"_from": "ansi-styles@4.2.1" +} \ No newline at end of file diff --git a/node_modules/anymatch/package.json b/node_modules/anymatch/package.json index 479ecc2..5b9f2c4 100644 --- a/node_modules/anymatch/package.json +++ b/node_modules/anymatch/package.json @@ -45,4 +45,8 @@ "engines": { "node": ">= 8" } -} + +,"_resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz" +,"_integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==" +,"_from": "anymatch@3.1.1" +} \ No newline at end of file diff --git a/node_modules/append-field/package.json b/node_modules/append-field/package.json index 8d6e716..b02f316 100644 --- a/node_modules/append-field/package.json +++ b/node_modules/append-field/package.json @@ -16,4 +16,8 @@ "type": "git", "url": "http://github.com/LinusU/node-append-field.git" } -} + +,"_resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz" +,"_integrity": "sha1-HjRA6RXwsSA9I3SOeO3XubW0PlY=" +,"_from": "append-field@1.0.0" +} \ No newline at end of file diff --git a/node_modules/aproba/package.json b/node_modules/aproba/package.json index f008787..75cac37 100644 --- a/node_modules/aproba/package.json +++ b/node_modules/aproba/package.json @@ -31,4 +31,8 @@ "url": "https://github.com/iarna/aproba/issues" }, "homepage": "https://github.com/iarna/aproba" -} + +,"_resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz" +,"_integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" +,"_from": "aproba@1.2.0" +} \ No newline at end of file diff --git a/node_modules/are-we-there-yet/package.json b/node_modules/are-we-there-yet/package.json index c5990c9..0e3b646 100644 --- a/node_modules/are-we-there-yet/package.json +++ b/node_modules/are-we-there-yet/package.json @@ -32,4 +32,8 @@ "tracker.js", "CHANGES.md" ] -} + +,"_resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz" +,"_integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==" +,"_from": "are-we-there-yet@1.1.5" +} \ No newline at end of file diff --git a/node_modules/array-flatten/package.json b/node_modules/array-flatten/package.json index 1a24e2a..383e56f 100644 --- a/node_modules/array-flatten/package.json +++ b/node_modules/array-flatten/package.json @@ -36,4 +36,8 @@ "pre-commit": "^1.0.7", "standard": "^3.7.3" } -} + +,"_resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" +,"_integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" +,"_from": "array-flatten@1.1.1" +} \ No newline at end of file diff --git a/node_modules/balanced-match/package.json b/node_modules/balanced-match/package.json index 61349c6..5fc21da 100644 --- a/node_modules/balanced-match/package.json +++ b/node_modules/balanced-match/package.json @@ -46,4 +46,8 @@ "android-browser/4.2..latest" ] } -} + +,"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz" +,"_integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" +,"_from": "balanced-match@1.0.0" +} \ No newline at end of file diff --git a/node_modules/bcrypt/package.json b/node_modules/bcrypt/package.json index 91e739e..86864ac 100644 --- a/node_modules/bcrypt/package.json +++ b/node_modules/bcrypt/package.json @@ -64,4 +64,8 @@ 3 ] } -} + +,"_resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.0.0.tgz" +,"_integrity": "sha512-jB0yCBl4W/kVHM2whjfyqnxTmOHkCX4kHEa5nYKSoGeYe8YrjTYTc87/6bwt1g8cmV0QrbhKriETg9jWtcREhg==" +,"_from": "bcrypt@5.0.0" +} \ No newline at end of file diff --git a/node_modules/binary-extensions/package.json b/node_modules/binary-extensions/package.json index 6f32fb6..0c6a1b8 100644 --- a/node_modules/binary-extensions/package.json +++ b/node_modules/binary-extensions/package.json @@ -35,4 +35,8 @@ "tsd": "^0.7.2", "xo": "^0.24.0" } -} + +,"_resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz" +,"_integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==" +,"_from": "binary-extensions@2.1.0" +} \ No newline at end of file diff --git a/node_modules/bl/package.json b/node_modules/bl/package.json index dbe81ff..2a9abb6 100644 --- a/node_modules/bl/package.json +++ b/node_modules/bl/package.json @@ -32,4 +32,8 @@ "hash_file": "~0.1.1", "tape": "~4.9.0" } -} + +,"_resolved": "https://registry.npmjs.org/bl/-/bl-2.2.0.tgz" +,"_integrity": "sha512-wbgvOpqopSr7uq6fJrLH8EsvYMJf9gzfo2jCsL2eTy75qXPukA4pCgHamOQkZtY5vmfVtjB+P3LNlMHW5CEZXA==" +,"_from": "bl@2.2.0" +} \ No newline at end of file diff --git a/node_modules/bluebird/package.json b/node_modules/bluebird/package.json index 8e4d073..592db50 100644 --- a/node_modules/bluebird/package.json +++ b/node_modules/bluebird/package.json @@ -74,4 +74,8 @@ "js/release", "LICENSE" ] -} + +,"_resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz" +,"_integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" +,"_from": "bluebird@3.5.1" +} \ No newline at end of file diff --git a/node_modules/body-parser/package.json b/node_modules/body-parser/package.json index 269ebf2..4a4809a 100644 --- a/node_modules/body-parser/package.json +++ b/node_modules/body-parser/package.json @@ -49,4 +49,8 @@ "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/", "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/" } -} + +,"_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz" +,"_integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==" +,"_from": "body-parser@1.19.0" +} \ No newline at end of file diff --git a/node_modules/bowser/package.json b/node_modules/bowser/package.json index 4b7900d..d0640ec 100644 --- a/node_modules/bowser/package.json +++ b/node_modules/bowser/package.json @@ -81,4 +81,8 @@ "generate-docs": "jsdoc -c jsdoc.json" }, "license": "MIT" -} + +,"_resolved": "https://registry.npmjs.org/bowser/-/bowser-2.9.0.tgz" +,"_integrity": "sha512-2ld76tuLBNFekRgmJfT2+3j5MIrP6bFict8WAIT3beq+srz1gcKNAdNKMqHqauQt63NmAa88HfP1/Ypa9Er3HA==" +,"_from": "bowser@2.9.0" +} \ No newline at end of file diff --git a/node_modules/boxen/package.json b/node_modules/boxen/package.json index 0341231..003986f 100644 --- a/node_modules/boxen/package.json +++ b/node_modules/boxen/package.json @@ -48,4 +48,8 @@ "tsd": "^0.11.0", "xo": "^0.25.3" } -} + +,"_resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz" +,"_integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==" +,"_from": "boxen@4.2.0" +} \ No newline at end of file diff --git a/node_modules/brace-expansion/package.json b/node_modules/brace-expansion/package.json index a18faa8..99f83cd 100644 --- a/node_modules/brace-expansion/package.json +++ b/node_modules/brace-expansion/package.json @@ -44,4 +44,8 @@ "android-browser/4.2..latest" ] } -} + +,"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" +,"_integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==" +,"_from": "brace-expansion@1.1.11" +} \ No newline at end of file diff --git a/node_modules/braces/package.json b/node_modules/braces/package.json index 3f52e34..008f640 100644 --- a/node_modules/braces/package.json +++ b/node_modules/braces/package.json @@ -74,4 +74,8 @@ "gulp-format-md" ] } -} + +,"_resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" +,"_integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==" +,"_from": "braces@3.0.2" +} \ No newline at end of file diff --git a/node_modules/bson/HISTORY.md b/node_modules/bson/HISTORY.md index 815edf7..36b90e2 100644 --- a/node_modules/bson/HISTORY.md +++ b/node_modules/bson/HISTORY.md @@ -1,14 +1,3 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -### [1.1.5](https://github.com/mongodb/js-bson/compare/v1.1.4...v1.1.5) (2020-08-10) - - -### Bug Fixes - -* **object-id:** harden the duck-typing ([b526145](https://github.com/mongodb/js-bson/commit/b5261450c3bc4abb2e2fb19b5b1a7aba27982d44)) - ## [1.1.3](https://github.com/mongodb/js-bson/compare/v1.1.2...v1.1.3) (2019-11-09) diff --git a/node_modules/bson/bower.json b/node_modules/bson/bower.json index be4510b..b32140e 100644 --- a/node_modules/bson/bower.json +++ b/node_modules/bson/bower.json @@ -21,6 +21,5 @@ "node_modules", "test", "tools" - ], - "version": "1.1.5" + ] } diff --git a/node_modules/bson/lib/bson/objectid.js b/node_modules/bson/lib/bson/objectid.js index 0ebcc03..79de40d 100644 --- a/node_modules/bson/lib/bson/objectid.js +++ b/node_modules/bson/lib/bson/objectid.js @@ -66,7 +66,7 @@ var ObjectID = function ObjectID(id) { } else if (id != null && id.length === 12) { // assume 12 byte string this.id = id; - } else if (id != null && typeof id.toHexString === 'function') { + } else if (id != null && id.toHexString) { // Duck-typing to support ObjectId from different npm packages return id; } else { @@ -357,10 +357,7 @@ ObjectID.isValid = function isValid(id) { } // Duck-Typing detection of ObjectId like objects - if ( - typeof id.toHexString === 'function' && - (id.id instanceof _Buffer || typeof id.id === 'string') - ) { + if (id.toHexString) { return id.id.length === 12 || (id.id.length === 24 && checkForHexRegExp.test(id.id)); } diff --git a/node_modules/bson/package.json b/node_modules/bson/package.json index 8c2e20a..436dad5 100644 --- a/node_modules/bson/package.json +++ b/node_modules/bson/package.json @@ -12,7 +12,7 @@ "browser_build", "bower.json" ], - "version": "1.1.5", + "version": "1.1.4", "author": "Christian Amor Kvalheim ", "contributors": [], "repository": "mongodb/js-bson", @@ -31,7 +31,6 @@ "babel-preset-stage-0": "^6.5.0", "babel-register": "^6.14.0", "conventional-changelog-cli": "^1.3.5", - "standard-version": "^7.1.0", "webpack": "^1.13.2", "webpack-polyfills-plugin": "0.0.9" }, @@ -50,9 +49,12 @@ "build": "webpack --config ./webpack.dist.config.js", "changelog": "conventional-changelog -p angular -i HISTORY.md -s", "lint": "eslint lib test", - "format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'", - "release": "standard-version -i HISTORY.md" + "format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'" }, "browser": "lib/bson/bson.js", "license": "Apache-2.0" -} + +,"_resolved": "https://registry.npmjs.org/bson/-/bson-1.1.4.tgz" +,"_integrity": "sha512-S/yKGU1syOMzO86+dGpg2qGoDL0zvzcb262G+gqEy6TgP6rt6z6qxSFX/8X6vLC91P7G7C3nLs0+bvDzmvBA3Q==" +,"_from": "bson@1.1.4" +} \ No newline at end of file diff --git a/node_modules/buffer-equal-constant-time/package.json b/node_modules/buffer-equal-constant-time/package.json index 17c7de2..7ac5357 100644 --- a/node_modules/buffer-equal-constant-time/package.json +++ b/node_modules/buffer-equal-constant-time/package.json @@ -18,4 +18,8 @@ "devDependencies": { "mocha": "~1.15.1" } -} + +,"_resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz" +,"_integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" +,"_from": "buffer-equal-constant-time@1.0.1" +} \ No newline at end of file diff --git a/node_modules/buffer-from/package.json b/node_modules/buffer-from/package.json index b002450..a01e0f1 100644 --- a/node_modules/buffer-from/package.json +++ b/node_modules/buffer-from/package.json @@ -16,4 +16,8 @@ "buffer", "buffer from" ] -} + +,"_resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz" +,"_integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" +,"_from": "buffer-from@1.1.1" +} \ No newline at end of file diff --git a/node_modules/busboy/node_modules/isarray/package.json b/node_modules/busboy/node_modules/isarray/package.json index 5a1e9c1..49631b5 100644 --- a/node_modules/busboy/node_modules/isarray/package.json +++ b/node_modules/busboy/node_modules/isarray/package.json @@ -22,4 +22,8 @@ "url": "http://juliangruber.com" }, "license": "MIT" -} + +,"_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" +,"_integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" +,"_from": "isarray@0.0.1" +} \ No newline at end of file diff --git a/node_modules/busboy/node_modules/readable-stream/package.json b/node_modules/busboy/node_modules/readable-stream/package.json index 0bb83ed..5ecba3c 100644 --- a/node_modules/busboy/node_modules/readable-stream/package.json +++ b/node_modules/busboy/node_modules/readable-stream/package.json @@ -29,4 +29,8 @@ }, "author": "Isaac Z. Schlueter (http://blog.izs.me/)", "license": "MIT" -} + +,"_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz" +,"_integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=" +,"_from": "readable-stream@1.1.14" +} \ No newline at end of file diff --git a/node_modules/busboy/node_modules/string_decoder/package.json b/node_modules/busboy/node_modules/string_decoder/package.json index f2dd499..9614dec 100644 --- a/node_modules/busboy/node_modules/string_decoder/package.json +++ b/node_modules/busboy/node_modules/string_decoder/package.json @@ -22,4 +22,8 @@ "browserify" ], "license": "MIT" -} + +,"_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" +,"_integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" +,"_from": "string_decoder@0.10.31" +} \ No newline at end of file diff --git a/node_modules/busboy/package.json b/node_modules/busboy/package.json index 4d834b0..04d2678 100644 --- a/node_modules/busboy/package.json +++ b/node_modules/busboy/package.json @@ -14,4 +14,8 @@ "keywords": [ "uploads", "forms", "multipart", "form-data" ], "licenses": [ { "type": "MIT", "url": "http://github.com/mscdex/busboy/raw/master/LICENSE" } ], "repository" : { "type": "git", "url": "http://github.com/mscdex/busboy.git" } -} + +,"_resolved": "https://registry.npmjs.org/busboy/-/busboy-0.2.14.tgz" +,"_integrity": "sha1-bCpiLvz0fFe7vh4qnDetNseSVFM=" +,"_from": "busboy@0.2.14" +} \ No newline at end of file diff --git a/node_modules/bytes/package.json b/node_modules/bytes/package.json index 72ee63d..0949d34 100644 --- a/node_modules/bytes/package.json +++ b/node_modules/bytes/package.json @@ -38,4 +38,8 @@ "test-ci": "nyc --reporter=text npm test", "test-cov": "nyc --reporter=html --reporter=text npm test" } -} + +,"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz" +,"_integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" +,"_from": "bytes@3.1.0" +} \ No newline at end of file diff --git a/node_modules/cacheable-request/node_modules/get-stream/index.d.ts b/node_modules/cacheable-request/node_modules/get-stream/index.d.ts index 7b98134..8961df3 100644 --- a/node_modules/cacheable-request/node_modules/get-stream/index.d.ts +++ b/node_modules/cacheable-request/node_modules/get-stream/index.d.ts @@ -86,7 +86,7 @@ declare const getStream: { - When `encoding` is set to `buffer`, it collects an array of buffers. `maxBuffer` refers to the summed byte lengths of every buffer in the array. - When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array. */ - array( + array( stream: Stream, options?: getStream.Options ): Promise; diff --git a/node_modules/cacheable-request/node_modules/get-stream/index.js b/node_modules/cacheable-request/node_modules/get-stream/index.js index 71f3991..340ea7d 100644 --- a/node_modules/cacheable-request/node_modules/get-stream/index.js +++ b/node_modules/cacheable-request/node_modules/get-stream/index.js @@ -1,5 +1,4 @@ 'use strict'; -const {constants: BufferConstants} = require('buffer'); const pump = require('pump'); const bufferStream = require('./buffer-stream'); @@ -25,8 +24,7 @@ async function getStream(inputStream, options) { let stream; await new Promise((resolve, reject) => { const rejectPromise = error => { - // Don't retrieve an oversized buffer. - if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) { + if (error) { // A null check error.bufferedData = stream.getBufferedValue(); } diff --git a/node_modules/cacheable-request/node_modules/get-stream/license b/node_modules/cacheable-request/node_modules/get-stream/license index fa7ceba..e7af2f7 100644 --- a/node_modules/cacheable-request/node_modules/get-stream/license +++ b/node_modules/cacheable-request/node_modules/get-stream/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/node_modules/cacheable-request/node_modules/get-stream/package.json b/node_modules/cacheable-request/node_modules/get-stream/package.json index e2f1687..646812e 100644 --- a/node_modules/cacheable-request/node_modules/get-stream/package.json +++ b/node_modules/cacheable-request/node_modules/get-stream/package.json @@ -1,14 +1,13 @@ { "name": "get-stream", - "version": "5.2.0", + "version": "5.1.0", "description": "Get a stream as a string, buffer, or array", "license": "MIT", "repository": "sindresorhus/get-stream", - "funding": "https://github.com/sponsors/sindresorhus", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" + "url": "sindresorhus.com" }, "engines": { "node": ">=8" @@ -41,10 +40,14 @@ "pump": "^3.0.0" }, "devDependencies": { - "@types/node": "^12.0.7", - "ava": "^2.0.0", + "@types/node": "^11.13.0", + "ava": "^1.4.1", "into-stream": "^5.0.0", "tsd": "^0.7.2", "xo": "^0.24.0" } -} + +,"_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz" +,"_integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==" +,"_from": "get-stream@5.1.0" +} \ No newline at end of file diff --git a/node_modules/cacheable-request/node_modules/get-stream/readme.md b/node_modules/cacheable-request/node_modules/get-stream/readme.md index 7d7565d..b87a4d3 100644 --- a/node_modules/cacheable-request/node_modules/get-stream/readme.md +++ b/node_modules/cacheable-request/node_modules/get-stream/readme.md @@ -1,13 +1,15 @@ -# get-stream [![Build Status](https://travis-ci.com/sindresorhus/get-stream.svg?branch=master)](https://travis-ci.com/github/sindresorhus/get-stream) +# get-stream [![Build Status](https://travis-ci.org/sindresorhus/get-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stream) > Get a stream as a string, buffer, or array + ## Install ``` $ npm install get-stream ``` + ## Usage ```js @@ -42,39 +44,40 @@ const getStream = require('get-stream'); })(); ``` + ## API The methods returns a promise that resolves when the `end` event fires on the stream, indicating that there is no more data to be read. The stream is switched to flowing mode. -### getStream(stream, options?) +### getStream(stream, [options]) Get the `stream` as a string. #### options -Type: `object` +Type: `Object` ##### encoding -Type: `string`\ -Default: `'utf8'` +Type: `string`
+Default: `utf8` [Encoding](https://nodejs.org/api/buffer.html#buffer_buffer) of the incoming stream. ##### maxBuffer -Type: `number`\ +Type: `number`
Default: `Infinity` Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected with a `getStream.MaxBufferError` error. -### getStream.buffer(stream, options?) +### getStream.buffer(stream, [options]) Get the `stream` as a buffer. It honors the `maxBuffer` option as above, but it refers to byte length rather than string length. -### getStream.array(stream, options?) +### getStream.array(stream, [options]) Get the `stream` as an array of values. @@ -86,6 +89,7 @@ It honors both the `maxBuffer` and `encoding` options. The behavior changes slig - When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array. + ## Errors If the input stream emits an `error` event, the promise will be rejected with the error. The buffered data will be attached to the `bufferedData` property of the error. @@ -101,24 +105,19 @@ If the input stream emits an `error` event, the promise will be rejected with th })() ``` + ## FAQ ### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)? This module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, buffer, or array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package. + ## Related - [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer ---- -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
+## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/cacheable-request/node_modules/lowercase-keys/package.json b/node_modules/cacheable-request/node_modules/lowercase-keys/package.json index c11d813..abe6ca7 100644 --- a/node_modules/cacheable-request/node_modules/lowercase-keys/package.json +++ b/node_modules/cacheable-request/node_modules/lowercase-keys/package.json @@ -35,4 +35,8 @@ "tsd": "^0.7.2", "xo": "^0.24.0" } -} + +,"_resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz" +,"_integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" +,"_from": "lowercase-keys@2.0.0" +} \ No newline at end of file diff --git a/node_modules/cacheable-request/package.json b/node_modules/cacheable-request/package.json index 7734e03..3b98653 100644 --- a/node_modules/cacheable-request/package.json +++ b/node_modules/cacheable-request/package.json @@ -53,4 +53,8 @@ "xo": { "extends": "xo-lukechilds" } -} + +,"_resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz" +,"_integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==" +,"_from": "cacheable-request@6.1.0" +} \ No newline at end of file diff --git a/node_modules/camelcase/package.json b/node_modules/camelcase/package.json index fbdbaaa..07bc8fe 100644 --- a/node_modules/camelcase/package.json +++ b/node_modules/camelcase/package.json @@ -40,4 +40,8 @@ "tsd": "^0.7.1", "xo": "^0.24.0" } -} + +,"_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" +,"_integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" +,"_from": "camelcase@5.3.1" +} \ No newline at end of file diff --git a/node_modules/camelize/package.json b/node_modules/camelize/package.json index a141c07..24101b7 100644 --- a/node_modules/camelize/package.json +++ b/node_modules/camelize/package.json @@ -35,4 +35,8 @@ "url": "http://substack.net" }, "license": "MIT" -} + +,"_resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz" +,"_integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=" +,"_from": "camelize@1.0.0" +} \ No newline at end of file diff --git a/node_modules/chalk/index.d.ts b/node_modules/chalk/index.d.ts index 9cd88f3..7e22c45 100644 --- a/node_modules/chalk/index.d.ts +++ b/node_modules/chalk/index.d.ts @@ -1,3 +1,25 @@ +declare const enum LevelEnum { + /** + All colors disabled. + */ + None = 0, + + /** + Basic 16 colors support. + */ + Basic = 1, + + /** + ANSI 256 colors support. + */ + Ansi256 = 2, + + /** + Truecolor 16 million colors support. + */ + TrueColor = 3 +} + /** Basic foreground colors. @@ -67,34 +89,22 @@ declare type Modifiers = | 'visible'; declare namespace chalk { - /** - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - type Level = 0 | 1 | 2 | 3; + type Level = LevelEnum; interface Options { /** Specify the color support for Chalk. - By default, color support is automatically detected based on the environment. - - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. */ level?: Level; } - /** - Return a new Chalk instance. - */ - type Instance = new (options?: Options) => Chalk; + interface Instance { + /** + Return a new Chalk instance. + */ + new (options?: Options): Chalk; + } /** Detect whether the terminal supports color. @@ -137,13 +147,6 @@ declare namespace chalk { DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} `); ``` - - @example - ``` - import chalk = require('chalk'); - - log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`) - ``` */ (text: TemplateStringsArray, ...placeholders: unknown[]): string; @@ -158,14 +161,7 @@ declare namespace chalk { /** The color support for Chalk. - By default, color support is automatically detected based on the environment. - - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. */ level: Level; @@ -404,7 +400,7 @@ This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`. */ declare const chalk: chalk.Chalk & chalk.ChalkFunction & { supportsColor: chalk.ColorSupport | false; - Level: chalk.Level; + Level: typeof LevelEnum; Color: Color; ForegroundColor: ForegroundColor; BackgroundColor: BackgroundColor; diff --git a/node_modules/chalk/node_modules/has-flag/package.json b/node_modules/chalk/node_modules/has-flag/package.json index 3e7bb48..5b10a28 100644 --- a/node_modules/chalk/node_modules/has-flag/package.json +++ b/node_modules/chalk/node_modules/has-flag/package.json @@ -1,78 +1,50 @@ { - "_from": "has-flag@^4.0.0", - "_id": "has-flag@4.0.0", - "_inBundle": false, - "_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "_location": "/chalk/has-flag", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "has-flag@^4.0.0", - "name": "has-flag", - "escapedName": "has-flag", - "rawSpec": "^4.0.0", - "saveSpec": null, - "fetchSpec": "^4.0.0" - }, - "_requiredBy": [ - "/chalk/supports-color" - ], - "_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "_shasum": "944771fd9c81c81265c4d6941860da06bb59479b", - "_spec": "has-flag@^4.0.0", - "_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\chalk\\node_modules\\supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/has-flag/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Check if argv has a specific flag", - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "homepage": "https://github.com/sindresorhus/has-flag#readme", - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "license": "MIT", - "name": "has-flag", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/has-flag.git" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "version": "4.0.0" -} + "name": "has-flag", + "version": "4.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" +,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" +,"_from": "has-flag@4.0.0" +} \ No newline at end of file diff --git a/node_modules/chalk/node_modules/supports-color/package.json b/node_modules/chalk/node_modules/supports-color/package.json index 7363f1d..f0982eb 100644 --- a/node_modules/chalk/node_modules/supports-color/package.json +++ b/node_modules/chalk/node_modules/supports-color/package.json @@ -1,85 +1,57 @@ { - "_from": "supports-color@^7.1.0", - "_id": "supports-color@7.1.0", - "_inBundle": false, - "_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", - "_location": "/chalk/supports-color", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "supports-color@^7.1.0", - "name": "supports-color", - "escapedName": "supports-color", - "rawSpec": "^7.1.0", - "saveSpec": null, - "fetchSpec": "^7.1.0" - }, - "_requiredBy": [ - "/chalk" - ], - "_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "_shasum": "68e32591df73e25ad1c4b49108a2ec507962bfd1", - "_spec": "supports-color@^7.1.0", - "_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\chalk", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "browser": "browser.js", - "bugs": { - "url": "https://github.com/chalk/supports-color/issues" - }, - "bundleDependencies": false, - "dependencies": { - "has-flag": "^4.0.0" - }, - "deprecated": false, - "description": "Detect whether a terminal supports color", - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "browser.js" - ], - "homepage": "https://github.com/chalk/supports-color#readme", - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "license": "MIT", - "name": "supports-color", - "repository": { - "type": "git", - "url": "git+https://github.com/chalk/supports-color.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "7.1.0" -} + "name": "supports-color", + "version": "7.1.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "xo": "^0.24.0" + }, + "browser": "browser.js" + +,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz" +,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==" +,"_from": "supports-color@7.1.0" +} \ No newline at end of file diff --git a/node_modules/chalk/package.json b/node_modules/chalk/package.json index 0d99f0f..c75d30e 100644 --- a/node_modules/chalk/package.json +++ b/node_modules/chalk/package.json @@ -1,13 +1,12 @@ { "name": "chalk", - "version": "4.1.0", + "version": "3.0.0", "description": "Terminal string styling done right", "license": "MIT", "repository": "chalk/chalk", - "funding": "https://github.com/chalk/chalk?sponsor=1", "main": "source", "engines": { - "node": ">=10" + "node": ">=8" }, "scripts": { "test": "xo && nyc ava && tsd", @@ -47,22 +46,22 @@ "devDependencies": { "ava": "^2.4.0", "coveralls": "^3.0.7", - "execa": "^4.0.0", + "execa": "^3.2.0", "import-fresh": "^3.1.0", "matcha": "^0.7.0", - "nyc": "^15.0.0", + "nyc": "^14.1.1", "resolve-from": "^5.0.0", "tsd": "^0.7.4", - "xo": "^0.28.2" + "xo": "^0.25.3" }, "xo": { "rules": { "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off", - "@typescript-eslint/member-ordering": "off", - "no-redeclare": "off", - "unicorn/string-content": "off", - "unicorn/better-regex": "off" + "unicorn/prefer-includes": "off" } } -} + +,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz" +,"_integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==" +,"_from": "chalk@3.0.0" +} \ No newline at end of file diff --git a/node_modules/chalk/readme.md b/node_modules/chalk/readme.md index 338f42c..877cb93 100644 --- a/node_modules/chalk/readme.md +++ b/node_modules/chalk/readme.md @@ -9,10 +9,11 @@ > Terminal string styling done right -[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) [![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk) +[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) + ## Highlights - Expressive API @@ -23,7 +24,8 @@ - Doesn't extend `String.prototype` - Clean and focused - Actively maintained -- [Used by ~50,000 packages](https://www.npmjs.com/browse/depended/chalk) as of January 1, 2020 +- [Used by ~46,000 packages](https://www.npmjs.com/browse/depended/chalk) as of October 1, 2019 + ## Install @@ -31,6 +33,7 @@ $ npm install chalk ``` + ## Usage ```js @@ -104,6 +107,7 @@ console.log(chalk.green('Hello %s'), name); //=> 'Hello Sindre' ``` + ## API ### chalk.`