@alanszp/express-common-fn 12.0.1 → 12.0.3
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/package.json +6 -10
- package/.gitignore +0 -3
- package/.npmignore +0 -3
- package/node_modules/@alanszp/audit/.gitignore +0 -3
- package/node_modules/@alanszp/audit/.npmignore +0 -3
- package/node_modules/@alanszp/audit/LICENSE +0 -21
- package/node_modules/@alanszp/audit/dist/audit.d.ts +0 -9
- package/node_modules/@alanszp/audit/dist/audit.js +0 -25
- package/node_modules/@alanszp/audit/dist/audit.js.map +0 -1
- package/node_modules/@alanszp/audit/dist/auditWithState.d.ts +0 -10
- package/node_modules/@alanszp/audit/dist/auditWithState.js +0 -22
- package/node_modules/@alanszp/audit/dist/auditWithState.js.map +0 -1
- package/node_modules/@alanszp/audit/dist/errors/AuditError.d.ts +0 -3
- package/node_modules/@alanszp/audit/dist/errors/AuditError.js +0 -8
- package/node_modules/@alanszp/audit/dist/errors/AuditError.js.map +0 -1
- package/node_modules/@alanszp/audit/dist/errors/MissingAuditFieldsError.d.ts +0 -9
- package/node_modules/@alanszp/audit/dist/errors/MissingAuditFieldsError.js +0 -23
- package/node_modules/@alanszp/audit/dist/errors/MissingAuditFieldsError.js.map +0 -1
- package/node_modules/@alanszp/audit/dist/errors/index.d.ts +0 -2
- package/node_modules/@alanszp/audit/dist/errors/index.js +0 -19
- package/node_modules/@alanszp/audit/dist/errors/index.js.map +0 -1
- package/node_modules/@alanszp/audit/dist/factory.d.ts +0 -4
- package/node_modules/@alanszp/audit/dist/factory.js +0 -16
- package/node_modules/@alanszp/audit/dist/factory.js.map +0 -1
- package/node_modules/@alanszp/audit/dist/index.d.ts +0 -5
- package/node_modules/@alanszp/audit/dist/index.js +0 -22
- package/node_modules/@alanszp/audit/dist/index.js.map +0 -1
- package/node_modules/@alanszp/audit/dist/interfaces.d.ts +0 -22
- package/node_modules/@alanszp/audit/dist/interfaces.js +0 -18
- package/node_modules/@alanszp/audit/dist/interfaces.js.map +0 -1
- package/node_modules/@alanszp/audit/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@alanszp/audit/node_modules/@types/node/README.md +0 -15
- package/node_modules/@alanszp/audit/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/audit/node_modules/@types/node/assert.d.ts +0 -996
- package/node_modules/@alanszp/audit/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/audit/node_modules/@types/node/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/audit/node_modules/@types/node/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/audit/node_modules/@types/node/cluster.d.ts +0 -432
- package/node_modules/@alanszp/audit/node_modules/@types/node/console.d.ts +0 -415
- package/node_modules/@alanszp/audit/node_modules/@types/node/constants.d.ts +0 -19
- package/node_modules/@alanszp/audit/node_modules/@types/node/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/audit/node_modules/@types/node/dgram.d.ts +0 -596
- package/node_modules/@alanszp/audit/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/audit/node_modules/@types/node/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/audit/node_modules/@types/node/dns.d.ts +0 -809
- package/node_modules/@alanszp/audit/node_modules/@types/node/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/audit/node_modules/@types/node/domain.d.ts +0 -170
- package/node_modules/@alanszp/audit/node_modules/@types/node/events.d.ts +0 -879
- package/node_modules/@alanszp/audit/node_modules/@types/node/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/audit/node_modules/@types/node/fs.d.ts +0 -4311
- package/node_modules/@alanszp/audit/node_modules/@types/node/globals.d.ts +0 -411
- package/node_modules/@alanszp/audit/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/audit/node_modules/@types/node/http.d.ts +0 -1887
- package/node_modules/@alanszp/audit/node_modules/@types/node/http2.d.ts +0 -2382
- package/node_modules/@alanszp/audit/node_modules/@types/node/https.d.ts +0 -550
- package/node_modules/@alanszp/audit/node_modules/@types/node/index.d.ts +0 -88
- package/node_modules/@alanszp/audit/node_modules/@types/node/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/audit/node_modules/@types/node/module.d.ts +0 -315
- package/node_modules/@alanszp/audit/node_modules/@types/node/net.d.ts +0 -949
- package/node_modules/@alanszp/audit/node_modules/@types/node/os.d.ts +0 -478
- package/node_modules/@alanszp/audit/node_modules/@types/node/package.json +0 -229
- package/node_modules/@alanszp/audit/node_modules/@types/node/path.d.ts +0 -191
- package/node_modules/@alanszp/audit/node_modules/@types/node/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/audit/node_modules/@types/node/process.d.ts +0 -1561
- package/node_modules/@alanszp/audit/node_modules/@types/node/punycode.d.ts +0 -117
- package/node_modules/@alanszp/audit/node_modules/@types/node/querystring.d.ts +0 -141
- package/node_modules/@alanszp/audit/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/audit/node_modules/@types/node/readline.d.ts +0 -539
- package/node_modules/@alanszp/audit/node_modules/@types/node/repl.d.ts +0 -430
- package/node_modules/@alanszp/audit/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/audit/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/audit/node_modules/@types/node/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/audit/node_modules/@types/node/stream.d.ts +0 -1701
- package/node_modules/@alanszp/audit/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/audit/node_modules/@types/node/test.d.ts +0 -1465
- package/node_modules/@alanszp/audit/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/audit/node_modules/@types/node/timers.d.ts +0 -240
- package/node_modules/@alanszp/audit/node_modules/@types/node/tls.d.ts +0 -1210
- package/node_modules/@alanszp/audit/node_modules/@types/node/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/audit/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@alanszp/audit/node_modules/@types/node/tty.d.ts +0 -208
- package/node_modules/@alanszp/audit/node_modules/@types/node/url.d.ts +0 -927
- package/node_modules/@alanszp/audit/node_modules/@types/node/util.d.ts +0 -2183
- package/node_modules/@alanszp/audit/node_modules/@types/node/v8.d.ts +0 -764
- package/node_modules/@alanszp/audit/node_modules/@types/node/vm.d.ts +0 -903
- package/node_modules/@alanszp/audit/node_modules/@types/node/wasi.d.ts +0 -179
- package/node_modules/@alanszp/audit/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/audit/node_modules/@types/node/zlib.d.ts +0 -517
- package/node_modules/@alanszp/audit/package.json +0 -33
- package/node_modules/@alanszp/audit/src/audit.ts +0 -31
- package/node_modules/@alanszp/audit/src/auditWithState.ts +0 -27
- package/node_modules/@alanszp/audit/src/errors/AuditError.ts +0 -3
- package/node_modules/@alanszp/audit/src/errors/MissingAuditFieldsError.ts +0 -25
- package/node_modules/@alanszp/audit/src/errors/index.ts +0 -2
- package/node_modules/@alanszp/audit/src/factory.ts +0 -16
- package/node_modules/@alanszp/audit/src/index.ts +0 -5
- package/node_modules/@alanszp/audit/src/interfaces.ts +0 -38
- package/node_modules/@alanszp/audit/tsconfig.json +0 -15
- package/node_modules/@alanszp/errors/.gitignore +0 -3
- package/node_modules/@alanszp/errors/.npmignore +0 -3
- package/node_modules/@alanszp/errors/LICENSE +0 -21
- package/node_modules/@alanszp/errors/dist/BaseError.d.ts +0 -3
- package/node_modules/@alanszp/errors/dist/BaseError.js +0 -18
- package/node_modules/@alanszp/errors/dist/BaseError.js.map +0 -1
- package/node_modules/@alanszp/errors/dist/HttpRenderableError.d.ts +0 -4
- package/node_modules/@alanszp/errors/dist/HttpRenderableError.js +0 -8
- package/node_modules/@alanszp/errors/dist/HttpRenderableError.js.map +0 -1
- package/node_modules/@alanszp/errors/dist/InternalServerError.d.ts +0 -8
- package/node_modules/@alanszp/errors/dist/InternalServerError.js +0 -24
- package/node_modules/@alanszp/errors/dist/InternalServerError.js.map +0 -1
- package/node_modules/@alanszp/errors/dist/RenderableError.d.ts +0 -15
- package/node_modules/@alanszp/errors/dist/RenderableError.js +0 -27
- package/node_modules/@alanszp/errors/dist/RenderableError.js.map +0 -1
- package/node_modules/@alanszp/errors/dist/index.d.ts +0 -4
- package/node_modules/@alanszp/errors/dist/index.js +0 -17
- package/node_modules/@alanszp/errors/dist/index.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/.gitignore +0 -3
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/.npmignore +0 -3
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/LICENSE +0 -21
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/appIdentifier.d.ts +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/appIdentifier.js +0 -10
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/appIdentifier.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/index.d.ts +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/index.js +0 -18
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/app/index.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/assignKey.d.ts +0 -2
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/assignKey.js +0 -20
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/assignKey.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/index.d.ts +0 -2
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/index.js +0 -19
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/index.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/keepOrUpdate.d.ts +0 -3
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/keepOrUpdate.js +0 -26
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/keepOrUpdate.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/types.d.ts +0 -6
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/types.js +0 -3
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/editable/types.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/index.d.ts +0 -4
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/index.js +0 -21
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/index.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/ListResult.d.ts +0 -7
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/ListResult.js +0 -8
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/ListResult.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Orderable.d.ts +0 -11
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Orderable.js +0 -13
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Orderable.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Paginable.d.ts +0 -14
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Paginable.js +0 -22
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/Paginable.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/index.d.ts +0 -3
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/index.js +0 -20
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/dist/lists/index.js.map +0 -1
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/package.json +0 -25
- package/node_modules/@alanszp/errors/node_modules/@alanszp/core/tsconfig.json +0 -15
- package/node_modules/@alanszp/errors/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@alanszp/errors/node_modules/@types/node/README.md +0 -15
- package/node_modules/@alanszp/errors/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/errors/node_modules/@types/node/assert.d.ts +0 -996
- package/node_modules/@alanszp/errors/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/errors/node_modules/@types/node/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/errors/node_modules/@types/node/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/errors/node_modules/@types/node/cluster.d.ts +0 -432
- package/node_modules/@alanszp/errors/node_modules/@types/node/console.d.ts +0 -415
- package/node_modules/@alanszp/errors/node_modules/@types/node/constants.d.ts +0 -19
- package/node_modules/@alanszp/errors/node_modules/@types/node/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/errors/node_modules/@types/node/dgram.d.ts +0 -596
- package/node_modules/@alanszp/errors/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/errors/node_modules/@types/node/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/errors/node_modules/@types/node/dns.d.ts +0 -809
- package/node_modules/@alanszp/errors/node_modules/@types/node/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/errors/node_modules/@types/node/domain.d.ts +0 -170
- package/node_modules/@alanszp/errors/node_modules/@types/node/events.d.ts +0 -879
- package/node_modules/@alanszp/errors/node_modules/@types/node/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/errors/node_modules/@types/node/fs.d.ts +0 -4311
- package/node_modules/@alanszp/errors/node_modules/@types/node/globals.d.ts +0 -411
- package/node_modules/@alanszp/errors/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/errors/node_modules/@types/node/http.d.ts +0 -1887
- package/node_modules/@alanszp/errors/node_modules/@types/node/http2.d.ts +0 -2382
- package/node_modules/@alanszp/errors/node_modules/@types/node/https.d.ts +0 -550
- package/node_modules/@alanszp/errors/node_modules/@types/node/index.d.ts +0 -88
- package/node_modules/@alanszp/errors/node_modules/@types/node/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/errors/node_modules/@types/node/module.d.ts +0 -315
- package/node_modules/@alanszp/errors/node_modules/@types/node/net.d.ts +0 -949
- package/node_modules/@alanszp/errors/node_modules/@types/node/os.d.ts +0 -478
- package/node_modules/@alanszp/errors/node_modules/@types/node/package.json +0 -229
- package/node_modules/@alanszp/errors/node_modules/@types/node/path.d.ts +0 -191
- package/node_modules/@alanszp/errors/node_modules/@types/node/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/errors/node_modules/@types/node/process.d.ts +0 -1561
- package/node_modules/@alanszp/errors/node_modules/@types/node/punycode.d.ts +0 -117
- package/node_modules/@alanszp/errors/node_modules/@types/node/querystring.d.ts +0 -141
- package/node_modules/@alanszp/errors/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/errors/node_modules/@types/node/readline.d.ts +0 -539
- package/node_modules/@alanszp/errors/node_modules/@types/node/repl.d.ts +0 -430
- package/node_modules/@alanszp/errors/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/errors/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/errors/node_modules/@types/node/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/errors/node_modules/@types/node/stream.d.ts +0 -1701
- package/node_modules/@alanszp/errors/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/errors/node_modules/@types/node/test.d.ts +0 -1465
- package/node_modules/@alanszp/errors/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/errors/node_modules/@types/node/timers.d.ts +0 -240
- package/node_modules/@alanszp/errors/node_modules/@types/node/tls.d.ts +0 -1210
- package/node_modules/@alanszp/errors/node_modules/@types/node/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/errors/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@alanszp/errors/node_modules/@types/node/tty.d.ts +0 -208
- package/node_modules/@alanszp/errors/node_modules/@types/node/url.d.ts +0 -927
- package/node_modules/@alanszp/errors/node_modules/@types/node/util.d.ts +0 -2183
- package/node_modules/@alanszp/errors/node_modules/@types/node/v8.d.ts +0 -764
- package/node_modules/@alanszp/errors/node_modules/@types/node/vm.d.ts +0 -903
- package/node_modules/@alanszp/errors/node_modules/@types/node/wasi.d.ts +0 -179
- package/node_modules/@alanszp/errors/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/errors/node_modules/@types/node/zlib.d.ts +0 -517
- package/node_modules/@alanszp/errors/package.json +0 -34
- package/node_modules/@alanszp/errors/src/BaseError.ts +0 -14
- package/node_modules/@alanszp/errors/src/HttpRenderableError.ts +0 -5
- package/node_modules/@alanszp/errors/src/InternalServerError.ts +0 -32
- package/node_modules/@alanszp/errors/src/RenderableError.ts +0 -37
- package/node_modules/@alanszp/errors/src/index.ts +0 -4
- package/node_modules/@alanszp/errors/tsconfig.json +0 -15
- package/node_modules/@alanszp/express/.gitignore +0 -3
- package/node_modules/@alanszp/express/.npmignore +0 -3
- package/node_modules/@alanszp/express/LICENSE +0 -21
- package/node_modules/@alanszp/express/babel.config.js +0 -7
- package/node_modules/@alanszp/express/dist/helpers/getIp.d.ts +0 -2
- package/node_modules/@alanszp/express/dist/helpers/getIp.js +0 -9
- package/node_modules/@alanszp/express/dist/helpers/getIp.js.map +0 -1
- package/node_modules/@alanszp/express/dist/helpers/getRequestLogger.d.ts +0 -2
- package/node_modules/@alanszp/express/dist/helpers/getRequestLogger.js +0 -10
- package/node_modules/@alanszp/express/dist/helpers/getRequestLogger.js.map +0 -1
- package/node_modules/@alanszp/express/dist/helpers/now.d.ts +0 -1
- package/node_modules/@alanszp/express/dist/helpers/now.js +0 -8
- package/node_modules/@alanszp/express/dist/helpers/now.js.map +0 -1
- package/node_modules/@alanszp/express/dist/helpers/renderErrorJson.d.ts +0 -4
- package/node_modules/@alanszp/express/dist/helpers/renderErrorJson.js +0 -32
- package/node_modules/@alanszp/express/dist/helpers/renderErrorJson.js.map +0 -1
- package/node_modules/@alanszp/express/dist/index.d.ts +0 -10
- package/node_modules/@alanszp/express/dist/index.js +0 -23
- package/node_modules/@alanszp/express/dist/index.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/accessLogger.d.ts +0 -3
- package/node_modules/@alanszp/express/dist/middlewares/accessLogger.js +0 -30
- package/node_modules/@alanszp/express/dist/middlewares/accessLogger.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/auditLog.d.ts +0 -8
- package/node_modules/@alanszp/express/dist/middlewares/auditLog.js +0 -44
- package/node_modules/@alanszp/express/dist/middlewares/auditLog.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/authedForOrg.d.ts +0 -3
- package/node_modules/@alanszp/express/dist/middlewares/authedForOrg.js +0 -45
- package/node_modules/@alanszp/express/dist/middlewares/authedForOrg.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.d.ts +0 -25
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.js +0 -115
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.test.d.ts +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.test.js +0 -308
- package/node_modules/@alanszp/express/dist/middlewares/authenticateUser.test.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/createContext.d.ts +0 -6
- package/node_modules/@alanszp/express/dist/middlewares/createContext.js +0 -35
- package/node_modules/@alanszp/express/dist/middlewares/createContext.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/createContext.test.d.ts +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/createContext.test.js +0 -50
- package/node_modules/@alanszp/express/dist/middlewares/createContext.test.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/hasRoles.d.ts +0 -3
- package/node_modules/@alanszp/express/dist/middlewares/hasRoles.js +0 -21
- package/node_modules/@alanszp/express/dist/middlewares/hasRoles.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/jsonBodyParser.d.ts +0 -4
- package/node_modules/@alanszp/express/dist/middlewares/jsonBodyParser.js +0 -22
- package/node_modules/@alanszp/express/dist/middlewares/jsonBodyParser.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/returnInternalServerError.d.ts +0 -4
- package/node_modules/@alanszp/express/dist/middlewares/returnInternalServerError.js +0 -10
- package/node_modules/@alanszp/express/dist/middlewares/returnInternalServerError.js.map +0 -1
- package/node_modules/@alanszp/express/dist/middlewares/returnNotFound.d.ts +0 -3
- package/node_modules/@alanszp/express/dist/middlewares/returnNotFound.js +0 -9
- package/node_modules/@alanszp/express/dist/middlewares/returnNotFound.js.map +0 -1
- package/node_modules/@alanszp/express/dist/test/mocks/authOptionsMocks.d.ts +0 -8
- package/node_modules/@alanszp/express/dist/test/mocks/authOptionsMocks.js +0 -30
- package/node_modules/@alanszp/express/dist/test/mocks/authOptionsMocks.js.map +0 -1
- package/node_modules/@alanszp/express/dist/test/mocks/expressMocks.d.ts +0 -6
- package/node_modules/@alanszp/express/dist/test/mocks/expressMocks.js +0 -26
- package/node_modules/@alanszp/express/dist/test/mocks/expressMocks.js.map +0 -1
- package/node_modules/@alanszp/express/dist/test/mocks/jwtUserMocks.d.ts +0 -3
- package/node_modules/@alanszp/express/dist/test/mocks/jwtUserMocks.js +0 -21
- package/node_modules/@alanszp/express/dist/test/mocks/jwtUserMocks.js.map +0 -1
- package/node_modules/@alanszp/express/dist/test/setup.d.ts +0 -1
- package/node_modules/@alanszp/express/dist/test/setup.js +0 -5
- package/node_modules/@alanszp/express/dist/test/setup.js.map +0 -1
- package/node_modules/@alanszp/express/dist/test/setup.test.d.ts +0 -1
- package/node_modules/@alanszp/express/dist/test/setup.test.js +0 -14
- package/node_modules/@alanszp/express/dist/test/setup.test.js.map +0 -1
- package/node_modules/@alanszp/express/dist/types/AuthMethod.d.ts +0 -10
- package/node_modules/@alanszp/express/dist/types/AuthMethod.js +0 -3
- package/node_modules/@alanszp/express/dist/types/AuthMethod.js.map +0 -1
- package/node_modules/@alanszp/express/dist/types/GenericRequest.d.ts +0 -2
- package/node_modules/@alanszp/express/dist/types/GenericRequest.js +0 -3
- package/node_modules/@alanszp/express/dist/types/GenericRequest.js.map +0 -1
- package/node_modules/@alanszp/express/jest.config.js +0 -10
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/LICENSE +0 -21
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/README.md +0 -5
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/index.d.ts +0 -93
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/index.js +0 -37
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/jasmineUtils.js +0 -282
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/types.js +0 -1
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/build/utils.js +0 -457
- package/node_modules/@alanszp/express/node_modules/@jest/expect-utils/package.json +0 -33
- package/node_modules/@alanszp/express/node_modules/@jest/types/LICENSE +0 -21
- package/node_modules/@alanszp/express/node_modules/@jest/types/README.md +0 -30
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/Circus.js +0 -1
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/Config.js +0 -1
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/Global.js +0 -1
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/TestResult.js +0 -1
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/Transform.js +0 -1
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/index.d.ts +0 -1166
- package/node_modules/@alanszp/express/node_modules/@jest/types/build/index.js +0 -1
- package/node_modules/@alanszp/express/node_modules/@jest/types/package.json +0 -38
- package/node_modules/@alanszp/express/node_modules/@types/jest/LICENSE +0 -21
- package/node_modules/@alanszp/express/node_modules/@types/jest/README.md +0 -17
- package/node_modules/@alanszp/express/node_modules/@types/jest/index.d.ts +0 -1608
- package/node_modules/@alanszp/express/node_modules/@types/jest/package.json +0 -159
- package/node_modules/@alanszp/express/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@alanszp/express/node_modules/@types/node/README.md +0 -15
- package/node_modules/@alanszp/express/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/express/node_modules/@types/node/assert.d.ts +0 -996
- package/node_modules/@alanszp/express/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/express/node_modules/@types/node/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/express/node_modules/@types/node/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/express/node_modules/@types/node/cluster.d.ts +0 -432
- package/node_modules/@alanszp/express/node_modules/@types/node/console.d.ts +0 -415
- package/node_modules/@alanszp/express/node_modules/@types/node/constants.d.ts +0 -19
- package/node_modules/@alanszp/express/node_modules/@types/node/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/express/node_modules/@types/node/dgram.d.ts +0 -596
- package/node_modules/@alanszp/express/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/express/node_modules/@types/node/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/express/node_modules/@types/node/dns.d.ts +0 -809
- package/node_modules/@alanszp/express/node_modules/@types/node/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/express/node_modules/@types/node/domain.d.ts +0 -170
- package/node_modules/@alanszp/express/node_modules/@types/node/events.d.ts +0 -879
- package/node_modules/@alanszp/express/node_modules/@types/node/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/express/node_modules/@types/node/fs.d.ts +0 -4311
- package/node_modules/@alanszp/express/node_modules/@types/node/globals.d.ts +0 -411
- package/node_modules/@alanszp/express/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/express/node_modules/@types/node/http.d.ts +0 -1887
- package/node_modules/@alanszp/express/node_modules/@types/node/http2.d.ts +0 -2382
- package/node_modules/@alanszp/express/node_modules/@types/node/https.d.ts +0 -550
- package/node_modules/@alanszp/express/node_modules/@types/node/index.d.ts +0 -88
- package/node_modules/@alanszp/express/node_modules/@types/node/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/express/node_modules/@types/node/module.d.ts +0 -315
- package/node_modules/@alanszp/express/node_modules/@types/node/net.d.ts +0 -949
- package/node_modules/@alanszp/express/node_modules/@types/node/os.d.ts +0 -478
- package/node_modules/@alanszp/express/node_modules/@types/node/package.json +0 -229
- package/node_modules/@alanszp/express/node_modules/@types/node/path.d.ts +0 -191
- package/node_modules/@alanszp/express/node_modules/@types/node/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/express/node_modules/@types/node/process.d.ts +0 -1561
- package/node_modules/@alanszp/express/node_modules/@types/node/punycode.d.ts +0 -117
- package/node_modules/@alanszp/express/node_modules/@types/node/querystring.d.ts +0 -141
- package/node_modules/@alanszp/express/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/express/node_modules/@types/node/readline.d.ts +0 -539
- package/node_modules/@alanszp/express/node_modules/@types/node/repl.d.ts +0 -430
- package/node_modules/@alanszp/express/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/express/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/express/node_modules/@types/node/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/express/node_modules/@types/node/stream.d.ts +0 -1701
- package/node_modules/@alanszp/express/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/express/node_modules/@types/node/test.d.ts +0 -1465
- package/node_modules/@alanszp/express/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/express/node_modules/@types/node/timers.d.ts +0 -240
- package/node_modules/@alanszp/express/node_modules/@types/node/tls.d.ts +0 -1210
- package/node_modules/@alanszp/express/node_modules/@types/node/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/express/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@alanszp/express/node_modules/@types/node/tty.d.ts +0 -208
- package/node_modules/@alanszp/express/node_modules/@types/node/url.d.ts +0 -927
- package/node_modules/@alanszp/express/node_modules/@types/node/util.d.ts +0 -2183
- package/node_modules/@alanszp/express/node_modules/@types/node/v8.d.ts +0 -764
- package/node_modules/@alanszp/express/node_modules/@types/node/vm.d.ts +0 -903
- package/node_modules/@alanszp/express/node_modules/@types/node/wasi.d.ts +0 -179
- package/node_modules/@alanszp/express/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/express/node_modules/@types/node/zlib.d.ts +0 -517
- package/node_modules/@alanszp/express/package.json +0 -50
- package/node_modules/@alanszp/express/src/helpers/getIp.ts +0 -5
- package/node_modules/@alanszp/express/src/helpers/getRequestLogger.ts +0 -6
- package/node_modules/@alanszp/express/src/helpers/now.ts +0 -3
- package/node_modules/@alanszp/express/src/helpers/renderErrorJson.ts +0 -29
- package/node_modules/@alanszp/express/src/index.ts +0 -10
- package/node_modules/@alanszp/express/src/middlewares/accessLogger.ts +0 -34
- package/node_modules/@alanszp/express/src/middlewares/auditLog.ts +0 -52
- package/node_modules/@alanszp/express/src/middlewares/authedForOrg.ts +0 -50
- package/node_modules/@alanszp/express/src/middlewares/authenticateUser.test.ts +0 -403
- package/node_modules/@alanszp/express/src/middlewares/authenticateUser.ts +0 -171
- package/node_modules/@alanszp/express/src/middlewares/createContext.test.ts +0 -85
- package/node_modules/@alanszp/express/src/middlewares/createContext.ts +0 -49
- package/node_modules/@alanszp/express/src/middlewares/hasRoles.ts +0 -24
- package/node_modules/@alanszp/express/src/middlewares/jsonBodyParser.ts +0 -22
- package/node_modules/@alanszp/express/src/middlewares/returnInternalServerError.ts +0 -15
- package/node_modules/@alanszp/express/src/middlewares/returnNotFound.ts +0 -11
- package/node_modules/@alanszp/express/src/test/mocks/authOptionsMocks.ts +0 -35
- package/node_modules/@alanszp/express/src/test/mocks/expressMocks.ts +0 -33
- package/node_modules/@alanszp/express/src/test/mocks/jwtUserMocks.ts +0 -19
- package/node_modules/@alanszp/express/src/test/setup.test.ts +0 -15
- package/node_modules/@alanszp/express/src/test/setup.ts +0 -3
- package/node_modules/@alanszp/express/src/types/AuthMethod.ts +0 -27
- package/node_modules/@alanszp/express/src/types/GenericRequest.ts +0 -3
- package/node_modules/@alanszp/express/src/types/custom.d.ts +0 -20
- package/node_modules/@alanszp/express/tsconfig.json +0 -18
- package/node_modules/@alanszp/jwt/.gitignore +0 -3
- package/node_modules/@alanszp/jwt/.npmignore +0 -3
- package/node_modules/@alanszp/jwt/LICENSE +0 -21
- package/node_modules/@alanszp/jwt/dist/JWTUser.d.ts +0 -31
- package/node_modules/@alanszp/jwt/dist/JWTUser.js +0 -62
- package/node_modules/@alanszp/jwt/dist/JWTUser.js.map +0 -1
- package/node_modules/@alanszp/jwt/dist/index.d.ts +0 -3
- package/node_modules/@alanszp/jwt/dist/index.js +0 -16
- package/node_modules/@alanszp/jwt/dist/index.js.map +0 -1
- package/node_modules/@alanszp/jwt/dist/jwt.d.ts +0 -11
- package/node_modules/@alanszp/jwt/dist/jwt.js +0 -67
- package/node_modules/@alanszp/jwt/dist/jwt.js.map +0 -1
- package/node_modules/@alanszp/jwt/dist/types.d.ts +0 -26
- package/node_modules/@alanszp/jwt/dist/types.js +0 -3
- package/node_modules/@alanszp/jwt/dist/types.js.map +0 -1
- package/node_modules/@alanszp/jwt/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@alanszp/jwt/node_modules/@types/node/README.md +0 -15
- package/node_modules/@alanszp/jwt/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/jwt/node_modules/@types/node/assert.d.ts +0 -996
- package/node_modules/@alanszp/jwt/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/jwt/node_modules/@types/node/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/jwt/node_modules/@types/node/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/jwt/node_modules/@types/node/cluster.d.ts +0 -432
- package/node_modules/@alanszp/jwt/node_modules/@types/node/console.d.ts +0 -415
- package/node_modules/@alanszp/jwt/node_modules/@types/node/constants.d.ts +0 -19
- package/node_modules/@alanszp/jwt/node_modules/@types/node/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/jwt/node_modules/@types/node/dgram.d.ts +0 -596
- package/node_modules/@alanszp/jwt/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/jwt/node_modules/@types/node/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/jwt/node_modules/@types/node/dns.d.ts +0 -809
- package/node_modules/@alanszp/jwt/node_modules/@types/node/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/jwt/node_modules/@types/node/domain.d.ts +0 -170
- package/node_modules/@alanszp/jwt/node_modules/@types/node/events.d.ts +0 -879
- package/node_modules/@alanszp/jwt/node_modules/@types/node/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/jwt/node_modules/@types/node/fs.d.ts +0 -4311
- package/node_modules/@alanszp/jwt/node_modules/@types/node/globals.d.ts +0 -411
- package/node_modules/@alanszp/jwt/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/jwt/node_modules/@types/node/http.d.ts +0 -1887
- package/node_modules/@alanszp/jwt/node_modules/@types/node/http2.d.ts +0 -2382
- package/node_modules/@alanszp/jwt/node_modules/@types/node/https.d.ts +0 -550
- package/node_modules/@alanszp/jwt/node_modules/@types/node/index.d.ts +0 -88
- package/node_modules/@alanszp/jwt/node_modules/@types/node/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/jwt/node_modules/@types/node/module.d.ts +0 -315
- package/node_modules/@alanszp/jwt/node_modules/@types/node/net.d.ts +0 -949
- package/node_modules/@alanszp/jwt/node_modules/@types/node/os.d.ts +0 -478
- package/node_modules/@alanszp/jwt/node_modules/@types/node/package.json +0 -229
- package/node_modules/@alanszp/jwt/node_modules/@types/node/path.d.ts +0 -191
- package/node_modules/@alanszp/jwt/node_modules/@types/node/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/jwt/node_modules/@types/node/process.d.ts +0 -1561
- package/node_modules/@alanszp/jwt/node_modules/@types/node/punycode.d.ts +0 -117
- package/node_modules/@alanszp/jwt/node_modules/@types/node/querystring.d.ts +0 -141
- package/node_modules/@alanszp/jwt/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/jwt/node_modules/@types/node/readline.d.ts +0 -539
- package/node_modules/@alanszp/jwt/node_modules/@types/node/repl.d.ts +0 -430
- package/node_modules/@alanszp/jwt/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/jwt/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/jwt/node_modules/@types/node/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/jwt/node_modules/@types/node/stream.d.ts +0 -1701
- package/node_modules/@alanszp/jwt/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/jwt/node_modules/@types/node/test.d.ts +0 -1465
- package/node_modules/@alanszp/jwt/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/jwt/node_modules/@types/node/timers.d.ts +0 -240
- package/node_modules/@alanszp/jwt/node_modules/@types/node/tls.d.ts +0 -1210
- package/node_modules/@alanszp/jwt/node_modules/@types/node/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/jwt/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@alanszp/jwt/node_modules/@types/node/tty.d.ts +0 -208
- package/node_modules/@alanszp/jwt/node_modules/@types/node/url.d.ts +0 -927
- package/node_modules/@alanszp/jwt/node_modules/@types/node/util.d.ts +0 -2183
- package/node_modules/@alanszp/jwt/node_modules/@types/node/v8.d.ts +0 -764
- package/node_modules/@alanszp/jwt/node_modules/@types/node/vm.d.ts +0 -903
- package/node_modules/@alanszp/jwt/node_modules/@types/node/wasi.d.ts +0 -179
- package/node_modules/@alanszp/jwt/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/jwt/node_modules/@types/node/zlib.d.ts +0 -517
- package/node_modules/@alanszp/jwt/package.json +0 -29
- package/node_modules/@alanszp/jwt/src/JWTUser.ts +0 -85
- package/node_modules/@alanszp/jwt/src/index.ts +0 -3
- package/node_modules/@alanszp/jwt/src/jwt.ts +0 -81
- package/node_modules/@alanszp/jwt/src/types.ts +0 -31
- package/node_modules/@alanszp/jwt/tsconfig.json +0 -15
- package/node_modules/@alanszp/logger/.gitignore +0 -3
- package/node_modules/@alanszp/logger/.npmignore +0 -3
- package/node_modules/@alanszp/logger/LICENSE +0 -21
- package/node_modules/@alanszp/logger/dist/config.d.ts +0 -28
- package/node_modules/@alanszp/logger/dist/config.js +0 -3
- package/node_modules/@alanszp/logger/dist/config.js.map +0 -1
- package/node_modules/@alanszp/logger/dist/factory.d.ts +0 -5
- package/node_modules/@alanszp/logger/dist/factory.js +0 -55
- package/node_modules/@alanszp/logger/dist/factory.js.map +0 -1
- package/node_modules/@alanszp/logger/dist/index.d.ts +0 -5
- package/node_modules/@alanszp/logger/dist/index.js +0 -20
- package/node_modules/@alanszp/logger/dist/index.js.map +0 -1
- package/node_modules/@alanszp/logger/dist/interfaces.d.ts +0 -23
- package/node_modules/@alanszp/logger/dist/interfaces.js +0 -18
- package/node_modules/@alanszp/logger/dist/interfaces.js.map +0 -1
- package/node_modules/@alanszp/logger/dist/logger.d.ts +0 -14
- package/node_modules/@alanszp/logger/dist/logger.js +0 -45
- package/node_modules/@alanszp/logger/dist/logger.js.map +0 -1
- package/node_modules/@alanszp/logger/dist/mock.d.ts +0 -11
- package/node_modules/@alanszp/logger/dist/mock.js +0 -32
- package/node_modules/@alanszp/logger/dist/mock.js.map +0 -1
- package/node_modules/@alanszp/logger/dist/serializer.d.ts +0 -5
- package/node_modules/@alanszp/logger/dist/serializer.js +0 -67
- package/node_modules/@alanszp/logger/dist/serializer.js.map +0 -1
- package/node_modules/@alanszp/logger/dist/slackBunyan.d.ts +0 -16
- package/node_modules/@alanszp/logger/dist/slackBunyan.js +0 -108
- package/node_modules/@alanszp/logger/dist/slackBunyan.js.map +0 -1
- package/node_modules/@alanszp/logger/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@alanszp/logger/node_modules/@types/node/README.md +0 -15
- package/node_modules/@alanszp/logger/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/logger/node_modules/@types/node/assert.d.ts +0 -996
- package/node_modules/@alanszp/logger/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/logger/node_modules/@types/node/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/logger/node_modules/@types/node/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/logger/node_modules/@types/node/cluster.d.ts +0 -432
- package/node_modules/@alanszp/logger/node_modules/@types/node/console.d.ts +0 -415
- package/node_modules/@alanszp/logger/node_modules/@types/node/constants.d.ts +0 -19
- package/node_modules/@alanszp/logger/node_modules/@types/node/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/logger/node_modules/@types/node/dgram.d.ts +0 -596
- package/node_modules/@alanszp/logger/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/logger/node_modules/@types/node/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/logger/node_modules/@types/node/dns.d.ts +0 -809
- package/node_modules/@alanszp/logger/node_modules/@types/node/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/logger/node_modules/@types/node/domain.d.ts +0 -170
- package/node_modules/@alanszp/logger/node_modules/@types/node/events.d.ts +0 -879
- package/node_modules/@alanszp/logger/node_modules/@types/node/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/logger/node_modules/@types/node/fs.d.ts +0 -4311
- package/node_modules/@alanszp/logger/node_modules/@types/node/globals.d.ts +0 -411
- package/node_modules/@alanszp/logger/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/logger/node_modules/@types/node/http.d.ts +0 -1887
- package/node_modules/@alanszp/logger/node_modules/@types/node/http2.d.ts +0 -2382
- package/node_modules/@alanszp/logger/node_modules/@types/node/https.d.ts +0 -550
- package/node_modules/@alanszp/logger/node_modules/@types/node/index.d.ts +0 -88
- package/node_modules/@alanszp/logger/node_modules/@types/node/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/logger/node_modules/@types/node/module.d.ts +0 -315
- package/node_modules/@alanszp/logger/node_modules/@types/node/net.d.ts +0 -949
- package/node_modules/@alanszp/logger/node_modules/@types/node/os.d.ts +0 -478
- package/node_modules/@alanszp/logger/node_modules/@types/node/package.json +0 -229
- package/node_modules/@alanszp/logger/node_modules/@types/node/path.d.ts +0 -191
- package/node_modules/@alanszp/logger/node_modules/@types/node/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/logger/node_modules/@types/node/process.d.ts +0 -1561
- package/node_modules/@alanszp/logger/node_modules/@types/node/punycode.d.ts +0 -117
- package/node_modules/@alanszp/logger/node_modules/@types/node/querystring.d.ts +0 -141
- package/node_modules/@alanszp/logger/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/logger/node_modules/@types/node/readline.d.ts +0 -539
- package/node_modules/@alanszp/logger/node_modules/@types/node/repl.d.ts +0 -430
- package/node_modules/@alanszp/logger/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/logger/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/logger/node_modules/@types/node/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/logger/node_modules/@types/node/stream.d.ts +0 -1701
- package/node_modules/@alanszp/logger/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/logger/node_modules/@types/node/test.d.ts +0 -1465
- package/node_modules/@alanszp/logger/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/logger/node_modules/@types/node/timers.d.ts +0 -240
- package/node_modules/@alanszp/logger/node_modules/@types/node/tls.d.ts +0 -1210
- package/node_modules/@alanszp/logger/node_modules/@types/node/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/logger/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@alanszp/logger/node_modules/@types/node/tty.d.ts +0 -208
- package/node_modules/@alanszp/logger/node_modules/@types/node/url.d.ts +0 -927
- package/node_modules/@alanszp/logger/node_modules/@types/node/util.d.ts +0 -2183
- package/node_modules/@alanszp/logger/node_modules/@types/node/v8.d.ts +0 -764
- package/node_modules/@alanszp/logger/node_modules/@types/node/vm.d.ts +0 -903
- package/node_modules/@alanszp/logger/node_modules/@types/node/wasi.d.ts +0 -179
- package/node_modules/@alanszp/logger/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/node_modules/@alanszp/logger/node_modules/@types/node/zlib.d.ts +0 -517
- package/node_modules/@alanszp/logger/package.json +0 -35
- package/node_modules/@alanszp/logger/src/config.ts +0 -34
- package/node_modules/@alanszp/logger/src/factory.ts +0 -68
- package/node_modules/@alanszp/logger/src/index.ts +0 -5
- package/node_modules/@alanszp/logger/src/interfaces.ts +0 -26
- package/node_modules/@alanszp/logger/src/logger.ts +0 -54
- package/node_modules/@alanszp/logger/src/mock.ts +0 -35
- package/node_modules/@alanszp/logger/src/serializer.ts +0 -65
- package/node_modules/@alanszp/logger/src/slackBunyan.ts +0 -133
- package/node_modules/@alanszp/logger/tsconfig.json +0 -15
- package/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@types/node/README.md +0 -15
- package/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/assert.d.ts +0 -996
- package/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/buffer.d.ts +0 -2362
- package/node_modules/@types/node/child_process.d.ts +0 -1540
- package/node_modules/@types/node/cluster.d.ts +0 -432
- package/node_modules/@types/node/console.d.ts +0 -415
- package/node_modules/@types/node/constants.d.ts +0 -19
- package/node_modules/@types/node/crypto.d.ts +0 -4487
- package/node_modules/@types/node/dgram.d.ts +0 -596
- package/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/node/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/dns.d.ts +0 -809
- package/node_modules/@types/node/dom-events.d.ts +0 -122
- package/node_modules/@types/node/domain.d.ts +0 -170
- package/node_modules/@types/node/events.d.ts +0 -879
- package/node_modules/@types/node/fs/promises.d.ts +0 -1239
- package/node_modules/@types/node/fs.d.ts +0 -4311
- package/node_modules/@types/node/globals.d.ts +0 -411
- package/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/node/http.d.ts +0 -1887
- package/node_modules/@types/node/http2.d.ts +0 -2382
- package/node_modules/@types/node/https.d.ts +0 -550
- package/node_modules/@types/node/index.d.ts +0 -88
- package/node_modules/@types/node/inspector.d.ts +0 -2747
- package/node_modules/@types/node/module.d.ts +0 -315
- package/node_modules/@types/node/net.d.ts +0 -949
- package/node_modules/@types/node/os.d.ts +0 -478
- package/node_modules/@types/node/package.json +0 -229
- package/node_modules/@types/node/path.d.ts +0 -191
- package/node_modules/@types/node/perf_hooks.d.ts +0 -645
- package/node_modules/@types/node/process.d.ts +0 -1561
- package/node_modules/@types/node/punycode.d.ts +0 -117
- package/node_modules/@types/node/querystring.d.ts +0 -141
- package/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/readline.d.ts +0 -539
- package/node_modules/@types/node/repl.d.ts +0 -430
- package/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/stream/web.d.ts +0 -366
- package/node_modules/@types/node/stream.d.ts +0 -1701
- package/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/test.d.ts +0 -1465
- package/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/timers.d.ts +0 -240
- package/node_modules/@types/node/tls.d.ts +0 -1210
- package/node_modules/@types/node/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@types/node/tty.d.ts +0 -208
- package/node_modules/@types/node/url.d.ts +0 -927
- package/node_modules/@types/node/util.d.ts +0 -2183
- package/node_modules/@types/node/v8.d.ts +0 -764
- package/node_modules/@types/node/vm.d.ts +0 -903
- package/node_modules/@types/node/wasi.d.ts +0 -179
- package/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/zlib.d.ts +0 -517
- package/src/commonErrorsHandler.ts +0 -105
- package/src/index.ts +0 -1
|
@@ -1,517 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `node:zlib` module provides compression functionality implemented using
|
|
3
|
-
* Gzip, Deflate/Inflate, and Brotli.
|
|
4
|
-
*
|
|
5
|
-
* To access it:
|
|
6
|
-
*
|
|
7
|
-
* ```js
|
|
8
|
-
* const zlib = require('node:zlib');
|
|
9
|
-
* ```
|
|
10
|
-
*
|
|
11
|
-
* Compression and decompression are built around the Node.js `Streams API`.
|
|
12
|
-
*
|
|
13
|
-
* Compressing or decompressing a stream (such as a file) can be accomplished by
|
|
14
|
-
* piping the source stream through a `zlib` `Transform` stream into a destination
|
|
15
|
-
* stream:
|
|
16
|
-
*
|
|
17
|
-
* ```js
|
|
18
|
-
* const { createGzip } = require('node:zlib');
|
|
19
|
-
* const { pipeline } = require('node:stream');
|
|
20
|
-
* const {
|
|
21
|
-
* createReadStream,
|
|
22
|
-
* createWriteStream,
|
|
23
|
-
* } = require('node:fs');
|
|
24
|
-
*
|
|
25
|
-
* const gzip = createGzip();
|
|
26
|
-
* const source = createReadStream('input.txt');
|
|
27
|
-
* const destination = createWriteStream('input.txt.gz');
|
|
28
|
-
*
|
|
29
|
-
* pipeline(source, gzip, destination, (err) => {
|
|
30
|
-
* if (err) {
|
|
31
|
-
* console.error('An error occurred:', err);
|
|
32
|
-
* process.exitCode = 1;
|
|
33
|
-
* }
|
|
34
|
-
* });
|
|
35
|
-
*
|
|
36
|
-
* // Or, Promisified
|
|
37
|
-
*
|
|
38
|
-
* const { promisify } = require('node:util');
|
|
39
|
-
* const pipe = promisify(pipeline);
|
|
40
|
-
*
|
|
41
|
-
* async function do_gzip(input, output) {
|
|
42
|
-
* const gzip = createGzip();
|
|
43
|
-
* const source = createReadStream(input);
|
|
44
|
-
* const destination = createWriteStream(output);
|
|
45
|
-
* await pipe(source, gzip, destination);
|
|
46
|
-
* }
|
|
47
|
-
*
|
|
48
|
-
* do_gzip('input.txt', 'input.txt.gz')
|
|
49
|
-
* .catch((err) => {
|
|
50
|
-
* console.error('An error occurred:', err);
|
|
51
|
-
* process.exitCode = 1;
|
|
52
|
-
* });
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* It is also possible to compress or decompress data in a single step:
|
|
56
|
-
*
|
|
57
|
-
* ```js
|
|
58
|
-
* const { deflate, unzip } = require('node:zlib');
|
|
59
|
-
*
|
|
60
|
-
* const input = '.................................';
|
|
61
|
-
* deflate(input, (err, buffer) => {
|
|
62
|
-
* if (err) {
|
|
63
|
-
* console.error('An error occurred:', err);
|
|
64
|
-
* process.exitCode = 1;
|
|
65
|
-
* }
|
|
66
|
-
* console.log(buffer.toString('base64'));
|
|
67
|
-
* });
|
|
68
|
-
*
|
|
69
|
-
* const buffer = Buffer.from('eJzT0yMAAGTvBe8=', 'base64');
|
|
70
|
-
* unzip(buffer, (err, buffer) => {
|
|
71
|
-
* if (err) {
|
|
72
|
-
* console.error('An error occurred:', err);
|
|
73
|
-
* process.exitCode = 1;
|
|
74
|
-
* }
|
|
75
|
-
* console.log(buffer.toString());
|
|
76
|
-
* });
|
|
77
|
-
*
|
|
78
|
-
* // Or, Promisified
|
|
79
|
-
*
|
|
80
|
-
* const { promisify } = require('node:util');
|
|
81
|
-
* const do_unzip = promisify(unzip);
|
|
82
|
-
*
|
|
83
|
-
* do_unzip(buffer)
|
|
84
|
-
* .then((buf) => console.log(buf.toString()))
|
|
85
|
-
* .catch((err) => {
|
|
86
|
-
* console.error('An error occurred:', err);
|
|
87
|
-
* process.exitCode = 1;
|
|
88
|
-
* });
|
|
89
|
-
* ```
|
|
90
|
-
* @since v0.5.8
|
|
91
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/zlib.js)
|
|
92
|
-
*/
|
|
93
|
-
declare module "zlib" {
|
|
94
|
-
import * as stream from "node:stream";
|
|
95
|
-
interface ZlibOptions {
|
|
96
|
-
/**
|
|
97
|
-
* @default constants.Z_NO_FLUSH
|
|
98
|
-
*/
|
|
99
|
-
flush?: number | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* @default constants.Z_FINISH
|
|
102
|
-
*/
|
|
103
|
-
finishFlush?: number | undefined;
|
|
104
|
-
/**
|
|
105
|
-
* @default 16*1024
|
|
106
|
-
*/
|
|
107
|
-
chunkSize?: number | undefined;
|
|
108
|
-
windowBits?: number | undefined;
|
|
109
|
-
level?: number | undefined; // compression only
|
|
110
|
-
memLevel?: number | undefined; // compression only
|
|
111
|
-
strategy?: number | undefined; // compression only
|
|
112
|
-
dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined; // deflate/inflate only, empty dictionary by default
|
|
113
|
-
info?: boolean | undefined;
|
|
114
|
-
maxOutputLength?: number | undefined;
|
|
115
|
-
}
|
|
116
|
-
interface BrotliOptions {
|
|
117
|
-
/**
|
|
118
|
-
* @default constants.BROTLI_OPERATION_PROCESS
|
|
119
|
-
*/
|
|
120
|
-
flush?: number | undefined;
|
|
121
|
-
/**
|
|
122
|
-
* @default constants.BROTLI_OPERATION_FINISH
|
|
123
|
-
*/
|
|
124
|
-
finishFlush?: number | undefined;
|
|
125
|
-
/**
|
|
126
|
-
* @default 16*1024
|
|
127
|
-
*/
|
|
128
|
-
chunkSize?: number | undefined;
|
|
129
|
-
params?:
|
|
130
|
-
| {
|
|
131
|
-
/**
|
|
132
|
-
* Each key is a `constants.BROTLI_*` constant.
|
|
133
|
-
*/
|
|
134
|
-
[key: number]: boolean | number;
|
|
135
|
-
}
|
|
136
|
-
| undefined;
|
|
137
|
-
maxOutputLength?: number | undefined;
|
|
138
|
-
}
|
|
139
|
-
interface Zlib {
|
|
140
|
-
/** @deprecated Use bytesWritten instead. */
|
|
141
|
-
readonly bytesRead: number;
|
|
142
|
-
readonly bytesWritten: number;
|
|
143
|
-
shell?: boolean | string | undefined;
|
|
144
|
-
close(callback?: () => void): void;
|
|
145
|
-
flush(kind?: number, callback?: () => void): void;
|
|
146
|
-
flush(callback?: () => void): void;
|
|
147
|
-
}
|
|
148
|
-
interface ZlibParams {
|
|
149
|
-
params(level: number, strategy: number, callback: () => void): void;
|
|
150
|
-
}
|
|
151
|
-
interface ZlibReset {
|
|
152
|
-
reset(): void;
|
|
153
|
-
}
|
|
154
|
-
interface BrotliCompress extends stream.Transform, Zlib {}
|
|
155
|
-
interface BrotliDecompress extends stream.Transform, Zlib {}
|
|
156
|
-
interface Gzip extends stream.Transform, Zlib {}
|
|
157
|
-
interface Gunzip extends stream.Transform, Zlib {}
|
|
158
|
-
interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
|
|
159
|
-
interface Inflate extends stream.Transform, Zlib, ZlibReset {}
|
|
160
|
-
interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
|
|
161
|
-
interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
|
|
162
|
-
interface Unzip extends stream.Transform, Zlib {}
|
|
163
|
-
/**
|
|
164
|
-
* Creates and returns a new `BrotliCompress` object.
|
|
165
|
-
* @since v11.7.0, v10.16.0
|
|
166
|
-
*/
|
|
167
|
-
function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
|
|
168
|
-
/**
|
|
169
|
-
* Creates and returns a new `BrotliDecompress` object.
|
|
170
|
-
* @since v11.7.0, v10.16.0
|
|
171
|
-
*/
|
|
172
|
-
function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
|
|
173
|
-
/**
|
|
174
|
-
* Creates and returns a new `Gzip` object.
|
|
175
|
-
* See `example`.
|
|
176
|
-
* @since v0.5.8
|
|
177
|
-
*/
|
|
178
|
-
function createGzip(options?: ZlibOptions): Gzip;
|
|
179
|
-
/**
|
|
180
|
-
* Creates and returns a new `Gunzip` object.
|
|
181
|
-
* @since v0.5.8
|
|
182
|
-
*/
|
|
183
|
-
function createGunzip(options?: ZlibOptions): Gunzip;
|
|
184
|
-
/**
|
|
185
|
-
* Creates and returns a new `Deflate` object.
|
|
186
|
-
* @since v0.5.8
|
|
187
|
-
*/
|
|
188
|
-
function createDeflate(options?: ZlibOptions): Deflate;
|
|
189
|
-
/**
|
|
190
|
-
* Creates and returns a new `Inflate` object.
|
|
191
|
-
* @since v0.5.8
|
|
192
|
-
*/
|
|
193
|
-
function createInflate(options?: ZlibOptions): Inflate;
|
|
194
|
-
/**
|
|
195
|
-
* Creates and returns a new `DeflateRaw` object.
|
|
196
|
-
*
|
|
197
|
-
* An upgrade of zlib from 1.2.8 to 1.2.11 changed behavior when `windowBits`is set to 8 for raw deflate streams. zlib would automatically set `windowBits`to 9 if was initially set to 8\. Newer
|
|
198
|
-
* versions of zlib will throw an exception,
|
|
199
|
-
* so Node.js restored the original behavior of upgrading a value of 8 to 9,
|
|
200
|
-
* since passing `windowBits = 9` to zlib actually results in a compressed stream
|
|
201
|
-
* that effectively uses an 8-bit window only.
|
|
202
|
-
* @since v0.5.8
|
|
203
|
-
*/
|
|
204
|
-
function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
|
|
205
|
-
/**
|
|
206
|
-
* Creates and returns a new `InflateRaw` object.
|
|
207
|
-
* @since v0.5.8
|
|
208
|
-
*/
|
|
209
|
-
function createInflateRaw(options?: ZlibOptions): InflateRaw;
|
|
210
|
-
/**
|
|
211
|
-
* Creates and returns a new `Unzip` object.
|
|
212
|
-
* @since v0.5.8
|
|
213
|
-
*/
|
|
214
|
-
function createUnzip(options?: ZlibOptions): Unzip;
|
|
215
|
-
type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
|
|
216
|
-
type CompressCallback = (error: Error | null, result: Buffer) => void;
|
|
217
|
-
/**
|
|
218
|
-
* @since v11.7.0, v10.16.0
|
|
219
|
-
*/
|
|
220
|
-
function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
221
|
-
function brotliCompress(buf: InputType, callback: CompressCallback): void;
|
|
222
|
-
namespace brotliCompress {
|
|
223
|
-
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Compress a chunk of data with `BrotliCompress`.
|
|
227
|
-
* @since v11.7.0, v10.16.0
|
|
228
|
-
*/
|
|
229
|
-
function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
|
|
230
|
-
/**
|
|
231
|
-
* @since v11.7.0, v10.16.0
|
|
232
|
-
*/
|
|
233
|
-
function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
234
|
-
function brotliDecompress(buf: InputType, callback: CompressCallback): void;
|
|
235
|
-
namespace brotliDecompress {
|
|
236
|
-
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Decompress a chunk of data with `BrotliDecompress`.
|
|
240
|
-
* @since v11.7.0, v10.16.0
|
|
241
|
-
*/
|
|
242
|
-
function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
|
|
243
|
-
/**
|
|
244
|
-
* @since v0.6.0
|
|
245
|
-
*/
|
|
246
|
-
function deflate(buf: InputType, callback: CompressCallback): void;
|
|
247
|
-
function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
248
|
-
namespace deflate {
|
|
249
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Compress a chunk of data with `Deflate`.
|
|
253
|
-
* @since v0.11.12
|
|
254
|
-
*/
|
|
255
|
-
function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
256
|
-
/**
|
|
257
|
-
* @since v0.6.0
|
|
258
|
-
*/
|
|
259
|
-
function deflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
260
|
-
function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
261
|
-
namespace deflateRaw {
|
|
262
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Compress a chunk of data with `DeflateRaw`.
|
|
266
|
-
* @since v0.11.12
|
|
267
|
-
*/
|
|
268
|
-
function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
269
|
-
/**
|
|
270
|
-
* @since v0.6.0
|
|
271
|
-
*/
|
|
272
|
-
function gzip(buf: InputType, callback: CompressCallback): void;
|
|
273
|
-
function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
274
|
-
namespace gzip {
|
|
275
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* Compress a chunk of data with `Gzip`.
|
|
279
|
-
* @since v0.11.12
|
|
280
|
-
*/
|
|
281
|
-
function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
282
|
-
/**
|
|
283
|
-
* @since v0.6.0
|
|
284
|
-
*/
|
|
285
|
-
function gunzip(buf: InputType, callback: CompressCallback): void;
|
|
286
|
-
function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
287
|
-
namespace gunzip {
|
|
288
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Decompress a chunk of data with `Gunzip`.
|
|
292
|
-
* @since v0.11.12
|
|
293
|
-
*/
|
|
294
|
-
function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
295
|
-
/**
|
|
296
|
-
* @since v0.6.0
|
|
297
|
-
*/
|
|
298
|
-
function inflate(buf: InputType, callback: CompressCallback): void;
|
|
299
|
-
function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
300
|
-
namespace inflate {
|
|
301
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Decompress a chunk of data with `Inflate`.
|
|
305
|
-
* @since v0.11.12
|
|
306
|
-
*/
|
|
307
|
-
function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
308
|
-
/**
|
|
309
|
-
* @since v0.6.0
|
|
310
|
-
*/
|
|
311
|
-
function inflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
312
|
-
function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
313
|
-
namespace inflateRaw {
|
|
314
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Decompress a chunk of data with `InflateRaw`.
|
|
318
|
-
* @since v0.11.12
|
|
319
|
-
*/
|
|
320
|
-
function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
321
|
-
/**
|
|
322
|
-
* @since v0.6.0
|
|
323
|
-
*/
|
|
324
|
-
function unzip(buf: InputType, callback: CompressCallback): void;
|
|
325
|
-
function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
326
|
-
namespace unzip {
|
|
327
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* Decompress a chunk of data with `Unzip`.
|
|
331
|
-
* @since v0.11.12
|
|
332
|
-
*/
|
|
333
|
-
function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
334
|
-
namespace constants {
|
|
335
|
-
const BROTLI_DECODE: number;
|
|
336
|
-
const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
|
|
337
|
-
const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number;
|
|
338
|
-
const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number;
|
|
339
|
-
const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number;
|
|
340
|
-
const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number;
|
|
341
|
-
const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number;
|
|
342
|
-
const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number;
|
|
343
|
-
const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number;
|
|
344
|
-
const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number;
|
|
345
|
-
const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number;
|
|
346
|
-
const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number;
|
|
347
|
-
const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number;
|
|
348
|
-
const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number;
|
|
349
|
-
const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number;
|
|
350
|
-
const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number;
|
|
351
|
-
const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number;
|
|
352
|
-
const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number;
|
|
353
|
-
const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number;
|
|
354
|
-
const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number;
|
|
355
|
-
const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number;
|
|
356
|
-
const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number;
|
|
357
|
-
const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number;
|
|
358
|
-
const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number;
|
|
359
|
-
const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number;
|
|
360
|
-
const BROTLI_DECODER_ERROR_UNREACHABLE: number;
|
|
361
|
-
const BROTLI_DECODER_NEEDS_MORE_INPUT: number;
|
|
362
|
-
const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number;
|
|
363
|
-
const BROTLI_DECODER_NO_ERROR: number;
|
|
364
|
-
const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number;
|
|
365
|
-
const BROTLI_DECODER_PARAM_LARGE_WINDOW: number;
|
|
366
|
-
const BROTLI_DECODER_RESULT_ERROR: number;
|
|
367
|
-
const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number;
|
|
368
|
-
const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number;
|
|
369
|
-
const BROTLI_DECODER_RESULT_SUCCESS: number;
|
|
370
|
-
const BROTLI_DECODER_SUCCESS: number;
|
|
371
|
-
const BROTLI_DEFAULT_MODE: number;
|
|
372
|
-
const BROTLI_DEFAULT_QUALITY: number;
|
|
373
|
-
const BROTLI_DEFAULT_WINDOW: number;
|
|
374
|
-
const BROTLI_ENCODE: number;
|
|
375
|
-
const BROTLI_LARGE_MAX_WINDOW_BITS: number;
|
|
376
|
-
const BROTLI_MAX_INPUT_BLOCK_BITS: number;
|
|
377
|
-
const BROTLI_MAX_QUALITY: number;
|
|
378
|
-
const BROTLI_MAX_WINDOW_BITS: number;
|
|
379
|
-
const BROTLI_MIN_INPUT_BLOCK_BITS: number;
|
|
380
|
-
const BROTLI_MIN_QUALITY: number;
|
|
381
|
-
const BROTLI_MIN_WINDOW_BITS: number;
|
|
382
|
-
const BROTLI_MODE_FONT: number;
|
|
383
|
-
const BROTLI_MODE_GENERIC: number;
|
|
384
|
-
const BROTLI_MODE_TEXT: number;
|
|
385
|
-
const BROTLI_OPERATION_EMIT_METADATA: number;
|
|
386
|
-
const BROTLI_OPERATION_FINISH: number;
|
|
387
|
-
const BROTLI_OPERATION_FLUSH: number;
|
|
388
|
-
const BROTLI_OPERATION_PROCESS: number;
|
|
389
|
-
const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number;
|
|
390
|
-
const BROTLI_PARAM_LARGE_WINDOW: number;
|
|
391
|
-
const BROTLI_PARAM_LGBLOCK: number;
|
|
392
|
-
const BROTLI_PARAM_LGWIN: number;
|
|
393
|
-
const BROTLI_PARAM_MODE: number;
|
|
394
|
-
const BROTLI_PARAM_NDIRECT: number;
|
|
395
|
-
const BROTLI_PARAM_NPOSTFIX: number;
|
|
396
|
-
const BROTLI_PARAM_QUALITY: number;
|
|
397
|
-
const BROTLI_PARAM_SIZE_HINT: number;
|
|
398
|
-
const DEFLATE: number;
|
|
399
|
-
const DEFLATERAW: number;
|
|
400
|
-
const GUNZIP: number;
|
|
401
|
-
const GZIP: number;
|
|
402
|
-
const INFLATE: number;
|
|
403
|
-
const INFLATERAW: number;
|
|
404
|
-
const UNZIP: number;
|
|
405
|
-
// Allowed flush values.
|
|
406
|
-
const Z_NO_FLUSH: number;
|
|
407
|
-
const Z_PARTIAL_FLUSH: number;
|
|
408
|
-
const Z_SYNC_FLUSH: number;
|
|
409
|
-
const Z_FULL_FLUSH: number;
|
|
410
|
-
const Z_FINISH: number;
|
|
411
|
-
const Z_BLOCK: number;
|
|
412
|
-
const Z_TREES: number;
|
|
413
|
-
// Return codes for the compression/decompression functions.
|
|
414
|
-
// Negative values are errors, positive values are used for special but normal events.
|
|
415
|
-
const Z_OK: number;
|
|
416
|
-
const Z_STREAM_END: number;
|
|
417
|
-
const Z_NEED_DICT: number;
|
|
418
|
-
const Z_ERRNO: number;
|
|
419
|
-
const Z_STREAM_ERROR: number;
|
|
420
|
-
const Z_DATA_ERROR: number;
|
|
421
|
-
const Z_MEM_ERROR: number;
|
|
422
|
-
const Z_BUF_ERROR: number;
|
|
423
|
-
const Z_VERSION_ERROR: number;
|
|
424
|
-
// Compression levels.
|
|
425
|
-
const Z_NO_COMPRESSION: number;
|
|
426
|
-
const Z_BEST_SPEED: number;
|
|
427
|
-
const Z_BEST_COMPRESSION: number;
|
|
428
|
-
const Z_DEFAULT_COMPRESSION: number;
|
|
429
|
-
// Compression strategy.
|
|
430
|
-
const Z_FILTERED: number;
|
|
431
|
-
const Z_HUFFMAN_ONLY: number;
|
|
432
|
-
const Z_RLE: number;
|
|
433
|
-
const Z_FIXED: number;
|
|
434
|
-
const Z_DEFAULT_STRATEGY: number;
|
|
435
|
-
const Z_DEFAULT_WINDOWBITS: number;
|
|
436
|
-
const Z_MIN_WINDOWBITS: number;
|
|
437
|
-
const Z_MAX_WINDOWBITS: number;
|
|
438
|
-
const Z_MIN_CHUNK: number;
|
|
439
|
-
const Z_MAX_CHUNK: number;
|
|
440
|
-
const Z_DEFAULT_CHUNK: number;
|
|
441
|
-
const Z_MIN_MEMLEVEL: number;
|
|
442
|
-
const Z_MAX_MEMLEVEL: number;
|
|
443
|
-
const Z_DEFAULT_MEMLEVEL: number;
|
|
444
|
-
const Z_MIN_LEVEL: number;
|
|
445
|
-
const Z_MAX_LEVEL: number;
|
|
446
|
-
const Z_DEFAULT_LEVEL: number;
|
|
447
|
-
const ZLIB_VERNUM: number;
|
|
448
|
-
}
|
|
449
|
-
// Allowed flush values.
|
|
450
|
-
/** @deprecated Use `constants.Z_NO_FLUSH` */
|
|
451
|
-
const Z_NO_FLUSH: number;
|
|
452
|
-
/** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
|
|
453
|
-
const Z_PARTIAL_FLUSH: number;
|
|
454
|
-
/** @deprecated Use `constants.Z_SYNC_FLUSH` */
|
|
455
|
-
const Z_SYNC_FLUSH: number;
|
|
456
|
-
/** @deprecated Use `constants.Z_FULL_FLUSH` */
|
|
457
|
-
const Z_FULL_FLUSH: number;
|
|
458
|
-
/** @deprecated Use `constants.Z_FINISH` */
|
|
459
|
-
const Z_FINISH: number;
|
|
460
|
-
/** @deprecated Use `constants.Z_BLOCK` */
|
|
461
|
-
const Z_BLOCK: number;
|
|
462
|
-
/** @deprecated Use `constants.Z_TREES` */
|
|
463
|
-
const Z_TREES: number;
|
|
464
|
-
// Return codes for the compression/decompression functions.
|
|
465
|
-
// Negative values are errors, positive values are used for special but normal events.
|
|
466
|
-
/** @deprecated Use `constants.Z_OK` */
|
|
467
|
-
const Z_OK: number;
|
|
468
|
-
/** @deprecated Use `constants.Z_STREAM_END` */
|
|
469
|
-
const Z_STREAM_END: number;
|
|
470
|
-
/** @deprecated Use `constants.Z_NEED_DICT` */
|
|
471
|
-
const Z_NEED_DICT: number;
|
|
472
|
-
/** @deprecated Use `constants.Z_ERRNO` */
|
|
473
|
-
const Z_ERRNO: number;
|
|
474
|
-
/** @deprecated Use `constants.Z_STREAM_ERROR` */
|
|
475
|
-
const Z_STREAM_ERROR: number;
|
|
476
|
-
/** @deprecated Use `constants.Z_DATA_ERROR` */
|
|
477
|
-
const Z_DATA_ERROR: number;
|
|
478
|
-
/** @deprecated Use `constants.Z_MEM_ERROR` */
|
|
479
|
-
const Z_MEM_ERROR: number;
|
|
480
|
-
/** @deprecated Use `constants.Z_BUF_ERROR` */
|
|
481
|
-
const Z_BUF_ERROR: number;
|
|
482
|
-
/** @deprecated Use `constants.Z_VERSION_ERROR` */
|
|
483
|
-
const Z_VERSION_ERROR: number;
|
|
484
|
-
// Compression levels.
|
|
485
|
-
/** @deprecated Use `constants.Z_NO_COMPRESSION` */
|
|
486
|
-
const Z_NO_COMPRESSION: number;
|
|
487
|
-
/** @deprecated Use `constants.Z_BEST_SPEED` */
|
|
488
|
-
const Z_BEST_SPEED: number;
|
|
489
|
-
/** @deprecated Use `constants.Z_BEST_COMPRESSION` */
|
|
490
|
-
const Z_BEST_COMPRESSION: number;
|
|
491
|
-
/** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
|
|
492
|
-
const Z_DEFAULT_COMPRESSION: number;
|
|
493
|
-
// Compression strategy.
|
|
494
|
-
/** @deprecated Use `constants.Z_FILTERED` */
|
|
495
|
-
const Z_FILTERED: number;
|
|
496
|
-
/** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
|
|
497
|
-
const Z_HUFFMAN_ONLY: number;
|
|
498
|
-
/** @deprecated Use `constants.Z_RLE` */
|
|
499
|
-
const Z_RLE: number;
|
|
500
|
-
/** @deprecated Use `constants.Z_FIXED` */
|
|
501
|
-
const Z_FIXED: number;
|
|
502
|
-
/** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
|
|
503
|
-
const Z_DEFAULT_STRATEGY: number;
|
|
504
|
-
/** @deprecated */
|
|
505
|
-
const Z_BINARY: number;
|
|
506
|
-
/** @deprecated */
|
|
507
|
-
const Z_TEXT: number;
|
|
508
|
-
/** @deprecated */
|
|
509
|
-
const Z_ASCII: number;
|
|
510
|
-
/** @deprecated */
|
|
511
|
-
const Z_UNKNOWN: number;
|
|
512
|
-
/** @deprecated */
|
|
513
|
-
const Z_DEFLATED: number;
|
|
514
|
-
}
|
|
515
|
-
declare module "node:zlib" {
|
|
516
|
-
export * from "zlib";
|
|
517
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@alanszp/errors",
|
|
3
|
-
"version": "12.0.1",
|
|
4
|
-
"description": "Alan's basic errors classes.",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"typings": "dist/index.d.ts",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"files": [
|
|
9
|
-
"**/*"
|
|
10
|
-
],
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"compile": "rm -rf ./dist && tsc --declaration",
|
|
16
|
-
"compile-watch": "tsc -w",
|
|
17
|
-
"build": "yarn run compile",
|
|
18
|
-
"prepack": "yarn run build",
|
|
19
|
-
"yalc-publish": "yarn run yalc publish"
|
|
20
|
-
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"@alanszp/errors": ">=12.0.0"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@alanszp/core": "^12.0.0",
|
|
26
|
-
"@types/node": "^20.11.17",
|
|
27
|
-
"ts-node": "^10.0.0",
|
|
28
|
-
"typescript": "^4.3.4"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"lodash": "^4.17.21"
|
|
32
|
-
},
|
|
33
|
-
"gitHead": "2320e554850aec120e0e8bc71c00a2197187af40"
|
|
34
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class BaseError extends Error {
|
|
2
|
-
constructor(message: string) {
|
|
3
|
-
super(message);
|
|
4
|
-
|
|
5
|
-
this.name = this.constructor.name;
|
|
6
|
-
if (typeof Error.captureStackTrace === "function") {
|
|
7
|
-
Error.captureStackTrace(this, this.constructor);
|
|
8
|
-
} else {
|
|
9
|
-
this.stack = new Error(this.message).stack;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
Object.setPrototypeOf(this, this.constructor.prototype);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { HttpRenderableError } from "./HttpRenderableError";
|
|
2
|
-
import { RenderableContext, RenderableError } from "./RenderableError";
|
|
3
|
-
|
|
4
|
-
export class InternalServerError extends HttpRenderableError {
|
|
5
|
-
public error;
|
|
6
|
-
|
|
7
|
-
constructor(error?: unknown) {
|
|
8
|
-
super("Internal Server Error");
|
|
9
|
-
this.error = error;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
httpCode(): number {
|
|
13
|
-
return 500;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
public context(): RenderableContext {
|
|
17
|
-
if (process.env.NODE_ENV === "production") {
|
|
18
|
-
return {};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return {
|
|
22
|
-
error: {
|
|
23
|
-
name: this.error.name,
|
|
24
|
-
message: this.error.message,
|
|
25
|
-
...(this.error instanceof RenderableError ? this.error.toView() : {}),
|
|
26
|
-
status: this.error.status,
|
|
27
|
-
signal: this.error.signal,
|
|
28
|
-
stack: this.error.stack,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { snakeCase } from "lodash";
|
|
2
|
-
import { appIdentifier } from "@alanszp/core";
|
|
3
|
-
import { BaseError } from "./BaseError";
|
|
4
|
-
|
|
5
|
-
export type RenderableContext = Record<string, unknown>;
|
|
6
|
-
|
|
7
|
-
export interface RenderableView {
|
|
8
|
-
code: string;
|
|
9
|
-
message: string;
|
|
10
|
-
context: RenderableContext;
|
|
11
|
-
origin: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export abstract class RenderableError extends BaseError {
|
|
15
|
-
constructor(renderMessage: string) {
|
|
16
|
-
super(renderMessage);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
code(): string {
|
|
20
|
-
return snakeCase(this.message);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
renderMessage(): string {
|
|
24
|
-
return this.message;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
toView(): Record<string, unknown> {
|
|
28
|
-
return {
|
|
29
|
-
code: this.code(),
|
|
30
|
-
message: this.renderMessage(),
|
|
31
|
-
context: this.context(),
|
|
32
|
-
origin: appIdentifier(),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
abstract context(): RenderableContext;
|
|
37
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"rootDir": "src",
|
|
4
|
-
"outDir": "dist",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"target": "es6",
|
|
7
|
-
"types": ["node"],
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
|
|
11
|
-
"alwaysStrict": true,
|
|
12
|
-
"strictNullChecks": true
|
|
13
|
-
},
|
|
14
|
-
"exclude": ["node_modules"]
|
|
15
|
-
}
|