@alanszp/express-common-fn 10.0.0 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonErrorsHandler.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/node_modules/@alanszp/audit/.gitignore +3 -0
- package/node_modules/@alanszp/audit/.npmignore +3 -0
- package/node_modules/@alanszp/audit/LICENSE +21 -0
- package/node_modules/@alanszp/audit/dist/audit.d.ts +9 -0
- package/node_modules/@alanszp/audit/dist/audit.js +25 -0
- package/node_modules/@alanszp/audit/dist/audit.js.map +1 -0
- package/node_modules/@alanszp/audit/dist/auditWithState.d.ts +10 -0
- package/node_modules/@alanszp/audit/dist/auditWithState.js +22 -0
- package/node_modules/@alanszp/audit/dist/auditWithState.js.map +1 -0
- package/node_modules/@alanszp/audit/dist/errors/AuditError.d.ts +3 -0
- package/node_modules/@alanszp/audit/dist/errors/AuditError.js +8 -0
- package/node_modules/@alanszp/audit/dist/errors/AuditError.js.map +1 -0
- package/node_modules/@alanszp/audit/dist/errors/MissingAuditFieldsError.d.ts +9 -0
- package/node_modules/@alanszp/audit/dist/errors/MissingAuditFieldsError.js +23 -0
- package/node_modules/@alanszp/audit/dist/errors/MissingAuditFieldsError.js.map +1 -0
- package/node_modules/@alanszp/audit/dist/errors/index.d.ts +2 -0
- package/node_modules/@alanszp/audit/dist/errors/index.js +19 -0
- package/node_modules/@alanszp/audit/dist/errors/index.js.map +1 -0
- package/node_modules/@alanszp/audit/dist/factory.d.ts +4 -0
- package/node_modules/@alanszp/audit/dist/factory.js +16 -0
- package/node_modules/@alanszp/audit/dist/factory.js.map +1 -0
- package/node_modules/@alanszp/audit/dist/index.d.ts +5 -0
- package/node_modules/@alanszp/audit/dist/index.js +22 -0
- package/node_modules/@alanszp/audit/dist/index.js.map +1 -0
- package/node_modules/@alanszp/audit/dist/interfaces.d.ts +19 -0
- package/node_modules/@alanszp/audit/dist/interfaces.js +18 -0
- package/node_modules/@alanszp/audit/dist/interfaces.js.map +1 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/README.md +15 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/assert.d.ts +996 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/console.d.ts +415 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/constants.d.ts +19 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/dns.d.ts +809 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/events.d.ts +879 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/fs.d.ts +4311 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/globals.d.ts +411 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/http.d.ts +1887 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/http2.d.ts +2382 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/https.d.ts +550 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/index.d.ts +88 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/module.d.ts +315 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/net.d.ts +949 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/os.d.ts +478 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/package.json +229 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/process.d.ts +1561 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/querystring.d.ts +141 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/readline.d.ts +539 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/stream.d.ts +1701 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/test.d.ts +1465 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/timers.d.ts +240 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/tls.d.ts +1210 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dgram.d.ts +596 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/fs.d.ts +4311 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/globals.d.ts +411 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/http.d.ts +1887 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/module.d.ts +315 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/process.d.ts +1561 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/test.d.ts +1465 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/v8.d.ts +764 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/wasi.d.ts +179 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/url.d.ts +927 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/util.d.ts +2183 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/v8.d.ts +764 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/vm.d.ts +903 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/wasi.d.ts +179 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/audit/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@alanszp/audit/package.json +30 -0
- package/node_modules/@alanszp/audit/src/audit.ts +31 -0
- package/node_modules/@alanszp/audit/src/auditWithState.ts +27 -0
- package/node_modules/@alanszp/audit/src/errors/AuditError.ts +3 -0
- package/node_modules/@alanszp/audit/src/errors/MissingAuditFieldsError.ts +28 -0
- package/node_modules/@alanszp/audit/src/errors/index.ts +2 -0
- package/node_modules/@alanszp/audit/src/factory.ts +16 -0
- package/node_modules/@alanszp/audit/src/index.ts +5 -0
- package/node_modules/@alanszp/audit/src/interfaces.ts +33 -0
- package/node_modules/@alanszp/audit/tsconfig.json +15 -0
- package/node_modules/@alanszp/errors/.gitignore +3 -0
- package/node_modules/@alanszp/errors/.npmignore +3 -0
- package/node_modules/@alanszp/errors/LICENSE +21 -0
- package/node_modules/@alanszp/errors/dist/errors/BaseError.d.ts +3 -0
- package/node_modules/@alanszp/errors/dist/errors/BaseError.js +18 -0
- package/node_modules/@alanszp/errors/dist/errors/BaseError.js.map +1 -0
- package/node_modules/@alanszp/errors/dist/errors/RenderableError.d.ts +6 -0
- package/node_modules/@alanszp/errors/dist/errors/RenderableError.js +3 -0
- package/node_modules/@alanszp/errors/dist/errors/RenderableError.js.map +1 -0
- package/node_modules/@alanszp/errors/dist/errors/http/BadRequestError.d.ts +8 -0
- package/node_modules/@alanszp/errors/dist/errors/http/BadRequestError.js +20 -0
- package/node_modules/@alanszp/errors/dist/errors/http/BadRequestError.js.map +1 -0
- package/node_modules/@alanszp/errors/dist/errors/http/HttpError.d.ts +8 -0
- package/node_modules/@alanszp/errors/dist/errors/http/HttpError.js +18 -0
- package/node_modules/@alanszp/errors/dist/errors/http/HttpError.js.map +1 -0
- package/node_modules/@alanszp/errors/dist/errors/http/InternalServerError.d.ts +8 -0
- package/node_modules/@alanszp/errors/dist/errors/http/InternalServerError.js +32 -0
- package/node_modules/@alanszp/errors/dist/errors/http/InternalServerError.js.map +1 -0
- package/node_modules/@alanszp/errors/dist/errors/http/NotFoundError.d.ts +4 -0
- package/node_modules/@alanszp/errors/dist/errors/http/NotFoundError.js +11 -0
- package/node_modules/@alanszp/errors/dist/errors/http/NotFoundError.js.map +1 -0
- package/node_modules/@alanszp/errors/dist/errors/http/UnauthorizedError.d.ts +8 -0
- package/node_modules/@alanszp/errors/dist/errors/http/UnauthorizedError.js +20 -0
- package/node_modules/@alanszp/errors/dist/errors/http/UnauthorizedError.js.map +1 -0
- package/node_modules/@alanszp/errors/dist/errors/http/index.d.ts +5 -0
- package/node_modules/@alanszp/errors/dist/errors/http/index.js +18 -0
- package/node_modules/@alanszp/errors/dist/errors/http/index.js.map +1 -0
- package/node_modules/@alanszp/errors/dist/index.d.ts +3 -0
- package/node_modules/@alanszp/errors/dist/index.js +16 -0
- package/node_modules/@alanszp/errors/dist/index.js.map +1 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/README.md +15 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/assert.d.ts +996 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/console.d.ts +415 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/constants.d.ts +19 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/dns.d.ts +809 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/events.d.ts +879 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/fs.d.ts +4311 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/globals.d.ts +411 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/http.d.ts +1887 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/http2.d.ts +2382 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/https.d.ts +550 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/index.d.ts +88 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/module.d.ts +315 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/net.d.ts +949 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/os.d.ts +478 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/package.json +229 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/process.d.ts +1561 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/querystring.d.ts +141 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/readline.d.ts +539 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/stream.d.ts +1701 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/test.d.ts +1465 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/timers.d.ts +240 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/tls.d.ts +1210 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dgram.d.ts +596 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/fs.d.ts +4311 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/globals.d.ts +411 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/http.d.ts +1887 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/module.d.ts +315 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/process.d.ts +1561 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/test.d.ts +1465 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/v8.d.ts +764 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/wasi.d.ts +179 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/url.d.ts +927 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/util.d.ts +2183 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/v8.d.ts +764 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/vm.d.ts +903 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/wasi.d.ts +179 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/errors/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@alanszp/errors/package.json +27 -0
- package/node_modules/@alanszp/errors/src/errors/BaseError.ts +14 -0
- package/node_modules/@alanszp/errors/src/errors/RenderableError.ts +7 -0
- package/node_modules/@alanszp/errors/src/errors/http/BadRequestError.ts +21 -0
- package/node_modules/@alanszp/errors/src/errors/http/HttpError.ts +19 -0
- package/node_modules/@alanszp/errors/src/errors/http/InternalServerError.ts +34 -0
- package/node_modules/@alanszp/errors/src/errors/http/NotFoundError.ts +7 -0
- package/node_modules/@alanszp/errors/src/errors/http/UnauthorizedError.ts +21 -0
- package/node_modules/@alanszp/errors/src/errors/http/index.ts +5 -0
- package/node_modules/@alanszp/errors/src/index.ts +3 -0
- package/node_modules/@alanszp/errors/tsconfig.json +15 -0
- package/node_modules/@alanszp/express/.gitignore +3 -0
- package/node_modules/@alanszp/express/.npmignore +3 -0
- package/node_modules/@alanszp/express/LICENSE +21 -0
- package/node_modules/@alanszp/express/babel.config.js +7 -0
- package/node_modules/@alanszp/express/dist/helpers/appIdentifier.d.ts +1 -0
- package/node_modules/@alanszp/express/dist/helpers/appIdentifier.js +10 -0
- package/node_modules/@alanszp/express/dist/helpers/appIdentifier.js.map +1 -0
- package/node_modules/@alanszp/express/dist/helpers/getIp.d.ts +2 -0
- package/node_modules/@alanszp/express/dist/helpers/getIp.js +9 -0
- package/node_modules/@alanszp/express/dist/helpers/getIp.js.map +1 -0
- package/node_modules/@alanszp/express/dist/helpers/getRequestLogger.d.ts +2 -0
- package/node_modules/@alanszp/express/dist/helpers/getRequestLogger.js +10 -0
- package/node_modules/@alanszp/express/dist/helpers/getRequestLogger.js.map +1 -0
- package/node_modules/@alanszp/express/dist/helpers/now.d.ts +1 -0
- package/node_modules/@alanszp/express/dist/helpers/now.js +8 -0
- package/node_modules/@alanszp/express/dist/helpers/now.js.map +1 -0
- package/node_modules/@alanszp/express/dist/index.d.ts +11 -0
- package/node_modules/@alanszp/express/dist/index.js +24 -0
- package/node_modules/@alanszp/express/dist/index.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/accessLogger.d.ts +3 -0
- package/node_modules/@alanszp/express/dist/middlewares/accessLogger.js +30 -0
- package/node_modules/@alanszp/express/dist/middlewares/accessLogger.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/auditLog.d.ts +8 -0
- package/node_modules/@alanszp/express/dist/middlewares/auditLog.js +43 -0
- package/node_modules/@alanszp/express/dist/middlewares/auditLog.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/authedForOrg.d.ts +3 -0
- package/node_modules/@alanszp/express/dist/middlewares/authedForOrg.js +46 -0
- package/node_modules/@alanszp/express/dist/middlewares/authedForOrg.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.d.ts +25 -0
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.js +115 -0
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.test.d.ts +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.test.js +308 -0
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.test.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/createContext.d.ts +6 -0
- package/node_modules/@alanszp/express/dist/middlewares/createContext.js +36 -0
- package/node_modules/@alanszp/express/dist/middlewares/createContext.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/createContext.test.d.ts +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/createContext.test.js +50 -0
- package/node_modules/@alanszp/express/dist/middlewares/createContext.test.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/hasRoles.d.ts +3 -0
- package/node_modules/@alanszp/express/dist/middlewares/hasRoles.js +23 -0
- package/node_modules/@alanszp/express/dist/middlewares/hasRoles.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/jsonBodyParser.d.ts +4 -0
- package/node_modules/@alanszp/express/dist/middlewares/jsonBodyParser.js +23 -0
- package/node_modules/@alanszp/express/dist/middlewares/jsonBodyParser.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/returnInternalServerError.d.ts +4 -0
- package/node_modules/@alanszp/express/dist/middlewares/returnInternalServerError.js +11 -0
- package/node_modules/@alanszp/express/dist/middlewares/returnInternalServerError.js.map +1 -0
- package/node_modules/@alanszp/express/dist/middlewares/returnNotFound.d.ts +3 -0
- package/node_modules/@alanszp/express/dist/middlewares/returnNotFound.js +10 -0
- package/node_modules/@alanszp/express/dist/middlewares/returnNotFound.js.map +1 -0
- package/node_modules/@alanszp/express/dist/test/mocks/authOptionsMocks.d.ts +8 -0
- package/node_modules/@alanszp/express/dist/test/mocks/authOptionsMocks.js +30 -0
- package/node_modules/@alanszp/express/dist/test/mocks/authOptionsMocks.js.map +1 -0
- package/node_modules/@alanszp/express/dist/test/mocks/expressMocks.d.ts +6 -0
- package/node_modules/@alanszp/express/dist/test/mocks/expressMocks.js +26 -0
- package/node_modules/@alanszp/express/dist/test/mocks/expressMocks.js.map +1 -0
- package/node_modules/@alanszp/express/dist/test/mocks/jwtUserMocks.d.ts +3 -0
- package/node_modules/@alanszp/express/dist/test/mocks/jwtUserMocks.js +20 -0
- package/node_modules/@alanszp/express/dist/test/mocks/jwtUserMocks.js.map +1 -0
- package/node_modules/@alanszp/express/dist/test/setup.d.ts +1 -0
- package/node_modules/@alanszp/express/dist/test/setup.js +5 -0
- package/node_modules/@alanszp/express/dist/test/setup.js.map +1 -0
- package/node_modules/@alanszp/express/dist/test/setup.test.d.ts +1 -0
- package/node_modules/@alanszp/express/dist/test/setup.test.js +14 -0
- package/node_modules/@alanszp/express/dist/test/setup.test.js.map +1 -0
- package/node_modules/@alanszp/express/dist/types/AuthMethod.d.ts +10 -0
- package/node_modules/@alanszp/express/dist/types/AuthMethod.js +3 -0
- package/node_modules/@alanszp/express/dist/types/AuthMethod.js.map +1 -0
- package/node_modules/@alanszp/express/dist/types/GenericRequest.d.ts +2 -0
- package/node_modules/@alanszp/express/dist/types/GenericRequest.js +3 -0
- package/node_modules/@alanszp/express/dist/types/GenericRequest.js.map +1 -0
- package/node_modules/@alanszp/express/dist/views/errorView.d.ts +2 -0
- package/node_modules/@alanszp/express/dist/views/errorView.js +14 -0
- package/node_modules/@alanszp/express/dist/views/errorView.js.map +1 -0
- package/node_modules/@alanszp/express/jest.config.js +10 -0
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/LICENSE +21 -0
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/README.md +5 -0
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/index.d.ts +93 -0
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/index.js +37 -0
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/jasmineUtils.js +282 -0
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/types.js +1 -0
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/utils.js +457 -0
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/package.json +33 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/LICENSE +21 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/README.md +30 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/Circus.js +1 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/Config.js +1 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/Global.js +1 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/TestResult.js +1 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/Transform.js +1 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/index.d.ts +1166 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/index.js +1 -0
- package/node_modules/@alanszp/express/node_modules/@jest/types/package.json +38 -0
- package/node_modules/@alanszp/express/node_modules/@types/jest/LICENSE +21 -0
- package/node_modules/@alanszp/express/node_modules/@types/jest/README.md +17 -0
- package/node_modules/@alanszp/express/node_modules/@types/jest/index.d.ts +1608 -0
- package/node_modules/@alanszp/express/node_modules/@types/jest/package.json +159 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/README.md +15 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/assert.d.ts +996 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/console.d.ts +415 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/constants.d.ts +19 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/dns.d.ts +809 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/events.d.ts +879 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/fs.d.ts +4311 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/globals.d.ts +411 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/http.d.ts +1887 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/http2.d.ts +2382 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/https.d.ts +550 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/index.d.ts +88 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/module.d.ts +315 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/net.d.ts +949 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/os.d.ts +478 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/package.json +229 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/process.d.ts +1561 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/querystring.d.ts +141 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/readline.d.ts +539 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/stream.d.ts +1701 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/test.d.ts +1465 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/timers.d.ts +240 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/tls.d.ts +1210 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dgram.d.ts +596 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/fs.d.ts +4311 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/globals.d.ts +411 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/http.d.ts +1887 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/module.d.ts +315 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/process.d.ts +1561 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/test.d.ts +1465 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/v8.d.ts +764 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/wasi.d.ts +179 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/url.d.ts +927 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/util.d.ts +2183 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/v8.d.ts +764 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/vm.d.ts +903 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/wasi.d.ts +179 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/express/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@alanszp/express/package.json +49 -0
- package/node_modules/@alanszp/express/src/helpers/appIdentifier.ts +5 -0
- package/node_modules/@alanszp/express/src/helpers/getIp.ts +5 -0
- package/node_modules/@alanszp/express/src/helpers/getRequestLogger.ts +6 -0
- package/node_modules/@alanszp/express/src/helpers/now.ts +3 -0
- package/node_modules/@alanszp/express/src/index.ts +11 -0
- package/node_modules/@alanszp/express/src/middlewares/accessLogger.ts +34 -0
- package/node_modules/@alanszp/express/src/middlewares/auditLog.ts +49 -0
- package/node_modules/@alanszp/express/src/middlewares/authedForOrg.ts +51 -0
- package/node_modules/@alanszp/express/src/middlewares/authenticateUser.test.ts +403 -0
- package/node_modules/@alanszp/express/src/middlewares/authenticateUser.ts +171 -0
- package/node_modules/@alanszp/express/src/middlewares/createContext.test.ts +85 -0
- package/node_modules/@alanszp/express/src/middlewares/createContext.ts +46 -0
- package/node_modules/@alanszp/express/src/middlewares/hasRoles.ts +26 -0
- package/node_modules/@alanszp/express/src/middlewares/jsonBodyParser.ts +23 -0
- package/node_modules/@alanszp/express/src/middlewares/returnInternalServerError.ts +16 -0
- package/node_modules/@alanszp/express/src/middlewares/returnNotFound.ts +12 -0
- package/node_modules/@alanszp/express/src/test/mocks/authOptionsMocks.ts +35 -0
- package/node_modules/@alanszp/express/src/test/mocks/expressMocks.ts +33 -0
- package/node_modules/@alanszp/express/src/test/mocks/jwtUserMocks.ts +19 -0
- package/node_modules/@alanszp/express/src/test/setup.test.ts +15 -0
- package/node_modules/@alanszp/express/src/test/setup.ts +3 -0
- package/node_modules/@alanszp/express/src/types/AuthMethod.ts +27 -0
- package/node_modules/@alanszp/express/src/types/GenericRequest.ts +3 -0
- package/node_modules/@alanszp/express/src/types/custom.d.ts +20 -0
- package/node_modules/@alanszp/express/src/views/errorView.ts +11 -0
- package/node_modules/@alanszp/express/tsconfig.json +18 -0
- package/node_modules/@alanszp/jwt/.gitignore +3 -0
- package/node_modules/@alanszp/jwt/.npmignore +3 -0
- package/node_modules/@alanszp/jwt/LICENSE +21 -0
- package/node_modules/@alanszp/jwt/dist/index.d.ts +2 -0
- package/node_modules/@alanszp/jwt/dist/index.js +15 -0
- package/node_modules/@alanszp/jwt/dist/index.js.map +1 -0
- package/node_modules/@alanszp/jwt/dist/jwt.d.ts +12 -0
- package/node_modules/@alanszp/jwt/dist/jwt.js +89 -0
- package/node_modules/@alanszp/jwt/dist/jwt.js.map +1 -0
- package/node_modules/@alanszp/jwt/dist/types.d.ts +26 -0
- package/node_modules/@alanszp/jwt/dist/types.js +3 -0
- package/node_modules/@alanszp/jwt/dist/types.js.map +1 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/README.md +15 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/assert.d.ts +996 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/console.d.ts +415 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/constants.d.ts +19 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/dns.d.ts +809 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/events.d.ts +879 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/fs.d.ts +4311 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/globals.d.ts +411 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/http.d.ts +1887 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/http2.d.ts +2382 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/https.d.ts +550 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/index.d.ts +88 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/module.d.ts +315 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/net.d.ts +949 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/os.d.ts +478 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/package.json +229 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/process.d.ts +1561 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/querystring.d.ts +141 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/readline.d.ts +539 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/stream.d.ts +1701 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/test.d.ts +1465 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/timers.d.ts +240 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/tls.d.ts +1210 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dgram.d.ts +596 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/fs.d.ts +4311 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/globals.d.ts +411 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/http.d.ts +1887 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/module.d.ts +315 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/process.d.ts +1561 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/test.d.ts +1465 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/v8.d.ts +764 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/wasi.d.ts +179 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/url.d.ts +927 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/util.d.ts +2183 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/v8.d.ts +764 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/vm.d.ts +903 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/wasi.d.ts +179 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/jwt/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@alanszp/jwt/package.json +30 -0
- package/node_modules/@alanszp/jwt/src/index.ts +2 -0
- package/node_modules/@alanszp/jwt/src/jwt.ts +106 -0
- package/node_modules/@alanszp/jwt/src/types.ts +31 -0
- package/node_modules/@alanszp/jwt/tsconfig.json +15 -0
- package/node_modules/@alanszp/logger/.gitignore +3 -0
- package/node_modules/@alanszp/logger/.npmignore +3 -0
- package/node_modules/@alanszp/logger/LICENSE +21 -0
- package/node_modules/@alanszp/logger/dist/config.d.ts +28 -0
- package/node_modules/@alanszp/logger/dist/config.js +3 -0
- package/node_modules/@alanszp/logger/dist/config.js.map +1 -0
- package/node_modules/@alanszp/logger/dist/factory.d.ts +5 -0
- package/node_modules/@alanszp/logger/dist/factory.js +55 -0
- package/node_modules/@alanszp/logger/dist/factory.js.map +1 -0
- package/node_modules/@alanszp/logger/dist/index.d.ts +5 -0
- package/node_modules/@alanszp/logger/dist/index.js +20 -0
- package/node_modules/@alanszp/logger/dist/index.js.map +1 -0
- package/node_modules/@alanszp/logger/dist/interfaces.d.ts +23 -0
- package/node_modules/@alanszp/logger/dist/interfaces.js +18 -0
- package/node_modules/@alanszp/logger/dist/interfaces.js.map +1 -0
- package/node_modules/@alanszp/logger/dist/logger.d.ts +14 -0
- package/node_modules/@alanszp/logger/dist/logger.js +45 -0
- package/node_modules/@alanszp/logger/dist/logger.js.map +1 -0
- package/node_modules/@alanszp/logger/dist/mock.d.ts +11 -0
- package/node_modules/@alanszp/logger/dist/mock.js +32 -0
- package/node_modules/@alanszp/logger/dist/mock.js.map +1 -0
- package/node_modules/@alanszp/logger/dist/serializer.d.ts +5 -0
- package/node_modules/@alanszp/logger/dist/serializer.js +67 -0
- package/node_modules/@alanszp/logger/dist/serializer.js.map +1 -0
- package/node_modules/@alanszp/logger/dist/slackBunyan.d.ts +16 -0
- package/node_modules/@alanszp/logger/dist/slackBunyan.js +108 -0
- package/node_modules/@alanszp/logger/dist/slackBunyan.js.map +1 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/README.md +15 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/assert.d.ts +996 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/console.d.ts +415 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/constants.d.ts +19 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/dns.d.ts +809 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/events.d.ts +879 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/fs.d.ts +4311 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/globals.d.ts +411 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/http.d.ts +1887 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/http2.d.ts +2382 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/https.d.ts +550 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/index.d.ts +88 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/module.d.ts +315 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/net.d.ts +949 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/os.d.ts +478 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/package.json +229 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/process.d.ts +1561 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/querystring.d.ts +141 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/readline.d.ts +539 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/stream.d.ts +1701 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/test.d.ts +1465 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/timers.d.ts +240 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/tls.d.ts +1210 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/crypto.d.ts +4487 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dgram.d.ts +596 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +545 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/fs.d.ts +4311 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/globals.d.ts +411 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/http.d.ts +1887 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/module.d.ts +315 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/perf_hooks.d.ts +645 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/process.d.ts +1561 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream/web.d.ts +366 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/test.d.ts +1465 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/v8.d.ts +764 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/wasi.d.ts +179 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/url.d.ts +927 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/util.d.ts +2183 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/v8.d.ts +764 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/vm.d.ts +903 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/wasi.d.ts +179 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/node_modules/@alanszp/logger/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@alanszp/logger/package.json +36 -0
- package/node_modules/@alanszp/logger/src/config.ts +34 -0
- package/node_modules/@alanszp/logger/src/factory.ts +68 -0
- package/node_modules/@alanszp/logger/src/index.ts +5 -0
- package/node_modules/@alanszp/logger/src/interfaces.ts +26 -0
- package/node_modules/@alanszp/logger/src/logger.ts +54 -0
- package/node_modules/@alanszp/logger/src/mock.ts +35 -0
- package/node_modules/@alanszp/logger/src/serializer.ts +65 -0
- package/node_modules/@alanszp/logger/src/slackBunyan.ts +133 -0
- package/node_modules/@alanszp/logger/tsconfig.json +15 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/assert.d.ts +996 -0
- package/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/node_modules/@types/node/buffer.d.ts +2362 -0
- package/node_modules/@types/node/child_process.d.ts +1540 -0
- package/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@types/node/console.d.ts +415 -0
- package/node_modules/@types/node/constants.d.ts +19 -0
- package/node_modules/@types/node/crypto.d.ts +4487 -0
- package/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
- package/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/node_modules/@types/node/dns.d.ts +809 -0
- package/node_modules/@types/node/dom-events.d.ts +122 -0
- package/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@types/node/events.d.ts +879 -0
- package/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/node_modules/@types/node/fs.d.ts +4311 -0
- package/node_modules/@types/node/globals.d.ts +411 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +1887 -0
- package/node_modules/@types/node/http2.d.ts +2382 -0
- package/node_modules/@types/node/https.d.ts +550 -0
- package/node_modules/@types/node/index.d.ts +88 -0
- package/node_modules/@types/node/inspector.d.ts +2747 -0
- package/node_modules/@types/node/module.d.ts +315 -0
- package/node_modules/@types/node/net.d.ts +949 -0
- package/node_modules/@types/node/os.d.ts +478 -0
- package/node_modules/@types/node/package.json +229 -0
- package/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@types/node/perf_hooks.d.ts +645 -0
- package/node_modules/@types/node/process.d.ts +1561 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +141 -0
- package/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/node_modules/@types/node/readline.d.ts +539 -0
- package/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/node_modules/@types/node/stream/web.d.ts +366 -0
- package/node_modules/@types/node/stream.d.ts +1701 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +1465 -0
- package/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/timers.d.ts +240 -0
- package/node_modules/@types/node/tls.d.ts +1210 -0
- package/node_modules/@types/node/trace_events.d.ts +182 -0
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/node_modules/@types/node/ts4.8/crypto.d.ts +4487 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +596 -0
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +545 -0
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +4311 -0
- package/node_modules/@types/node/ts4.8/globals.d.ts +411 -0
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +1887 -0
- package/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/node_modules/@types/node/ts4.8/module.d.ts +315 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +645 -0
- package/node_modules/@types/node/ts4.8/process.d.ts +1561 -0
- package/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +366 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/ts4.8/test.d.ts +1465 -0
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/node_modules/@types/node/ts4.8/v8.d.ts +764 -0
- package/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/node_modules/@types/node/ts4.8/wasi.d.ts +179 -0
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@types/node/url.d.ts +927 -0
- package/node_modules/@types/node/util.d.ts +2183 -0
- package/node_modules/@types/node/v8.d.ts +764 -0
- package/node_modules/@types/node/vm.d.ts +903 -0
- package/node_modules/@types/node/wasi.d.ts +179 -0
- package/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/node_modules/@types/node/zlib.d.ts +517 -0
- package/package.json +9 -7
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import cuid from "cuid";
|
|
2
|
+
import { NextFunction, Response } from "express";
|
|
3
|
+
import { ILogger } from "@alanszp/logger";
|
|
4
|
+
import { Audit } from "@alanszp/audit";
|
|
5
|
+
import { appIdentifier } from "../helpers/appIdentifier";
|
|
6
|
+
import { GenericRequest } from "../types/GenericRequest";
|
|
7
|
+
import { SharedContext } from "@alanszp/shared-context";
|
|
8
|
+
import { compact } from "lodash";
|
|
9
|
+
|
|
10
|
+
export function createContext(
|
|
11
|
+
sharedContext: SharedContext,
|
|
12
|
+
baseLogger: ILogger,
|
|
13
|
+
audit: Audit
|
|
14
|
+
) {
|
|
15
|
+
return (req: GenericRequest, _res: Response, next: NextFunction): void => {
|
|
16
|
+
req.context = req.context || {};
|
|
17
|
+
|
|
18
|
+
const receivedChain =
|
|
19
|
+
req.header("x-lifecycle-chain") || req.body?.detail?.lch;
|
|
20
|
+
const lifecycleChain = compact([receivedChain, appIdentifier()]).join(",");
|
|
21
|
+
|
|
22
|
+
const lifecycleId =
|
|
23
|
+
req.header("x-lifecycle-id") || req.body?.detail?.lid || cuid();
|
|
24
|
+
|
|
25
|
+
const contextId = cuid();
|
|
26
|
+
|
|
27
|
+
sharedContext.run(
|
|
28
|
+
(context) => {
|
|
29
|
+
req.context.authenticated = [];
|
|
30
|
+
req.context.lifecycleId = context.lifecycleId;
|
|
31
|
+
req.context.lifecycleChain = context.lifecycleChain;
|
|
32
|
+
req.context.contextId = context.contextId;
|
|
33
|
+
req.context.log = context.logger;
|
|
34
|
+
req.context.audit = context.audit;
|
|
35
|
+
next();
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
logger: baseLogger,
|
|
39
|
+
audit: audit.withState(),
|
|
40
|
+
lifecycleId,
|
|
41
|
+
lifecycleChain,
|
|
42
|
+
contextId,
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UnauthorizedError } from "@alanszp/errors";
|
|
2
|
+
import { errorView } from "../views/errorView";
|
|
3
|
+
import { NextFunction, Response } from "express";
|
|
4
|
+
import { jwtUserHasRoles } from "@alanszp/jwt";
|
|
5
|
+
import { GenericRequest } from "../types/GenericRequest";
|
|
6
|
+
|
|
7
|
+
function response401(res: Response): void {
|
|
8
|
+
res.status(401).json(errorView(new UnauthorizedError(["permissions"])));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function hasRoles(
|
|
12
|
+
roles: string | string[]
|
|
13
|
+
): (req: GenericRequest, res: Response, next: NextFunction) => void {
|
|
14
|
+
return (req: GenericRequest, res: Response, next: NextFunction) => {
|
|
15
|
+
const { jwtUser } = req.context;
|
|
16
|
+
if (!jwtUser) {
|
|
17
|
+
return response401(res);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (jwtUserHasRoles(jwtUser, roles)) {
|
|
21
|
+
return next();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
response401(res);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { json, OptionsJson } from "body-parser";
|
|
2
|
+
import { NextFunction, Response } from "express";
|
|
3
|
+
import { BadRequestError } from "@alanszp/errors";
|
|
4
|
+
import { errorView } from "../views/errorView";
|
|
5
|
+
import { GenericRequest } from "../types/GenericRequest";
|
|
6
|
+
|
|
7
|
+
export function jsonBodyParser(options?: OptionsJson) {
|
|
8
|
+
const bodyParser = json({ limit: "1mb", ...options });
|
|
9
|
+
return function jsonBodyParserMiddleware(
|
|
10
|
+
req: GenericRequest,
|
|
11
|
+
res: Response,
|
|
12
|
+
next: NextFunction
|
|
13
|
+
): void {
|
|
14
|
+
try {
|
|
15
|
+
bodyParser(req, res, (error?: unknown) => {
|
|
16
|
+
if (!error) return next();
|
|
17
|
+
res.status(400).json(errorView(new BadRequestError("Malformed JSON")));
|
|
18
|
+
});
|
|
19
|
+
} catch (error: unknown) {
|
|
20
|
+
res.status(400).json(errorView(new BadRequestError("Malformed JSON")));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ErrorRequestHandler, NextFunction, Response } from "express";
|
|
2
|
+
import { InternalServerError } from "@alanszp/errors";
|
|
3
|
+
import { errorView } from "../views/errorView";
|
|
4
|
+
import { GenericRequest } from "../types/GenericRequest";
|
|
5
|
+
import { ILogger } from "@alanszp/logger";
|
|
6
|
+
|
|
7
|
+
export type GetInternalServerErrorMiddleware = (
|
|
8
|
+
getLogger: () => ILogger
|
|
9
|
+
) => ErrorRequestHandler;
|
|
10
|
+
|
|
11
|
+
export const returnInternalServerError: GetInternalServerErrorMiddleware =
|
|
12
|
+
(getLogger: () => ILogger) =>
|
|
13
|
+
(error: unknown, req: GenericRequest, res: Response, _next: NextFunction) => {
|
|
14
|
+
res.status(500).json(errorView(new InternalServerError(error)));
|
|
15
|
+
getLogger().error("error_to_client", { error });
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NextFunction, Response } from "express";
|
|
2
|
+
import { NotFoundError } from "@alanszp/errors";
|
|
3
|
+
import { errorView } from "../views/errorView";
|
|
4
|
+
import { GenericRequest } from "../types/GenericRequest";
|
|
5
|
+
|
|
6
|
+
export function returnNotFound(
|
|
7
|
+
_req: GenericRequest,
|
|
8
|
+
res: Response,
|
|
9
|
+
_next: NextFunction
|
|
10
|
+
): void {
|
|
11
|
+
res.status(404).json(errorView(new NotFoundError()));
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ApiKeyOptions,
|
|
3
|
+
AuthMethods,
|
|
4
|
+
BothMethodsOptions,
|
|
5
|
+
JWTOptions,
|
|
6
|
+
} from "../../middlewares/authenticateUser";
|
|
7
|
+
|
|
8
|
+
export const jwtAuthOptions = {
|
|
9
|
+
jwtVerifyOptions: {
|
|
10
|
+
publicKey: "publicKey",
|
|
11
|
+
issuer: "issuer",
|
|
12
|
+
audience: "audience",
|
|
13
|
+
},
|
|
14
|
+
types: [AuthMethods.JWT],
|
|
15
|
+
} as any as JWTOptions;
|
|
16
|
+
|
|
17
|
+
export const verifyOptions = {
|
|
18
|
+
issuer: "issuer",
|
|
19
|
+
audience: "audience",
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const apiKeyAuthOptions: ApiKeyOptions = {
|
|
23
|
+
validApiKeys: ["token", "tooooken"],
|
|
24
|
+
types: [AuthMethods.API_KEY],
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const bothMethodsAuthOptions: BothMethodsOptions = {
|
|
28
|
+
jwtVerifyOptions: {
|
|
29
|
+
publicKey: "publicKey",
|
|
30
|
+
issuer: "issuer",
|
|
31
|
+
audience: "audience",
|
|
32
|
+
},
|
|
33
|
+
validApiKeys: ["token", "tooooken"],
|
|
34
|
+
types: [AuthMethods.API_KEY, AuthMethods.JWT],
|
|
35
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { GenericRequest } from "../../types/GenericRequest";
|
|
2
|
+
|
|
3
|
+
export const mockRequest = (
|
|
4
|
+
authorization: string,
|
|
5
|
+
otherHeaders?: Record<string, unknown>
|
|
6
|
+
): GenericRequest => {
|
|
7
|
+
const headers = { authorization, ...otherHeaders };
|
|
8
|
+
return {
|
|
9
|
+
headers,
|
|
10
|
+
context: { jwtUser: undefined, authenticated: [] },
|
|
11
|
+
header: (name: string) => headers[name],
|
|
12
|
+
} as any as GenericRequest;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const mockRequestWithBody = (
|
|
16
|
+
authorization: string,
|
|
17
|
+
otherHeaders?: Record<string, unknown>,
|
|
18
|
+
body: Record<string, unknown> = {}
|
|
19
|
+
): GenericRequest => {
|
|
20
|
+
return {
|
|
21
|
+
...mockRequest(authorization, otherHeaders),
|
|
22
|
+
body,
|
|
23
|
+
} as any as GenericRequest;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const mockResponse = () => {
|
|
27
|
+
const res = {} as any;
|
|
28
|
+
res.status = jest.fn().mockReturnValue(res);
|
|
29
|
+
res.json = jest.fn().mockReturnValue(res);
|
|
30
|
+
return res;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const mockNext = () => jest.fn();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JWTUser } from "@alanszp/jwt";
|
|
2
|
+
|
|
3
|
+
export const userJwtUserMock: JWTUser = {
|
|
4
|
+
id: "1",
|
|
5
|
+
employeeReference: "1",
|
|
6
|
+
organizationReference: "test",
|
|
7
|
+
roles: [],
|
|
8
|
+
permissions: [],
|
|
9
|
+
segmentReference: null,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const laraJwtUserMock: JWTUser = {
|
|
13
|
+
id: "0",
|
|
14
|
+
employeeReference: "0",
|
|
15
|
+
organizationReference: "lara",
|
|
16
|
+
roles: [],
|
|
17
|
+
permissions: [],
|
|
18
|
+
segmentReference: null,
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { now } from "../helpers/now";
|
|
2
|
+
|
|
3
|
+
jest.mock("@/helpers/now");
|
|
4
|
+
|
|
5
|
+
describe("Timezones", () => {
|
|
6
|
+
it("should always be UTC", () => {
|
|
7
|
+
expect(new Date().getTimezoneOffset()).toBe(0);
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it("now() is mocked", () => {
|
|
11
|
+
(now as jest.Mock).mockReturnValue(new Date("2021-01-01T12:30:43"));
|
|
12
|
+
|
|
13
|
+
expect(now()).toEqual(new Date("2021-01-01T12:30:43"));
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2
|
+
export type DistributiveOmit<T, K extends keyof any> = T extends any
|
|
3
|
+
? Omit<T, K>
|
|
4
|
+
: never;
|
|
5
|
+
|
|
6
|
+
export type Overwrite<T, U> = DistributiveOmit<T, keyof U> & U;
|
|
7
|
+
|
|
8
|
+
type GenerateStringUnion<T> = Extract<
|
|
9
|
+
{
|
|
10
|
+
[Key in keyof T]: true extends T[Key] ? Key : never;
|
|
11
|
+
}[keyof T],
|
|
12
|
+
string
|
|
13
|
+
>;
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
type OverridableStringUnion<
|
|
17
|
+
T extends string | number,
|
|
18
|
+
U = {}
|
|
19
|
+
> = GenerateStringUnion<Overwrite<Record<T, true>, U>>;
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
22
|
+
export interface AuthMethodsOverride {}
|
|
23
|
+
|
|
24
|
+
export type AuthMethod = OverridableStringUnion<
|
|
25
|
+
"jwt" | "api_key",
|
|
26
|
+
AuthMethodsOverride
|
|
27
|
+
>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ILogger } from "@alanszp/logger";
|
|
2
|
+
import { AuditWithState } from "@alanszp/audit";
|
|
3
|
+
import { JWTUser } from "@alanszp/jwt";
|
|
4
|
+
import { AuthMethod } from "./AuthMethod";
|
|
5
|
+
|
|
6
|
+
declare global {
|
|
7
|
+
namespace Express {
|
|
8
|
+
export interface Request {
|
|
9
|
+
context: {
|
|
10
|
+
lifecycleId: string;
|
|
11
|
+
lifecycleChain: string;
|
|
12
|
+
contextId: string;
|
|
13
|
+
authenticated: AuthMethod[];
|
|
14
|
+
log: ILogger;
|
|
15
|
+
audit: AuditWithState;
|
|
16
|
+
jwtUser?: JWTUser;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RenderableError } from "@alanszp/errors";
|
|
2
|
+
import { appIdentifier } from "../helpers/appIdentifier";
|
|
3
|
+
|
|
4
|
+
export function errorView(err: RenderableError): unknown {
|
|
5
|
+
return {
|
|
6
|
+
code: err.code(),
|
|
7
|
+
message: err.renderMessage(),
|
|
8
|
+
context: err.context(),
|
|
9
|
+
origin: appIdentifier(),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"rootDir": "src",
|
|
4
|
+
"outDir": "dist",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"target": "es6",
|
|
7
|
+
"types": ["jest", "node"],
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
|
|
11
|
+
"alwaysStrict": true,
|
|
12
|
+
"strictNullChecks": true
|
|
13
|
+
},
|
|
14
|
+
"exclude": ["node_modules"],
|
|
15
|
+
"paths": {
|
|
16
|
+
"@/*": ["src/*"]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Alan Szpigiel
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./types"), exports);
|
|
14
|
+
__exportStar(require("./jwt"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,wCAAsB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { KeyObject } from "crypto";
|
|
3
|
+
import type { JWTPayload, JWTUser, SignOptions, VerifyOptions } from "./types";
|
|
4
|
+
export declare const JWT_ALGORITHM = "RS512";
|
|
5
|
+
export declare function privateKeyFromPem(key: string): KeyObject;
|
|
6
|
+
export declare function publicKeyFromPem(key: string): KeyObject;
|
|
7
|
+
export declare function withDefaultSignOptions(options?: Partial<SignOptions>): SignOptions;
|
|
8
|
+
export declare function withDefaultVerifyOptions(options?: Partial<VerifyOptions>): VerifyOptions;
|
|
9
|
+
export declare function generateJWT(privateKey: KeyObject | string, user: JWTUser, options?: Partial<SignOptions>): Promise<string>;
|
|
10
|
+
export declare function createTokenPayload(user: JWTUser): JWTPayload;
|
|
11
|
+
export declare function verifyJWT(publicKey: KeyObject | string, token: string, options?: Partial<VerifyOptions>): Promise<JWTUser>;
|
|
12
|
+
export declare function jwtUserHasRoles(jwtUser: JWTUser, roles: string | string[]): boolean;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.jwtUserHasRoles = exports.verifyJWT = exports.createTokenPayload = exports.generateJWT = exports.withDefaultVerifyOptions = exports.withDefaultSignOptions = exports.publicKeyFromPem = exports.privateKeyFromPem = exports.JWT_ALGORITHM = void 0;
|
|
13
|
+
const crypto_1 = require("crypto");
|
|
14
|
+
const jose_1 = require("jose");
|
|
15
|
+
exports.JWT_ALGORITHM = "RS512";
|
|
16
|
+
function privateKeyFromPem(key) {
|
|
17
|
+
return (0, crypto_1.createPrivateKey)({
|
|
18
|
+
key,
|
|
19
|
+
format: "pem",
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.privateKeyFromPem = privateKeyFromPem;
|
|
23
|
+
function publicKeyFromPem(key) {
|
|
24
|
+
return (0, crypto_1.createPublicKey)({
|
|
25
|
+
key,
|
|
26
|
+
format: "pem",
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
exports.publicKeyFromPem = publicKeyFromPem;
|
|
30
|
+
function withDefaultSignOptions(options) {
|
|
31
|
+
return Object.assign({ issuer: "hodor", audience: "web", expiration: "24h" }, options);
|
|
32
|
+
}
|
|
33
|
+
exports.withDefaultSignOptions = withDefaultSignOptions;
|
|
34
|
+
function withDefaultVerifyOptions(options) {
|
|
35
|
+
return Object.assign({ issuer: ["hodor", "long:1"], audience: "web" }, options);
|
|
36
|
+
}
|
|
37
|
+
exports.withDefaultVerifyOptions = withDefaultVerifyOptions;
|
|
38
|
+
function generateJWT(privateKey, user, options) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const key = typeof privateKey === "string" ? privateKeyFromPem(privateKey) : privateKey;
|
|
41
|
+
const opts = withDefaultSignOptions(options);
|
|
42
|
+
return new jose_1.SignJWT(createTokenPayload(user))
|
|
43
|
+
.setProtectedHeader({ alg: exports.JWT_ALGORITHM })
|
|
44
|
+
.setIssuedAt()
|
|
45
|
+
.setIssuer(opts.issuer)
|
|
46
|
+
.setAudience(opts.audience)
|
|
47
|
+
.setExpirationTime(opts.expiration)
|
|
48
|
+
.sign(key);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
exports.generateJWT = generateJWT;
|
|
52
|
+
function createTokenPayload(user) {
|
|
53
|
+
return {
|
|
54
|
+
sub: user.id,
|
|
55
|
+
ref: user.employeeReference,
|
|
56
|
+
org: user.organizationReference,
|
|
57
|
+
rls: user.roles,
|
|
58
|
+
prms: user.permissions,
|
|
59
|
+
seg: user.segmentReference,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.createTokenPayload = createTokenPayload;
|
|
63
|
+
function verifyJWT(publicKey, token, options) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const key = typeof publicKey === "string" ? publicKeyFromPem(publicKey) : publicKey;
|
|
66
|
+
const opts = withDefaultVerifyOptions(options);
|
|
67
|
+
const verify = yield (0, jose_1.jwtVerify)(token, key, {
|
|
68
|
+
issuer: opts.issuer,
|
|
69
|
+
algorithms: [exports.JWT_ALGORITHM],
|
|
70
|
+
audience: opts.audience,
|
|
71
|
+
});
|
|
72
|
+
const payload = verify.payload;
|
|
73
|
+
return {
|
|
74
|
+
id: payload.sub,
|
|
75
|
+
employeeReference: payload.ref,
|
|
76
|
+
organizationReference: payload.org,
|
|
77
|
+
roles: payload.rls,
|
|
78
|
+
permissions: payload.prms,
|
|
79
|
+
segmentReference: payload.seg || null,
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
exports.verifyJWT = verifyJWT;
|
|
84
|
+
function jwtUserHasRoles(jwtUser, roles) {
|
|
85
|
+
const validateRoles = typeof roles === "string" ? [roles] : roles;
|
|
86
|
+
return validateRoles.some((role) => jwtUser.roles.includes(role));
|
|
87
|
+
}
|
|
88
|
+
exports.jwtUserHasRoles = jwtUserHasRoles;
|
|
89
|
+
//# sourceMappingURL=jwt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt.js","sourceRoot":"","sources":["../src/jwt.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAsE;AACtE,+BAA0C;AAG7B,QAAA,aAAa,GAAG,OAAO,CAAC;AAErC,SAAgB,iBAAiB,CAAC,GAAW;IAC3C,OAAO,IAAA,yBAAgB,EAAC;QACtB,GAAG;QACH,MAAM,EAAE,KAAK;KACd,CAAC,CAAC;AACL,CAAC;AALD,8CAKC;AAED,SAAgB,gBAAgB,CAAC,GAAW;IAC1C,OAAO,IAAA,wBAAe,EAAC;QACrB,GAAG;QACH,MAAM,EAAE,KAAK;KACd,CAAC,CAAC;AACL,CAAC;AALD,4CAKC;AAED,SAAgB,sBAAsB,CACpC,OAA8B;IAE9B,uBACE,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,KAAK,EACf,UAAU,EAAE,KAAK,IACd,OAAO,EACV;AACJ,CAAC;AATD,wDASC;AAED,SAAgB,wBAAwB,CACtC,OAAgC;IAEhC,uBACE,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,EAC3B,QAAQ,EAAE,KAAK,IACZ,OAAO,EACV;AACJ,CAAC;AARD,4DAQC;AAED,SAAsB,WAAW,CAC/B,UAA8B,EAC9B,IAAa,EACb,OAA8B;;QAE9B,MAAM,GAAG,GACP,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;QAE9E,MAAM,IAAI,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAC;QAE7C,OAAO,IAAI,cAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;aACzC,kBAAkB,CAAC,EAAE,GAAG,EAAE,qBAAa,EAAE,CAAC;aAC1C,WAAW,EAAE;aACb,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;aACtB,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC;aAC1B,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC;aAClC,IAAI,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;CAAA;AAjBD,kCAiBC;AAED,SAAgB,kBAAkB,CAAC,IAAa;IAC9C,OAAO;QACL,GAAG,EAAE,IAAI,CAAC,EAAE;QACZ,GAAG,EAAE,IAAI,CAAC,iBAAiB;QAC3B,GAAG,EAAE,IAAI,CAAC,qBAAqB;QAC/B,GAAG,EAAE,IAAI,CAAC,KAAK;QACf,IAAI,EAAE,IAAI,CAAC,WAAW;QACtB,GAAG,EAAE,IAAI,CAAC,gBAAgB;KAC3B,CAAC;AACJ,CAAC;AATD,gDASC;AAED,SAAsB,SAAS,CAC7B,SAA6B,EAC7B,KAAa,EACb,OAAgC;;QAEhC,MAAM,GAAG,GACP,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE1E,MAAM,IAAI,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAE/C,MAAM,MAAM,GAAG,MAAM,IAAA,gBAAS,EAAC,KAAK,EAAE,GAAG,EAAE;YACzC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,CAAC,qBAAa,CAAC;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,MAAM,CAAC,OAAqB,CAAC;QAE7C,OAAO;YACL,EAAE,EAAE,OAAO,CAAC,GAAG;YACf,iBAAiB,EAAE,OAAO,CAAC,GAAG;YAC9B,qBAAqB,EAAE,OAAO,CAAC,GAAG;YAClC,KAAK,EAAE,OAAO,CAAC,GAAG;YAClB,WAAW,EAAE,OAAO,CAAC,IAAI;YACzB,gBAAgB,EAAE,OAAO,CAAC,GAAG,IAAI,IAAI;SACtC,CAAC;IACJ,CAAC;CAAA;AA1BD,8BA0BC;AAED,SAAgB,eAAe,CAC7B,OAAgB,EAChB,KAAwB;IAExB,MAAM,aAAa,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAClE,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AACpE,CAAC;AAND,0CAMC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { JWTPayload as LibPayload } from "jose";
|
|
2
|
+
export interface JWTPayload extends LibPayload {
|
|
3
|
+
sub: string;
|
|
4
|
+
ref: string | null;
|
|
5
|
+
org: string;
|
|
6
|
+
rls: string[];
|
|
7
|
+
prms: string[];
|
|
8
|
+
seg: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface JWTUser {
|
|
11
|
+
id: string;
|
|
12
|
+
employeeReference: string | null;
|
|
13
|
+
organizationReference: string;
|
|
14
|
+
roles: string[];
|
|
15
|
+
permissions: string[];
|
|
16
|
+
segmentReference: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface SignOptions {
|
|
19
|
+
issuer: string;
|
|
20
|
+
audience: string | string[];
|
|
21
|
+
expiration: string | number;
|
|
22
|
+
}
|
|
23
|
+
export interface VerifyOptions {
|
|
24
|
+
issuer: string | string[];
|
|
25
|
+
audience: string | string[];
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
> `npm install --save @types/node`
|
|
3
|
+
|
|
4
|
+
# Summary
|
|
5
|
+
This package contains type definitions for node (https://nodejs.org/).
|
|
6
|
+
|
|
7
|
+
# Details
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
|
+
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Thu, 08 Feb 2024 20:35:44 GMT
|
|
12
|
+
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
|
+
|
|
14
|
+
# Credits
|
|
15
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
|