@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
|
@@ -4,4 +4,4 @@ export interface CommonErrorOptions {
|
|
|
4
4
|
entityNotFound: 400 | 404;
|
|
5
5
|
extraContext: Context;
|
|
6
6
|
}
|
|
7
|
-
export declare function commonErrorsHandler(loggerFn: () => ILogger): (error: unknown, res: Response, baseLog: string, options?: Partial<CommonErrorOptions>
|
|
7
|
+
export declare function commonErrorsHandler(loggerFn: () => ILogger): (error: unknown, res: Response, baseLog: string, options?: Partial<CommonErrorOptions>) => void;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { ILogger } from "@alanszp/logger";
|
|
2
|
+
import { AuditBody } from "./interfaces";
|
|
3
|
+
import { AuditWithState } from "./auditWithState";
|
|
4
|
+
export declare class Audit {
|
|
5
|
+
logger: ILogger;
|
|
6
|
+
constructor(logger: ILogger);
|
|
7
|
+
log(body: AuditBody): void;
|
|
8
|
+
withState(): AuditWithState;
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Audit = void 0;
|
|
4
|
+
const logger_1 = require("@alanszp/logger");
|
|
5
|
+
const interfaces_1 = require("./interfaces");
|
|
6
|
+
const lodash_1 = require("lodash");
|
|
7
|
+
const auditWithState_1 = require("./auditWithState");
|
|
8
|
+
const MissingAuditFieldsError_1 = require("./errors/MissingAuditFieldsError");
|
|
9
|
+
class Audit {
|
|
10
|
+
constructor(logger) {
|
|
11
|
+
this.logger = logger;
|
|
12
|
+
}
|
|
13
|
+
log(body) {
|
|
14
|
+
const missingFields = (0, lodash_1.difference)(interfaces_1.REQUIRED_FIELDS, Object.keys(body));
|
|
15
|
+
if (missingFields.length > 0) {
|
|
16
|
+
throw new MissingAuditFieldsError_1.MissingAuditFieldsError(missingFields);
|
|
17
|
+
}
|
|
18
|
+
this.logger.info(body.action, Object.assign(Object.assign({ log_type: logger_1.LogType.AUDIT }, body), { action: undefined }));
|
|
19
|
+
}
|
|
20
|
+
withState() {
|
|
21
|
+
return new auditWithState_1.AuditWithState(this);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Audit = Audit;
|
|
25
|
+
//# sourceMappingURL=audit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":";;;AAAA,4CAAmD;AACnD,6CAA0D;AAC1D,mCAAoC;AACpC,qDAAkD;AAClD,8EAA2E;AAE3E,MAAa,KAAK;IAGhB,YAAY,MAAe;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,GAAG,CAAC,IAAe;QACxB,MAAM,aAAa,GAAG,IAAA,mBAAU,EAAC,4BAAe,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAErE,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;YAC5B,MAAM,IAAI,iDAAuB,CAAC,aAAa,CAAC,CAAC;SAClD;QAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,gCAC1B,QAAQ,EAAE,gBAAO,CAAC,KAAK,IACpB,IAAI,KACP,MAAM,EAAE,SAAS,IACjB,CAAC;IACL,CAAC;IAEM,SAAS;QACd,OAAO,IAAI,+BAAc,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AAxBD,sBAwBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AuditBody } from "./interfaces";
|
|
2
|
+
import { Audit } from "./audit";
|
|
3
|
+
export declare class AuditWithState {
|
|
4
|
+
audit: Audit;
|
|
5
|
+
additions: Partial<AuditBody>;
|
|
6
|
+
constructor(audit: Audit);
|
|
7
|
+
log(body: Partial<AuditBody>): void;
|
|
8
|
+
add(body: Partial<AuditBody>): void;
|
|
9
|
+
merge(body: Partial<AuditBody>): Partial<AuditBody>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuditWithState = void 0;
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
5
|
+
class AuditWithState {
|
|
6
|
+
constructor(audit) {
|
|
7
|
+
this.audit = audit;
|
|
8
|
+
this.additions = {};
|
|
9
|
+
}
|
|
10
|
+
log(body) {
|
|
11
|
+
const completeBody = this.merge(body);
|
|
12
|
+
this.audit.log(completeBody);
|
|
13
|
+
}
|
|
14
|
+
add(body) {
|
|
15
|
+
this.additions = this.merge(body);
|
|
16
|
+
}
|
|
17
|
+
merge(body) {
|
|
18
|
+
return (0, lodash_1.merge)(this.additions, body);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.AuditWithState = AuditWithState;
|
|
22
|
+
//# sourceMappingURL=auditWithState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditWithState.js","sourceRoot":"","sources":["../src/auditWithState.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAI/B,MAAa,cAAc;IAKzB,YAAY,KAAY;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;IAEM,GAAG,CAAC,IAAwB;QACjC,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAc,CAAC;QACnD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC/B,CAAC;IAEM,GAAG,CAAC,IAAwB;QACjC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAEM,KAAK,CAAC,IAAwB;QACnC,OAAO,IAAA,cAAK,EAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;CACF;AAtBD,wCAsBC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuditError = void 0;
|
|
4
|
+
const errors_1 = require("@alanszp/errors");
|
|
5
|
+
class AuditError extends errors_1.BaseError {
|
|
6
|
+
}
|
|
7
|
+
exports.AuditError = AuditError;
|
|
8
|
+
//# sourceMappingURL=AuditError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditError.js","sourceRoot":"","sources":["../../src/errors/AuditError.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAE5C,MAAa,UAAW,SAAQ,kBAAS;CAAG;AAA5C,gCAA4C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RenderableContext, RenderableError } from "@alanszp/errors";
|
|
2
|
+
import { AuditError } from "./AuditError";
|
|
3
|
+
export declare class MissingAuditFieldsError extends AuditError implements RenderableError {
|
|
4
|
+
missingFields: string[];
|
|
5
|
+
constructor(missingFields: string[]);
|
|
6
|
+
code(): string;
|
|
7
|
+
renderMessage(): string;
|
|
8
|
+
context(): RenderableContext;
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MissingAuditFieldsError = void 0;
|
|
4
|
+
const AuditError_1 = require("./AuditError");
|
|
5
|
+
class MissingAuditFieldsError extends AuditError_1.AuditError {
|
|
6
|
+
constructor(missingFields) {
|
|
7
|
+
super("MissingAuditFieldsError");
|
|
8
|
+
this.missingFields = missingFields;
|
|
9
|
+
}
|
|
10
|
+
code() {
|
|
11
|
+
return "missing_audit_fields_error";
|
|
12
|
+
}
|
|
13
|
+
renderMessage() {
|
|
14
|
+
return "Missing properties on audit log.";
|
|
15
|
+
}
|
|
16
|
+
context() {
|
|
17
|
+
return {
|
|
18
|
+
missingFields: this.missingFields,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.MissingAuditFieldsError = MissingAuditFieldsError;
|
|
23
|
+
//# sourceMappingURL=MissingAuditFieldsError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MissingAuditFieldsError.js","sourceRoot":"","sources":["../../src/errors/MissingAuditFieldsError.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,MAAa,uBACX,SAAQ,uBAAU;IAKlB,YAAY,aAAuB;QACjC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED,IAAI;QACF,OAAO,4BAA4B,CAAC;IACtC,CAAC;IAED,aAAa;QACX,OAAO,kCAAkC,CAAC;IAC5C,CAAC;IAED,OAAO;QACL,OAAO;YACL,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;CACF;AAxBD,0DAwBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AuditError"), exports);
|
|
18
|
+
__exportStar(require("./MissingAuditFieldsError"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,4DAA0C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createAuditLogger = void 0;
|
|
4
|
+
const logger_1 = require("@alanszp/logger");
|
|
5
|
+
const audit_1 = require("./audit");
|
|
6
|
+
function createAuditLogger(appNameOrLogger) {
|
|
7
|
+
const logger = typeof appNameOrLogger === "string"
|
|
8
|
+
? (0, logger_1.createLogger)({
|
|
9
|
+
appName: appNameOrLogger,
|
|
10
|
+
console: { level: logger_1.LogLevel.INFO },
|
|
11
|
+
})
|
|
12
|
+
: appNameOrLogger;
|
|
13
|
+
return new audit_1.Audit(logger);
|
|
14
|
+
}
|
|
15
|
+
exports.createAuditLogger = createAuditLogger;
|
|
16
|
+
//# sourceMappingURL=factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":";;;AAAA,4CAAkE;AAClE,mCAAgC;AAIhC,SAAgB,iBAAiB,CAAC,eAAiC;IACjE,MAAM,MAAM,GACV,OAAO,eAAe,KAAK,QAAQ;QACjC,CAAC,CAAC,IAAA,qBAAY,EAAC;YACX,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,EAAE,KAAK,EAAE,iBAAQ,CAAC,IAAI,EAAE;SAClC,CAAC;QACJ,CAAC,CAAC,eAAe,CAAC;IAEtB,OAAO,IAAI,aAAK,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC;AAVD,8CAUC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./factory"), exports);
|
|
18
|
+
__exportStar(require("./audit"), exports);
|
|
19
|
+
__exportStar(require("./auditWithState"), exports);
|
|
20
|
+
__exportStar(require("./interfaces"), exports);
|
|
21
|
+
__exportStar(require("./errors"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0CAAwB;AACxB,mDAAiC;AACjC,+CAA6B;AAC7B,2CAAyB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface AuditBody {
|
|
2
|
+
actorRef: string;
|
|
3
|
+
orgRef: string;
|
|
4
|
+
ip: string | string[];
|
|
5
|
+
action: string;
|
|
6
|
+
succeed: boolean;
|
|
7
|
+
targetRef?: string;
|
|
8
|
+
metadata?: Metadata;
|
|
9
|
+
}
|
|
10
|
+
export declare enum CommonMetadataKeys {
|
|
11
|
+
EMPLOYEE_ID = "employee_id",
|
|
12
|
+
EMPLOYEE_IDS = "employee_ids",
|
|
13
|
+
CHANGES = "changes",
|
|
14
|
+
QUERY = "query"
|
|
15
|
+
}
|
|
16
|
+
export interface Metadata {
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export declare const REQUIRED_FIELDS: string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REQUIRED_FIELDS = exports.CommonMetadataKeys = void 0;
|
|
4
|
+
var CommonMetadataKeys;
|
|
5
|
+
(function (CommonMetadataKeys) {
|
|
6
|
+
CommonMetadataKeys["EMPLOYEE_ID"] = "employee_id";
|
|
7
|
+
CommonMetadataKeys["EMPLOYEE_IDS"] = "employee_ids";
|
|
8
|
+
CommonMetadataKeys["CHANGES"] = "changes";
|
|
9
|
+
CommonMetadataKeys["QUERY"] = "query";
|
|
10
|
+
})(CommonMetadataKeys = exports.CommonMetadataKeys || (exports.CommonMetadataKeys = {}));
|
|
11
|
+
exports.REQUIRED_FIELDS = [
|
|
12
|
+
"actorRef",
|
|
13
|
+
"orgRef",
|
|
14
|
+
"ip",
|
|
15
|
+
"action",
|
|
16
|
+
"succeed",
|
|
17
|
+
];
|
|
18
|
+
//# sourceMappingURL=interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";;;AAeA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,iDAA2B,CAAA;IAC3B,mDAA6B,CAAA;IAC7B,yCAAmB,CAAA;IACnB,qCAAe,CAAA;AACjB,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAMY,QAAA,eAAe,GAAG;IAC7B,UAAU;IACV,QAAQ;IACR,IAAI;IACJ,QAAQ;IACR,SAAS;CACV,CAAC"}
|
|
@@ -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).
|