├── .env ├── README.md ├── db.js ├── index.js ├── middlewares └── auth.js ├── models ├── Task.js └── User.js ├── node_modules ├── .bin │ ├── color-support │ ├── color-support.cmd │ ├── color-support.ps1 │ ├── mime │ ├── mime.cmd │ ├── mime.ps1 │ ├── mkdirp │ ├── mkdirp.cmd │ ├── mkdirp.ps1 │ ├── node-pre-gyp │ ├── node-pre-gyp.cmd │ ├── node-pre-gyp.ps1 │ ├── nopt │ ├── nopt.cmd │ ├── nopt.ps1 │ ├── rimraf │ ├── rimraf.cmd │ ├── rimraf.ps1 │ ├── semver │ ├── semver.cmd │ └── semver.ps1 ├── .package-lock.json ├── @mapbox │ └── node-pre-gyp │ │ ├── .github │ │ └── workflows │ │ │ └── codeql.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bin │ │ ├── node-pre-gyp │ │ └── node-pre-gyp.cmd │ │ ├── contributing.md │ │ ├── lib │ │ ├── build.js │ │ ├── clean.js │ │ ├── configure.js │ │ ├── info.js │ │ ├── install.js │ │ ├── main.js │ │ ├── node-pre-gyp.js │ │ ├── package.js │ │ ├── pre-binding.js │ │ ├── publish.js │ │ ├── rebuild.js │ │ ├── reinstall.js │ │ ├── reveal.js │ │ ├── testbinary.js │ │ ├── testpackage.js │ │ ├── unpublish.js │ │ └── util │ │ │ ├── abi_crosswalk.json │ │ │ ├── compile.js │ │ │ ├── handle_gyp_opts.js │ │ │ ├── napi.js │ │ │ ├── nw-pre-gyp │ │ │ ├── index.html │ │ │ └── package.json │ │ │ ├── s3_setup.js │ │ │ └── versioning.js │ │ └── package.json ├── @mongodb-js │ └── saslprep │ │ ├── LICENSE │ │ ├── dist │ │ ├── .esm-wrapper.mjs │ │ ├── code-points-data.d.ts │ │ ├── code-points-data.d.ts.map │ │ ├── code-points-data.js │ │ ├── code-points-data.js.map │ │ ├── code-points-src.d.ts │ │ ├── code-points-src.d.ts.map │ │ ├── code-points-src.js │ │ ├── code-points-src.js.map │ │ ├── generate-code-points.d.ts │ │ ├── generate-code-points.d.ts.map │ │ ├── generate-code-points.js │ │ ├── generate-code-points.js.map │ │ ├── index.d.ts │ │ ├── index.d.ts.map │ │ ├── index.js │ │ ├── index.js.map │ │ ├── memory-code-points.d.ts │ │ ├── memory-code-points.d.ts.map │ │ ├── memory-code-points.js │ │ ├── memory-code-points.js.map │ │ ├── util.d.ts │ │ ├── util.d.ts.map │ │ ├── util.js │ │ └── util.js.map │ │ ├── package.json │ │ └── readme.md ├── @types │ ├── node │ │ ├── LICENSE │ │ ├── README.md │ │ ├── assert.d.ts │ │ ├── assert │ │ │ └── strict.d.ts │ │ ├── async_hooks.d.ts │ │ ├── buffer.d.ts │ │ ├── child_process.d.ts │ │ ├── cluster.d.ts │ │ ├── console.d.ts │ │ ├── constants.d.ts │ │ ├── crypto.d.ts │ │ ├── dgram.d.ts │ │ ├── diagnostics_channel.d.ts │ │ ├── dns.d.ts │ │ ├── dns │ │ │ └── promises.d.ts │ │ ├── dom-events.d.ts │ │ ├── domain.d.ts │ │ ├── events.d.ts │ │ ├── fs.d.ts │ │ ├── fs │ │ │ └── promises.d.ts │ │ ├── globals.d.ts │ │ ├── globals.global.d.ts │ │ ├── http.d.ts │ │ ├── http2.d.ts │ │ ├── https.d.ts │ │ ├── index.d.ts │ │ ├── inspector.d.ts │ │ ├── module.d.ts │ │ ├── net.d.ts │ │ ├── os.d.ts │ │ ├── package.json │ │ ├── path.d.ts │ │ ├── perf_hooks.d.ts │ │ ├── process.d.ts │ │ ├── punycode.d.ts │ │ ├── querystring.d.ts │ │ ├── readline.d.ts │ │ ├── readline │ │ │ └── promises.d.ts │ │ ├── repl.d.ts │ │ ├── stream.d.ts │ │ ├── stream │ │ │ ├── consumers.d.ts │ │ │ ├── promises.d.ts │ │ │ └── web.d.ts │ │ ├── string_decoder.d.ts │ │ ├── test.d.ts │ │ ├── timers.d.ts │ │ ├── timers │ │ │ └── promises.d.ts │ │ ├── tls.d.ts │ │ ├── trace_events.d.ts │ │ ├── ts4.8 │ │ │ ├── assert.d.ts │ │ │ ├── assert │ │ │ │ └── strict.d.ts │ │ │ ├── async_hooks.d.ts │ │ │ ├── buffer.d.ts │ │ │ ├── child_process.d.ts │ │ │ ├── cluster.d.ts │ │ │ ├── console.d.ts │ │ │ ├── constants.d.ts │ │ │ ├── crypto.d.ts │ │ │ ├── dgram.d.ts │ │ │ ├── diagnostics_channel.d.ts │ │ │ ├── dns.d.ts │ │ │ ├── dns │ │ │ │ └── promises.d.ts │ │ │ ├── dom-events.d.ts │ │ │ ├── domain.d.ts │ │ │ ├── events.d.ts │ │ │ ├── fs.d.ts │ │ │ ├── fs │ │ │ │ └── promises.d.ts │ │ │ ├── globals.d.ts │ │ │ ├── globals.global.d.ts │ │ │ ├── http.d.ts │ │ │ ├── http2.d.ts │ │ │ ├── https.d.ts │ │ │ ├── index.d.ts │ │ │ ├── inspector.d.ts │ │ │ ├── module.d.ts │ │ │ ├── net.d.ts │ │ │ ├── os.d.ts │ │ │ ├── path.d.ts │ │ │ ├── perf_hooks.d.ts │ │ │ ├── process.d.ts │ │ │ ├── punycode.d.ts │ │ │ ├── querystring.d.ts │ │ │ ├── readline.d.ts │ │ │ ├── readline │ │ │ │ └── promises.d.ts │ │ │ ├── repl.d.ts │ │ │ ├── stream.d.ts │ │ │ ├── stream │ │ │ │ ├── consumers.d.ts │ │ │ │ ├── promises.d.ts │ │ │ │ └── web.d.ts │ │ │ ├── string_decoder.d.ts │ │ │ ├── test.d.ts │ │ │ ├── timers.d.ts │ │ │ ├── timers │ │ │ │ └── promises.d.ts │ │ │ ├── tls.d.ts │ │ │ ├── trace_events.d.ts │ │ │ ├── tty.d.ts │ │ │ ├── url.d.ts │ │ │ ├── util.d.ts │ │ │ ├── v8.d.ts │ │ │ ├── vm.d.ts │ │ │ ├── wasi.d.ts │ │ │ ├── worker_threads.d.ts │ │ │ └── zlib.d.ts │ │ ├── tty.d.ts │ │ ├── url.d.ts │ │ ├── util.d.ts │ │ ├── v8.d.ts │ │ ├── vm.d.ts │ │ ├── wasi.d.ts │ │ ├── worker_threads.d.ts │ │ └── zlib.d.ts │ ├── webidl-conversions │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.d.ts │ │ └── package.json │ └── whatwg-url │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist │ │ ├── URL-impl.d.ts │ │ ├── URL.d.ts │ │ ├── URLSearchParams-impl.d.ts │ │ └── URLSearchParams.d.ts │ │ ├── index.d.ts │ │ ├── package.json │ │ └── webidl2js-wrapper.d.ts ├── abbrev │ ├── LICENSE │ ├── README.md │ ├── abbrev.js │ └── package.json ├── accepts │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── agent-base │ ├── README.md │ ├── dist │ │ └── src │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── promisify.d.ts │ │ │ ├── promisify.js │ │ │ └── promisify.js.map │ ├── node_modules │ │ ├── debug │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── package.json │ │ │ └── src │ │ │ │ ├── browser.js │ │ │ │ ├── common.js │ │ │ │ ├── index.js │ │ │ │ └── node.js │ │ └── ms │ │ │ ├── index.js │ │ │ ├── license.md │ │ │ ├── package.json │ │ │ └── readme.md │ ├── package.json │ └── src │ │ ├── index.ts │ │ └── promisify.ts ├── ansi-regex │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── aproba │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── are-we-there-yet │ ├── LICENSE.md │ ├── README.md │ ├── lib │ │ ├── index.js │ │ ├── tracker-base.js │ │ ├── tracker-group.js │ │ ├── tracker-stream.js │ │ └── tracker.js │ └── package.json ├── array-flatten │ ├── LICENSE │ ├── README.md │ ├── array-flatten.js │ └── package.json ├── balanced-match │ ├── .github │ │ └── FUNDING.yml │ ├── LICENSE.md │ ├── README.md │ ├── index.js │ └── package.json ├── bcrypt │ ├── .editorconfig │ ├── .github │ │ └── workflows │ │ │ └── ci.yaml │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── ISSUE_TEMPLATE.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── SECURITY.md │ ├── appveyor.yml │ ├── bcrypt.js │ ├── binding.gyp │ ├── examples │ │ ├── async_compare.js │ │ └── forever_gen_salt.js │ ├── lib │ │ └── binding │ │ │ └── napi-v3 │ │ │ └── bcrypt_lib.node │ ├── package.json │ ├── promises.js │ ├── src │ │ ├── bcrypt.cc │ │ ├── bcrypt_node.cc │ │ ├── blowfish.cc │ │ └── node_blf.h │ ├── test-docker.sh │ └── test │ │ ├── async.test.js │ │ ├── implementation.test.js │ │ ├── promise.test.js │ │ ├── repetitions.test.js │ │ └── sync.test.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 ├── brace-expansion │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── bson │ ├── LICENSE.md │ ├── README.md │ ├── bson.d.ts │ ├── etc │ │ └── prepare.js │ ├── lib │ │ ├── bson.bundle.js │ │ ├── bson.bundle.js.map │ │ ├── bson.cjs │ │ ├── bson.cjs.map │ │ ├── bson.mjs │ │ ├── bson.mjs.map │ │ ├── bson.rn.cjs │ │ └── bson.rn.cjs.map │ ├── package.json │ ├── src │ │ ├── binary.ts │ │ ├── bson.ts │ │ ├── bson_value.ts │ │ ├── code.ts │ │ ├── constants.ts │ │ ├── db_ref.ts │ │ ├── decimal128.ts │ │ ├── double.ts │ │ ├── error.ts │ │ ├── extended_json.ts │ │ ├── index.ts │ │ ├── int_32.ts │ │ ├── long.ts │ │ ├── max_key.ts │ │ ├── min_key.ts │ │ ├── objectid.ts │ │ ├── parser │ │ │ ├── calculate_size.ts │ │ │ ├── deserializer.ts │ │ │ ├── serializer.ts │ │ │ └── utils.ts │ │ ├── regexp.ts │ │ ├── symbol.ts │ │ ├── timestamp.ts │ │ ├── utils │ │ │ ├── byte_utils.ts │ │ │ ├── node_byte_utils.ts │ │ │ └── web_byte_utils.ts │ │ └── validate_utf8.ts │ └── vendor │ │ ├── base64 │ │ ├── LICENSE-MIT.txt │ │ ├── README.md │ │ ├── base64.js │ │ └── package.json │ │ └── text-encoding │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── index.js │ │ ├── lib │ │ ├── encoding-indexes.js │ │ └── encoding.js │ │ └── package.json ├── buffer-equal-constant-time │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.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 ├── chownr │ ├── LICENSE │ ├── README.md │ ├── chownr.js │ └── package.json ├── color-support │ ├── LICENSE │ ├── README.md │ ├── bin.js │ ├── browser.js │ ├── index.js │ └── package.json ├── concat-map │ ├── .travis.yml │ ├── LICENSE │ ├── README.markdown │ ├── example │ │ └── map.js │ ├── index.js │ ├── package.json │ └── test │ │ └── map.js ├── console-control-strings │ ├── LICENSE │ ├── README.md │ ├── README.md~ │ ├── index.js │ └── package.json ├── content-disposition │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── 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 ├── cors │ ├── CONTRIBUTING.md │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── index.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 ├── delegates │ ├── .npmignore │ ├── History.md │ ├── License │ ├── Makefile │ ├── Readme.md │ ├── index.js │ ├── package.json │ └── test │ │ └── index.js ├── depd │ ├── History.md │ ├── LICENSE │ ├── Readme.md │ ├── index.js │ ├── lib │ │ └── browser │ │ │ └── index.js │ └── package.json ├── destroy │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── detect-libc │ ├── LICENSE │ ├── README.md │ ├── index.d.ts │ ├── lib │ │ ├── detect-libc.js │ │ ├── filesystem.js │ │ └── process.js │ └── package.json ├── dotenv │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README-es.md │ ├── README.md │ ├── config.d.ts │ ├── config.js │ ├── lib │ │ ├── cli-options.js │ │ ├── env-options.js │ │ ├── main.d.ts │ │ └── main.js │ └── package.json ├── ecdsa-sig-formatter │ ├── CODEOWNERS │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── src │ │ ├── ecdsa-sig-formatter.d.ts │ │ ├── ecdsa-sig-formatter.js │ │ └── param-bytes-for-alg.js ├── ee-first │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── emoji-regex │ ├── LICENSE-MIT.txt │ ├── README.md │ ├── es2015 │ │ ├── index.js │ │ └── text.js │ ├── index.d.ts │ ├── index.js │ ├── package.json │ └── text.js ├── 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 │ │ ├── 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 │ │ └── raw-body │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── SECURITY.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 ├── fs-minipass │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── node_modules │ │ └── minipass │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ └── package.json │ └── package.json ├── fs.realpath │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── old.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 ├── gauge │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── base-theme.js │ ├── error.js │ ├── has-color.js │ ├── index.js │ ├── package.json │ ├── plumbing.js │ ├── process.js │ ├── progress-bar.js │ ├── render-template.js │ ├── set-immediate.js │ ├── set-interval.js │ ├── spin.js │ ├── template-item.js │ ├── theme-set.js │ ├── themes.js │ └── wide-truncate.js ├── get-intrinsic │ ├── .eslintrc │ ├── .github │ │ └── FUNDING.yml │ ├── .nycrc │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── GetIntrinsic.js ├── glob │ ├── LICENSE │ ├── README.md │ ├── common.js │ ├── glob.js │ ├── package.json │ └── sync.js ├── has-proto │ ├── .eslintrc │ ├── .github │ │ └── FUNDING.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── index.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-unicode │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── has │ ├── LICENSE-MIT │ ├── README.md │ ├── package.json │ ├── src │ │ └── index.js │ └── test │ │ └── index.js ├── http-errors │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── https-proxy-agent │ ├── README.md │ ├── dist │ │ ├── agent.d.ts │ │ ├── agent.js │ │ ├── agent.js.map │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.map │ │ ├── parse-proxy-response.d.ts │ │ ├── parse-proxy-response.js │ │ └── parse-proxy-response.js.map │ ├── node_modules │ │ ├── debug │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── package.json │ │ │ └── src │ │ │ │ ├── browser.js │ │ │ │ ├── common.js │ │ │ │ ├── index.js │ │ │ │ └── node.js │ │ └── ms │ │ │ ├── index.js │ │ │ ├── license.md │ │ │ ├── package.json │ │ │ └── readme.md │ └── 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 ├── inflight │ ├── LICENSE │ ├── README.md │ ├── inflight.js │ └── package.json ├── inherits │ ├── LICENSE │ ├── README.md │ ├── inherits.js │ ├── inherits_browser.js │ └── package.json ├── ip │ ├── README.md │ ├── lib │ │ └── ip.js │ └── package.json ├── ipaddr.js │ ├── LICENSE │ ├── README.md │ ├── ipaddr.min.js │ ├── lib │ │ ├── ipaddr.js │ │ └── ipaddr.js.d.ts │ └── package.json ├── is-fullwidth-code-point │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── jsonwebtoken │ ├── LICENSE │ ├── README.md │ ├── decode.js │ ├── index.js │ ├── lib │ │ ├── JsonWebTokenError.js │ │ ├── NotBeforeError.js │ │ ├── TokenExpiredError.js │ │ ├── asymmetricKeyDetailsSupported.js │ │ ├── psSupported.js │ │ ├── rsaPssKeyDetailsSupported.js │ │ ├── timespan.js │ │ └── validateAsymmetricKey.js │ ├── node_modules │ │ └── ms │ │ │ ├── index.js │ │ │ ├── license.md │ │ │ ├── package.json │ │ │ └── readme.md │ ├── package.json │ ├── sign.js │ └── verify.js ├── jwa │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── jws │ ├── CHANGELOG.md │ ├── LICENSE │ ├── index.js │ ├── lib │ │ ├── data-stream.js │ │ ├── sign-stream.js │ │ ├── tostring.js │ │ └── verify-stream.js │ ├── package.json │ └── readme.md ├── kareem │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lodash.includes │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lodash.isboolean │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lodash.isinteger │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lodash.isnumber │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lodash.isplainobject │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lodash.isstring │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lodash.once │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lru-cache │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── make-dir │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── node_modules │ │ ├── .bin │ │ │ ├── semver │ │ │ ├── semver.cmd │ │ │ └── semver.ps1 │ │ └── semver │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bin │ │ │ └── semver.js │ │ │ ├── package.json │ │ │ ├── range.bnf │ │ │ └── semver.js │ ├── package.json │ └── readme.md ├── media-typer │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── memory-pager │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── 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 ├── minimatch │ ├── LICENSE │ ├── README.md │ ├── minimatch.js │ └── package.json ├── minipass │ ├── LICENSE │ ├── README.md │ ├── index.d.ts │ ├── index.js │ ├── index.mjs │ └── package.json ├── minizlib │ ├── LICENSE │ ├── README.md │ ├── constants.js │ ├── index.js │ ├── node_modules │ │ └── minipass │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ └── package.json │ └── package.json ├── mkdirp │ ├── CHANGELOG.md │ ├── LICENSE │ ├── bin │ │ └── cmd.js │ ├── index.js │ ├── lib │ │ ├── find-made.js │ │ ├── mkdirp-manual.js │ │ ├── mkdirp-native.js │ │ ├── opts-arg.js │ │ ├── path-arg.js │ │ └── use-native.js │ ├── package.json │ └── readme.markdown ├── mongodb-connection-string-url │ ├── .esm-wrapper.mjs │ ├── LICENSE │ ├── README.md │ ├── lib │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.map │ │ ├── redact.d.ts │ │ ├── redact.js │ │ └── redact.js.map │ └── package.json ├── mongodb │ ├── LICENSE.md │ ├── README.md │ ├── etc │ │ └── prepare.js │ ├── lib │ │ ├── admin.js │ │ ├── admin.js.map │ │ ├── bson.js │ │ ├── bson.js.map │ │ ├── bulk │ │ │ ├── common.js │ │ │ ├── common.js.map │ │ │ ├── ordered.js │ │ │ ├── ordered.js.map │ │ │ ├── unordered.js │ │ │ └── unordered.js.map │ │ ├── change_stream.js │ │ ├── change_stream.js.map │ │ ├── cmap │ │ │ ├── auth │ │ │ │ ├── auth_provider.js │ │ │ │ ├── auth_provider.js.map │ │ │ │ ├── gssapi.js │ │ │ │ ├── gssapi.js.map │ │ │ │ ├── mongo_credentials.js │ │ │ │ ├── mongo_credentials.js.map │ │ │ │ ├── mongocr.js │ │ │ │ ├── mongocr.js.map │ │ │ │ ├── mongodb_aws.js │ │ │ │ ├── mongodb_aws.js.map │ │ │ │ ├── mongodb_oidc.js │ │ │ │ ├── mongodb_oidc.js.map │ │ │ │ ├── mongodb_oidc │ │ │ │ │ ├── aws_service_workflow.js │ │ │ │ │ ├── aws_service_workflow.js.map │ │ │ │ │ ├── azure_service_workflow.js │ │ │ │ │ ├── azure_service_workflow.js.map │ │ │ │ │ ├── azure_token_cache.js │ │ │ │ │ ├── azure_token_cache.js.map │ │ │ │ │ ├── cache.js │ │ │ │ │ ├── cache.js.map │ │ │ │ │ ├── callback_lock_cache.js │ │ │ │ │ ├── callback_lock_cache.js.map │ │ │ │ │ ├── callback_workflow.js │ │ │ │ │ ├── callback_workflow.js.map │ │ │ │ │ ├── service_workflow.js │ │ │ │ │ ├── service_workflow.js.map │ │ │ │ │ ├── token_entry_cache.js │ │ │ │ │ └── token_entry_cache.js.map │ │ │ │ ├── plain.js │ │ │ │ ├── plain.js.map │ │ │ │ ├── providers.js │ │ │ │ ├── providers.js.map │ │ │ │ ├── scram.js │ │ │ │ ├── scram.js.map │ │ │ │ ├── x509.js │ │ │ │ └── x509.js.map │ │ │ ├── command_monitoring_events.js │ │ │ ├── command_monitoring_events.js.map │ │ │ ├── commands.js │ │ │ ├── commands.js.map │ │ │ ├── connect.js │ │ │ ├── connect.js.map │ │ │ ├── connection.js │ │ │ ├── connection.js.map │ │ │ ├── connection_pool.js │ │ │ ├── connection_pool.js.map │ │ │ ├── connection_pool_events.js │ │ │ ├── connection_pool_events.js.map │ │ │ ├── errors.js │ │ │ ├── errors.js.map │ │ │ ├── handshake │ │ │ │ ├── client_metadata.js │ │ │ │ └── client_metadata.js.map │ │ │ ├── message_stream.js │ │ │ ├── message_stream.js.map │ │ │ ├── metrics.js │ │ │ ├── metrics.js.map │ │ │ ├── stream_description.js │ │ │ ├── stream_description.js.map │ │ │ └── wire_protocol │ │ │ │ ├── compression.js │ │ │ │ ├── compression.js.map │ │ │ │ ├── constants.js │ │ │ │ ├── constants.js.map │ │ │ │ ├── shared.js │ │ │ │ └── shared.js.map │ │ ├── collection.js │ │ ├── collection.js.map │ │ ├── connection_string.js │ │ ├── connection_string.js.map │ │ ├── constants.js │ │ ├── constants.js.map │ │ ├── cursor │ │ │ ├── abstract_cursor.js │ │ │ ├── abstract_cursor.js.map │ │ │ ├── aggregation_cursor.js │ │ │ ├── aggregation_cursor.js.map │ │ │ ├── change_stream_cursor.js │ │ │ ├── change_stream_cursor.js.map │ │ │ ├── find_cursor.js │ │ │ ├── find_cursor.js.map │ │ │ ├── list_collections_cursor.js │ │ │ ├── list_collections_cursor.js.map │ │ │ ├── list_indexes_cursor.js │ │ │ ├── list_indexes_cursor.js.map │ │ │ ├── list_search_indexes_cursor.js │ │ │ ├── list_search_indexes_cursor.js.map │ │ │ ├── run_command_cursor.js │ │ │ └── run_command_cursor.js.map │ │ ├── db.js │ │ ├── db.js.map │ │ ├── deps.js │ │ ├── deps.js.map │ │ ├── encrypter.js │ │ ├── encrypter.js.map │ │ ├── error.js │ │ ├── error.js.map │ │ ├── explain.js │ │ ├── explain.js.map │ │ ├── gridfs │ │ │ ├── download.js │ │ │ ├── download.js.map │ │ │ ├── index.js │ │ │ ├── index.js.map │ │ │ ├── upload.js │ │ │ └── upload.js.map │ │ ├── index.js │ │ ├── index.js.map │ │ ├── mongo_client.js │ │ ├── mongo_client.js.map │ │ ├── mongo_logger.js │ │ ├── mongo_logger.js.map │ │ ├── mongo_types.js │ │ ├── mongo_types.js.map │ │ ├── operations │ │ │ ├── add_user.js │ │ │ ├── add_user.js.map │ │ │ ├── aggregate.js │ │ │ ├── aggregate.js.map │ │ │ ├── bulk_write.js │ │ │ ├── bulk_write.js.map │ │ │ ├── collections.js │ │ │ ├── collections.js.map │ │ │ ├── command.js │ │ │ ├── command.js.map │ │ │ ├── common_functions.js │ │ │ ├── common_functions.js.map │ │ │ ├── count.js │ │ │ ├── count.js.map │ │ │ ├── count_documents.js │ │ │ ├── count_documents.js.map │ │ │ ├── create_collection.js │ │ │ ├── create_collection.js.map │ │ │ ├── delete.js │ │ │ ├── delete.js.map │ │ │ ├── distinct.js │ │ │ ├── distinct.js.map │ │ │ ├── drop.js │ │ │ ├── drop.js.map │ │ │ ├── estimated_document_count.js │ │ │ ├── estimated_document_count.js.map │ │ │ ├── eval.js │ │ │ ├── eval.js.map │ │ │ ├── execute_operation.js │ │ │ ├── execute_operation.js.map │ │ │ ├── find.js │ │ │ ├── find.js.map │ │ │ ├── find_and_modify.js │ │ │ ├── find_and_modify.js.map │ │ │ ├── get_more.js │ │ │ ├── get_more.js.map │ │ │ ├── indexes.js │ │ │ ├── indexes.js.map │ │ │ ├── insert.js │ │ │ ├── insert.js.map │ │ │ ├── is_capped.js │ │ │ ├── is_capped.js.map │ │ │ ├── kill_cursors.js │ │ │ ├── kill_cursors.js.map │ │ │ ├── list_collections.js │ │ │ ├── list_collections.js.map │ │ │ ├── list_databases.js │ │ │ ├── list_databases.js.map │ │ │ ├── operation.js │ │ │ ├── operation.js.map │ │ │ ├── options_operation.js │ │ │ ├── options_operation.js.map │ │ │ ├── profiling_level.js │ │ │ ├── profiling_level.js.map │ │ │ ├── remove_user.js │ │ │ ├── remove_user.js.map │ │ │ ├── rename.js │ │ │ ├── rename.js.map │ │ │ ├── run_command.js │ │ │ ├── run_command.js.map │ │ │ ├── search_indexes │ │ │ │ ├── create.js │ │ │ │ ├── create.js.map │ │ │ │ ├── drop.js │ │ │ │ ├── drop.js.map │ │ │ │ ├── update.js │ │ │ │ └── update.js.map │ │ │ ├── set_profiling_level.js │ │ │ ├── set_profiling_level.js.map │ │ │ ├── stats.js │ │ │ ├── stats.js.map │ │ │ ├── update.js │ │ │ ├── update.js.map │ │ │ ├── validate_collection.js │ │ │ └── validate_collection.js.map │ │ ├── read_concern.js │ │ ├── read_concern.js.map │ │ ├── read_preference.js │ │ ├── read_preference.js.map │ │ ├── sdam │ │ │ ├── common.js │ │ │ ├── common.js.map │ │ │ ├── events.js │ │ │ ├── events.js.map │ │ │ ├── monitor.js │ │ │ ├── monitor.js.map │ │ │ ├── server.js │ │ │ ├── server.js.map │ │ │ ├── server_description.js │ │ │ ├── server_description.js.map │ │ │ ├── server_selection.js │ │ │ ├── server_selection.js.map │ │ │ ├── srv_polling.js │ │ │ ├── srv_polling.js.map │ │ │ ├── topology.js │ │ │ ├── topology.js.map │ │ │ ├── topology_description.js │ │ │ └── topology_description.js.map │ │ ├── sessions.js │ │ ├── sessions.js.map │ │ ├── sort.js │ │ ├── sort.js.map │ │ ├── transactions.js │ │ ├── transactions.js.map │ │ ├── utils.js │ │ ├── utils.js.map │ │ ├── write_concern.js │ │ └── write_concern.js.map │ ├── mongodb.d.ts │ ├── package.json │ ├── src │ │ ├── admin.ts │ │ ├── bson.ts │ │ ├── bulk │ │ │ ├── common.ts │ │ │ ├── ordered.ts │ │ │ └── unordered.ts │ │ ├── change_stream.ts │ │ ├── cmap │ │ │ ├── auth │ │ │ │ ├── auth_provider.ts │ │ │ │ ├── gssapi.ts │ │ │ │ ├── mongo_credentials.ts │ │ │ │ ├── mongocr.ts │ │ │ │ ├── mongodb_aws.ts │ │ │ │ ├── mongodb_oidc.ts │ │ │ │ ├── mongodb_oidc │ │ │ │ │ ├── aws_service_workflow.ts │ │ │ │ │ ├── azure_service_workflow.ts │ │ │ │ │ ├── azure_token_cache.ts │ │ │ │ │ ├── cache.ts │ │ │ │ │ ├── callback_lock_cache.ts │ │ │ │ │ ├── callback_workflow.ts │ │ │ │ │ ├── service_workflow.ts │ │ │ │ │ └── token_entry_cache.ts │ │ │ │ ├── plain.ts │ │ │ │ ├── providers.ts │ │ │ │ ├── scram.ts │ │ │ │ └── x509.ts │ │ │ ├── command_monitoring_events.ts │ │ │ ├── commands.ts │ │ │ ├── connect.ts │ │ │ ├── connection.ts │ │ │ ├── connection_pool.ts │ │ │ ├── connection_pool_events.ts │ │ │ ├── errors.ts │ │ │ ├── handshake │ │ │ │ └── client_metadata.ts │ │ │ ├── message_stream.ts │ │ │ ├── metrics.ts │ │ │ ├── stream_description.ts │ │ │ └── wire_protocol │ │ │ │ ├── compression.ts │ │ │ │ ├── constants.ts │ │ │ │ └── shared.ts │ │ ├── collection.ts │ │ ├── connection_string.ts │ │ ├── constants.ts │ │ ├── cursor │ │ │ ├── abstract_cursor.ts │ │ │ ├── aggregation_cursor.ts │ │ │ ├── change_stream_cursor.ts │ │ │ ├── find_cursor.ts │ │ │ ├── list_collections_cursor.ts │ │ │ ├── list_indexes_cursor.ts │ │ │ ├── list_search_indexes_cursor.ts │ │ │ └── run_command_cursor.ts │ │ ├── db.ts │ │ ├── deps.ts │ │ ├── encrypter.ts │ │ ├── error.ts │ │ ├── explain.ts │ │ ├── gridfs │ │ │ ├── download.ts │ │ │ ├── index.ts │ │ │ └── upload.ts │ │ ├── index.ts │ │ ├── mongo_client.ts │ │ ├── mongo_logger.ts │ │ ├── mongo_types.ts │ │ ├── operations │ │ │ ├── add_user.ts │ │ │ ├── aggregate.ts │ │ │ ├── bulk_write.ts │ │ │ ├── collections.ts │ │ │ ├── command.ts │ │ │ ├── common_functions.ts │ │ │ ├── count.ts │ │ │ ├── count_documents.ts │ │ │ ├── create_collection.ts │ │ │ ├── delete.ts │ │ │ ├── distinct.ts │ │ │ ├── drop.ts │ │ │ ├── estimated_document_count.ts │ │ │ ├── eval.ts │ │ │ ├── execute_operation.ts │ │ │ ├── find.ts │ │ │ ├── find_and_modify.ts │ │ │ ├── get_more.ts │ │ │ ├── indexes.ts │ │ │ ├── insert.ts │ │ │ ├── is_capped.ts │ │ │ ├── kill_cursors.ts │ │ │ ├── list_collections.ts │ │ │ ├── list_databases.ts │ │ │ ├── operation.ts │ │ │ ├── options_operation.ts │ │ │ ├── profiling_level.ts │ │ │ ├── remove_user.ts │ │ │ ├── rename.ts │ │ │ ├── run_command.ts │ │ │ ├── search_indexes │ │ │ │ ├── create.ts │ │ │ │ ├── drop.ts │ │ │ │ └── update.ts │ │ │ ├── set_profiling_level.ts │ │ │ ├── stats.ts │ │ │ ├── update.ts │ │ │ └── validate_collection.ts │ │ ├── read_concern.ts │ │ ├── read_preference.ts │ │ ├── sdam │ │ │ ├── common.ts │ │ │ ├── events.ts │ │ │ ├── monitor.ts │ │ │ ├── server.ts │ │ │ ├── server_description.ts │ │ │ ├── server_selection.ts │ │ │ ├── srv_polling.ts │ │ │ ├── topology.ts │ │ │ └── topology_description.ts │ │ ├── sessions.ts │ │ ├── sort.ts │ │ ├── transactions.ts │ │ ├── utils.ts │ │ └── write_concern.ts │ └── tsconfig.json ├── mongoose │ ├── LICENSE.md │ ├── README.md │ ├── SECURITY.md │ ├── browser.js │ ├── dist │ │ └── browser.umd.js │ ├── index.js │ ├── lib │ │ ├── aggregate.js │ │ ├── browser.js │ │ ├── browserDocument.js │ │ ├── cast.js │ │ ├── cast │ │ │ ├── bigint.js │ │ │ ├── boolean.js │ │ │ ├── date.js │ │ │ ├── decimal128.js │ │ │ ├── number.js │ │ │ ├── objectid.js │ │ │ └── string.js │ │ ├── collection.js │ │ ├── connection.js │ │ ├── connectionstate.js │ │ ├── cursor │ │ │ ├── AggregationCursor.js │ │ │ ├── ChangeStream.js │ │ │ └── QueryCursor.js │ │ ├── document.js │ │ ├── document_provider.js │ │ ├── driver.js │ │ ├── drivers │ │ │ ├── SPEC.md │ │ │ ├── browser │ │ │ │ ├── binary.js │ │ │ │ ├── decimal128.js │ │ │ │ ├── index.js │ │ │ │ └── objectid.js │ │ │ └── node-mongodb-native │ │ │ │ ├── collection.js │ │ │ │ ├── connection.js │ │ │ │ └── index.js │ │ ├── error │ │ │ ├── browserMissingSchema.js │ │ │ ├── bulkWriteError.js │ │ │ ├── cast.js │ │ │ ├── createCollectionsError.js │ │ │ ├── divergentArray.js │ │ │ ├── eachAsyncMultiError.js │ │ │ ├── index.js │ │ │ ├── invalidSchemaOption.js │ │ │ ├── messages.js │ │ │ ├── missingSchema.js │ │ │ ├── mongooseError.js │ │ │ ├── notFound.js │ │ │ ├── objectExpected.js │ │ │ ├── objectParameter.js │ │ │ ├── overwriteModel.js │ │ │ ├── parallelSave.js │ │ │ ├── parallelValidate.js │ │ │ ├── serverSelection.js │ │ │ ├── setOptionError.js │ │ │ ├── strict.js │ │ │ ├── strictPopulate.js │ │ │ ├── syncIndexes.js │ │ │ ├── validation.js │ │ │ ├── validator.js │ │ │ └── version.js │ │ ├── helpers │ │ │ ├── aggregate │ │ │ │ ├── prepareDiscriminatorPipeline.js │ │ │ │ └── stringifyFunctionOperators.js │ │ │ ├── arrayDepth.js │ │ │ ├── clone.js │ │ │ ├── common.js │ │ │ ├── cursor │ │ │ │ └── eachAsync.js │ │ │ ├── discriminator │ │ │ │ ├── areDiscriminatorValuesEqual.js │ │ │ │ ├── checkEmbeddedDiscriminatorKeyProjection.js │ │ │ │ ├── getConstructor.js │ │ │ │ ├── getDiscriminatorByValue.js │ │ │ │ ├── getSchemaDiscriminatorByValue.js │ │ │ │ └── mergeDiscriminatorSchema.js │ │ │ ├── document │ │ │ │ ├── applyDefaults.js │ │ │ │ ├── cleanModifiedSubpaths.js │ │ │ │ ├── compile.js │ │ │ │ ├── getDeepestSubdocumentForPath.js │ │ │ │ ├── getEmbeddedDiscriminatorPath.js │ │ │ │ └── handleSpreadDoc.js │ │ │ ├── each.js │ │ │ ├── error │ │ │ │ └── combinePathErrors.js │ │ │ ├── firstKey.js │ │ │ ├── get.js │ │ │ ├── getConstructorName.js │ │ │ ├── getDefaultBulkwriteResult.js │ │ │ ├── getFunctionName.js │ │ │ ├── immediate.js │ │ │ ├── indexes │ │ │ │ ├── applySchemaCollation.js │ │ │ │ ├── decorateDiscriminatorIndexOptions.js │ │ │ │ ├── getRelatedIndexes.js │ │ │ │ ├── isDefaultIdIndex.js │ │ │ │ ├── isIndexEqual.js │ │ │ │ └── isTextIndex.js │ │ │ ├── isAsyncFunction.js │ │ │ ├── isBsonType.js │ │ │ ├── isMongooseObject.js │ │ │ ├── isObject.js │ │ │ ├── isPOJO.js │ │ │ ├── isPromise.js │ │ │ ├── isSimpleValidator.js │ │ │ ├── model │ │ │ │ ├── applyDefaultsToPOJO.js │ │ │ │ ├── applyHooks.js │ │ │ │ ├── applyMethods.js │ │ │ │ ├── applyStaticHooks.js │ │ │ │ ├── applyStatics.js │ │ │ │ ├── castBulkWrite.js │ │ │ │ ├── discriminator.js │ │ │ │ └── pushNestedArrayPaths.js │ │ │ ├── once.js │ │ │ ├── parallelLimit.js │ │ │ ├── path │ │ │ │ ├── parentPaths.js │ │ │ │ └── setDottedPath.js │ │ │ ├── pluralize.js │ │ │ ├── populate │ │ │ │ ├── SkipPopulateValue.js │ │ │ │ ├── assignRawDocsToIdStructure.js │ │ │ │ ├── assignVals.js │ │ │ │ ├── createPopulateQueryFilter.js │ │ │ │ ├── getModelsMapForPopulate.js │ │ │ │ ├── getSchemaTypes.js │ │ │ │ ├── getVirtual.js │ │ │ │ ├── leanPopulateMap.js │ │ │ │ ├── lookupLocalFields.js │ │ │ │ ├── markArraySubdocsPopulated.js │ │ │ │ ├── modelNamesFromRefPath.js │ │ │ │ ├── removeDeselectedForeignField.js │ │ │ │ └── validateRef.js │ │ │ ├── printJestWarning.js │ │ │ ├── processConnectionOptions.js │ │ │ ├── projection │ │ │ │ ├── applyProjection.js │ │ │ │ ├── hasIncludedChildren.js │ │ │ │ ├── isDefiningProjection.js │ │ │ │ ├── isExclusive.js │ │ │ │ ├── isInclusive.js │ │ │ │ ├── isPathExcluded.js │ │ │ │ ├── isPathSelectedInclusive.js │ │ │ │ ├── isSubpath.js │ │ │ │ └── parseProjection.js │ │ │ ├── promiseOrCallback.js │ │ │ ├── query │ │ │ │ ├── applyGlobalOption.js │ │ │ │ ├── applyQueryMiddleware.js │ │ │ │ ├── cast$expr.js │ │ │ │ ├── castFilterPath.js │ │ │ │ ├── castUpdate.js │ │ │ │ ├── completeMany.js │ │ │ │ ├── getEmbeddedDiscriminatorPath.js │ │ │ │ ├── handleImmutable.js │ │ │ │ ├── handleReadPreferenceAliases.js │ │ │ │ ├── hasDollarKeys.js │ │ │ │ ├── isOperator.js │ │ │ │ ├── sanitizeFilter.js │ │ │ │ ├── sanitizeProjection.js │ │ │ │ ├── selectPopulatedFields.js │ │ │ │ ├── trusted.js │ │ │ │ └── validOps.js │ │ │ ├── schema │ │ │ │ ├── addAutoId.js │ │ │ │ ├── applyBuiltinPlugins.js │ │ │ │ ├── applyPlugins.js │ │ │ │ ├── applyWriteConcern.js │ │ │ │ ├── cleanPositionalOperators.js │ │ │ │ ├── getIndexes.js │ │ │ │ ├── getKeysInSchemaOrder.js │ │ │ │ ├── getPath.js │ │ │ │ ├── getSubdocumentStrictValue.js │ │ │ │ ├── handleIdOption.js │ │ │ │ ├── handleTimestampOption.js │ │ │ │ ├── idGetter.js │ │ │ │ └── merge.js │ │ │ ├── schematype │ │ │ │ └── handleImmutable.js │ │ │ ├── setDefaultsOnInsert.js │ │ │ ├── specialProperties.js │ │ │ ├── symbols.js │ │ │ ├── timers.js │ │ │ ├── timestamps │ │ │ │ ├── setDocumentTimestamps.js │ │ │ │ └── setupTimestamps.js │ │ │ ├── topology │ │ │ │ ├── allServersUnknown.js │ │ │ │ ├── isAtlas.js │ │ │ │ └── isSSLError.js │ │ │ ├── update │ │ │ │ ├── applyTimestampsToChildren.js │ │ │ │ ├── applyTimestampsToUpdate.js │ │ │ │ ├── castArrayFilters.js │ │ │ │ ├── modifiedPaths.js │ │ │ │ ├── moveImmutableProperties.js │ │ │ │ ├── removeUnusedArrayFilters.js │ │ │ │ └── updatedPathsByArrayFilter.js │ │ │ └── updateValidators.js │ │ ├── index.js │ │ ├── internal.js │ │ ├── model.js │ │ ├── options.js │ │ ├── options │ │ │ ├── PopulateOptions.js │ │ │ ├── SchemaArrayOptions.js │ │ │ ├── SchemaBufferOptions.js │ │ │ ├── SchemaDateOptions.js │ │ │ ├── SchemaDocumentArrayOptions.js │ │ │ ├── SchemaMapOptions.js │ │ │ ├── SchemaNumberOptions.js │ │ │ ├── SchemaObjectIdOptions.js │ │ │ ├── SchemaStringOptions.js │ │ │ ├── SchemaSubdocumentOptions.js │ │ │ ├── SchemaTypeOptions.js │ │ │ ├── VirtualOptions.js │ │ │ ├── propertyOptions.js │ │ │ └── saveOptions.js │ │ ├── plugins │ │ │ ├── index.js │ │ │ ├── removeSubdocs.js │ │ │ ├── saveSubdocs.js │ │ │ ├── sharding.js │ │ │ ├── trackTransaction.js │ │ │ └── validateBeforeSave.js │ │ ├── query.js │ │ ├── queryhelpers.js │ │ ├── schema.js │ │ ├── schema │ │ │ ├── DocumentArrayElement.js │ │ │ ├── SubdocumentPath.js │ │ │ ├── array.js │ │ │ ├── bigint.js │ │ │ ├── boolean.js │ │ │ ├── buffer.js │ │ │ ├── date.js │ │ │ ├── decimal128.js │ │ │ ├── documentarray.js │ │ │ ├── index.js │ │ │ ├── map.js │ │ │ ├── mixed.js │ │ │ ├── number.js │ │ │ ├── objectid.js │ │ │ ├── operators │ │ │ │ ├── bitwise.js │ │ │ │ ├── exists.js │ │ │ │ ├── geospatial.js │ │ │ │ ├── helpers.js │ │ │ │ ├── text.js │ │ │ │ └── type.js │ │ │ ├── string.js │ │ │ ├── symbols.js │ │ │ └── uuid.js │ │ ├── schematype.js │ │ ├── statemachine.js │ │ ├── types │ │ │ ├── ArraySubdocument.js │ │ │ ├── DocumentArray │ │ │ │ ├── index.js │ │ │ │ ├── isMongooseDocumentArray.js │ │ │ │ └── methods │ │ │ │ │ └── index.js │ │ │ ├── array │ │ │ │ ├── index.js │ │ │ │ ├── isMongooseArray.js │ │ │ │ └── methods │ │ │ │ │ └── index.js │ │ │ ├── buffer.js │ │ │ ├── decimal128.js │ │ │ ├── index.js │ │ │ ├── map.js │ │ │ ├── objectid.js │ │ │ ├── subdocument.js │ │ │ └── uuid.js │ │ ├── utils.js │ │ ├── validoptions.js │ │ └── virtualtype.js │ ├── node_modules │ │ └── ms │ │ │ ├── index.js │ │ │ ├── license.md │ │ │ ├── package.json │ │ │ └── readme.md │ ├── package.json │ └── types │ │ ├── aggregate.d.ts │ │ ├── augmentations.d.ts │ │ ├── callback.d.ts │ │ ├── collection.d.ts │ │ ├── connection.d.ts │ │ ├── cursor.d.ts │ │ ├── document.d.ts │ │ ├── error.d.ts │ │ ├── expressions.d.ts │ │ ├── helpers.d.ts │ │ ├── index.d.ts │ │ ├── indexes.d.ts │ │ ├── inferschematype.d.ts │ │ ├── middlewares.d.ts │ │ ├── models.d.ts │ │ ├── mongooseoptions.d.ts │ │ ├── pipelinestage.d.ts │ │ ├── populate.d.ts │ │ ├── query.d.ts │ │ ├── schemaoptions.d.ts │ │ ├── schematypes.d.ts │ │ ├── session.d.ts │ │ ├── types.d.ts │ │ ├── utility.d.ts │ │ ├── validation.d.ts │ │ └── virtuals.d.ts ├── mpath │ ├── .travis.yml │ ├── History.md │ ├── LICENSE │ ├── README.md │ ├── SECURITY.md │ ├── index.js │ ├── lib │ │ ├── index.js │ │ └── stringToParts.js │ ├── package.json │ └── test │ │ ├── .eslintrc.yml │ │ ├── index.js │ │ └── stringToParts.js ├── mquery │ ├── .github │ │ ├── ISSUE_TEMPLATE.md │ │ └── PULL_REQUEST_TEMPLATE.md │ ├── History.md │ ├── LICENSE │ ├── README.md │ ├── SECURITY.md │ ├── lib │ │ ├── collection │ │ │ ├── collection.js │ │ │ ├── index.js │ │ │ └── node.js │ │ ├── env.js │ │ ├── mquery.js │ │ ├── permissions.js │ │ └── utils.js │ ├── node_modules │ │ ├── debug │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── package.json │ │ │ └── src │ │ │ │ ├── browser.js │ │ │ │ ├── common.js │ │ │ │ ├── index.js │ │ │ │ └── node.js │ │ └── ms │ │ │ ├── index.js │ │ │ ├── license.md │ │ │ ├── package.json │ │ │ └── readme.md │ └── package.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 ├── node-addon-api │ ├── LICENSE.md │ ├── README.md │ ├── common.gypi │ ├── except.gypi │ ├── index.js │ ├── napi-inl.deprecated.h │ ├── napi-inl.h │ ├── napi.h │ ├── node_api.gyp │ ├── noexcept.gypi │ ├── nothing.c │ ├── package-support.json │ ├── package.json │ └── tools │ │ ├── README.md │ │ ├── check-napi.js │ │ ├── clang-format.js │ │ ├── conversion.js │ │ └── eslint-format.js ├── node-fetch │ ├── LICENSE.md │ ├── README.md │ ├── browser.js │ ├── lib │ │ ├── index.es.js │ │ ├── index.js │ │ └── index.mjs │ ├── node_modules │ │ ├── tr46 │ │ │ ├── .npmignore │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── .gitkeep │ │ │ │ └── mappingTable.json │ │ │ └── package.json │ │ ├── webidl-conversions │ │ │ ├── LICENSE.md │ │ │ ├── README.md │ │ │ ├── lib │ │ │ │ └── index.js │ │ │ └── package.json │ │ └── whatwg-url │ │ │ ├── LICENSE.txt │ │ │ ├── README.md │ │ │ ├── lib │ │ │ ├── URL-impl.js │ │ │ ├── URL.js │ │ │ ├── public-api.js │ │ │ ├── url-state-machine.js │ │ │ └── utils.js │ │ │ └── package.json │ └── package.json ├── nopt │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── nopt.js │ ├── lib │ │ └── nopt.js │ └── package.json ├── npmlog │ ├── LICENSE │ ├── README.md │ ├── log.js │ └── package.json ├── object-assign │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── 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 ├── once │ ├── LICENSE │ ├── README.md │ ├── once.js │ └── package.json ├── parseurl │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── path-is-absolute │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── path-to-regexp │ ├── History.md │ ├── LICENSE │ ├── Readme.md │ ├── index.js │ └── package.json ├── proxy-addr │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── punycode │ ├── LICENSE-MIT.txt │ ├── README.md │ ├── package.json │ ├── punycode.es6.js │ └── punycode.js ├── 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 ├── 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 │ ├── CONTRIBUTING.md │ ├── GOVERNANCE.md │ ├── LICENSE │ ├── README.md │ ├── errors-browser.js │ ├── errors.js │ ├── experimentalWarning.js │ ├── lib │ │ ├── _stream_duplex.js │ │ ├── _stream_passthrough.js │ │ ├── _stream_readable.js │ │ ├── _stream_transform.js │ │ ├── _stream_writable.js │ │ └── internal │ │ │ └── streams │ │ │ ├── async_iterator.js │ │ │ ├── buffer_list.js │ │ │ ├── destroy.js │ │ │ ├── end-of-stream.js │ │ │ ├── from-browser.js │ │ │ ├── from.js │ │ │ ├── pipeline.js │ │ │ ├── state.js │ │ │ ├── stream-browser.js │ │ │ └── stream.js │ ├── package.json │ ├── readable-browser.js │ └── readable.js ├── rimraf │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── bin.js │ ├── package.json │ └── rimraf.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 ├── semver │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── semver.js │ ├── classes │ │ ├── comparator.js │ │ ├── index.js │ │ ├── range.js │ │ └── semver.js │ ├── functions │ │ ├── clean.js │ │ ├── cmp.js │ │ ├── coerce.js │ │ ├── compare-build.js │ │ ├── compare-loose.js │ │ ├── compare.js │ │ ├── diff.js │ │ ├── eq.js │ │ ├── gt.js │ │ ├── gte.js │ │ ├── inc.js │ │ ├── lt.js │ │ ├── lte.js │ │ ├── major.js │ │ ├── minor.js │ │ ├── neq.js │ │ ├── parse.js │ │ ├── patch.js │ │ ├── prerelease.js │ │ ├── rcompare.js │ │ ├── rsort.js │ │ ├── satisfies.js │ │ ├── sort.js │ │ └── valid.js │ ├── index.js │ ├── internal │ │ ├── constants.js │ │ ├── debug.js │ │ ├── identifiers.js │ │ ├── parse-options.js │ │ └── re.js │ ├── package.json │ ├── preload.js │ ├── range.bnf │ └── ranges │ │ ├── gtr.js │ │ ├── intersects.js │ │ ├── ltr.js │ │ ├── max-satisfying.js │ │ ├── min-satisfying.js │ │ ├── min-version.js │ │ ├── outside.js │ │ ├── simplify.js │ │ ├── subset.js │ │ ├── to-comparators.js │ │ └── valid.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 ├── set-blocking │ ├── CHANGELOG.md │ ├── LICENSE.txt │ ├── 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 ├── sift │ ├── MIT-LICENSE.txt │ ├── README.md │ ├── es │ │ ├── index.js │ │ └── index.js.map │ ├── es5m │ │ ├── index.js │ │ └── index.js.map │ ├── index.d.ts │ ├── index.js │ ├── lib │ │ ├── core.d.ts │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.map │ │ ├── operations.d.ts │ │ └── utils.d.ts │ ├── package.json │ ├── sift.csp.min.js │ ├── sift.csp.min.js.map │ ├── sift.min.js │ ├── sift.min.js.map │ └── src │ │ ├── core.d.ts │ │ ├── core.js │ │ ├── core.js.map │ │ ├── core.ts │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.map │ │ ├── index.ts │ │ ├── operations.d.ts │ │ ├── operations.js │ │ ├── operations.js.map │ │ ├── operations.ts │ │ ├── utils.d.ts │ │ ├── utils.js │ │ ├── utils.js.map │ │ └── utils.ts ├── signal-exit │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ ├── package.json │ └── signals.js ├── smart-buffer │ ├── .prettierrc.yaml │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── build │ │ ├── smartbuffer.js │ │ ├── smartbuffer.js.map │ │ ├── utils.js │ │ └── utils.js.map │ ├── docs │ │ ├── CHANGELOG.md │ │ ├── README_v3.md │ │ └── ROADMAP.md │ ├── package.json │ └── typings │ │ ├── smartbuffer.d.ts │ │ └── utils.d.ts ├── socks │ ├── .eslintrc.cjs │ ├── .prettierrc.yaml │ ├── LICENSE │ ├── README.md │ ├── build │ │ ├── client │ │ │ ├── socksclient.js │ │ │ └── socksclient.js.map │ │ ├── common │ │ │ ├── constants.js │ │ │ ├── constants.js.map │ │ │ ├── helpers.js │ │ │ ├── helpers.js.map │ │ │ ├── receivebuffer.js │ │ │ ├── receivebuffer.js.map │ │ │ ├── util.js │ │ │ └── util.js.map │ │ ├── index.js │ │ └── index.js.map │ ├── docs │ │ ├── examples │ │ │ ├── index.md │ │ │ ├── javascript │ │ │ │ ├── associateExample.md │ │ │ │ ├── bindExample.md │ │ │ │ └── connectExample.md │ │ │ └── typescript │ │ │ │ ├── associateExample.md │ │ │ │ ├── bindExample.md │ │ │ │ └── connectExample.md │ │ ├── index.md │ │ └── migratingFromV1.md │ ├── package.json │ └── typings │ │ ├── client │ │ └── socksclient.d.ts │ │ ├── common │ │ ├── constants.d.ts │ │ ├── helpers.d.ts │ │ ├── receivebuffer.d.ts │ │ └── util.d.ts │ │ └── index.d.ts ├── sparse-bitfield │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── statuses │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── codes.json │ ├── index.js │ └── package.json ├── string-width │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── string_decoder │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── string_decoder.js │ └── package.json ├── strip-ansi │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── tar │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── create.js │ │ ├── extract.js │ │ ├── get-write-flag.js │ │ ├── header.js │ │ ├── high-level-opt.js │ │ ├── large-numbers.js │ │ ├── list.js │ │ ├── mkdir.js │ │ ├── mode-fix.js │ │ ├── normalize-unicode.js │ │ ├── normalize-windows-path.js │ │ ├── pack.js │ │ ├── parse.js │ │ ├── path-reservations.js │ │ ├── pax.js │ │ ├── read-entry.js │ │ ├── replace.js │ │ ├── strip-absolute-path.js │ │ ├── strip-trailing-slashes.js │ │ ├── types.js │ │ ├── unpack.js │ │ ├── update.js │ │ ├── warn-mixin.js │ │ ├── winchars.js │ │ └── write-entry.js │ └── package.json ├── toidentifier │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── tr46 │ ├── LICENSE.md │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── mappingTable.json │ │ ├── regexes.js │ │ └── statusMapping.js │ └── package.json ├── type-is │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── undici-types │ ├── README.md │ ├── agent.d.ts │ ├── api.d.ts │ ├── balanced-pool.d.ts │ ├── cache.d.ts │ ├── client.d.ts │ ├── connector.d.ts │ ├── content-type.d.ts │ ├── cookies.d.ts │ ├── diagnostics-channel.d.ts │ ├── dispatcher.d.ts │ ├── errors.d.ts │ ├── fetch.d.ts │ ├── file.d.ts │ ├── filereader.d.ts │ ├── formdata.d.ts │ ├── global-dispatcher.d.ts │ ├── global-origin.d.ts │ ├── handlers.d.ts │ ├── header.d.ts │ ├── index.d.ts │ ├── interceptors.d.ts │ ├── mock-agent.d.ts │ ├── mock-client.d.ts │ ├── mock-errors.d.ts │ ├── mock-interceptor.d.ts │ ├── mock-pool.d.ts │ ├── package.json │ ├── patch.d.ts │ ├── pool-stats.d.ts │ ├── pool.d.ts │ ├── proxy-agent.d.ts │ ├── readable.d.ts │ ├── webidl.d.ts │ └── websocket.d.ts ├── unpipe │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── util-deprecate │ ├── History.md │ ├── LICENSE │ ├── README.md │ ├── browser.js │ ├── node.js │ └── package.json ├── utils-merge │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── vary │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── webidl-conversions │ ├── LICENSE.md │ ├── README.md │ ├── lib │ │ └── index.js │ └── package.json ├── whatwg-url │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── Function.js │ │ ├── URL-impl.js │ │ ├── URL.js │ │ ├── URLSearchParams-impl.js │ │ ├── URLSearchParams.js │ │ ├── VoidFunction.js │ │ ├── encoding.js │ │ ├── infra.js │ │ ├── percent-encoding.js │ │ ├── url-state-machine.js │ │ ├── urlencoded.js │ │ └── utils.js │ ├── package.json │ └── webidl2js-wrapper.js ├── wide-align │ ├── LICENSE │ ├── README.md │ ├── align.js │ └── package.json ├── wrappy │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── wrappy.js └── yallist │ ├── LICENSE │ ├── README.md │ ├── iterator.js │ ├── package.json │ └── yallist.js ├── package-lock.json ├── package.json └── routes ├── taskRoutes.js └── userRoutes.js /.env: -------------------------------------------------------------------------------- 1 | # contain all the passwords 2 | PORT = 8000; 3 | MONGO_URL = mongodb+srv://chamaz:hamaz23@cluster0.fil59xv.mongodb.net/ #the url of the data base 4 | JWT_SECRET_KEY = hamaz23 #secret key used for generating and validating JSON Web Tokens 5 | DB_NAME = mydb1 #data base name -------------------------------------------------------------------------------- /db.js: -------------------------------------------------------------------------------- 1 | // mongodb data file 2 | const mongoose = require ('mongoose'); 3 | require('dotenv').config();//import from 4 | 5 | const MONGO_URL = process.env.MONGO_URL; 6 | const DB_NAME = process.env.DB_NAME; 7 | 8 | mongoose.connect(MONGO_URL,{ 9 | dbName : DB_NAME 10 | }).then( 11 | ()=>{ 12 | console.log('connected to Data Base'); 13 | } 14 | ).catch((err)=>{ 15 | console.log('ERROR connecting to Data Base'+ err); 16 | }); -------------------------------------------------------------------------------- /models/Task.js: -------------------------------------------------------------------------------- 1 | const mongoose = require ('mongoose'); 2 | 3 | const taskSchema = new mongoose.Schema({ 4 | description : {type: String ,required : true}, 5 | completed : {type :Boolean , default :false}, 6 | owner : { 7 | type : mongoose.Schema.Types.ObjectId, 8 | required : true, 9 | ref : 'User' 10 | } 11 | },{ 12 | timestamps : true 13 | });//define the user attributes 14 | 15 | 16 | 17 | const Task = mongoose.model('Task',taskSchema); 18 | module.exports = Task; 19 | -------------------------------------------------------------------------------- /node_modules/.bin/color-support: -------------------------------------------------------------------------------- 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/../color-support/bin.js" "$@" 10 | else 11 | exec node "$basedir/../color-support/bin.js" "$@" 12 | fi 13 | -------------------------------------------------------------------------------- /node_modules/.bin/color-support.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%\..\color-support\bin.js" %* 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 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/../mkdirp/bin/cmd.js" "$@" 10 | else 11 | exec node "$basedir/../mkdirp/bin/cmd.js" "$@" 12 | fi 13 | -------------------------------------------------------------------------------- /node_modules/.bin/mkdirp.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%\..\mkdirp\bin\cmd.js" %* 18 | -------------------------------------------------------------------------------- /node_modules/.bin/node-pre-gyp: -------------------------------------------------------------------------------- 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/../@mapbox/node-pre-gyp/bin/node-pre-gyp" "$@" 10 | else 11 | exec node "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" "$@" 12 | fi 13 | -------------------------------------------------------------------------------- /node_modules/.bin/node-pre-gyp.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%\..\@mapbox\node-pre-gyp\bin\node-pre-gyp" %* 18 | -------------------------------------------------------------------------------- /node_modules/.bin/nopt: -------------------------------------------------------------------------------- 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/../nopt/bin/nopt.js" "$@" 10 | else 11 | exec node "$basedir/../nopt/bin/nopt.js" "$@" 12 | fi 13 | -------------------------------------------------------------------------------- /node_modules/.bin/nopt.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%\..\nopt\bin\nopt.js" %* 18 | -------------------------------------------------------------------------------- /node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 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/../rimraf/bin.js" "$@" 10 | else 11 | exec node "$basedir/../rimraf/bin.js" "$@" 12 | fi 13 | -------------------------------------------------------------------------------- /node_modules/.bin/rimraf.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%\..\rimraf\bin.js" %* 18 | -------------------------------------------------------------------------------- /node_modules/.bin/semver: -------------------------------------------------------------------------------- 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/../semver/bin/semver.js" "$@" 10 | else 11 | exec node "$basedir/../semver/bin/semver.js" "$@" 12 | fi 13 | -------------------------------------------------------------------------------- /node_modules/.bin/semver.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%\..\semver\bin\semver.js" %* 18 | -------------------------------------------------------------------------------- /node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | require('../lib/main'); 5 | -------------------------------------------------------------------------------- /node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | node "%~dp0\node-pre-gyp" %* 3 | -------------------------------------------------------------------------------- /node_modules/@mapbox/node-pre-gyp/contributing.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | 4 | ### Releasing a new version: 5 | 6 | - Ensure tests are passing on travis and appveyor 7 | - Run `node scripts/abi_crosswalk.js` and commit any changes 8 | - Update the changelog 9 | - Tag a new release like: `git tag -a v0.6.34 -m "tagging v0.6.34" && git push --tags` 10 | - Run `npm publish` 11 | -------------------------------------------------------------------------------- /node_modules/@mapbox/node-pre-gyp/lib/rebuild.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = exports = rebuild; 4 | 5 | exports.usage = 'Runs "clean" and "build" at once'; 6 | 7 | const napi = require('./util/napi.js'); 8 | 9 | function rebuild(gyp, argv, callback) { 10 | const package_json = gyp.package_json; 11 | let commands = [ 12 | { name: 'clean', args: [] }, 13 | { name: 'build', args: ['rebuild'] } 14 | ]; 15 | commands = napi.expand_commands(package_json, gyp.opts, commands); 16 | for (let i = commands.length; i !== 0; i--) { 17 | gyp.todo.unshift(commands[i - 1]); 18 | } 19 | process.nextTick(callback); 20 | } 21 | -------------------------------------------------------------------------------- /node_modules/@mapbox/node-pre-gyp/lib/reinstall.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = exports = rebuild; 4 | 5 | exports.usage = 'Runs "clean" and "install" at once'; 6 | 7 | const napi = require('./util/napi.js'); 8 | 9 | function rebuild(gyp, argv, callback) { 10 | const package_json = gyp.package_json; 11 | let installArgs = []; 12 | const napi_build_version = napi.get_best_napi_build_version(package_json, gyp.opts); 13 | if (napi_build_version != null) installArgs = [napi.get_command_arg(napi_build_version)]; 14 | gyp.todo.unshift( 15 | { name: 'clean', args: [] }, 16 | { name: 'install', args: installArgs } 17 | ); 18 | process.nextTick(callback); 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Node-webkit-based module test 6 | 22 | 23 | 24 |

Node-webkit-based module test

25 | 26 | 27 | -------------------------------------------------------------------------------- /node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "index.html", 3 | "name": "nw-pre-gyp-module-test", 4 | "description": "Node-webkit-based module test.", 5 | "version": "0.0.1", 6 | "window": { 7 | "show": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/.esm-wrapper.mjs: -------------------------------------------------------------------------------- 1 | import mod from "./index.js"; 2 | 3 | export default mod; 4 | export const saslprep = mod.saslprep; 5 | -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/code-points-data.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare const _default: Buffer; 3 | export default _default; 4 | //# sourceMappingURL=code-points-data.d.ts.map -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/code-points-data.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"code-points-data.d.ts","sourceRoot":"","sources":["../src/code-points-data.ts"],"names":[],"mappings":";;AAEA,wBAKE"} -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/code-points-data.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"code-points-data.js","sourceRoot":"","sources":["../src/code-points-data.ts"],"names":[],"mappings":";;AAAA,+BAAkC;AAElC,kBAAe,IAAA,iBAAU,EACvB,MAAM,CAAC,IAAI,CACT,0nFAA0nF,EAC1nF,QAAQ,CACT,CACF,CAAC"} -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/code-points-src.d.ts: -------------------------------------------------------------------------------- 1 | export declare const unassigned_code_points: Set; 2 | export declare const commonly_mapped_to_nothing: Set; 3 | export declare const non_ASCII_space_characters: Set; 4 | export declare const prohibited_characters: Set; 5 | export declare const bidirectional_r_al: Set; 6 | export declare const bidirectional_l: Set; 7 | //# sourceMappingURL=code-points-src.d.ts.map -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/code-points-src.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"code-points-src.d.ts","sourceRoot":"","sources":["../src/code-points-src.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB,aA6YjC,CAAC;AAMH,eAAO,MAAM,0BAA0B,aAIrC,CAAC;AAMH,eAAO,MAAM,0BAA0B,aASrC,CAAC;AAMH,eAAO,MAAM,qBAAqB,aA6GhC,CAAC;AAMH,eAAO,MAAM,kBAAkB,aAmC7B,CAAC;AAMH,eAAO,MAAM,eAAe,aAyW1B,CAAC"} -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/generate-code-points.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | //# sourceMappingURL=generate-code-points.d.ts.map -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/generate-code-points.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"generate-code-points.d.ts","sourceRoot":"","sources":["../src/generate-code-points.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function saslprep(input: string, opts?: { 2 | allowUnassigned?: boolean; 3 | }): string; 4 | declare namespace saslprep { 5 | export var saslprep: typeof import("."); 6 | var _a: typeof import("."); 7 | export { _a as default }; 8 | } 9 | export = saslprep; 10 | //# sourceMappingURL=index.d.ts.map -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/index.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2DA,iBAAS,QAAQ,CACf,KAAK,EAAE,MAAM,EACb,IAAI,GAAE;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAO,GACvC,MAAM,CAuFR;kBA1FQ,QAAQ;;;;;AA8FjB,SAAS,QAAQ,CAAC"} -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/memory-code-points.d.ts: -------------------------------------------------------------------------------- 1 | import bitfield from 'sparse-bitfield'; 2 | export declare const unassigned_code_points: bitfield.BitFieldInstance; 3 | export declare const commonly_mapped_to_nothing: bitfield.BitFieldInstance; 4 | export declare const non_ASCII_space_characters: bitfield.BitFieldInstance; 5 | export declare const prohibited_characters: bitfield.BitFieldInstance; 6 | export declare const bidirectional_r_al: bitfield.BitFieldInstance; 7 | export declare const bidirectional_l: bitfield.BitFieldInstance; 8 | //# sourceMappingURL=memory-code-points.d.ts.map -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/memory-code-points.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"memory-code-points.d.ts","sourceRoot":"","sources":["../src/memory-code-points.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAkBvC,eAAO,MAAM,sBAAsB,2BAAS,CAAC;AAC7C,eAAO,MAAM,0BAA0B,2BAAS,CAAC;AACjD,eAAO,MAAM,0BAA0B,2BAAS,CAAC;AACjD,eAAO,MAAM,qBAAqB,2BAAS,CAAC;AAC5C,eAAO,MAAM,kBAAkB,2BAAS,CAAC;AACzC,eAAO,MAAM,eAAe,2BAAS,CAAC"} -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/memory-code-points.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"memory-code-points.js","sourceRoot":"","sources":["../src/memory-code-points.ts"],"names":[],"mappings":";;;;;;AAAA,sEAAuC;AACvC,0EAAwC;AAExC,IAAI,MAAM,GAAG,CAAC,CAAC;AAKf,SAAS,IAAI;IACX,MAAM,IAAI,GAAG,0BAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,IAAI,CAAC,CAAC;IAEZ,MAAM,UAAU,GAAG,0BAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IACvD,MAAM,IAAI,IAAI,CAAC;IAEf,OAAO,IAAA,yBAAQ,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;AAC1C,CAAC;AAEY,QAAA,sBAAsB,GAAG,IAAI,EAAE,CAAC;AAChC,QAAA,0BAA0B,GAAG,IAAI,EAAE,CAAC;AACpC,QAAA,0BAA0B,GAAG,IAAI,EAAE,CAAC;AACpC,QAAA,qBAAqB,GAAG,IAAI,EAAE,CAAC;AAC/B,QAAA,kBAAkB,GAAG,IAAI,EAAE,CAAC;AAC5B,QAAA,eAAe,GAAG,IAAI,EAAE,CAAC"} -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/util.d.ts: -------------------------------------------------------------------------------- 1 | export declare function range(from: number, to: number): number[]; 2 | //# sourceMappingURL=util.d.ts.map -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/util.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAGA,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAQxD"} -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/util.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.range = void 0; 4 | function range(from, to) { 5 | const list = new Array(to - from + 1); 6 | for (let i = 0; i < list.length; i += 1) { 7 | list[i] = from + i; 8 | } 9 | return list; 10 | } 11 | exports.range = range; 12 | //# sourceMappingURL=util.js.map -------------------------------------------------------------------------------- /node_modules/@mongodb-js/saslprep/dist/util.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAGA,SAAgB,KAAK,CAAC,IAAY,EAAE,EAAU;IAE5C,MAAM,IAAI,GAAG,IAAI,KAAK,CAAC,EAAE,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC;IAEtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACvC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;KACpB;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AARD,sBAQC"} -------------------------------------------------------------------------------- /node_modules/@types/node/assert/strict.d.ts: -------------------------------------------------------------------------------- 1 | declare module "assert/strict" { 2 | import { strict } from "node:assert"; 3 | export = strict; 4 | } 5 | declare module "node:assert/strict" { 6 | import { strict } from "node:assert"; 7 | export = strict; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@types/node/constants.d.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ 2 | declare module "constants" { 3 | import { constants as osConstants, SignalConstants } from "node:os"; 4 | import { constants as cryptoConstants } from "node:crypto"; 5 | import { constants as fsConstants } from "node:fs"; 6 | 7 | const exp: 8 | & typeof osConstants.errno 9 | & typeof osConstants.priority 10 | & SignalConstants 11 | & typeof cryptoConstants 12 | & typeof fsConstants; 13 | export = exp; 14 | } 15 | 16 | declare module "node:constants" { 17 | import constants = require("constants"); 18 | export = constants; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/@types/node/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: typeof globalThis; 2 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts4.8/assert/strict.d.ts: -------------------------------------------------------------------------------- 1 | declare module "assert/strict" { 2 | import { strict } from "node:assert"; 3 | export = strict; 4 | } 5 | declare module "node:assert/strict" { 6 | import { strict } from "node:assert"; 7 | export = strict; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts4.8/constants.d.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ 2 | declare module "constants" { 3 | import { constants as osConstants, SignalConstants } from "node:os"; 4 | import { constants as cryptoConstants } from "node:crypto"; 5 | import { constants as fsConstants } from "node:fs"; 6 | 7 | const exp: 8 | & typeof osConstants.errno 9 | & typeof osConstants.priority 10 | & SignalConstants 11 | & typeof cryptoConstants 12 | & typeof fsConstants; 13 | export = exp; 14 | } 15 | 16 | declare module "node:constants" { 17 | import constants = require("constants"); 18 | export = constants; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts4.8/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: typeof globalThis; 2 | -------------------------------------------------------------------------------- /node_modules/@types/webidl-conversions/README.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | > `npm install --save @types/webidl-conversions` 3 | 4 | # Summary 5 | This package contains type definitions for webidl-conversions (https://github.com/jsdom/webidl-conversions#readme). 6 | 7 | # Details 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webidl-conversions. 9 | 10 | ### Additional Details 11 | * Last updated: Mon, 25 Sep 2023 13:39:07 GMT 12 | * Dependencies: none 13 | * Global values: none 14 | 15 | # Credits 16 | These definitions were written by [ExE Boss](https://github.com/ExE-Boss), and [BendingBender](https://github.com/BendingBender). 17 | -------------------------------------------------------------------------------- /node_modules/@types/whatwg-url/README.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | > `npm install --save @types/whatwg-url` 3 | 4 | # Summary 5 | This package contains type definitions for whatwg-url (https://github.com/jsdom/whatwg-url#readme). 6 | 7 | # Details 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/whatwg-url. 9 | 10 | ### Additional Details 11 | * Last updated: Tue, 21 Jun 2022 16:31:40 GMT 12 | * Dependencies: [@types/webidl-conversions](https://npmjs.com/package/@types/webidl-conversions), [@types/node](https://npmjs.com/package/@types/node) 13 | * Global values: none 14 | 15 | # Credits 16 | These definitions were written by [Alexander Marks](https://github.com/aomarks), and [ExE Boss](https://github.com/ExE-Boss). 17 | -------------------------------------------------------------------------------- /node_modules/@types/whatwg-url/dist/URL-impl.d.ts: -------------------------------------------------------------------------------- 1 | declare class URLImpl { 2 | constructor( 3 | globalObject: object, 4 | constructorArgs: readonly [url: string, base?: string], 5 | privateData?: {}, 6 | ); 7 | 8 | href: string; 9 | readonly origin: string; 10 | protocol: string; 11 | username: string; 12 | password: string; 13 | host: string; 14 | hostname: string; 15 | port: string; 16 | pathname: string; 17 | search: string; 18 | readonly searchParams: URLSearchParams; 19 | hash: string; 20 | 21 | toJSON(): string; 22 | } 23 | export { URLImpl as implementation }; 24 | -------------------------------------------------------------------------------- /node_modules/@types/whatwg-url/webidl2js-wrapper.d.ts: -------------------------------------------------------------------------------- 1 | import * as URL from "./dist/URL"; 2 | import * as URLSearchParams from "./dist/URLSearchParams"; 3 | 4 | export { URL, URLSearchParams }; 5 | -------------------------------------------------------------------------------- /node_modules/abbrev/README.md: -------------------------------------------------------------------------------- 1 | # abbrev-js 2 | 3 | Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). 4 | 5 | Usage: 6 | 7 | var abbrev = require("abbrev"); 8 | abbrev("foo", "fool", "folding", "flop"); 9 | 10 | // returns: 11 | { fl: 'flop' 12 | , flo: 'flop' 13 | , flop: 'flop' 14 | , fol: 'folding' 15 | , fold: 'folding' 16 | , foldi: 'folding' 17 | , foldin: 'folding' 18 | , folding: 'folding' 19 | , foo: 'foo' 20 | , fool: 'fool' 21 | } 22 | 23 | This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. 24 | -------------------------------------------------------------------------------- /node_modules/abbrev/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "abbrev", 3 | "version": "1.1.1", 4 | "description": "Like ruby's abbrev module, but in js", 5 | "author": "Isaac Z. Schlueter ", 6 | "main": "abbrev.js", 7 | "scripts": { 8 | "test": "tap test.js --100", 9 | "preversion": "npm test", 10 | "postversion": "npm publish", 11 | "postpublish": "git push origin --all; git push origin --tags" 12 | }, 13 | "repository": "http://github.com/isaacs/abbrev-js", 14 | "license": "ISC", 15 | "devDependencies": { 16 | "tap": "^10.1" 17 | }, 18 | "files": [ 19 | "abbrev.js" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/agent-base/dist/src/promisify.d.ts: -------------------------------------------------------------------------------- 1 | import { ClientRequest, RequestOptions, AgentCallbackCallback, AgentCallbackPromise } from './index'; 2 | declare type LegacyCallback = (req: ClientRequest, opts: RequestOptions, fn: AgentCallbackCallback) => void; 3 | export default function promisify(fn: LegacyCallback): AgentCallbackPromise; 4 | export {}; 5 | -------------------------------------------------------------------------------- /node_modules/agent-base/dist/src/promisify.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | function promisify(fn) { 4 | return function (req, opts) { 5 | return new Promise((resolve, reject) => { 6 | fn.call(this, req, opts, (err, rtn) => { 7 | if (err) { 8 | reject(err); 9 | } 10 | else { 11 | resolve(rtn); 12 | } 13 | }); 14 | }); 15 | }; 16 | } 17 | exports.default = promisify; 18 | //# sourceMappingURL=promisify.js.map -------------------------------------------------------------------------------- /node_modules/agent-base/dist/src/promisify.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"promisify.js","sourceRoot":"","sources":["../../src/promisify.ts"],"names":[],"mappings":";;AAeA,SAAwB,SAAS,CAAC,EAAkB;IACnD,OAAO,UAAsB,GAAkB,EAAE,IAAoB;QACpE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACtC,EAAE,CAAC,IAAI,CACN,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,CAAC,GAA6B,EAAE,GAAyB,EAAE,EAAE;gBAC5D,IAAI,GAAG,EAAE;oBACR,MAAM,CAAC,GAAG,CAAC,CAAC;iBACZ;qBAAM;oBACN,OAAO,CAAC,GAAG,CAAC,CAAC;iBACb;YACF,CAAC,CACD,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AAjBD,4BAiBC"} -------------------------------------------------------------------------------- /node_modules/agent-base/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer / nwjs process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/ansi-regex/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = ({onlyFirst = false} = {}) => { 4 | const pattern = [ 5 | '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', 6 | '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))' 7 | ].join('|'); 8 | 9 | return new RegExp(pattern, onlyFirst ? undefined : 'g'); 10 | }; 11 | -------------------------------------------------------------------------------- /node_modules/aproba/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2.0.0 2 | * Drop support for 0.10 and 0.12. They haven't been in travis but still, 3 | since we _know_ we'll break with them now it's only polite to do a 4 | major bump. 5 | -------------------------------------------------------------------------------- /node_modules/are-we-there-yet/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | exports.TrackerGroup = require('./tracker-group.js') 3 | exports.Tracker = require('./tracker.js') 4 | exports.TrackerStream = require('./tracker-stream.js') 5 | -------------------------------------------------------------------------------- /node_modules/are-we-there-yet/lib/tracker-base.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | var EventEmitter = require('events').EventEmitter 3 | var util = require('util') 4 | 5 | var trackerId = 0 6 | var TrackerBase = module.exports = function (name) { 7 | EventEmitter.call(this) 8 | this.id = ++trackerId 9 | this.name = name 10 | } 11 | util.inherits(TrackerBase, EventEmitter) 12 | -------------------------------------------------------------------------------- /node_modules/balanced-match/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | tidelift: "npm/balanced-match" 2 | patreon: juliangruber 3 | -------------------------------------------------------------------------------- /node_modules/bcrypt/.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 | 11 | [{package.json,*.yml}] 12 | indent_style = space 13 | indent_size = 2 14 | 15 | [appveyor.yml] 16 | end_of_line = crlf 17 | 18 | [*.md] 19 | trim_trailing_whitespace = false 20 | -------------------------------------------------------------------------------- /node_modules/bcrypt/Makefile: -------------------------------------------------------------------------------- 1 | TESTS = test/*.js 2 | 3 | all: test 4 | 5 | build: clean compile 6 | 7 | compile: 8 | npm install . 9 | npm run install 10 | 11 | test: build 12 | @./node_modules/nodeunit/bin/nodeunit \ 13 | $(TESTS) 14 | 15 | clean: 16 | rm -Rf lib/bindings/ 17 | 18 | 19 | .PHONY: clean test build 20 | -------------------------------------------------------------------------------- /node_modules/bcrypt/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | As with any software, `bcrypt` is likely to have bugs. Please report any security vulnerabilities responsibly 4 | 5 | ## Supported Versions 6 | 7 | | Version | Supported | 8 | | ------- | ------------------ | 9 | | 5.0.x | :white_check_mark: | 10 | | < 5.0 | :x: | 11 | 12 | ## Reporting a Vulnerability 13 | 14 | If you are reporting a security vulnerability, please refrain from opening a GitHub issue and instead mail it to 15 | one of the maintainers listed in the README. 16 | -------------------------------------------------------------------------------- /node_modules/bcrypt/examples/forever_gen_salt.js: -------------------------------------------------------------------------------- 1 | var bcrypt = require('../bcrypt'); 2 | 3 | (function printSalt() { 4 | bcrypt.genSalt(10, function(err, salt) { 5 | console.log('salt: ' + salt); 6 | printSalt(); 7 | }); 8 | })() 9 | -------------------------------------------------------------------------------- /node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamaz-Chihab/node-restful-API-Project/741f10d84c6eaa88577ccd5c3ff7f373aca5d667/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node -------------------------------------------------------------------------------- /node_modules/bcrypt/test-docker.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -xe 4 | 5 | echo "Running on $(node -v)" 6 | 7 | # Cleanup 8 | rm -rf node_modules build-tmp-* lib/binding 9 | 10 | # Install build dependencies 11 | if [ -f /etc/alpine-release ]; then 12 | apk add --no-cache --virtual .build-deps make gcc g++ python3 13 | fi 14 | 15 | su node -c "npm test; npx node-pre-gyp package" 16 | -------------------------------------------------------------------------------- /node_modules/bson/etc/prepare.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | var cp = require('child_process'); 3 | var fs = require('fs'); 4 | 5 | var nodeMajorVersion = +process.version.match(/^v(\d+)\.\d+/)[1]; 6 | 7 | if (fs.existsSync('src') && nodeMajorVersion >= 10) { 8 | cp.spawnSync('npm', ['run', 'build'], { stdio: 'inherit', shell: true }); 9 | } else { 10 | if (!fs.existsSync('lib')) { 11 | console.warn('BSON: No compiled javascript present, the library is not installed correctly.'); 12 | if (nodeMajorVersion < 10) { 13 | console.warn( 14 | 'This library can only be compiled in nodejs version 10 or later, currently running: ' + 15 | nodeMajorVersion 16 | ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/bson/src/bson_value.ts: -------------------------------------------------------------------------------- 1 | import { BSON_MAJOR_VERSION } from './constants'; 2 | 3 | /** @public */ 4 | export abstract class BSONValue { 5 | /** @public */ 6 | public abstract get _bsontype(): string; 7 | 8 | /** @internal */ 9 | get [Symbol.for('@@mdb.bson.version')](): typeof BSON_MAJOR_VERSION { 10 | return BSON_MAJOR_VERSION; 11 | } 12 | 13 | /** @public */ 14 | public abstract inspect(): string; 15 | 16 | /** @internal */ 17 | abstract toExtendedJSON(): unknown; 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/bson/src/index.ts: -------------------------------------------------------------------------------- 1 | import * as BSON from './bson'; 2 | 3 | // Export all named properties from BSON to support 4 | // import { ObjectId, serialize } from 'bson'; 5 | // const { ObjectId, serialize } = require('bson'); 6 | export * from './bson'; 7 | 8 | // Export BSON as a namespace to support: 9 | // import { BSON } from 'bson'; 10 | // const { BSON } = require('bson'); 11 | export { BSON }; 12 | 13 | // BSON does **NOT** have a default export 14 | 15 | // The following will crash in es module environments 16 | // import BSON from 'bson'; 17 | 18 | // The following will work as expected, BSON as a namespace of all the APIs (BSON.ObjectId, BSON.serialize) 19 | // const BSON = require('bson'); 20 | -------------------------------------------------------------------------------- /node_modules/bson/vendor/text-encoding/index.js: -------------------------------------------------------------------------------- 1 | // This is free and unencumbered software released into the public domain. 2 | // See LICENSE.md for more information. 3 | 4 | var encoding = require("./lib/encoding.js"); 5 | 6 | module.exports = { 7 | TextEncoder: encoding.TextEncoder, 8 | TextDecoder: encoding.TextDecoder, 9 | }; 10 | -------------------------------------------------------------------------------- /node_modules/buffer-equal-constant-time/.npmignore: -------------------------------------------------------------------------------- 1 | .*.sw[mnop] 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /node_modules/buffer-equal-constant-time/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.11" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /node_modules/buffer-equal-constant-time/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "buffer-equal-constant-time", 3 | "version": "1.0.1", 4 | "description": "Constant-time comparison of Buffers", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "mocha test.js" 8 | }, 9 | "repository": "git@github.com:goinstant/buffer-equal-constant-time.git", 10 | "keywords": [ 11 | "buffer", 12 | "equal", 13 | "constant-time", 14 | "crypto" 15 | ], 16 | "author": "GoInstant Inc., a salesforce.com company", 17 | "license": "BSD-3-Clause", 18 | "devDependencies": { 19 | "mocha": "~1.15.1" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/call-bind/.eslintignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/call-bind/README.md: -------------------------------------------------------------------------------- 1 | # call-bind 2 | Robustly `.call.bind()` a function. 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/chownr/README.md: -------------------------------------------------------------------------------- 1 | Like `chown -R`. 2 | 3 | Takes the same arguments as `fs.chown()` 4 | -------------------------------------------------------------------------------- /node_modules/color-support/bin.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var colorSupport = require('./')({alwaysReturn: true }) 3 | console.log(JSON.stringify(colorSupport, null, 2)) 4 | -------------------------------------------------------------------------------- /node_modules/color-support/browser.js: -------------------------------------------------------------------------------- 1 | module.exports = colorSupport({ alwaysReturn: true }, colorSupport) 2 | 3 | function colorSupport(options, obj) { 4 | obj = obj || {} 5 | options = options || {} 6 | obj.level = 0 7 | obj.hasBasic = false 8 | obj.has256 = false 9 | obj.has16m = false 10 | if (!options.alwaysReturn) { 11 | return false 12 | } 13 | return obj 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/concat-map/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /node_modules/concat-map/example/map.js: -------------------------------------------------------------------------------- 1 | var concatMap = require('../'); 2 | var xs = [ 1, 2, 3, 4, 5, 6 ]; 3 | var ys = concatMap(xs, function (x) { 4 | return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; 5 | }); 6 | console.dir(ys); 7 | -------------------------------------------------------------------------------- /node_modules/concat-map/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (xs, fn) { 2 | var res = []; 3 | for (var i = 0; i < xs.length; i++) { 4 | var x = fn(xs[i], i); 5 | if (isArray(x)) res.push.apply(res, x); 6 | else res.push(x); 7 | } 8 | return res; 9 | }; 10 | 11 | var isArray = Array.isArray || function (xs) { 12 | return Object.prototype.toString.call(xs) === '[object Array]'; 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/content-type/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.5 / 2023-01-29 2 | ================== 3 | 4 | * perf: skip value escaping when unnecessary 5 | 6 | 1.0.4 / 2017-09-11 7 | ================== 8 | 9 | * perf: skip parameter parsing when no parameters 10 | 11 | 1.0.3 / 2017-09-10 12 | ================== 13 | 14 | * perf: remove argument reassignment 15 | 16 | 1.0.2 / 2016-05-09 17 | ================== 18 | 19 | * perf: enable strict mode 20 | 21 | 1.0.1 / 2015-02-13 22 | ================== 23 | 24 | * Improve missing `Content-Type` header error message 25 | 26 | 1.0.0 / 2015-02-01 27 | ================== 28 | 29 | * Initial implementation, derived from `media-typer@0.3.0` 30 | -------------------------------------------------------------------------------- /node_modules/cookie-signature/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/debug/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/debug/node.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/node'); 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/delegates/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /node_modules/delegates/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2015-12-14 3 | ================== 4 | 5 | * Merge pull request #12 from kasicka/master 6 | * Add license text 7 | 8 | 0.1.0 / 2014-10-17 9 | ================== 10 | 11 | * adds `.fluent()` to api 12 | 13 | 0.0.3 / 2014-01-13 14 | ================== 15 | 16 | * fix receiver for .method() 17 | 18 | 0.0.2 / 2014-01-13 19 | ================== 20 | 21 | * Object.defineProperty() sucks 22 | * Initial commit 23 | -------------------------------------------------------------------------------- /node_modules/delegates/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec \ 6 | --bail 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/delegates/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "delegates", 3 | "version": "1.0.0", 4 | "repository": "visionmedia/node-delegates", 5 | "description": "delegate methods and accessors to another property", 6 | "keywords": ["delegate", "delegation"], 7 | "dependencies": {}, 8 | "devDependencies": { 9 | "mocha": "*", 10 | "should": "*" 11 | }, 12 | "license": "MIT" 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/detect-libc/index.d.ts: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Lovell Fuller and others. 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | export const GLIBC: 'glibc'; 5 | export const MUSL: 'musl'; 6 | 7 | export function family(): Promise; 8 | export function familySync(): string | null; 9 | 10 | export function isNonGlibcLinux(): Promise; 11 | export function isNonGlibcLinuxSync(): boolean; 12 | 13 | export function version(): Promise; 14 | export function versionSync(): string | null; 15 | -------------------------------------------------------------------------------- /node_modules/detect-libc/lib/process.js: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Lovell Fuller and others. 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | 'use strict'; 5 | 6 | const isLinux = () => process.platform === 'linux'; 7 | 8 | let report = null; 9 | const getReport = () => { 10 | if (!report) { 11 | /* istanbul ignore next */ 12 | report = isLinux() && process.report 13 | ? process.report.getReport() 14 | : {}; 15 | } 16 | return report; 17 | }; 18 | 19 | module.exports = { isLinux, getReport }; 20 | -------------------------------------------------------------------------------- /node_modules/dotenv/config.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/dotenv/config.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | require('./lib/main').config( 3 | Object.assign( 4 | {}, 5 | require('./lib/env-options'), 6 | require('./lib/cli-options')(process.argv) 7 | ) 8 | ) 9 | })() 10 | -------------------------------------------------------------------------------- /node_modules/dotenv/lib/cli-options.js: -------------------------------------------------------------------------------- 1 | const re = /^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/ 2 | 3 | module.exports = function optionMatcher (args) { 4 | return args.reduce(function (acc, cur) { 5 | const matches = cur.match(re) 6 | if (matches) { 7 | acc[matches[1]] = matches[2] 8 | } 9 | return acc 10 | }, {}) 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/dotenv/lib/env-options.js: -------------------------------------------------------------------------------- 1 | // ../config.js accepts options via environment variables 2 | const options = {} 3 | 4 | if (process.env.DOTENV_CONFIG_ENCODING != null) { 5 | options.encoding = process.env.DOTENV_CONFIG_ENCODING 6 | } 7 | 8 | if (process.env.DOTENV_CONFIG_PATH != null) { 9 | options.path = process.env.DOTENV_CONFIG_PATH 10 | } 11 | 12 | if (process.env.DOTENV_CONFIG_DEBUG != null) { 13 | options.debug = process.env.DOTENV_CONFIG_DEBUG 14 | } 15 | 16 | if (process.env.DOTENV_CONFIG_OVERRIDE != null) { 17 | options.override = process.env.DOTENV_CONFIG_OVERRIDE 18 | } 19 | 20 | if (process.env.DOTENV_CONFIG_DOTENV_KEY != null) { 21 | options.DOTENV_KEY = process.env.DOTENV_CONFIG_DOTENV_KEY 22 | } 23 | 24 | module.exports = options 25 | -------------------------------------------------------------------------------- /node_modules/ecdsa-sig-formatter/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @omsmith 2 | -------------------------------------------------------------------------------- /node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | function getParamSize(keySize) { 4 | var result = ((keySize / 8) | 0) + (keySize % 8 === 0 ? 0 : 1); 5 | return result; 6 | } 7 | 8 | var paramBytesForAlg = { 9 | ES256: getParamSize(256), 10 | ES384: getParamSize(384), 11 | ES512: getParamSize(521) 12 | }; 13 | 14 | function getParamBytesForAlg(alg) { 15 | var paramBytes = paramBytesForAlg[alg]; 16 | if (paramBytes) { 17 | return paramBytes; 18 | } 19 | 20 | throw new Error('Unknown algorithm "' + alg + '"'); 21 | } 22 | 23 | module.exports = getParamBytesForAlg; 24 | -------------------------------------------------------------------------------- /node_modules/emoji-regex/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'emoji-regex' { 2 | function emojiRegex(): RegExp; 3 | 4 | export default emojiRegex; 5 | } 6 | 7 | declare module 'emoji-regex/text' { 8 | function emojiRegex(): RegExp; 9 | 10 | export default emojiRegex; 11 | } 12 | 13 | declare module 'emoji-regex/es2015' { 14 | function emojiRegex(): RegExp; 15 | 16 | export default emojiRegex; 17 | } 18 | 19 | declare module 'emoji-regex/es2015/text' { 20 | function emojiRegex(): RegExp; 21 | 22 | export default emojiRegex; 23 | } 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/fs.realpath/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fs.realpath", 3 | "version": "1.0.0", 4 | "description": "Use node's fs.realpath, but fall back to the JS implementation if the native one fails", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": {}, 8 | "scripts": { 9 | "test": "tap test/*.js --cov" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/isaacs/fs.realpath.git" 14 | }, 15 | "keywords": [ 16 | "realpath", 17 | "fs", 18 | "polyfill" 19 | ], 20 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 21 | "license": "ISC", 22 | "files": [ 23 | "old.js", 24 | "index.js" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/function-bind/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var implementation = require('./implementation'); 4 | 5 | module.exports = Function.prototype.bind || implementation; 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/gauge/base-theme.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | var spin = require('./spin.js') 3 | var progressBar = require('./progress-bar.js') 4 | 5 | module.exports = { 6 | activityIndicator: function (values, theme, width) { 7 | if (values.spun == null) return 8 | return spin(theme, values.spun) 9 | }, 10 | progressbar: function (values, theme, width) { 11 | if (values.completed == null) return 12 | return progressBar(theme, width, values.completed) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/gauge/error.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | var util = require('util') 3 | 4 | var User = exports.User = function User (msg) { 5 | var err = new Error(msg) 6 | Error.captureStackTrace(err, User) 7 | err.code = 'EGAUGE' 8 | return err 9 | } 10 | 11 | exports.MissingTemplateValue = function MissingTemplateValue (item, values) { 12 | var err = new User(util.format('Missing template value "%s"', item.type)) 13 | Error.captureStackTrace(err, MissingTemplateValue) 14 | err.template = item 15 | err.values = values 16 | return err 17 | } 18 | 19 | exports.Internal = function Internal (msg) { 20 | var err = new Error(msg) 21 | Error.captureStackTrace(err, Internal) 22 | err.code = 'EGAUGEINTERNAL' 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/gauge/has-color.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | var colorSupport = require('color-support') 3 | 4 | module.exports = colorSupport().hasBasic 5 | -------------------------------------------------------------------------------- /node_modules/gauge/process.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | // this exists so we can replace it during testing 3 | module.exports = process 4 | -------------------------------------------------------------------------------- /node_modules/gauge/set-immediate.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | var process = require('./process') 3 | try { 4 | module.exports = setImmediate 5 | } catch (ex) { 6 | module.exports = process.nextTick 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/gauge/set-interval.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | // this exists so we can replace it during testing 3 | module.exports = setInterval 4 | -------------------------------------------------------------------------------- /node_modules/gauge/spin.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | module.exports = function spin (spinstr, spun) { 4 | return spinstr[spun % spinstr.length] 5 | } 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/has-proto/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/has-proto/.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-proto 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 | -------------------------------------------------------------------------------- /node_modules/has-proto/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = { 4 | foo: {} 5 | }; 6 | 7 | var $Object = Object; 8 | 9 | module.exports = function hasProto() { 10 | return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/has-proto/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | var hasProto = require('../'); 5 | 6 | test('hasProto', function (t) { 7 | var result = hasProto(); 8 | t.equal(typeof result, 'boolean', 'returns a boolean (' + result + ')'); 9 | 10 | var obj = { __proto__: null }; 11 | if (result) { 12 | t.notOk('toString' in obj, 'null object lacks toString'); 13 | } else { 14 | t.ok('toString' in obj, 'without proto, null object has toString'); 15 | t.equal(obj.__proto__, null); // eslint-disable-line no-proto 16 | } 17 | 18 | t.end(); 19 | }); 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/has-unicode/index.js: -------------------------------------------------------------------------------- 1 | "use strict" 2 | var os = require("os") 3 | 4 | var hasUnicode = module.exports = function () { 5 | // Recent Win32 platforms (>XP) CAN support unicode in the console but 6 | // don't have to, and in non-english locales often use traditional local 7 | // code pages. There's no way, short of windows system calls or execing 8 | // the chcp command line program to figure this out. As such, we default 9 | // this to false and encourage your users to override it via config if 10 | // appropriate. 11 | if (os.type() == "Windows_NT") { return false } 12 | 13 | var isUTF8 = /UTF-?8$/i 14 | var ctype = process.env.LC_ALL || process.env.LC_CTYPE || process.env.LANG 15 | return isUTF8.test(ctype) 16 | } 17 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/has/src/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var hasOwnProperty = {}.hasOwnProperty; 4 | var call = Function.prototype.call; 5 | 6 | module.exports = call.bind ? call.bind(hasOwnProperty) : function (O, P) { 7 | return call.call(hasOwnProperty, O, P); 8 | }; 9 | -------------------------------------------------------------------------------- /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['throws'](function () { 10 | has(null, 'throws'); 11 | }, TypeError, 'calling has on null throws TypeError'); 12 | t['throws'](function () { 13 | has(void 0, 'throws'); 14 | }, TypeError, 'calling has on undefined throws TypeError'); 15 | t.end(); 16 | }); 17 | -------------------------------------------------------------------------------- /node_modules/https-proxy-agent/dist/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __importDefault = (this && this.__importDefault) || function (mod) { 3 | return (mod && mod.__esModule) ? mod : { "default": mod }; 4 | }; 5 | const agent_1 = __importDefault(require("./agent")); 6 | function createHttpsProxyAgent(opts) { 7 | return new agent_1.default(opts); 8 | } 9 | (function (createHttpsProxyAgent) { 10 | createHttpsProxyAgent.HttpsProxyAgent = agent_1.default; 11 | createHttpsProxyAgent.prototype = agent_1.default.prototype; 12 | })(createHttpsProxyAgent || (createHttpsProxyAgent = {})); 13 | module.exports = createHttpsProxyAgent; 14 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /node_modules/https-proxy-agent/dist/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAKA,oDAAuC;AAEvC,SAAS,qBAAqB,CAC7B,IAA2D;IAE3D,OAAO,IAAI,eAAgB,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC;AAED,WAAU,qBAAqB;IAoBjB,qCAAe,GAAG,eAAgB,CAAC;IAEhD,qBAAqB,CAAC,SAAS,GAAG,eAAgB,CAAC,SAAS,CAAC;AAC9D,CAAC,EAvBS,qBAAqB,KAArB,qBAAqB,QAuB9B;AAED,iBAAS,qBAAqB,CAAC"} -------------------------------------------------------------------------------- /node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { Readable } from 'stream'; 3 | export interface ProxyResponse { 4 | statusCode: number; 5 | buffered: Buffer; 6 | } 7 | export default function parseProxyResponse(socket: Readable): Promise; 8 | -------------------------------------------------------------------------------- /node_modules/https-proxy-agent/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer / nwjs process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/ip/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ip", 3 | "version": "2.0.0", 4 | "author": "Fedor Indutny ", 5 | "homepage": "https://github.com/indutny/node-ip", 6 | "repository": { 7 | "type": "git", 8 | "url": "http://github.com/indutny/node-ip.git" 9 | }, 10 | "files": [ 11 | "lib", 12 | "README.md" 13 | ], 14 | "main": "lib/ip", 15 | "devDependencies": { 16 | "eslint": "^8.15.0", 17 | "mocha": "^10.0.0" 18 | }, 19 | "scripts": { 20 | "lint": "eslint lib/*.js test/*.js", 21 | "test": "npm run lint && mocha --reporter spec test/*-test.js", 22 | "fix": "npm run lint -- --fix" 23 | }, 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/is-fullwidth-code-point/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms). 3 | 4 | @param codePoint - The [code point](https://en.wikipedia.org/wiki/Code_point) of a character. 5 | 6 | @example 7 | ``` 8 | import isFullwidthCodePoint from 'is-fullwidth-code-point'; 9 | 10 | isFullwidthCodePoint('谢'.codePointAt(0)); 11 | //=> true 12 | 13 | isFullwidthCodePoint('a'.codePointAt(0)); 14 | //=> false 15 | ``` 16 | */ 17 | export default function isFullwidthCodePoint(codePoint: number): boolean; 18 | -------------------------------------------------------------------------------- /node_modules/jsonwebtoken/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | decode: require('./decode'), 3 | verify: require('./verify'), 4 | sign: require('./sign'), 5 | JsonWebTokenError: require('./lib/JsonWebTokenError'), 6 | NotBeforeError: require('./lib/NotBeforeError'), 7 | TokenExpiredError: require('./lib/TokenExpiredError'), 8 | }; 9 | -------------------------------------------------------------------------------- /node_modules/jsonwebtoken/lib/JsonWebTokenError.js: -------------------------------------------------------------------------------- 1 | var JsonWebTokenError = function (message, error) { 2 | Error.call(this, message); 3 | if(Error.captureStackTrace) { 4 | Error.captureStackTrace(this, this.constructor); 5 | } 6 | this.name = 'JsonWebTokenError'; 7 | this.message = message; 8 | if (error) this.inner = error; 9 | }; 10 | 11 | JsonWebTokenError.prototype = Object.create(Error.prototype); 12 | JsonWebTokenError.prototype.constructor = JsonWebTokenError; 13 | 14 | module.exports = JsonWebTokenError; 15 | -------------------------------------------------------------------------------- /node_modules/jsonwebtoken/lib/NotBeforeError.js: -------------------------------------------------------------------------------- 1 | var JsonWebTokenError = require('./JsonWebTokenError'); 2 | 3 | var NotBeforeError = function (message, date) { 4 | JsonWebTokenError.call(this, message); 5 | this.name = 'NotBeforeError'; 6 | this.date = date; 7 | }; 8 | 9 | NotBeforeError.prototype = Object.create(JsonWebTokenError.prototype); 10 | 11 | NotBeforeError.prototype.constructor = NotBeforeError; 12 | 13 | module.exports = NotBeforeError; -------------------------------------------------------------------------------- /node_modules/jsonwebtoken/lib/TokenExpiredError.js: -------------------------------------------------------------------------------- 1 | var JsonWebTokenError = require('./JsonWebTokenError'); 2 | 3 | var TokenExpiredError = function (message, expiredAt) { 4 | JsonWebTokenError.call(this, message); 5 | this.name = 'TokenExpiredError'; 6 | this.expiredAt = expiredAt; 7 | }; 8 | 9 | TokenExpiredError.prototype = Object.create(JsonWebTokenError.prototype); 10 | 11 | TokenExpiredError.prototype.constructor = TokenExpiredError; 12 | 13 | module.exports = TokenExpiredError; -------------------------------------------------------------------------------- /node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js: -------------------------------------------------------------------------------- 1 | const semver = require('semver'); 2 | 3 | module.exports = semver.satisfies(process.version, '>=15.7.0'); 4 | -------------------------------------------------------------------------------- /node_modules/jsonwebtoken/lib/psSupported.js: -------------------------------------------------------------------------------- 1 | var semver = require('semver'); 2 | 3 | module.exports = semver.satisfies(process.version, '^6.12.0 || >=8.0.0'); 4 | -------------------------------------------------------------------------------- /node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js: -------------------------------------------------------------------------------- 1 | const semver = require('semver'); 2 | 3 | module.exports = semver.satisfies(process.version, '>=16.9.0'); 4 | -------------------------------------------------------------------------------- /node_modules/jsonwebtoken/lib/timespan.js: -------------------------------------------------------------------------------- 1 | var ms = require('ms'); 2 | 3 | module.exports = function (time, iat) { 4 | var timestamp = iat || Math.floor(Date.now() / 1000); 5 | 6 | if (typeof time === 'string') { 7 | var milliseconds = ms(time); 8 | if (typeof milliseconds === 'undefined') { 9 | return; 10 | } 11 | return Math.floor(timestamp + milliseconds / 1000); 12 | } else if (typeof time === 'number') { 13 | return timestamp + time; 14 | } else { 15 | return; 16 | } 17 | 18 | }; -------------------------------------------------------------------------------- /node_modules/jws/index.js: -------------------------------------------------------------------------------- 1 | /*global exports*/ 2 | var SignStream = require('./lib/sign-stream'); 3 | var VerifyStream = require('./lib/verify-stream'); 4 | 5 | var ALGORITHMS = [ 6 | 'HS256', 'HS384', 'HS512', 7 | 'RS256', 'RS384', 'RS512', 8 | 'PS256', 'PS384', 'PS512', 9 | 'ES256', 'ES384', 'ES512' 10 | ]; 11 | 12 | exports.ALGORITHMS = ALGORITHMS; 13 | exports.sign = SignStream.sign; 14 | exports.verify = VerifyStream.verify; 15 | exports.decode = VerifyStream.decode; 16 | exports.isValid = VerifyStream.isValid; 17 | exports.createSign = function createSign(opts) { 18 | return new SignStream(opts); 19 | }; 20 | exports.createVerify = function createVerify(opts) { 21 | return new VerifyStream(opts); 22 | }; 23 | -------------------------------------------------------------------------------- /node_modules/jws/lib/tostring.js: -------------------------------------------------------------------------------- 1 | /*global module*/ 2 | var Buffer = require('buffer').Buffer; 3 | 4 | module.exports = function toString(obj) { 5 | if (typeof obj === 'string') 6 | return obj; 7 | if (typeof obj === 'number' || Buffer.isBuffer(obj)) 8 | return obj.toString(); 9 | return JSON.stringify(obj); 10 | }; 11 | -------------------------------------------------------------------------------- /node_modules/lodash.includes/README.md: -------------------------------------------------------------------------------- 1 | # lodash.includes v4.3.0 2 | 3 | The [lodash](https://lodash.com/) method `_.includes` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.includes 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var includes = require('lodash.includes'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#includes) or [package source](https://github.com/lodash/lodash/blob/4.3.0-npm-packages/lodash.includes) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/lodash.isboolean/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isboolean v3.0.3 2 | 3 | The [lodash](https://lodash.com/) method `_.isBoolean` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isboolean 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isBoolean = require('lodash.isboolean'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isBoolean) or [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash.isboolean) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/lodash.isinteger/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isinteger v4.0.4 2 | 3 | The [lodash](https://lodash.com/) method `_.isInteger` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isinteger 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isInteger = require('lodash.isinteger'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isInteger) or [package source](https://github.com/lodash/lodash/blob/4.0.4-npm-packages/lodash.isinteger) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/lodash.isnumber/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isnumber v3.0.3 2 | 3 | The [lodash](https://lodash.com/) method `_.isNumber` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isnumber 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isNumber = require('lodash.isnumber'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isNumber) or [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash.isnumber) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/lodash.isplainobject/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isplainobject v4.0.6 2 | 3 | The [lodash](https://lodash.com/) method `_.isPlainObject` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isplainobject 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isPlainObject = require('lodash.isplainobject'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.isplainobject) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/lodash.isstring/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isstring v4.0.1 2 | 3 | The [lodash](https://lodash.com/) method `_.isString` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isstring 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isString = require('lodash.isstring'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isString) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.isstring) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/lodash.once/README.md: -------------------------------------------------------------------------------- 1 | # lodash.once v4.1.1 2 | 3 | The [lodash](https://lodash.com/) method `_.once` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.once 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var once = require('lodash.once'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#once) or [package source](https://github.com/lodash/lodash/blob/4.1.1-npm-packages/lodash.once) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/make-dir/node_modules/.bin/semver: -------------------------------------------------------------------------------- 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/../semver/bin/semver.js" "$@" 10 | else 11 | exec node "$basedir/../semver/bin/semver.js" "$@" 12 | fi 13 | -------------------------------------------------------------------------------- /node_modules/make-dir/node_modules/.bin/semver.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%\..\semver\bin\semver.js" %* 18 | -------------------------------------------------------------------------------- /node_modules/make-dir/node_modules/semver/range.bnf: -------------------------------------------------------------------------------- 1 | range-set ::= range ( logical-or range ) * 2 | logical-or ::= ( ' ' ) * '||' ( ' ' ) * 3 | range ::= hyphen | simple ( ' ' simple ) * | '' 4 | hyphen ::= partial ' - ' partial 5 | simple ::= primitive | partial | tilde | caret 6 | primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial 7 | partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? 8 | xr ::= 'x' | 'X' | '*' | nr 9 | nr ::= '0' | [1-9] ( [0-9] ) * 10 | tilde ::= '~' partial 11 | caret ::= '^' partial 12 | qualifier ::= ( '-' pre )? ( '+' build )? 13 | pre ::= parts 14 | build ::= parts 15 | parts ::= part ( '.' part ) * 16 | part ::= nr | [-0-9A-Za-z]+ 17 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/memory-pager/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '4' 4 | - '6' 5 | -------------------------------------------------------------------------------- /node_modules/memory-pager/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "memory-pager", 3 | "version": "1.5.0", 4 | "description": "Access memory using small fixed sized buffers", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": { 8 | "standard": "^9.0.0", 9 | "tape": "^4.6.3" 10 | }, 11 | "scripts": { 12 | "test": "standard && tape test.js" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "https://github.com/mafintosh/memory-pager.git" 17 | }, 18 | "author": "Mathias Buus (@mafintosh)", 19 | "license": "MIT", 20 | "bugs": { 21 | "url": "https://github.com/mafintosh/memory-pager/issues" 22 | }, 23 | "homepage": "https://github.com/mafintosh/memory-pager" 24 | } 25 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/mime/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamaz-Chihab/node-restful-API-Project/741f10d84c6eaa88577ccd5c3ff7f373aca5d667/node_modules/mime/.npmignore -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/mkdirp/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changers Lorgs! 2 | 3 | ## 1.0 4 | 5 | Full rewrite. Essentially a brand new module. 6 | 7 | - Return a promise instead of taking a callback. 8 | - Use native `fs.mkdir(path, { recursive: true })` when available. 9 | - Drop support for outdated Node.js versions. (Technically still works on 10 | Node.js v8, but only 10 and above are officially supported.) 11 | 12 | ## 0.x 13 | 14 | Original and most widely used recursive directory creation implementation 15 | in JavaScript, dating back to 2010. 16 | -------------------------------------------------------------------------------- /node_modules/mkdirp/lib/use-native.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs') 2 | 3 | const version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version 4 | const versArr = version.replace(/^v/, '').split('.') 5 | const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12 6 | 7 | const useNative = !hasNative ? () => false : opts => opts.mkdir === fs.mkdir 8 | const useNativeSync = !hasNative ? () => false : opts => opts.mkdirSync === fs.mkdirSync 9 | 10 | module.exports = {useNative, useNativeSync} 11 | -------------------------------------------------------------------------------- /node_modules/mongodb-connection-string-url/.esm-wrapper.mjs: -------------------------------------------------------------------------------- 1 | import mod from "./lib/index.js"; 2 | 3 | export default mod["default"]; 4 | export const CommaAndColonSeparatedRecord = mod.CommaAndColonSeparatedRecord; 5 | export const ConnectionString = mod.ConnectionString; 6 | export const redactConnectionString = mod.redactConnectionString; 7 | -------------------------------------------------------------------------------- /node_modules/mongodb-connection-string-url/lib/redact.d.ts: -------------------------------------------------------------------------------- 1 | import ConnectionString from './index'; 2 | export interface ConnectionStringRedactionOptions { 3 | redactUsernames?: boolean; 4 | replacementString?: string; 5 | } 6 | export declare function redactValidConnectionString(inputUrl: Readonly, options?: ConnectionStringRedactionOptions): ConnectionString; 7 | export declare function redactConnectionString(uri: string, options?: ConnectionStringRedactionOptions): string; 8 | -------------------------------------------------------------------------------- /node_modules/mongodb/etc/prepare.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | var cp = require('child_process'); 3 | var fs = require('fs'); 4 | var os = require('os'); 5 | 6 | if (fs.existsSync('src')) { 7 | cp.spawn('npm', ['run', 'build:dts'], { stdio: 'inherit', shell: os.platform() === 'win32' }); 8 | } else { 9 | if (!fs.existsSync('lib')) { 10 | console.warn('MongoDB: No compiled javascript present, the driver is not installed correctly.'); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/mongodb/lib/cmap/auth/mongodb_oidc/aws_service_workflow.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"aws_service_workflow.js","sourceRoot":"","sources":["../../../../src/cmap/auth/mongodb_oidc/aws_service_workflow.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AAEzB,0CAA+C;AAC/C,yDAAqD;AAErD,8DAA8D;AAC9D,MAAM,mBAAmB,GAAG,6DAA6D,CAAC;AAE1F;;;;GAIG;AACH,MAAa,kBAAmB,SAAQ,kCAAe;IACrD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ;QACZ,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;QAC1D,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,qBAAa,CAAC,mBAAmB,CAAC,CAAC;SAC9C;QACD,OAAO,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;CACF;AAfD,gDAeC"} -------------------------------------------------------------------------------- /node_modules/mongodb/lib/cmap/auth/plain.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"plain.js","sourceRoot":"","sources":["../../../src/cmap/auth/plain.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AACpC,uCAA2D;AAC3D,uCAAiC;AACjC,mDAAiE;AAEjE,MAAa,KAAM,SAAQ,4BAAY;IAC5B,KAAK,CAAC,IAAI,CAAC,WAAwB;QAC1C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,WAAW,CAAC;QAChD,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,IAAI,oCAA4B,CAAC,uCAAuC,CAAC,CAAC;SACjF;QAED,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC;QAE3C,MAAM,OAAO,GAAG,IAAI,aAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,OAAO,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC1E,MAAM,OAAO,GAAG;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,OAAO;YAClB,OAAO,EAAE,OAAO;YAChB,aAAa,EAAE,CAAC;SACjB,CAAC;QAEF,MAAM,UAAU,CAAC,YAAY,CAAC,IAAA,UAAE,EAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC1E,CAAC;CACF;AAnBD,sBAmBC"} -------------------------------------------------------------------------------- /node_modules/mongodb/lib/cmap/auth/providers.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/cmap/auth/providers.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACD,QAAA,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,SAAS;IAC1B,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,OAAO;IACtB,kBAAkB,EAAE,aAAa;IACjC,oBAAoB,EAAE,eAAe;IACrC,YAAY,EAAE,cAAc;IAC5B,oBAAoB;IACpB,YAAY,EAAE,cAAc;CACpB,CAAC,CAAC;AAKZ,gBAAgB;AACH,QAAA,4BAA4B,GAAG,IAAI,GAAG,CAAgB;IACjE,qBAAa,CAAC,cAAc;IAC5B,qBAAa,CAAC,WAAW;IACzB,qBAAa,CAAC,YAAY;IAC1B,qBAAa,CAAC,YAAY;CAC3B,CAAC,CAAC"} -------------------------------------------------------------------------------- /node_modules/mongodb/lib/cmap/wire_protocol/constants.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/cmap/wire_protocol/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,0BAA0B,GAAG,CAAC,CAAC;AAC/B,QAAA,0BAA0B,GAAG,EAAE,CAAC;AAChC,QAAA,6BAA6B,GAAG,EAAE,CAAC;AACnC,QAAA,+BAA+B,GAAG,KAAK,CAAC;AACxC,QAAA,QAAQ,GAAG,CAAC,CAAC;AACb,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,SAAS,GAAG,IAAI,CAAC;AACjB,QAAA,aAAa,GAAG,IAAI,CAAC;AACrB,QAAA,MAAM,GAAG,IAAI,CAAC"} -------------------------------------------------------------------------------- /node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ListSearchIndexesCursor = void 0; 4 | const aggregation_cursor_1 = require("./aggregation_cursor"); 5 | /** @public */ 6 | class ListSearchIndexesCursor extends aggregation_cursor_1.AggregationCursor { 7 | /** @internal */ 8 | constructor({ fullNamespace: ns, client }, name, options = {}) { 9 | const pipeline = name == null ? [{ $listSearchIndexes: {} }] : [{ $listSearchIndexes: { name } }]; 10 | super(client, ns, pipeline, options); 11 | } 12 | } 13 | exports.ListSearchIndexesCursor = ListSearchIndexesCursor; 14 | //# sourceMappingURL=list_search_indexes_cursor.js.map -------------------------------------------------------------------------------- /node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"list_search_indexes_cursor.js","sourceRoot":"","sources":["../../src/cursor/list_search_indexes_cursor.ts"],"names":[],"mappings":";;;AAEA,6DAAyD;AAKzD,cAAc;AACd,MAAa,uBAAwB,SAAQ,sCAAmC;IAC9E,gBAAgB;IAChB,YACE,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAc,EACzC,IAAmB,EACnB,UAAoC,EAAE;QAEtC,MAAM,QAAQ,GACZ,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACnF,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;CACF;AAXD,0DAWC"} -------------------------------------------------------------------------------- /node_modules/mongodb/lib/mongo_types.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"mongo_types.js","sourceRoot":"","sources":["../src/mongo_types.ts"],"names":[],"mappings":";;;AACA,mCAAsC;AA2YtC;;;GAGG;AAEH,MAAa,iBAAoD,SAAQ,qBAAY;IAKnF,gBAAgB;IACN,UAAU,CAClB,KAAwB,EACxB,GAAG,IAAkC;QAErC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;QAC1B,IAAI,IAAI,CAAC,SAAS;YAAE,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACvE,CAAC;CACF;AAbD,8CAaC;AAED,cAAc;AACd,MAAa,iBAAkB,SAAQ,iBAAqC;CAAG;AAA/E,8CAA+E"} -------------------------------------------------------------------------------- /node_modules/mongodb/lib/operations/remove_user.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"remove_user.js","sourceRoot":"","sources":["../../src/operations/remove_user.ts"],"names":[],"mappings":";;;AAIA,uCAAmF;AACnF,2CAAoD;AAKpD,gBAAgB;AAChB,MAAa,mBAAoB,SAAQ,kCAAiC;IAIxE,YAAY,EAAM,EAAE,QAAgB,EAAE,OAA0B;QAC9D,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAA2B;QAE3B,KAAK,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,EAAE;YAC/E,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,kDAmBC;AAED,IAAA,yBAAa,EAAC,mBAAmB,EAAE,CAAC,kBAAM,CAAC,eAAe,CAAC,CAAC,CAAC"} -------------------------------------------------------------------------------- /node_modules/mongodb/lib/operations/run_command.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"run_command.js","sourceRoot":"","sources":["../../src/operations/run_command.ts"],"names":[],"mappings":";;;AAIA,oCAA2D;AAC3D,uCAA2E;AAyC3E,gBAAgB;AAChB,MAAa,mBAAkC,SAAQ,kCAA2B;IAIhF,YAAY,MAAmC,EAAE,OAAiB,EAAE,OAA2B;QAC7F,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEQ,eAAe,CACtB,MAAc,EACd,OAAkC,EAClC,QAAqB;QAErB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,IAAI,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAClE,CAAC;CACF;AAlBD,kDAkBC;AAED,MAAa,wBAAuC,SAAQ,mBAAsB;IAChF,YAAY,MAAmC,EAAE,OAAiB,EAAE,OAA2B;QAC7F,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,EAAE,GAAG,IAAI,wBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF;AALD,4DAKC"} -------------------------------------------------------------------------------- /node_modules/mongodb/src/cmap/wire_protocol/constants.ts: -------------------------------------------------------------------------------- 1 | export const MIN_SUPPORTED_SERVER_VERSION = '3.6'; 2 | export const MAX_SUPPORTED_SERVER_VERSION = '7.0'; 3 | export const MIN_SUPPORTED_WIRE_VERSION = 6; 4 | export const MAX_SUPPORTED_WIRE_VERSION = 21; 5 | export const MIN_SUPPORTED_QE_WIRE_VERSION = 21; 6 | export const MIN_SUPPORTED_QE_SERVER_VERSION = '7.0'; 7 | export const OP_REPLY = 1; 8 | export const OP_UPDATE = 2001; 9 | export const OP_INSERT = 2002; 10 | export const OP_QUERY = 2004; 11 | export const OP_DELETE = 2006; 12 | export const OP_COMPRESSED = 2012; 13 | export const OP_MSG = 2013; 14 | -------------------------------------------------------------------------------- /node_modules/mongodb/src/cursor/list_search_indexes_cursor.ts: -------------------------------------------------------------------------------- 1 | import type { Collection } from '../collection'; 2 | import type { AggregateOptions } from '../operations/aggregate'; 3 | import { AggregationCursor } from './aggregation_cursor'; 4 | 5 | /** @public */ 6 | export type ListSearchIndexesOptions = AggregateOptions; 7 | 8 | /** @public */ 9 | export class ListSearchIndexesCursor extends AggregationCursor<{ name: string }> { 10 | /** @internal */ 11 | constructor( 12 | { fullNamespace: ns, client }: Collection, 13 | name: string | null, 14 | options: ListSearchIndexesOptions = {} 15 | ) { 16 | const pipeline = 17 | name == null ? [{ $listSearchIndexes: {} }] : [{ $listSearchIndexes: { name } }]; 18 | super(client, ns, pipeline, options); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /node_modules/mongoose/SECURITY.md: -------------------------------------------------------------------------------- 1 | Please follow the instructions on [Tidelift's security page](https://tidelift.com/docs/security) to report a security issue. 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/browser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Export lib/mongoose 3 | * 4 | */ 5 | 6 | 'use strict'; 7 | 8 | module.exports = require('./lib/browser'); 9 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/cast/objectid.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isBsonType = require('../helpers/isBsonType'); 4 | const ObjectId = require('../types/objectid'); 5 | 6 | module.exports = function castObjectId(value) { 7 | if (value == null) { 8 | return value; 9 | } 10 | 11 | if (isBsonType(value, 'ObjectId')) { 12 | return value; 13 | } 14 | 15 | if (value._id) { 16 | if (isBsonType(value._id, 'ObjectId')) { 17 | return value._id; 18 | } 19 | if (value._id.toString instanceof Function) { 20 | return new ObjectId(value._id.toString()); 21 | } 22 | } 23 | 24 | if (value.toString instanceof Function) { 25 | return new ObjectId(value.toString()); 26 | } 27 | 28 | return new ObjectId(value); 29 | }; 30 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/connectionstate.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connection states 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const STATES = module.exports = exports = Object.create(null); 9 | 10 | const disconnected = 'disconnected'; 11 | const connected = 'connected'; 12 | const connecting = 'connecting'; 13 | const disconnecting = 'disconnecting'; 14 | const uninitialized = 'uninitialized'; 15 | 16 | STATES[0] = disconnected; 17 | STATES[1] = connected; 18 | STATES[2] = connecting; 19 | STATES[3] = disconnecting; 20 | STATES[99] = uninitialized; 21 | 22 | STATES[disconnected] = 0; 23 | STATES[connected] = 1; 24 | STATES[connecting] = 2; 25 | STATES[disconnecting] = 3; 26 | STATES[uninitialized] = 99; 27 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/document_provider.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* eslint-env browser */ 4 | 5 | /*! 6 | * Module dependencies. 7 | */ 8 | const Document = require('./document.js'); 9 | const BrowserDocument = require('./browserDocument.js'); 10 | 11 | let isBrowser = false; 12 | 13 | /** 14 | * Returns the Document constructor for the current context 15 | * 16 | * @api private 17 | */ 18 | module.exports = function() { 19 | if (isBrowser) { 20 | return BrowserDocument; 21 | } 22 | return Document; 23 | }; 24 | 25 | /*! 26 | * ignore 27 | */ 28 | module.exports.setBrowser = function(flag) { 29 | isBrowser = flag; 30 | }; 31 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/driver.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | let driver = null; 8 | 9 | module.exports.get = function() { 10 | return driver; 11 | }; 12 | 13 | module.exports.set = function(v) { 14 | driver = v; 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/SPEC.md: -------------------------------------------------------------------------------- 1 | 2 | # Driver Spec 3 | 4 | TODO 5 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/browser/binary.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const Binary = require('bson').Binary; 9 | 10 | /*! 11 | * Module exports. 12 | */ 13 | 14 | module.exports = exports = Binary; 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/browser/decimal128.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ignore 3 | */ 4 | 5 | 'use strict'; 6 | 7 | module.exports = require('bson').Decimal128; 8 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/browser/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module exports. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | exports.Collection = function() { 8 | throw new Error('Cannot create a collection from browser library'); 9 | }; 10 | exports.Connection = function() { 11 | throw new Error('Cannot create a connection from browser library'); 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/browser/objectid.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId 4 | * @constructor NodeMongoDbObjectId 5 | * @see ObjectId 6 | */ 7 | 8 | 'use strict'; 9 | 10 | const ObjectId = require('bson').ObjectID; 11 | 12 | /** 13 | * Getter for convenience with populate, see gh-6115 14 | * @api private 15 | */ 16 | 17 | Object.defineProperty(ObjectId.prototype, '_id', { 18 | enumerable: false, 19 | configurable: true, 20 | get: function() { 21 | return this; 22 | } 23 | }); 24 | 25 | /*! 26 | * ignore 27 | */ 28 | 29 | module.exports = exports = ObjectId; 30 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/node-mongodb-native/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module exports. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | exports.Collection = require('./collection'); 8 | exports.Connection = require('./connection'); 9 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/browserMissingSchema.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | 'use strict'; 6 | 7 | const MongooseError = require('./'); 8 | 9 | 10 | class MissingSchemaError extends MongooseError { 11 | /** 12 | * MissingSchema Error constructor. 13 | */ 14 | constructor() { 15 | super('Schema hasn\'t been registered for document.\n' 16 | + 'Use mongoose.Document(name, schema)'); 17 | } 18 | } 19 | 20 | Object.defineProperty(MissingSchemaError.prototype, 'name', { 21 | value: 'MongooseError' 22 | }); 23 | 24 | /*! 25 | * exports 26 | */ 27 | 28 | module.exports = MissingSchemaError; 29 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/createCollectionsError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const MongooseError = require('./mongooseError'); 4 | 5 | /** 6 | * createCollections Error constructor 7 | * 8 | * @param {String} message 9 | * @param {String} errorsMap 10 | * @inherits MongooseError 11 | * @api private 12 | */ 13 | 14 | class CreateCollectionsError extends MongooseError { 15 | constructor(message, errorsMap) { 16 | super(message); 17 | this.errors = errorsMap; 18 | } 19 | } 20 | 21 | Object.defineProperty(CreateCollectionsError.prototype, 'name', { 22 | value: 'CreateCollectionsError' 23 | }); 24 | 25 | module.exports = CreateCollectionsError; 26 | 27 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/invalidSchemaOption.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const MongooseError = require('./'); 9 | 10 | class InvalidSchemaOptionError extends MongooseError { 11 | /** 12 | * InvalidSchemaOption Error constructor. 13 | * @param {String} name 14 | * @api private 15 | */ 16 | constructor(name, option) { 17 | const msg = `Cannot create use schema for property "${name}" because the schema has the ${option} option enabled.`; 18 | super(msg); 19 | } 20 | } 21 | 22 | Object.defineProperty(InvalidSchemaOptionError.prototype, 'name', { 23 | value: 'InvalidSchemaOptionError' 24 | }); 25 | 26 | /*! 27 | * exports 28 | */ 29 | 30 | module.exports = InvalidSchemaOptionError; 31 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/missingSchema.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const MongooseError = require('./'); 9 | 10 | class MissingSchemaError extends MongooseError { 11 | /** 12 | * MissingSchema Error constructor. 13 | * @param {String} name 14 | * @api private 15 | */ 16 | constructor(name) { 17 | const msg = 'Schema hasn\'t been registered for model "' + name + '".\n' 18 | + 'Use mongoose.model(name, schema)'; 19 | super(msg); 20 | } 21 | } 22 | 23 | Object.defineProperty(MissingSchemaError.prototype, 'name', { 24 | value: 'MissingSchemaError' 25 | }); 26 | 27 | /*! 28 | * exports 29 | */ 30 | 31 | module.exports = MissingSchemaError; 32 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/mongooseError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | class MongooseError extends Error { } 8 | 9 | Object.defineProperty(MongooseError.prototype, 'name', { 10 | value: 'MongooseError' 11 | }); 12 | 13 | module.exports = MongooseError; 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/overwriteModel.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | const MongooseError = require('./'); 9 | 10 | 11 | class OverwriteModelError extends MongooseError { 12 | /** 13 | * OverwriteModel Error constructor. 14 | * @param {String} name 15 | * @api private 16 | */ 17 | constructor(name) { 18 | super('Cannot overwrite `' + name + '` model once compiled.'); 19 | } 20 | } 21 | 22 | Object.defineProperty(OverwriteModelError.prototype, 'name', { 23 | value: 'OverwriteModelError' 24 | }); 25 | 26 | /*! 27 | * exports 28 | */ 29 | 30 | module.exports = OverwriteModelError; 31 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/parallelSave.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * Module dependencies. 5 | */ 6 | 7 | const MongooseError = require('./'); 8 | 9 | class ParallelSaveError extends MongooseError { 10 | /** 11 | * ParallelSave Error constructor. 12 | * 13 | * @param {Document} doc 14 | * @api private 15 | */ 16 | constructor(doc) { 17 | const msg = 'Can\'t save() the same doc multiple times in parallel. Document: '; 18 | super(msg + doc._id); 19 | } 20 | } 21 | 22 | Object.defineProperty(ParallelSaveError.prototype, 'name', { 23 | value: 'ParallelSaveError' 24 | }); 25 | 26 | /*! 27 | * exports 28 | */ 29 | 30 | module.exports = ParallelSaveError; 31 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/parallelValidate.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * Module dependencies. 5 | */ 6 | 7 | const MongooseError = require('./mongooseError'); 8 | 9 | 10 | class ParallelValidateError extends MongooseError { 11 | /** 12 | * ParallelValidate Error constructor. 13 | * 14 | * @param {Document} doc 15 | * @api private 16 | */ 17 | constructor(doc) { 18 | const msg = 'Can\'t validate() the same doc multiple times in parallel. Document: '; 19 | super(msg + doc._id); 20 | } 21 | } 22 | 23 | Object.defineProperty(ParallelValidateError.prototype, 'name', { 24 | value: 'ParallelValidateError' 25 | }); 26 | 27 | /*! 28 | * exports 29 | */ 30 | 31 | module.exports = ParallelValidateError; 32 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error/syncIndexes.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * Module dependencies. 5 | */ 6 | 7 | const MongooseError = require('./mongooseError'); 8 | 9 | /** 10 | * SyncIndexes Error constructor. 11 | * 12 | * @param {String} message 13 | * @param {String} errorsMap 14 | * @inherits MongooseError 15 | * @api private 16 | */ 17 | 18 | class SyncIndexesError extends MongooseError { 19 | constructor(message, errorsMap) { 20 | super(message); 21 | this.errors = errorsMap; 22 | } 23 | } 24 | 25 | Object.defineProperty(SyncIndexesError.prototype, 'name', { 26 | value: 'SyncIndexesError' 27 | }); 28 | 29 | 30 | module.exports = SyncIndexesError; 31 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isBsonType = require('../isBsonType'); 4 | 5 | module.exports = function areDiscriminatorValuesEqual(a, b) { 6 | if (typeof a === 'string' && typeof b === 'string') { 7 | return a === b; 8 | } 9 | if (typeof a === 'number' && typeof b === 'number') { 10 | return a === b; 11 | } 12 | if (isBsonType(a, 'ObjectId') && isBsonType(b, 'ObjectId')) { 13 | return a.toString() === b.toString(); 14 | } 15 | return false; 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function checkEmbeddedDiscriminatorKeyProjection(userProjection, path, schema, selected, addedPaths) { 4 | const userProjectedInPath = Object.keys(userProjection). 5 | reduce((cur, key) => cur || key.startsWith(path + '.'), false); 6 | const _discriminatorKey = path + '.' + schema.options.discriminatorKey; 7 | if (!userProjectedInPath && 8 | addedPaths.length === 1 && 9 | addedPaths[0] === _discriminatorKey) { 10 | selected.splice(selected.indexOf(_discriminatorKey), 1); 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/each.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function each(arr, cb, done) { 4 | if (arr.length === 0) { 5 | return done(); 6 | } 7 | 8 | let remaining = arr.length; 9 | let err = null; 10 | for (const v of arr) { 11 | cb(v, function(_err) { 12 | if (err != null) { 13 | return; 14 | } 15 | if (_err != null) { 16 | err = _err; 17 | return done(err); 18 | } 19 | 20 | if (--remaining <= 0) { 21 | return done(); 22 | } 23 | }); 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/error/combinePathErrors.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function combinePathErrors(err) { 8 | const keys = Object.keys(err.errors || {}); 9 | const len = keys.length; 10 | const msgs = []; 11 | let key; 12 | 13 | for (let i = 0; i < len; ++i) { 14 | key = keys[i]; 15 | if (err === err.errors[key]) { 16 | continue; 17 | } 18 | msgs.push(key + ': ' + err.errors[key].message); 19 | } 20 | 21 | return msgs.join(', '); 22 | }; 23 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/firstKey.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function firstKey(obj) { 4 | if (obj == null) { 5 | return null; 6 | } 7 | return Object.keys(obj)[0]; 8 | }; 9 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/getConstructorName.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * If `val` is an object, returns constructor name, if possible. Otherwise returns undefined. 5 | * @api private 6 | */ 7 | 8 | module.exports = function getConstructorName(val) { 9 | if (val == null) { 10 | return void 0; 11 | } 12 | if (typeof val.constructor !== 'function') { 13 | return void 0; 14 | } 15 | return val.constructor.name; 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | function getDefaultBulkwriteResult() { 3 | return { 4 | result: { 5 | ok: 1, 6 | writeErrors: [], 7 | writeConcernErrors: [], 8 | insertedIds: [], 9 | nInserted: 0, 10 | nUpserted: 0, 11 | nMatched: 0, 12 | nModified: 0, 13 | nRemoved: 0, 14 | upserted: [] 15 | }, 16 | insertedCount: 0, 17 | matchedCount: 0, 18 | modifiedCount: 0, 19 | deletedCount: 0, 20 | upsertedCount: 0, 21 | upsertedIds: {}, 22 | insertedIds: {}, 23 | n: 0 24 | }; 25 | } 26 | 27 | module.exports = getDefaultBulkwriteResult; 28 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/getFunctionName.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const functionNameRE = /^function\s*([^\s(]+)/; 4 | 5 | module.exports = function(fn) { 6 | return ( 7 | fn.name || 8 | (fn.toString().trim().match(functionNameRE) || [])[1] 9 | ); 10 | }; 11 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/immediate.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Centralize this so we can more easily work around issues with people 3 | * stubbing out `process.nextTick()` in tests using sinon: 4 | * https://github.com/sinonjs/lolex#automatically-incrementing-mocked-time 5 | * See gh-6074 6 | */ 7 | 8 | 'use strict'; 9 | 10 | const nextTick = typeof process !== 'undefined' && typeof process.nextTick === 'function' ? 11 | process.nextTick.bind(process) : 12 | cb => setTimeout(cb, 0); // Fallback for browser build 13 | 14 | module.exports = function immediate(cb) { 15 | return nextTick(cb); 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isTextIndex = require('./isTextIndex'); 4 | 5 | module.exports = function applySchemaCollation(indexKeys, indexOptions, schemaOptions) { 6 | if (isTextIndex(indexKeys)) { 7 | return; 8 | } 9 | 10 | if (schemaOptions.hasOwnProperty('collation') && !indexOptions.hasOwnProperty('collation')) { 11 | indexOptions.collation = schemaOptions.collation; 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/indexes/decorateDiscriminatorIndexOptions.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function decorateDiscriminatorIndexOptions(schema, indexOptions) { 4 | // If the model is a discriminator and has an index, add a 5 | // partialFilterExpression by default so the index will only apply 6 | // to that discriminator. 7 | const discriminatorName = schema.discriminatorMapping && schema.discriminatorMapping.value; 8 | if (discriminatorName && !('sparse' in indexOptions)) { 9 | const discriminatorKey = schema.options.discriminatorKey; 10 | indexOptions.partialFilterExpression = indexOptions.partialFilterExpression || {}; 11 | indexOptions.partialFilterExpression[discriminatorKey] = discriminatorName; 12 | } 13 | return indexOptions; 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const get = require('../get'); 4 | 5 | module.exports = function isDefaultIdIndex(index) { 6 | if (Array.isArray(index)) { 7 | // Mongoose syntax 8 | const keys = Object.keys(index[0]); 9 | return keys.length === 1 && keys[0] === '_id' && index[0]._id !== 'hashed'; 10 | } 11 | 12 | if (typeof index !== 'object') { 13 | return false; 14 | } 15 | 16 | const key = get(index, 'key', {}); 17 | return Object.keys(key).length === 1 && key.hasOwnProperty('_id'); 18 | }; 19 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/indexes/isTextIndex.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Returns `true` if the given index options have a `text` option. 5 | */ 6 | 7 | module.exports = function isTextIndex(indexKeys) { 8 | let isTextIndex = false; 9 | for (const key of Object.keys(indexKeys)) { 10 | if (indexKeys[key] === 'text') { 11 | isTextIndex = true; 12 | } 13 | } 14 | 15 | return isTextIndex; 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/isAsyncFunction.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function isAsyncFunction(v) { 4 | return ( 5 | typeof v === 'function' && 6 | v.constructor && 7 | v.constructor.name === 'AsyncFunction' 8 | ); 9 | }; 10 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/isBsonType.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Get the bson type, if it exists 5 | * @api private 6 | */ 7 | 8 | function isBsonType(obj, typename) { 9 | return ( 10 | typeof obj === 'object' && 11 | obj !== null && 12 | obj._bsontype === typename 13 | ); 14 | } 15 | 16 | module.exports = isBsonType; 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/isMongooseObject.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const isMongooseArray = require('../types/array/isMongooseArray').isMongooseArray; 4 | /** 5 | * Returns if `v` is a mongoose object that has a `toObject()` method we can use. 6 | * 7 | * This is for compatibility with libs like Date.js which do foolish things to Natives. 8 | * 9 | * @param {Any} v 10 | * @api private 11 | */ 12 | 13 | module.exports = function(v) { 14 | return ( 15 | v != null && ( 16 | isMongooseArray(v) || // Array or Document Array 17 | v.$__ != null || // Document 18 | v.isMongooseBuffer || // Buffer 19 | v.$isMongooseMap // Map 20 | ) 21 | ); 22 | }; 23 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/isObject.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Determines if `arg` is an object. 5 | * 6 | * @param {Object|Array|String|Function|RegExp|any} arg 7 | * @api private 8 | * @return {Boolean} 9 | */ 10 | 11 | module.exports = function(arg) { 12 | return ( 13 | Buffer.isBuffer(arg) || 14 | Object.prototype.toString.call(arg) === '[object Object]' 15 | ); 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/isPOJO.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function isPOJO(arg) { 4 | if (arg == null || typeof arg !== 'object') { 5 | return false; 6 | } 7 | const proto = Object.getPrototypeOf(arg); 8 | // Prototype may be null if you used `Object.create(null)` 9 | // Checking `proto`'s constructor is safe because `getPrototypeOf()` 10 | // explicitly crosses the boundary from object data to object metadata 11 | return !proto || proto.constructor.name === 'Object'; 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/isPromise.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | function isPromise(val) { 3 | return !!val && (typeof val === 'object' || typeof val === 'function') && typeof val.then === 'function'; 4 | } 5 | 6 | module.exports = isPromise; 7 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/isSimpleValidator.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Determines if `arg` is a flat object. 5 | * 6 | * @param {Object|Array|String|Function|RegExp|any} arg 7 | * @api private 8 | * @return {Boolean} 9 | */ 10 | 11 | module.exports = function isSimpleValidator(obj) { 12 | const keys = Object.keys(obj); 13 | let result = true; 14 | for (let i = 0, len = keys.length; i < len; ++i) { 15 | if (typeof obj[keys[i]] === 'object' && obj[keys[i]] !== null) { 16 | result = false; 17 | break; 18 | } 19 | } 20 | 21 | return result; 22 | }; 23 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/model/applyStatics.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Register statics for this model 5 | * @param {Model} model 6 | * @param {Schema} schema 7 | * @api private 8 | */ 9 | module.exports = function applyStatics(model, schema) { 10 | for (const i in schema.statics) { 11 | model[i] = schema.statics[i]; 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/model/pushNestedArrayPaths.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function pushNestedArrayPaths(paths, nestedArray, path) { 4 | if (nestedArray == null) { 5 | return; 6 | } 7 | 8 | for (let i = 0; i < nestedArray.length; ++i) { 9 | if (Array.isArray(nestedArray[i])) { 10 | pushNestedArrayPaths(paths, nestedArray[i], path + '.' + i); 11 | } else { 12 | paths.push(path + '.' + i); 13 | } 14 | } 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/once.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function once(fn) { 4 | let called = false; 5 | return function() { 6 | if (called) { 7 | return; 8 | } 9 | called = true; 10 | return fn.apply(null, arguments); 11 | }; 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/path/parentPaths.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const dotRE = /\./g; 4 | module.exports = function parentPaths(path) { 5 | if (path.indexOf('.') === -1) { 6 | return [path]; 7 | } 8 | const pieces = path.split(dotRE); 9 | const len = pieces.length; 10 | const ret = new Array(len); 11 | let cur = ''; 12 | for (let i = 0; i < len; ++i) { 13 | cur += (cur.length !== 0) ? '.' + pieces[i] : pieces[i]; 14 | ret[i] = cur; 15 | } 16 | 17 | return ret; 18 | }; 19 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/path/setDottedPath.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const specialProperties = require('../specialProperties'); 4 | 5 | 6 | module.exports = function setDottedPath(obj, path, val) { 7 | if (path.indexOf('.') === -1) { 8 | if (specialProperties.has(path)) { 9 | return; 10 | } 11 | 12 | obj[path] = val; 13 | return; 14 | } 15 | const parts = path.split('.'); 16 | 17 | const last = parts.pop(); 18 | let cur = obj; 19 | for (const part of parts) { 20 | if (specialProperties.has(part)) { 21 | continue; 22 | } 23 | if (cur[part] == null) { 24 | cur[part] = {}; 25 | } 26 | 27 | cur = cur[part]; 28 | } 29 | 30 | if (!specialProperties.has(last)) { 31 | cur[last] = val; 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/populate/SkipPopulateValue.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function SkipPopulateValue(val) { 4 | if (!(this instanceof SkipPopulateValue)) { 5 | return new SkipPopulateValue(val); 6 | } 7 | 8 | this.val = val; 9 | return this; 10 | }; 11 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/populate/leanPopulateMap.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = new WeakMap(); 8 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/populate/validateRef.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const MongooseError = require('../../error/mongooseError'); 4 | const util = require('util'); 5 | 6 | module.exports = validateRef; 7 | 8 | function validateRef(ref, path) { 9 | if (typeof ref === 'string') { 10 | return; 11 | } 12 | 13 | if (typeof ref === 'function') { 14 | return; 15 | } 16 | 17 | throw new MongooseError('Invalid ref at path "' + path + '". Got ' + 18 | util.inspect(ref, { depth: 0 })); 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function isDefiningProjection(val) { 8 | if (val == null) { 9 | // `undefined` or `null` become exclusive projections 10 | return true; 11 | } 12 | if (typeof val === 'object') { 13 | // Only cases where a value does **not** define whether the whole projection 14 | // is inclusive or exclusive are `$meta` and `$slice`. 15 | return !('$meta' in val) && !('$slice' in val); 16 | } 17 | return true; 18 | }; 19 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function isPathSelectedInclusive(fields, path) { 8 | const chunks = path.split('.'); 9 | let cur = ''; 10 | let j; 11 | let keys; 12 | let numKeys; 13 | for (let i = 0; i < chunks.length; ++i) { 14 | cur += cur.length ? '.' : '' + chunks[i]; 15 | if (fields[cur]) { 16 | keys = Object.keys(fields); 17 | numKeys = keys.length; 18 | for (j = 0; j < numKeys; ++j) { 19 | if (keys[i].indexOf(cur + '.') === 0 && keys[i].indexOf(path) !== 0) { 20 | continue; 21 | } 22 | } 23 | return true; 24 | } 25 | } 26 | 27 | return false; 28 | }; 29 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/projection/isSubpath.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Determines if `path2` is a subpath of or equal to `path1` 5 | * 6 | * @param {string} path1 7 | * @param {string} path2 8 | * @return {Boolean} 9 | * @api private 10 | */ 11 | 12 | module.exports = function isSubpath(path1, path2) { 13 | return path1 === path2 || path2.startsWith(path1 + '.'); 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/query/handleReadPreferenceAliases.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function handleReadPreferenceAliases(pref) { 4 | switch (pref) { 5 | case 'p': 6 | pref = 'primary'; 7 | break; 8 | case 'pp': 9 | pref = 'primaryPreferred'; 10 | break; 11 | case 's': 12 | pref = 'secondary'; 13 | break; 14 | case 'sp': 15 | pref = 'secondaryPreferred'; 16 | break; 17 | case 'n': 18 | pref = 'nearest'; 19 | break; 20 | } 21 | 22 | return pref; 23 | }; 24 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/query/hasDollarKeys.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function hasDollarKeys(obj) { 8 | 9 | if (typeof obj !== 'object' || obj === null) { 10 | return false; 11 | } 12 | 13 | const keys = Object.keys(obj); 14 | const len = keys.length; 15 | 16 | for (let i = 0; i < len; ++i) { 17 | if (keys[i][0] === '$') { 18 | return true; 19 | } 20 | } 21 | 22 | return false; 23 | }; 24 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/query/isOperator.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const specialKeys = new Set([ 4 | '$ref', 5 | '$id', 6 | '$db' 7 | ]); 8 | 9 | module.exports = function isOperator(path) { 10 | return ( 11 | path[0] === '$' && 12 | !specialKeys.has(path) 13 | ); 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/query/sanitizeProjection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function sanitizeProjection(projection) { 4 | if (projection == null) { 5 | return; 6 | } 7 | 8 | const keys = Object.keys(projection); 9 | for (let i = 0; i < keys.length; ++i) { 10 | if (typeof projection[keys[i]] === 'string') { 11 | projection[keys[i]] = 1; 12 | } 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/query/trusted.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const trustedSymbol = Symbol('mongoose#trustedSymbol'); 4 | 5 | exports.trustedSymbol = trustedSymbol; 6 | 7 | exports.trusted = function trusted(obj) { 8 | if (obj == null || typeof obj !== 'object') { 9 | return obj; 10 | } 11 | obj[trustedSymbol] = true; 12 | return obj; 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/query/validOps.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = Object.freeze([ 4 | // Read 5 | 'count', 6 | 'countDocuments', 7 | 'distinct', 8 | 'estimatedDocumentCount', 9 | 'find', 10 | 'findOne', 11 | // Update 12 | 'findOneAndReplace', 13 | 'findOneAndUpdate', 14 | 'replaceOne', 15 | 'updateMany', 16 | 'updateOne', 17 | // Delete 18 | 'deleteMany', 19 | 'deleteOne', 20 | 'findOneAndDelete', 21 | 'findOneAndRemove' 22 | ]); 23 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/schema/addAutoId.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function addAutoId(schema) { 4 | const _obj = { _id: { auto: true } }; 5 | _obj._id[schema.options.typeKey] = 'ObjectId'; 6 | schema.add(_obj); 7 | }; 8 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/schema/applyBuiltinPlugins.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const builtinPlugins = require('../../plugins'); 4 | 5 | module.exports = function applyBuiltinPlugins(schema) { 6 | for (const plugin of Object.values(builtinPlugins)) { 7 | plugin(schema, { deduplicate: true }); 8 | } 9 | schema.plugins = Object.values(builtinPlugins). 10 | map(fn => ({ fn, opts: { deduplicate: true } })). 11 | concat(schema.plugins); 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * For consistency's sake, we replace positional operator `$` and array filters 5 | * `$[]` and `$[foo]` with `0` when looking up schema paths. 6 | */ 7 | 8 | module.exports = function cleanPositionalOperators(path) { 9 | return path. 10 | replace(/\.\$(\[[^\]]*\])?(?=\.)/g, '.0'). 11 | replace(/\.\$(\[[^\]]*\])?$/g, '.0'); 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/schema/handleIdOption.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const addAutoId = require('./addAutoId'); 4 | 5 | module.exports = function handleIdOption(schema, options) { 6 | if (options == null || options._id == null) { 7 | return schema; 8 | } 9 | 10 | schema = schema.clone(); 11 | if (!options._id) { 12 | schema.remove('_id'); 13 | schema.options._id = false; 14 | } else if (!schema.paths['_id']) { 15 | addAutoId(schema); 16 | schema.options._id = true; 17 | } 18 | 19 | return schema; 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = handleTimestampOption; 4 | 5 | /*! 6 | * ignore 7 | */ 8 | 9 | function handleTimestampOption(arg, prop) { 10 | if (arg == null) { 11 | return null; 12 | } 13 | 14 | if (typeof arg === 'boolean') { 15 | return prop; 16 | } 17 | if (typeof arg[prop] === 'boolean') { 18 | return arg[prop] ? prop : null; 19 | } 20 | if (!(prop in arg)) { 21 | return prop; 22 | } 23 | return arg[prop]; 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/specialProperties.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = new Set(['__proto__', 'constructor', 'prototype']); 4 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/timers.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.setTimeout = setTimeout; 4 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/topology/allServersUnknown.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const getConstructorName = require('../getConstructorName'); 4 | 5 | module.exports = function allServersUnknown(topologyDescription) { 6 | if (getConstructorName(topologyDescription) !== 'TopologyDescription') { 7 | return false; 8 | } 9 | 10 | const servers = Array.from(topologyDescription.servers.values()); 11 | return servers.length > 0 && servers.every(server => server.type === 'Unknown'); 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/helpers/topology/isSSLError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const getConstructorName = require('../getConstructorName'); 4 | 5 | const nonSSLMessage = 'Client network socket disconnected before secure TLS ' + 6 | 'connection was established'; 7 | 8 | module.exports = function isSSLError(topologyDescription) { 9 | if (getConstructorName(topologyDescription) !== 'TopologyDescription') { 10 | return false; 11 | } 12 | 13 | const descriptions = Array.from(topologyDescription.servers.values()); 14 | return descriptions.length > 0 && 15 | descriptions.every(descr => descr.error && descr.error.message.indexOf(nonSSLMessage) !== -1); 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/options.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | exports.internalToObjectOptions = { 8 | transform: false, 9 | virtuals: false, 10 | getters: false, 11 | _skipDepopulateTopLevel: true, 12 | depopulate: true, 13 | flattenDecimals: false, 14 | useProjection: false 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/options/propertyOptions.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = Object.freeze({ 4 | enumerable: true, 5 | configurable: true, 6 | writable: true, 7 | value: void 0 8 | }); 9 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/options/saveOptions.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const clone = require('../helpers/clone'); 4 | 5 | class SaveOptions { 6 | constructor(obj) { 7 | if (obj == null) { 8 | return; 9 | } 10 | Object.assign(this, clone(obj)); 11 | } 12 | } 13 | 14 | module.exports = SaveOptions; 15 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/plugins/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.removeSubdocs = require('./removeSubdocs'); 4 | exports.saveSubdocs = require('./saveSubdocs'); 5 | exports.sharding = require('./sharding'); 6 | exports.trackTransaction = require('./trackTransaction'); 7 | exports.validateBeforeSave = require('./validateBeforeSave'); 8 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/schema/operators/exists.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const castBoolean = require('../../cast/boolean'); 4 | 5 | /*! 6 | * ignore 7 | */ 8 | 9 | module.exports = function(val) { 10 | const path = this != null ? this.path : null; 11 | return castBoolean(val, path); 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/schema/operators/helpers.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * Module requirements. 5 | */ 6 | 7 | const SchemaNumber = require('../number'); 8 | 9 | /*! 10 | * ignore 11 | */ 12 | 13 | exports.castToNumber = castToNumber; 14 | exports.castArraysOfNumbers = castArraysOfNumbers; 15 | 16 | /*! 17 | * ignore 18 | */ 19 | 20 | function castToNumber(val) { 21 | return SchemaNumber.cast()(val); 22 | } 23 | 24 | function castArraysOfNumbers(arr, self) { 25 | arr.forEach(function(v, i) { 26 | if (Array.isArray(v)) { 27 | castArraysOfNumbers(v, self); 28 | } else { 29 | arr[i] = castToNumber.call(self, v); 30 | } 31 | }); 32 | } 33 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/schema/operators/type.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ignore 5 | */ 6 | 7 | module.exports = function(val) { 8 | if (Array.isArray(val)) { 9 | if (!val.every(v => typeof v === 'number' || typeof v === 'string')) { 10 | throw new Error('$type array values must be strings or numbers'); 11 | } 12 | return val; 13 | } 14 | 15 | if (typeof val !== 'number' && typeof val !== 'string') { 16 | throw new Error('$type parameter must be number, string, or array of numbers and strings'); 17 | } 18 | 19 | return val; 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/schema/symbols.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.schemaMixedSymbol = Symbol.for('mongoose:schema_mixed'); 4 | 5 | exports.builtInMiddleware = Symbol.for('mongoose:built-in-middleware'); 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/types/DocumentArray/isMongooseDocumentArray.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.isMongooseDocumentArray = function(mongooseDocumentArray) { 4 | return Array.isArray(mongooseDocumentArray) && mongooseDocumentArray.isMongooseDocumentArray; 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/types/array/isMongooseArray.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.isMongooseArray = function(mongooseArray) { 4 | return Array.isArray(mongooseArray) && mongooseArray.isMongooseArray; 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/types/decimal128.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Decimal128 type constructor 3 | * 4 | * #### Example: 5 | * 6 | * const id = new mongoose.Types.Decimal128('3.1415'); 7 | * 8 | * @constructor Decimal128 9 | */ 10 | 11 | 'use strict'; 12 | 13 | module.exports = require('bson').Decimal128; 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/types/index.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module exports. 4 | */ 5 | 6 | 'use strict'; 7 | 8 | exports.Array = require('./array'); 9 | exports.Buffer = require('./buffer'); 10 | 11 | exports.Document = // @deprecate 12 | exports.Embedded = require('./ArraySubdocument'); 13 | 14 | exports.DocumentArray = require('./DocumentArray'); 15 | exports.Decimal128 = require('./decimal128'); 16 | exports.ObjectId = require('./objectid'); 17 | 18 | exports.Map = require('./map'); 19 | 20 | exports.Subdocument = require('./subdocument'); 21 | 22 | exports.UUID = require('./uuid'); 23 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/types/uuid.js: -------------------------------------------------------------------------------- 1 | /** 2 | * UUID type constructor 3 | * 4 | * #### Example: 5 | * 6 | * const id = new mongoose.Types.UUID(); 7 | * 8 | * @constructor UUID 9 | */ 10 | 11 | 'use strict'; 12 | 13 | module.exports = require('bson').UUID; 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/types/augmentations.d.ts: -------------------------------------------------------------------------------- 1 | // this import is required so that types get merged instead of completely overwritten 2 | import 'bson'; 3 | 4 | declare module 'bson' { 5 | interface ObjectId { 6 | /** Mongoose automatically adds a conveniency "_id" getter on the base ObjectId class */ 7 | _id: this; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/mongoose/types/callback.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'mongoose' { 2 | type CallbackError = NativeError | null; 3 | 4 | type Callback = (error: CallbackError, result: T) => void; 5 | 6 | type CallbackWithoutResult = (error: CallbackError) => void; 7 | type CallbackWithoutResultAndOptionalError = (error?: CallbackError) => void; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/mpath/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | - "5" 5 | - "6" 6 | - "7" 7 | - "8" 8 | - "9" 9 | - "10" 10 | -------------------------------------------------------------------------------- /node_modules/mpath/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting a Vulnerability 2 | 3 | Please report suspected security vulnerabilities to val [at] karpov [dot] io. 4 | You will receive a response from us within 72 hours. 5 | If the issue is confirmed, we will release a patch as soon as possible depending on complexity. 6 | -------------------------------------------------------------------------------- /node_modules/mpath/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = exports = require('./lib'); 4 | -------------------------------------------------------------------------------- /node_modules/mpath/test/.eslintrc.yml: -------------------------------------------------------------------------------- 1 | env: 2 | mocha: true 3 | rules: 4 | no-unused-vars: off -------------------------------------------------------------------------------- /node_modules/mquery/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | **Do you want to request a *feature* or report a *bug*?** 4 | 5 | **What is the current behavior?** 6 | 7 | **If the current behavior is a bug, please provide the steps to reproduce.** 8 | 9 | **What is the expected behavior?** 10 | 11 | **What are the versions of Node.js and mquery are you are using? Note that "latest" is not a version.** 12 | -------------------------------------------------------------------------------- /node_modules/mquery/.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | **Summary** 4 | 5 | 6 | 7 | **Examples** 8 | 9 | 10 | -------------------------------------------------------------------------------- /node_modules/mquery/SECURITY.md: -------------------------------------------------------------------------------- 1 | Please follow the instructions on [Tidelift's security page](https://tidelift.com/docs/security) to report a security issue. 2 | -------------------------------------------------------------------------------- /node_modules/mquery/lib/collection/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const env = require('../env'); 4 | 5 | if ('unknown' == env.type) { 6 | throw new Error('Unknown environment'); 7 | } 8 | 9 | module.exports = 10 | env.isNode ? require('./node') : 11 | env.isMongo ? require('./collection') : 12 | require('./collection'); 13 | 14 | -------------------------------------------------------------------------------- /node_modules/mquery/lib/env.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.isNode = 'undefined' != typeof process 4 | && 'object' == typeof module 5 | && 'object' == typeof global 6 | && 'function' == typeof Buffer 7 | && process.argv; 8 | 9 | exports.isMongo = !exports.isNode 10 | && 'function' == typeof printjson 11 | && 'function' == typeof ObjectId 12 | && 'function' == typeof rs 13 | && 'function' == typeof sh; 14 | 15 | exports.isBrowser = !exports.isNode 16 | && !exports.isMongo 17 | && 'undefined' != typeof window; 18 | 19 | exports.type = exports.isNode ? 'node' 20 | : exports.isMongo ? 'mongo' 21 | : exports.isBrowser ? 'browser' 22 | : 'unknown'; 23 | -------------------------------------------------------------------------------- /node_modules/mquery/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer / nwjs process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/node-addon-api/except.gypi: -------------------------------------------------------------------------------- 1 | { 2 | 'defines': [ 'NAPI_CPP_EXCEPTIONS' ], 3 | 'cflags!': [ '-fno-exceptions' ], 4 | 'cflags_cc!': [ '-fno-exceptions' ], 5 | 'conditions': [ 6 | ["OS=='win'", { 7 | "defines": [ 8 | "_HAS_EXCEPTIONS=1" 9 | ], 10 | "msvs_settings": { 11 | "VCCLCompilerTool": { 12 | "ExceptionHandling": 1, 13 | 'EnablePREfast': 'true', 14 | }, 15 | }, 16 | }], 17 | ["OS=='mac'", { 18 | 'xcode_settings': { 19 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 20 | 'CLANG_CXX_LIBRARY': 'libc++', 21 | 'MACOSX_DEPLOYMENT_TARGET': '10.7', 22 | }, 23 | }], 24 | ], 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/node-addon-api/index.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | const includeDir = path.relative('.', __dirname); 4 | 5 | module.exports = { 6 | include: `"${__dirname}"`, // deprecated, can be removed as part of 4.0.0 7 | include_dir: includeDir, 8 | gyp: path.join(includeDir, 'node_api.gyp:nothing'), 9 | isNodeApiBuiltin: true, 10 | needsFlag: false 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/node-addon-api/node_api.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'nothing', 5 | 'type': 'static_library', 6 | 'sources': [ 'nothing.c' ] 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/node-addon-api/noexcept.gypi: -------------------------------------------------------------------------------- 1 | { 2 | 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ], 3 | 'cflags': [ '-fno-exceptions' ], 4 | 'cflags_cc': [ '-fno-exceptions' ], 5 | 'conditions': [ 6 | ["OS=='win'", { 7 | # _HAS_EXCEPTIONS is already defined and set to 0 in common.gypi 8 | #"defines": [ 9 | # "_HAS_EXCEPTIONS=0" 10 | #], 11 | "msvs_settings": { 12 | "VCCLCompilerTool": { 13 | 'ExceptionHandling': 0, 14 | 'EnablePREfast': 'true', 15 | }, 16 | }, 17 | }], 18 | ["OS=='mac'", { 19 | 'xcode_settings': { 20 | 'CLANG_CXX_LIBRARY': 'libc++', 21 | 'MACOSX_DEPLOYMENT_TARGET': '10.7', 22 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', 23 | }, 24 | }], 25 | ], 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/node-addon-api/nothing.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamaz-Chihab/node-restful-API-Project/741f10d84c6eaa88577ccd5c3ff7f373aca5d667/node_modules/node-addon-api/nothing.c -------------------------------------------------------------------------------- /node_modules/node-addon-api/package-support.json: -------------------------------------------------------------------------------- 1 | { 2 | "versions": [ 3 | { 4 | "version": "*", 5 | "target": { 6 | "node": "active" 7 | }, 8 | "response": { 9 | "type": "time-permitting", 10 | "paid": false, 11 | "contact": { 12 | "name": "node-addon-api team", 13 | "url": "https://github.com/nodejs/node-addon-api/issues" 14 | } 15 | }, 16 | "backing": [ { "project": "https://github.com/nodejs" }, 17 | { "foundation": "https://openjsf.org/" } 18 | ] 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/node-fetch/node_modules/tr46/.npmignore: -------------------------------------------------------------------------------- 1 | scripts/ 2 | test/ 3 | 4 | !lib/mapping_table.json 5 | -------------------------------------------------------------------------------- /node_modules/node-fetch/node_modules/tr46/lib/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamaz-Chihab/node-restful-API-Project/741f10d84c6eaa88577ccd5c3ff7f373aca5d667/node_modules/node-fetch/node_modules/tr46/lib/.gitkeep -------------------------------------------------------------------------------- /node_modules/node-fetch/node_modules/webidl-conversions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "webidl-conversions", 3 | "version": "3.0.1", 4 | "description": "Implements the WebIDL algorithms for converting to and from JavaScript values", 5 | "main": "lib/index.js", 6 | "scripts": { 7 | "test": "mocha test/*.js" 8 | }, 9 | "repository": "jsdom/webidl-conversions", 10 | "keywords": [ 11 | "webidl", 12 | "web", 13 | "types" 14 | ], 15 | "files": [ 16 | "lib/" 17 | ], 18 | "author": "Domenic Denicola (https://domenic.me/)", 19 | "license": "BSD-2-Clause", 20 | "devDependencies": { 21 | "mocha": "^1.21.4" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/node-fetch/node_modules/whatwg-url/lib/public-api.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.URL = require("./URL").interface; 4 | exports.serializeURL = require("./url-state-machine").serializeURL; 5 | exports.serializeURLOrigin = require("./url-state-machine").serializeURLOrigin; 6 | exports.basicURLParse = require("./url-state-machine").basicURLParse; 7 | exports.setTheUsername = require("./url-state-machine").setTheUsername; 8 | exports.setThePassword = require("./url-state-machine").setThePassword; 9 | exports.serializeHost = require("./url-state-machine").serializeHost; 10 | exports.serializeInteger = require("./url-state-machine").serializeInteger; 11 | exports.parseURL = require("./url-state-machine").parseURL; 12 | -------------------------------------------------------------------------------- /node_modules/node-fetch/node_modules/whatwg-url/lib/utils.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports.mixin = function mixin(target, source) { 4 | const keys = Object.getOwnPropertyNames(source); 5 | for (let i = 0; i < keys.length; ++i) { 6 | Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i])); 7 | } 8 | }; 9 | 10 | module.exports.wrapperSymbol = Symbol("wrapper"); 11 | module.exports.implSymbol = Symbol("impl"); 12 | 13 | module.exports.wrapperForImpl = function (impl) { 14 | return impl[module.exports.wrapperSymbol]; 15 | }; 16 | 17 | module.exports.implForWrapper = function (wrapper) { 18 | return wrapper[module.exports.implSymbol]; 19 | }; 20 | 21 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/object-inspect/util.inspect.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inspect; 2 | -------------------------------------------------------------------------------- /node_modules/once/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "once", 3 | "version": "1.4.0", 4 | "description": "Run a function exactly one time", 5 | "main": "once.js", 6 | "directories": { 7 | "test": "test" 8 | }, 9 | "dependencies": { 10 | "wrappy": "1" 11 | }, 12 | "devDependencies": { 13 | "tap": "^7.0.1" 14 | }, 15 | "scripts": { 16 | "test": "tap test/*.js" 17 | }, 18 | "files": [ 19 | "once.js" 20 | ], 21 | "repository": { 22 | "type": "git", 23 | "url": "git://github.com/isaacs/once" 24 | }, 25 | "keywords": [ 26 | "once", 27 | "function", 28 | "one", 29 | "single" 30 | ], 31 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 32 | "license": "ISC" 33 | } 34 | -------------------------------------------------------------------------------- /node_modules/path-is-absolute/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | function posix(path) { 4 | return path.charAt(0) === '/'; 5 | } 6 | 7 | function win32(path) { 8 | // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 9 | var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; 10 | var result = splitDeviceRe.exec(path); 11 | var device = result[1] || ''; 12 | var isUnc = Boolean(device && device.charAt(1) !== ':'); 13 | 14 | // UNC paths are always absolute 15 | return Boolean(result[2] || isUnc); 16 | } 17 | 18 | module.exports = process.platform === 'win32' ? win32 : posix; 19 | module.exports.posix = posix; 20 | module.exports.win32 = win32; 21 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | 42 | [.nycrc] 43 | indent_style = tab 44 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/readable-stream/experimentalWarning.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var experimentalWarnings = new Set(); 4 | 5 | function emitExperimentalWarning(feature) { 6 | if (experimentalWarnings.has(feature)) return; 7 | var msg = feature + ' is an experimental feature. This feature could ' + 8 | 'change at any time'; 9 | experimentalWarnings.add(feature); 10 | process.emitWarning(msg, 'ExperimentalWarning'); 11 | } 12 | 13 | function noop() {} 14 | 15 | module.exports.emitExperimentalWarning = process.emitWarning 16 | ? emitExperimentalWarning 17 | : noop; 18 | -------------------------------------------------------------------------------- /node_modules/readable-stream/lib/internal/streams/from-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = function () { 2 | throw new Error('Readable.from is not available in the browser') 3 | }; 4 | -------------------------------------------------------------------------------- /node_modules/readable-stream/lib/internal/streams/stream-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = require('events').EventEmitter; 2 | -------------------------------------------------------------------------------- /node_modules/readable-stream/lib/internal/streams/stream.js: -------------------------------------------------------------------------------- 1 | module.exports = require('stream'); 2 | -------------------------------------------------------------------------------- /node_modules/readable-stream/readable-browser.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = exports; 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 | exports.finished = require('./lib/internal/streams/end-of-stream.js'); 9 | exports.pipeline = require('./lib/internal/streams/pipeline.js'); 10 | -------------------------------------------------------------------------------- /node_modules/semver/classes/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | SemVer: require('./semver.js'), 3 | Range: require('./range.js'), 4 | Comparator: require('./comparator.js'), 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/semver/functions/clean.js: -------------------------------------------------------------------------------- 1 | const parse = require('./parse') 2 | const clean = (version, options) => { 3 | const s = parse(version.trim().replace(/^[=v]+/, ''), options) 4 | return s ? s.version : null 5 | } 6 | module.exports = clean 7 | -------------------------------------------------------------------------------- /node_modules/semver/functions/compare-build.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const compareBuild = (a, b, loose) => { 3 | const versionA = new SemVer(a, loose) 4 | const versionB = new SemVer(b, loose) 5 | return versionA.compare(versionB) || versionA.compareBuild(versionB) 6 | } 7 | module.exports = compareBuild 8 | -------------------------------------------------------------------------------- /node_modules/semver/functions/compare-loose.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const compareLoose = (a, b) => compare(a, b, true) 3 | module.exports = compareLoose 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/compare.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const compare = (a, b, loose) => 3 | new SemVer(a, loose).compare(new SemVer(b, loose)) 4 | 5 | module.exports = compare 6 | -------------------------------------------------------------------------------- /node_modules/semver/functions/eq.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const eq = (a, b, loose) => compare(a, b, loose) === 0 3 | module.exports = eq 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/gt.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const gt = (a, b, loose) => compare(a, b, loose) > 0 3 | module.exports = gt 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/gte.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const gte = (a, b, loose) => compare(a, b, loose) >= 0 3 | module.exports = gte 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/inc.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | 3 | const inc = (version, release, options, identifier, identifierBase) => { 4 | if (typeof (options) === 'string') { 5 | identifierBase = identifier 6 | identifier = options 7 | options = undefined 8 | } 9 | 10 | try { 11 | return new SemVer( 12 | version instanceof SemVer ? version.version : version, 13 | options 14 | ).inc(release, identifier, identifierBase).version 15 | } catch (er) { 16 | return null 17 | } 18 | } 19 | module.exports = inc 20 | -------------------------------------------------------------------------------- /node_modules/semver/functions/lt.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const lt = (a, b, loose) => compare(a, b, loose) < 0 3 | module.exports = lt 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/lte.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const lte = (a, b, loose) => compare(a, b, loose) <= 0 3 | module.exports = lte 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/major.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const major = (a, loose) => new SemVer(a, loose).major 3 | module.exports = major 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/minor.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const minor = (a, loose) => new SemVer(a, loose).minor 3 | module.exports = minor 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/neq.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const neq = (a, b, loose) => compare(a, b, loose) !== 0 3 | module.exports = neq 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/parse.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const parse = (version, options, throwErrors = false) => { 3 | if (version instanceof SemVer) { 4 | return version 5 | } 6 | try { 7 | return new SemVer(version, options) 8 | } catch (er) { 9 | if (!throwErrors) { 10 | return null 11 | } 12 | throw er 13 | } 14 | } 15 | 16 | module.exports = parse 17 | -------------------------------------------------------------------------------- /node_modules/semver/functions/patch.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const patch = (a, loose) => new SemVer(a, loose).patch 3 | module.exports = patch 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/prerelease.js: -------------------------------------------------------------------------------- 1 | const parse = require('./parse') 2 | const prerelease = (version, options) => { 3 | const parsed = parse(version, options) 4 | return (parsed && parsed.prerelease.length) ? parsed.prerelease : null 5 | } 6 | module.exports = prerelease 7 | -------------------------------------------------------------------------------- /node_modules/semver/functions/rcompare.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const rcompare = (a, b, loose) => compare(b, a, loose) 3 | module.exports = rcompare 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/rsort.js: -------------------------------------------------------------------------------- 1 | const compareBuild = require('./compare-build') 2 | const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)) 3 | module.exports = rsort 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/satisfies.js: -------------------------------------------------------------------------------- 1 | const Range = require('../classes/range') 2 | const satisfies = (version, range, options) => { 3 | try { 4 | range = new Range(range, options) 5 | } catch (er) { 6 | return false 7 | } 8 | return range.test(version) 9 | } 10 | module.exports = satisfies 11 | -------------------------------------------------------------------------------- /node_modules/semver/functions/sort.js: -------------------------------------------------------------------------------- 1 | const compareBuild = require('./compare-build') 2 | const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)) 3 | module.exports = sort 4 | -------------------------------------------------------------------------------- /node_modules/semver/functions/valid.js: -------------------------------------------------------------------------------- 1 | const parse = require('./parse') 2 | const valid = (version, options) => { 3 | const v = parse(version, options) 4 | return v ? v.version : null 5 | } 6 | module.exports = valid 7 | -------------------------------------------------------------------------------- /node_modules/semver/internal/debug.js: -------------------------------------------------------------------------------- 1 | const debug = ( 2 | typeof process === 'object' && 3 | process.env && 4 | process.env.NODE_DEBUG && 5 | /\bsemver\b/i.test(process.env.NODE_DEBUG) 6 | ) ? (...args) => console.error('SEMVER', ...args) 7 | : () => {} 8 | 9 | module.exports = debug 10 | -------------------------------------------------------------------------------- /node_modules/semver/internal/identifiers.js: -------------------------------------------------------------------------------- 1 | const numeric = /^[0-9]+$/ 2 | const compareIdentifiers = (a, b) => { 3 | const anum = numeric.test(a) 4 | const bnum = numeric.test(b) 5 | 6 | if (anum && bnum) { 7 | a = +a 8 | b = +b 9 | } 10 | 11 | return a === b ? 0 12 | : (anum && !bnum) ? -1 13 | : (bnum && !anum) ? 1 14 | : a < b ? -1 15 | : 1 16 | } 17 | 18 | const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a) 19 | 20 | module.exports = { 21 | compareIdentifiers, 22 | rcompareIdentifiers, 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/semver/internal/parse-options.js: -------------------------------------------------------------------------------- 1 | // parse out just the options we care about 2 | const looseOption = Object.freeze({ loose: true }) 3 | const emptyOpts = Object.freeze({ }) 4 | const parseOptions = options => { 5 | if (!options) { 6 | return emptyOpts 7 | } 8 | 9 | if (typeof options !== 'object') { 10 | return looseOption 11 | } 12 | 13 | return options 14 | } 15 | module.exports = parseOptions 16 | -------------------------------------------------------------------------------- /node_modules/semver/preload.js: -------------------------------------------------------------------------------- 1 | // XXX remove in v8 or beyond 2 | module.exports = require('./index.js') 3 | -------------------------------------------------------------------------------- /node_modules/semver/range.bnf: -------------------------------------------------------------------------------- 1 | range-set ::= range ( logical-or range ) * 2 | logical-or ::= ( ' ' ) * '||' ( ' ' ) * 3 | range ::= hyphen | simple ( ' ' simple ) * | '' 4 | hyphen ::= partial ' - ' partial 5 | simple ::= primitive | partial | tilde | caret 6 | primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial 7 | partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? 8 | xr ::= 'x' | 'X' | '*' | nr 9 | nr ::= '0' | [1-9] ( [0-9] ) * 10 | tilde ::= '~' partial 11 | caret ::= '^' partial 12 | qualifier ::= ( '-' pre )? ( '+' build )? 13 | pre ::= parts 14 | build ::= parts 15 | parts ::= part ( '.' part ) * 16 | part ::= nr | [-0-9A-Za-z]+ 17 | -------------------------------------------------------------------------------- /node_modules/semver/ranges/gtr.js: -------------------------------------------------------------------------------- 1 | // Determine if version is greater than all the versions possible in the range. 2 | const outside = require('./outside') 3 | const gtr = (version, range, options) => outside(version, range, '>', options) 4 | module.exports = gtr 5 | -------------------------------------------------------------------------------- /node_modules/semver/ranges/intersects.js: -------------------------------------------------------------------------------- 1 | const Range = require('../classes/range') 2 | const intersects = (r1, r2, options) => { 3 | r1 = new Range(r1, options) 4 | r2 = new Range(r2, options) 5 | return r1.intersects(r2, options) 6 | } 7 | module.exports = intersects 8 | -------------------------------------------------------------------------------- /node_modules/semver/ranges/ltr.js: -------------------------------------------------------------------------------- 1 | const outside = require('./outside') 2 | // Determine if version is less than all the versions possible in the range 3 | const ltr = (version, range, options) => outside(version, range, '<', options) 4 | module.exports = ltr 5 | -------------------------------------------------------------------------------- /node_modules/semver/ranges/max-satisfying.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const Range = require('../classes/range') 3 | 4 | const maxSatisfying = (versions, range, options) => { 5 | let max = null 6 | let maxSV = null 7 | let rangeObj = null 8 | try { 9 | rangeObj = new Range(range, options) 10 | } catch (er) { 11 | return null 12 | } 13 | versions.forEach((v) => { 14 | if (rangeObj.test(v)) { 15 | // satisfies(v, range, options) 16 | if (!max || maxSV.compare(v) === -1) { 17 | // compare(max, v, true) 18 | max = v 19 | maxSV = new SemVer(max, options) 20 | } 21 | } 22 | }) 23 | return max 24 | } 25 | module.exports = maxSatisfying 26 | -------------------------------------------------------------------------------- /node_modules/semver/ranges/min-satisfying.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const Range = require('../classes/range') 3 | const minSatisfying = (versions, range, options) => { 4 | let min = null 5 | let minSV = null 6 | let rangeObj = null 7 | try { 8 | rangeObj = new Range(range, options) 9 | } catch (er) { 10 | return null 11 | } 12 | versions.forEach((v) => { 13 | if (rangeObj.test(v)) { 14 | // satisfies(v, range, options) 15 | if (!min || minSV.compare(v) === 1) { 16 | // compare(min, v, true) 17 | min = v 18 | minSV = new SemVer(min, options) 19 | } 20 | } 21 | }) 22 | return min 23 | } 24 | module.exports = minSatisfying 25 | -------------------------------------------------------------------------------- /node_modules/semver/ranges/to-comparators.js: -------------------------------------------------------------------------------- 1 | const Range = require('../classes/range') 2 | 3 | // Mostly just for testing and legacy API reasons 4 | const toComparators = (range, options) => 5 | new Range(range, options).set 6 | .map(comp => comp.map(c => c.value).join(' ').trim().split(' ')) 7 | 8 | module.exports = toComparators 9 | -------------------------------------------------------------------------------- /node_modules/semver/ranges/valid.js: -------------------------------------------------------------------------------- 1 | const Range = require('../classes/range') 2 | const validRange = (range, options) => { 3 | try { 4 | // Return '*' instead of '' so that truthiness works. 5 | // This will throw if it's invalid anyway 6 | return new Range(range, options).range || '*' 7 | } catch (er) { 8 | return null 9 | } 10 | } 11 | module.exports = validRange 12 | -------------------------------------------------------------------------------- /node_modules/set-blocking/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (blocking) { 2 | [process.stdout, process.stderr].forEach(function (stream) { 3 | if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function') { 4 | stream._handle.setBlocking(blocking) 5 | } 6 | }) 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/setprototypeof/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function setPrototypeOf(o: any, proto: object | null): any; 2 | export = setPrototypeOf; 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/side-channel/.eslintignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/sift/index.d.ts: -------------------------------------------------------------------------------- 1 | import sift from "./lib"; 2 | 3 | export default sift; 4 | export * from "./lib"; 5 | -------------------------------------------------------------------------------- /node_modules/sift/index.js: -------------------------------------------------------------------------------- 1 | const lib = require("./lib"); 2 | 3 | module.exports = lib.default; 4 | Object.assign(module.exports, lib); 5 | -------------------------------------------------------------------------------- /node_modules/sift/lib/utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare type Key = string | number; 2 | export declare type Comparator = (a: any, b: any) => boolean; 3 | export declare const typeChecker: (type: any) => (value: any) => value is TType; 4 | export declare const comparable: (value: any) => any; 5 | export declare const isArray: (value: any) => value is any[]; 6 | export declare const isObject: (value: any) => value is Object; 7 | export declare const isFunction: (value: any) => value is Function; 8 | export declare const isVanillaObject: (value: any) => boolean; 9 | export declare const equals: (a: any, b: any) => boolean; 10 | -------------------------------------------------------------------------------- /node_modules/sift/src/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAkD;AAClD,iCAcgB;AA8Bd,kGAnCA,wBAAiB,OAmCA;AADjB,gGAjCA,sBAAe,OAiCA;AAKf,qGArCA,2BAAoB,OAqCA;AADpB,sGAnCA,4BAAqB,OAmCA;AAFrB,sGAhCA,4BAAqB,OAgCA;AA7BvB,MAAM,2BAA2B,GAAG,CAClC,KAAqB,EACrB,UAAe,EACf,EAAE,OAAO,EAAE,UAAU,KAAuB,EAAE,EAC9C,EAAE;IACF,OAAO,IAAA,2BAAoB,EAAC,KAAK,EAAE,UAAU,EAAE;QAC7C,OAAO;QACP,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,EAAE,UAAU,IAAI,EAAE,CAAC;KACnE,CAAC,CAAC;AACL,CAAC,CAAC;AAqBA,kEAA2B;AAnB7B,MAAM,wBAAwB,GAAG,CAC/B,KAAqB,EACrB,UAA4B,EAAE,EAC9B,EAAE;IACF,MAAM,EAAE,GAAG,2BAA2B,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAO,IAAA,4BAAqB,EAAC,EAAE,CAAC,CAAC;AACnC,CAAC,CAAC;AAiBF,+CAA6B;AAE7B,kBAAe,wBAAwB,CAAC"} -------------------------------------------------------------------------------- /node_modules/sift/src/utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare type Key = string | number; 2 | export declare type Comparator = (a: any, b: any) => boolean; 3 | export declare const typeChecker: (type: any) => (value: any) => value is TType; 4 | export declare const comparable: (value: any) => any; 5 | export declare const isArray: (value: any) => value is any[]; 6 | export declare const isObject: (value: any) => value is Object; 7 | export declare const isFunction: (value: any) => value is Function; 8 | export declare const isVanillaObject: (value: any) => boolean; 9 | export declare const equals: (a: any, b: any) => boolean; 10 | -------------------------------------------------------------------------------- /node_modules/smart-buffer/.prettierrc.yaml: -------------------------------------------------------------------------------- 1 | parser: typescript 2 | printWidth: 120 3 | tabWidth: 2 4 | singleQuote: true 5 | trailingComma: none -------------------------------------------------------------------------------- /node_modules/smart-buffer/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 6 4 | - 8 5 | - 10 6 | - 12 7 | - stable 8 | 9 | before_script: 10 | - npm install -g typescript 11 | - tsc -p ./ 12 | 13 | script: "npm run coveralls" -------------------------------------------------------------------------------- /node_modules/smart-buffer/docs/ROADMAP.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamaz-Chihab/node-restful-API-Project/741f10d84c6eaa88577ccd5c3ff7f373aca5d667/node_modules/smart-buffer/docs/ROADMAP.md -------------------------------------------------------------------------------- /node_modules/socks/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parser: '@typescript-eslint/parser', 4 | plugins: [ 5 | '@typescript-eslint', 6 | ], 7 | extends: [ 8 | 'eslint:recommended', 9 | 'plugin:@typescript-eslint/recommended', 10 | ], 11 | }; -------------------------------------------------------------------------------- /node_modules/socks/.prettierrc.yaml: -------------------------------------------------------------------------------- 1 | parser: typescript 2 | printWidth: 80 3 | tabWidth: 2 4 | singleQuote: true 5 | trailingComma: all 6 | arrowParens: always 7 | bracketSpacing: false -------------------------------------------------------------------------------- /node_modules/socks/build/common/util.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/common/util.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAM,gBAAiB,SAAQ,KAAK;IAClC,YACE,OAAe,EACR,OAAqD;QAE5D,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,YAAO,GAAP,OAAO,CAA8C;IAG9D,CAAC;CACF;AAuBuB,4CAAgB;AArBxC;;;GAGG;AACH,SAAS,YAAY,CAAC,KAAgB;IACpC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC;AAYyC,oCAAY"} -------------------------------------------------------------------------------- /node_modules/socks/build/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"} -------------------------------------------------------------------------------- /node_modules/socks/docs/examples/index.md: -------------------------------------------------------------------------------- 1 | # socks examples 2 | 3 | ## TypeScript Examples 4 | 5 | [Connect command](typescript/connectExample.md) 6 | 7 | [Bind command](typescript/bindExample.md) 8 | 9 | [Associate command](typescript/associateExample.md) 10 | 11 | ## JavaScript Examples 12 | 13 | [Connect command](javascript/connectExample.md) 14 | 15 | [Bind command](javascript/bindExample.md) 16 | 17 | [Associate command](javascript/associateExample.md) -------------------------------------------------------------------------------- /node_modules/socks/docs/index.md: -------------------------------------------------------------------------------- 1 | # Documentation 2 | 3 | - [API Reference](https://github.com/JoshGlazebrook/socks#api-reference) 4 | 5 | - [Code Examples](./examples/index.md) -------------------------------------------------------------------------------- /node_modules/socks/typings/common/helpers.d.ts: -------------------------------------------------------------------------------- 1 | import { SocksClientOptions, SocksClientChainOptions } from '../client/socksclient'; 2 | /** 3 | * Validates the provided SocksClientOptions 4 | * @param options { SocksClientOptions } 5 | * @param acceptedCommands { string[] } A list of accepted SocksProxy commands. 6 | */ 7 | declare function validateSocksClientOptions(options: SocksClientOptions, acceptedCommands?: string[]): void; 8 | /** 9 | * Validates the SocksClientChainOptions 10 | * @param options { SocksClientChainOptions } 11 | */ 12 | declare function validateSocksClientChainOptions(options: SocksClientChainOptions): void; 13 | export { validateSocksClientOptions, validateSocksClientChainOptions }; 14 | -------------------------------------------------------------------------------- /node_modules/socks/typings/common/receivebuffer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare class ReceiveBuffer { 3 | private buffer; 4 | private offset; 5 | private originalSize; 6 | constructor(size?: number); 7 | get length(): number; 8 | append(data: Buffer): number; 9 | peek(length: number): Buffer; 10 | get(length: number): Buffer; 11 | } 12 | export { ReceiveBuffer }; 13 | -------------------------------------------------------------------------------- /node_modules/socks/typings/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './client/socksclient'; 2 | -------------------------------------------------------------------------------- /node_modules/sparse-bitfield/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/sparse-bitfield/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.10' 4 | - '0.12' 5 | - '4.0' 6 | - '5.0' 7 | -------------------------------------------------------------------------------- /node_modules/strip-ansi/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string. 3 | 4 | @example 5 | ``` 6 | import stripAnsi = require('strip-ansi'); 7 | 8 | stripAnsi('\u001B[4mUnicorn\u001B[0m'); 9 | //=> 'Unicorn' 10 | 11 | stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'); 12 | //=> 'Click' 13 | ``` 14 | */ 15 | declare function stripAnsi(string: string): string; 16 | 17 | export = stripAnsi; 18 | -------------------------------------------------------------------------------- /node_modules/strip-ansi/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const ansiRegex = require('ansi-regex'); 3 | 4 | module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string; 5 | -------------------------------------------------------------------------------- /node_modules/tar/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | // high-level commands 4 | exports.c = exports.create = require('./lib/create.js') 5 | exports.r = exports.replace = require('./lib/replace.js') 6 | exports.t = exports.list = require('./lib/list.js') 7 | exports.u = exports.update = require('./lib/update.js') 8 | exports.x = exports.extract = require('./lib/extract.js') 9 | 10 | // classes 11 | exports.Pack = require('./lib/pack.js') 12 | exports.Unpack = require('./lib/unpack.js') 13 | exports.Parse = require('./lib/parse.js') 14 | exports.ReadEntry = require('./lib/read-entry.js') 15 | exports.WriteEntry = require('./lib/write-entry.js') 16 | exports.Header = require('./lib/header.js') 17 | exports.Pax = require('./lib/pax.js') 18 | exports.types = require('./lib/types.js') 19 | -------------------------------------------------------------------------------- /node_modules/tar/lib/normalize-unicode.js: -------------------------------------------------------------------------------- 1 | // warning: extremely hot code path. 2 | // This has been meticulously optimized for use 3 | // within npm install on large package trees. 4 | // Do not edit without careful benchmarking. 5 | const normalizeCache = Object.create(null) 6 | const { hasOwnProperty } = Object.prototype 7 | module.exports = s => { 8 | if (!hasOwnProperty.call(normalizeCache, s)) { 9 | normalizeCache[s] = s.normalize('NFD') 10 | } 11 | return normalizeCache[s] 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/tar/lib/normalize-windows-path.js: -------------------------------------------------------------------------------- 1 | // on windows, either \ or / are valid directory separators. 2 | // on unix, \ is a valid character in filenames. 3 | // so, on windows, and only on windows, we replace all \ chars with /, 4 | // so that we can use / as our one and only directory separator char. 5 | 6 | const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform 7 | module.exports = platform !== 'win32' ? p => p 8 | : p => p && p.replace(/\\/g, '/') 9 | -------------------------------------------------------------------------------- /node_modules/tar/lib/strip-trailing-slashes.js: -------------------------------------------------------------------------------- 1 | // warning: extremely hot code path. 2 | // This has been meticulously optimized for use 3 | // within npm install on large package trees. 4 | // Do not edit without careful benchmarking. 5 | module.exports = str => { 6 | let i = str.length - 1 7 | let slashesStart = -1 8 | while (i > -1 && str.charAt(i) === '/') { 9 | slashesStart = i 10 | i-- 11 | } 12 | return slashesStart === -1 ? str : str.slice(0, slashesStart) 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/tar/lib/winchars.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | // When writing files on Windows, translate the characters to their 4 | // 0xf000 higher-encoded versions. 5 | 6 | const raw = [ 7 | '|', 8 | '<', 9 | '>', 10 | '?', 11 | ':', 12 | ] 13 | 14 | const win = raw.map(char => 15 | String.fromCharCode(0xf000 + char.charCodeAt(0))) 16 | 17 | const toWin = new Map(raw.map((char, i) => [char, win[i]])) 18 | const toRaw = new Map(win.map((char, i) => [char, raw[i]])) 19 | 20 | module.exports = { 21 | encode: s => raw.reduce((s, c) => s.split(c).join(toWin.get(c)), s), 22 | decode: s => win.reduce((s, c) => s.split(c).join(toRaw.get(c)), s), 23 | } 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/tr46/lib/statusMapping.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports.STATUS_MAPPING = { 4 | mapped: 1, 5 | valid: 2, 6 | disallowed: 3, 7 | disallowed_STD3_valid: 4, 8 | disallowed_STD3_mapped: 5, 9 | deviation: 6, 10 | ignored: 7 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/undici-types/README.md: -------------------------------------------------------------------------------- 1 | # undici-types 2 | 3 | This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version. 4 | 5 | - [GitHub nodejs/undici](https://github.com/nodejs/undici) 6 | - [Undici Documentation](https://undici.nodejs.org/#/) 7 | -------------------------------------------------------------------------------- /node_modules/undici-types/balanced-pool.d.ts: -------------------------------------------------------------------------------- 1 | import Pool from './pool' 2 | import Dispatcher from './dispatcher' 3 | import { URL } from 'url' 4 | 5 | export default BalancedPool 6 | 7 | declare class BalancedPool extends Dispatcher { 8 | constructor(url: string | string[] | URL | URL[], options?: Pool.Options); 9 | 10 | addUpstream(upstream: string | URL): BalancedPool; 11 | removeUpstream(upstream: string | URL): BalancedPool; 12 | upstreams: Array; 13 | 14 | /** `true` after `pool.close()` has been called. */ 15 | closed: boolean; 16 | /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */ 17 | destroyed: boolean; 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/undici-types/content-type.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | interface MIMEType { 4 | type: string 5 | subtype: string 6 | parameters: Map 7 | essence: string 8 | } 9 | 10 | /** 11 | * Parse a string to a {@link MIMEType} object. Returns `failure` if the string 12 | * couldn't be parsed. 13 | * @see https://mimesniff.spec.whatwg.org/#parse-a-mime-type 14 | */ 15 | export function parseMIMEType (input: string): 'failure' | MIMEType 16 | 17 | /** 18 | * Convert a MIMEType object to a string. 19 | * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type 20 | */ 21 | export function serializeAMimeType (mimeType: MIMEType): string 22 | -------------------------------------------------------------------------------- /node_modules/undici-types/global-dispatcher.d.ts: -------------------------------------------------------------------------------- 1 | import Dispatcher from "./dispatcher"; 2 | 3 | export { 4 | getGlobalDispatcher, 5 | setGlobalDispatcher 6 | } 7 | 8 | declare function setGlobalDispatcher(dispatcher: DispatcherImplementation): void; 9 | declare function getGlobalDispatcher(): Dispatcher; 10 | -------------------------------------------------------------------------------- /node_modules/undici-types/global-origin.d.ts: -------------------------------------------------------------------------------- 1 | export { 2 | setGlobalOrigin, 3 | getGlobalOrigin 4 | } 5 | 6 | declare function setGlobalOrigin(origin: string | URL | undefined): void; 7 | declare function getGlobalOrigin(): URL | undefined; -------------------------------------------------------------------------------- /node_modules/undici-types/handlers.d.ts: -------------------------------------------------------------------------------- 1 | import Dispatcher from "./dispatcher"; 2 | 3 | export declare class RedirectHandler implements Dispatcher.DispatchHandlers{ 4 | constructor (dispatch: Dispatcher, maxRedirections: number, opts: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandlers) 5 | } 6 | 7 | export declare class DecoratorHandler implements Dispatcher.DispatchHandlers{ 8 | constructor (handler: Dispatcher.DispatchHandlers) 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/undici-types/header.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * The header type declaration of `undici`. 3 | */ 4 | export type IncomingHttpHeaders = Record; 5 | -------------------------------------------------------------------------------- /node_modules/undici-types/interceptors.d.ts: -------------------------------------------------------------------------------- 1 | import Dispatcher from "./dispatcher"; 2 | 3 | type RedirectInterceptorOpts = { maxRedirections?: number } 4 | 5 | export declare function createRedirectInterceptor (opts: RedirectInterceptorOpts): Dispatcher.DispatchInterceptor 6 | -------------------------------------------------------------------------------- /node_modules/undici-types/mock-errors.d.ts: -------------------------------------------------------------------------------- 1 | import Errors from './errors' 2 | 3 | export default MockErrors 4 | 5 | declare namespace MockErrors { 6 | /** The request does not match any registered mock dispatches. */ 7 | export class MockNotMatchedError extends Errors.UndiciError { 8 | constructor(message?: string); 9 | name: 'MockNotMatchedError'; 10 | code: 'UND_MOCK_ERR_MOCK_NOT_MATCHED'; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/undici-types/pool-stats.d.ts: -------------------------------------------------------------------------------- 1 | import Pool from "./pool" 2 | 3 | export default PoolStats 4 | 5 | declare class PoolStats { 6 | constructor(pool: Pool); 7 | /** Number of open socket connections in this pool. */ 8 | connected: number; 9 | /** Number of open socket connections in this pool that do not have an active request. */ 10 | free: number; 11 | /** Number of pending requests across all clients in this pool. */ 12 | pending: number; 13 | /** Number of queued requests across all clients in this pool. */ 14 | queued: number; 15 | /** Number of currently active requests across all clients in this pool. */ 16 | running: number; 17 | /** Number of active, pending, or queued requests across all clients in this pool. */ 18 | size: number; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/unpipe/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.0 / 2015-06-14 2 | ================== 3 | 4 | * Initial release 5 | -------------------------------------------------------------------------------- /node_modules/util-deprecate/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.2 / 2015-10-07 3 | ================== 4 | 5 | * use try/catch when checking `localStorage` (#3, @kumavis) 6 | 7 | 1.0.1 / 2014-11-25 8 | ================== 9 | 10 | * browser: use `console.warn()` for deprecation calls 11 | * browser: more jsdocs 12 | 13 | 1.0.0 / 2014-04-30 14 | ================== 15 | 16 | * initial commit 17 | -------------------------------------------------------------------------------- /node_modules/util-deprecate/node.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * For Node.js, simply re-export the core `util.deprecate` function. 4 | */ 5 | 6 | module.exports = require('util').deprecate; 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/whatwg-url/lib/encoding.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const utf8Encoder = new TextEncoder(); 3 | const utf8Decoder = new TextDecoder("utf-8", { ignoreBOM: true }); 4 | 5 | function utf8Encode(string) { 6 | return utf8Encoder.encode(string); 7 | } 8 | 9 | function utf8DecodeWithoutBOM(bytes) { 10 | return utf8Decoder.decode(bytes); 11 | } 12 | 13 | module.exports = { 14 | utf8Encode, 15 | utf8DecodeWithoutBOM 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/whatwg-url/lib/infra.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // Note that we take code points as JS numbers, not JS strings. 4 | 5 | function isASCIIDigit(c) { 6 | return c >= 0x30 && c <= 0x39; 7 | } 8 | 9 | function isASCIIAlpha(c) { 10 | return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A); 11 | } 12 | 13 | function isASCIIAlphanumeric(c) { 14 | return isASCIIAlpha(c) || isASCIIDigit(c); 15 | } 16 | 17 | function isASCIIHex(c) { 18 | return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66); 19 | } 20 | 21 | module.exports = { 22 | isASCIIDigit, 23 | isASCIIAlpha, 24 | isASCIIAlphanumeric, 25 | isASCIIHex 26 | }; 27 | -------------------------------------------------------------------------------- /node_modules/whatwg-url/webidl2js-wrapper.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const URL = require("./lib/URL"); 4 | const URLSearchParams = require("./lib/URLSearchParams"); 5 | 6 | exports.URL = URL; 7 | exports.URLSearchParams = URLSearchParams; 8 | -------------------------------------------------------------------------------- /node_modules/wrappy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wrappy", 3 | "version": "1.0.2", 4 | "description": "Callback wrapping utility", 5 | "main": "wrappy.js", 6 | "files": [ 7 | "wrappy.js" 8 | ], 9 | "directories": { 10 | "test": "test" 11 | }, 12 | "dependencies": {}, 13 | "devDependencies": { 14 | "tap": "^2.3.1" 15 | }, 16 | "scripts": { 17 | "test": "tap --coverage test/*.js" 18 | }, 19 | "repository": { 20 | "type": "git", 21 | "url": "https://github.com/npm/wrappy" 22 | }, 23 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 24 | "license": "ISC", 25 | "bugs": { 26 | "url": "https://github.com/npm/wrappy/issues" 27 | }, 28 | "homepage": "https://github.com/npm/wrappy" 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/yallist/iterator.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = function (Yallist) { 3 | Yallist.prototype[Symbol.iterator] = function* () { 4 | for (let walker = this.head; walker; walker = walker.next) { 5 | yield walker.value 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "restful-api", 3 | "version": "1.0.0", 4 | "description": "za Node.js RESTful API Tutorial Project (Build a simple Shop API)", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "start": "node index.js" 9 | }, 10 | "keywords": [ 11 | "node", 12 | "restful", 13 | "api" 14 | ], 15 | "author": "hamaz chihab eddine", 16 | "license": "ISC", 17 | "dependencies": { 18 | "bcrypt": "^5.1.1", 19 | "body-parser": "^1.20.2", 20 | "cors": "^2.8.5", 21 | "dotenv": "^16.3.1", 22 | "express": "^4.18.2", 23 | "jsonwebtoken": "^9.0.2", 24 | "mongoose": "^7.6.1" 25 | } 26 | } 27 | --------------------------------------------------------------------------------