apitally 0.25.7 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +191 -184
- package/dist/activation.cjs +371 -0
- package/dist/activation.cjs.map +1 -0
- package/dist/activation.d.cts +41 -0
- package/dist/activation.d.ts +41 -0
- package/dist/activation.js +357 -0
- package/dist/activation.js.map +1 -0
- package/dist/adonisjs/configure.cjs +88 -31
- package/dist/adonisjs/configure.cjs.map +1 -1
- package/dist/adonisjs/configure.d.cts +0 -4
- package/dist/adonisjs/configure.d.ts +0 -4
- package/dist/adonisjs/configure.js +85 -30
- package/dist/adonisjs/configure.js.map +1 -1
- package/dist/adonisjs/index.cjs +4 -23
- package/dist/adonisjs/index.cjs.map +1 -1
- package/dist/adonisjs/index.d.cts +3 -15
- package/dist/adonisjs/index.d.ts +3 -15
- package/dist/adonisjs/index.js +3 -20
- package/dist/adonisjs/index.js.map +1 -1
- package/dist/adonisjs/middleware.cjs +43 -109
- package/dist/adonisjs/middleware.cjs.map +1 -1
- package/dist/adonisjs/middleware.d.cts +1 -16
- package/dist/adonisjs/middleware.d.ts +1 -16
- package/dist/adonisjs/middleware.js +43 -110
- package/dist/adonisjs/middleware.js.map +1 -1
- package/dist/adonisjs/provider.cjs +19 -87
- package/dist/adonisjs/provider.cjs.map +1 -1
- package/dist/adonisjs/provider.d.cts +0 -22
- package/dist/adonisjs/provider.d.ts +0 -22
- package/dist/adonisjs/provider.js +19 -88
- package/dist/adonisjs/provider.js.map +1 -1
- package/dist/adonisjs/stubs/config/apitally.stub +11 -15
- package/dist/bodyCapture.cjs +128 -0
- package/dist/bodyCapture.cjs.map +1 -0
- package/dist/bodyCapture.d.cts +31 -0
- package/dist/bodyCapture.d.ts +31 -0
- package/dist/bodyCapture.js +101 -0
- package/dist/bodyCapture.js.map +1 -0
- package/dist/config.cjs +209 -0
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +42 -0
- package/dist/config.d.ts +42 -0
- package/dist/config.js +174 -0
- package/dist/config.js.map +1 -0
- package/dist/consumer.cjs +98 -0
- package/dist/consumer.cjs.map +1 -0
- package/dist/consumer.d.cts +13 -0
- package/dist/consumer.d.ts +13 -0
- package/dist/consumer.js +78 -0
- package/dist/consumer.js.map +1 -0
- package/dist/context.cjs +68 -0
- package/dist/context.cjs.map +1 -0
- package/dist/context.d.cts +29 -0
- package/dist/context.d.ts +29 -0
- package/dist/context.js +40 -0
- package/dist/context.js.map +1 -0
- package/dist/elysia/index.cjs +12 -13
- package/dist/elysia/index.cjs.map +1 -1
- package/dist/elysia/index.d.cts +7 -16
- package/dist/elysia/index.d.ts +7 -16
- package/dist/elysia/index.js +10 -2
- package/dist/elysia/index.js.map +1 -1
- package/dist/elysia/middleware.cjs +248 -0
- package/dist/elysia/middleware.cjs.map +1 -0
- package/dist/elysia/middleware.d.cts +13 -0
- package/dist/elysia/middleware.d.ts +13 -0
- package/dist/elysia/middleware.js +237 -0
- package/dist/elysia/middleware.js.map +1 -0
- package/dist/{loggers/index.cjs → elysia/routes.cjs} +16 -19
- package/dist/elysia/routes.cjs.map +1 -0
- package/dist/elysia/routes.d.cts +7 -0
- package/dist/elysia/routes.d.ts +7 -0
- package/dist/elysia/routes.js +14 -0
- package/dist/elysia/routes.js.map +1 -0
- package/dist/exceptions.cjs +75 -0
- package/dist/exceptions.cjs.map +1 -0
- package/dist/exceptions.d.cts +7 -0
- package/dist/exceptions.d.ts +7 -0
- package/dist/exceptions.js +49 -0
- package/dist/exceptions.js.map +1 -0
- package/dist/exportSerialization.cjs +56 -0
- package/dist/exportSerialization.cjs.map +1 -0
- package/dist/exportSerialization.d.cts +7 -0
- package/dist/exportSerialization.d.ts +7 -0
- package/dist/exportSerialization.js +32 -0
- package/dist/exportSerialization.js.map +1 -0
- package/dist/exportWorker.cjs +305 -0
- package/dist/exportWorker.cjs.map +1 -0
- package/dist/exportWorker.d.cts +46 -0
- package/dist/exportWorker.d.ts +46 -0
- package/dist/exportWorker.js +279 -0
- package/dist/exportWorker.js.map +1 -0
- package/dist/express/index.cjs +9 -4
- package/dist/express/index.cjs.map +1 -1
- package/dist/express/index.d.cts +6 -10
- package/dist/express/index.d.ts +6 -10
- package/dist/express/index.js +8 -2
- package/dist/express/index.js.map +1 -1
- package/dist/express/install.cjs +45 -0
- package/dist/express/install.cjs.map +1 -0
- package/dist/express/install.d.cts +9 -0
- package/dist/express/install.d.ts +9 -0
- package/dist/express/install.js +21 -0
- package/dist/express/install.js.map +1 -0
- package/dist/express/middleware.cjs +80 -331
- package/dist/express/middleware.cjs.map +1 -1
- package/dist/express/middleware.d.cts +3 -21
- package/dist/express/middleware.d.ts +3 -21
- package/dist/express/middleware.js +81 -328
- package/dist/express/middleware.js.map +1 -1
- package/dist/express/register.cjs +20 -0
- package/dist/express/register.cjs.map +1 -0
- package/dist/express/register.d.cts +2 -0
- package/dist/express/register.d.ts +2 -0
- package/dist/express/register.js +19 -0
- package/dist/express/register.js.map +1 -0
- package/dist/express/routes.cjs +419 -0
- package/dist/express/routes.cjs.map +1 -0
- package/dist/express/routes.d.cts +14 -0
- package/dist/express/routes.d.ts +14 -0
- package/dist/express/routes.js +391 -0
- package/dist/express/routes.js.map +1 -0
- package/dist/fastify/index.cjs +10 -15
- package/dist/fastify/index.cjs.map +1 -1
- package/dist/fastify/index.d.cts +6 -11
- package/dist/fastify/index.d.ts +6 -11
- package/dist/fastify/index.js +9 -3
- package/dist/fastify/index.js.map +1 -1
- package/dist/{common/logging.cjs → fastify/install.cjs} +15 -16
- package/dist/fastify/install.cjs.map +1 -0
- package/dist/fastify/install.d.cts +9 -0
- package/dist/fastify/install.d.ts +9 -0
- package/dist/fastify/install.js +15 -0
- package/dist/fastify/install.js.map +1 -0
- package/dist/fastify/middleware.cjs +118 -0
- package/dist/fastify/middleware.cjs.map +1 -0
- package/dist/fastify/middleware.d.cts +7 -0
- package/dist/fastify/middleware.d.ts +7 -0
- package/dist/fastify/middleware.js +97 -0
- package/dist/fastify/middleware.js.map +1 -0
- package/dist/{common/paramValidation.cjs → fastify/routes.cjs} +15 -17
- package/dist/fastify/routes.cjs.map +1 -0
- package/dist/fastify/routes.d.cts +8 -0
- package/dist/fastify/routes.d.ts +8 -0
- package/dist/fastify/routes.js +14 -0
- package/dist/fastify/routes.js.map +1 -0
- package/dist/h3/index.cjs +28 -4
- package/dist/h3/index.cjs.map +1 -1
- package/dist/h3/index.d.cts +7 -10
- package/dist/h3/index.d.ts +7 -10
- package/dist/h3/index.js +26 -2
- package/dist/h3/index.js.map +1 -1
- package/dist/h3/middleware.cjs +204 -0
- package/dist/h3/middleware.cjs.map +1 -0
- package/dist/h3/middleware.d.cts +5 -0
- package/dist/h3/middleware.d.ts +5 -0
- package/dist/h3/middleware.js +188 -0
- package/dist/h3/middleware.js.map +1 -0
- package/dist/h3/routes.cjs +66 -0
- package/dist/h3/routes.cjs.map +1 -0
- package/dist/h3/routes.d.cts +8 -0
- package/dist/h3/routes.d.ts +8 -0
- package/dist/h3/routes.js +41 -0
- package/dist/h3/routes.js.map +1 -0
- package/dist/hapi/index.cjs +15 -14
- package/dist/hapi/index.cjs.map +1 -1
- package/dist/hapi/index.d.cts +7 -10
- package/dist/hapi/index.d.ts +7 -10
- package/dist/hapi/index.js +14 -3
- package/dist/hapi/index.js.map +1 -1
- package/dist/{loggers/hapi.cjs → hapi/install.cjs} +20 -26
- package/dist/hapi/install.cjs.map +1 -0
- package/dist/hapi/install.d.cts +7 -0
- package/dist/hapi/install.d.ts +7 -0
- package/dist/hapi/install.js +22 -0
- package/dist/hapi/install.js.map +1 -0
- package/dist/hapi/middleware.cjs +158 -0
- package/dist/hapi/middleware.cjs.map +1 -0
- package/dist/hapi/middleware.d.cts +5 -0
- package/dist/hapi/middleware.d.ts +5 -0
- package/dist/hapi/middleware.js +137 -0
- package/dist/hapi/middleware.js.map +1 -0
- package/dist/hapi/routes.cjs +37 -0
- package/dist/hapi/routes.cjs.map +1 -0
- package/dist/hapi/routes.d.cts +8 -0
- package/dist/hapi/routes.d.ts +8 -0
- package/dist/hapi/routes.js +12 -0
- package/dist/hapi/routes.js.map +1 -0
- package/dist/hono/index.cjs +13 -3
- package/dist/hono/index.cjs.map +1 -1
- package/dist/hono/index.d.cts +6 -10
- package/dist/hono/index.d.ts +6 -10
- package/dist/hono/index.js +13 -2
- package/dist/hono/index.js.map +1 -1
- package/dist/hono/middleware.cjs +211 -127
- package/dist/hono/middleware.cjs.map +1 -1
- package/dist/hono/middleware.d.cts +3 -18
- package/dist/hono/middleware.d.ts +3 -18
- package/dist/hono/middleware.js +216 -125
- package/dist/hono/middleware.js.map +1 -1
- package/dist/hono/routes.cjs +74 -0
- package/dist/hono/routes.cjs.map +1 -0
- package/dist/hono/routes.d.cts +8 -0
- package/dist/hono/routes.d.ts +8 -0
- package/dist/hono/routes.js +49 -0
- package/dist/hono/routes.js.map +1 -0
- package/dist/index.cjs +108 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +77 -0
- package/dist/index.js.map +1 -1
- package/dist/koa/index.cjs +13 -3
- package/dist/koa/index.cjs.map +1 -1
- package/dist/koa/index.d.cts +6 -10
- package/dist/koa/index.d.ts +6 -10
- package/dist/koa/index.js +13 -2
- package/dist/koa/index.js.map +1 -1
- package/dist/koa/middleware.cjs +75 -184
- package/dist/koa/middleware.cjs.map +1 -1
- package/dist/koa/middleware.d.cts +3 -13
- package/dist/koa/middleware.d.ts +3 -13
- package/dist/koa/middleware.js +78 -183
- package/dist/koa/middleware.js.map +1 -1
- package/dist/koa/routes.cjs +71 -0
- package/dist/koa/routes.cjs.map +1 -0
- package/dist/koa/routes.d.cts +8 -0
- package/dist/koa/routes.d.ts +8 -0
- package/dist/koa/routes.js +46 -0
- package/dist/koa/routes.js.map +1 -0
- package/dist/logCapture.cjs +410 -0
- package/dist/logCapture.cjs.map +1 -0
- package/dist/logCapture.d.cts +16 -0
- package/dist/logCapture.d.ts +16 -0
- package/dist/logCapture.js +383 -0
- package/dist/logCapture.js.map +1 -0
- package/dist/logRecordExporter.cjs +83 -0
- package/dist/logRecordExporter.cjs.map +1 -0
- package/dist/logRecordExporter.d.cts +14 -0
- package/dist/logRecordExporter.d.ts +14 -0
- package/dist/logRecordExporter.js +59 -0
- package/dist/logRecordExporter.js.map +1 -0
- package/dist/logRecordProcessor.cjs +120 -0
- package/dist/logRecordProcessor.cjs.map +1 -0
- package/dist/logRecordProcessor.d.cts +23 -0
- package/dist/logRecordProcessor.d.ts +23 -0
- package/dist/logRecordProcessor.js +96 -0
- package/dist/logRecordProcessor.js.map +1 -0
- package/dist/{otel/index.cjs → logRecordTruncation.cjs} +10 -7
- package/dist/logRecordTruncation.cjs.map +1 -0
- package/dist/logRecordTruncation.d.cts +6 -0
- package/dist/logRecordTruncation.d.ts +6 -0
- package/dist/logRecordTruncation.js +8 -0
- package/dist/logRecordTruncation.js.map +1 -0
- package/dist/logger.cjs +62 -0
- package/dist/logger.cjs.map +1 -0
- package/dist/logger.d.cts +7 -0
- package/dist/logger.d.ts +7 -0
- package/dist/logger.js +34 -0
- package/dist/logger.js.map +1 -0
- package/dist/metrics.cjs +171 -0
- package/dist/metrics.cjs.map +1 -0
- package/dist/metrics.d.cts +24 -0
- package/dist/metrics.d.ts +24 -0
- package/dist/metrics.js +153 -0
- package/dist/metrics.js.map +1 -0
- package/dist/nestjs/index.cjs +61 -71
- package/dist/nestjs/index.cjs.map +1 -1
- package/dist/nestjs/index.d.cts +3 -11
- package/dist/nestjs/index.d.ts +3 -11
- package/dist/nestjs/index.js +61 -61
- package/dist/nestjs/index.js.map +1 -1
- package/dist/packageVersion.cjs +67 -0
- package/dist/packageVersion.cjs.map +1 -0
- package/dist/packageVersion.d.cts +5 -0
- package/dist/packageVersion.d.ts +5 -0
- package/dist/packageVersion.js +39 -0
- package/dist/packageVersion.js.map +1 -0
- package/dist/providers.cjs +149 -0
- package/dist/providers.cjs.map +1 -0
- package/dist/providers.d.cts +15 -0
- package/dist/providers.d.ts +15 -0
- package/dist/providers.js +136 -0
- package/dist/providers.js.map +1 -0
- package/dist/redaction.cjs +116 -0
- package/dist/redaction.cjs.map +1 -0
- package/dist/redaction.d.cts +17 -0
- package/dist/redaction.d.ts +17 -0
- package/dist/redaction.js +98 -0
- package/dist/redaction.js.map +1 -0
- package/dist/{common/packageVersions.cjs → requestAttributes.cjs} +21 -19
- package/dist/requestAttributes.cjs.map +1 -0
- package/dist/requestAttributes.d.cts +8 -0
- package/dist/requestAttributes.d.ts +8 -0
- package/dist/requestAttributes.js +22 -0
- package/dist/requestAttributes.js.map +1 -0
- package/dist/requestObservation.cjs +228 -0
- package/dist/requestObservation.cjs.map +1 -0
- package/dist/requestObservation.d.cts +60 -0
- package/dist/requestObservation.d.ts +60 -0
- package/dist/requestObservation.js +208 -0
- package/dist/requestObservation.js.map +1 -0
- package/dist/requestObservationNode.cjs +193 -0
- package/dist/requestObservationNode.cjs.map +1 -0
- package/dist/requestObservationNode.d.cts +29 -0
- package/dist/requestObservationNode.d.ts +29 -0
- package/dist/requestObservationNode.js +170 -0
- package/dist/requestObservationNode.js.map +1 -0
- package/dist/requestObservationWeb.cjs +202 -0
- package/dist/requestObservationWeb.cjs.map +1 -0
- package/dist/requestObservationWeb.d.cts +32 -0
- package/dist/requestObservationWeb.d.ts +32 -0
- package/dist/requestObservationWeb.js +182 -0
- package/dist/requestObservationWeb.js.map +1 -0
- package/dist/sentry.cjs +103 -0
- package/dist/sentry.cjs.map +1 -0
- package/dist/sentry.d.cts +3 -0
- package/dist/sentry.d.ts +3 -0
- package/dist/sentry.js +79 -0
- package/dist/sentry.js.map +1 -0
- package/dist/spanExporter.cjs +218 -0
- package/dist/spanExporter.cjs.map +1 -0
- package/dist/spanExporter.d.cts +33 -0
- package/dist/spanExporter.d.ts +33 -0
- package/dist/spanExporter.js +194 -0
- package/dist/spanExporter.js.map +1 -0
- package/dist/spanProcessor.cjs +523 -0
- package/dist/spanProcessor.cjs.map +1 -0
- package/dist/spanProcessor.d.cts +67 -0
- package/dist/spanProcessor.d.ts +67 -0
- package/dist/spanProcessor.js +501 -0
- package/dist/spanProcessor.js.map +1 -0
- package/dist/spool.cjs +314 -0
- package/dist/spool.cjs.map +1 -0
- package/dist/spool.d.cts +49 -0
- package/dist/spool.d.ts +49 -0
- package/dist/spool.js +297 -0
- package/dist/spool.js.map +1 -0
- package/dist/startup.cjs +93 -0
- package/dist/startup.cjs.map +1 -0
- package/dist/startup.d.cts +15 -0
- package/dist/startup.d.ts +15 -0
- package/dist/startup.js +68 -0
- package/dist/startup.js.map +1 -0
- package/dist/tracing.cjs +116 -0
- package/dist/tracing.cjs.map +1 -0
- package/dist/tracing.d.cts +5 -0
- package/dist/tracing.d.ts +5 -0
- package/dist/tracing.js +96 -0
- package/dist/tracing.js.map +1 -0
- package/package.json +113 -155
- package/dist/common/client.cjs +0 -335
- package/dist/common/client.cjs.map +0 -1
- package/dist/common/client.d.cts +0 -50
- package/dist/common/client.d.ts +0 -50
- package/dist/common/client.js +0 -302
- package/dist/common/client.js.map +0 -1
- package/dist/common/consumerRegistry.cjs +0 -84
- package/dist/common/consumerRegistry.cjs.map +0 -1
- package/dist/common/consumerRegistry.d.cts +0 -20
- package/dist/common/consumerRegistry.d.ts +0 -20
- package/dist/common/consumerRegistry.js +0 -61
- package/dist/common/consumerRegistry.js.map +0 -1
- package/dist/common/headers.cjs +0 -55
- package/dist/common/headers.cjs.map +0 -1
- package/dist/common/headers.d.cts +0 -6
- package/dist/common/headers.d.ts +0 -6
- package/dist/common/headers.js +0 -31
- package/dist/common/headers.js.map +0 -1
- package/dist/common/instance.cjs +0 -158
- package/dist/common/instance.cjs.map +0 -1
- package/dist/common/instance.d.cts +0 -4
- package/dist/common/instance.d.ts +0 -4
- package/dist/common/instance.js +0 -134
- package/dist/common/instance.js.map +0 -1
- package/dist/common/logging.cjs.map +0 -1
- package/dist/common/logging.d.cts +0 -11
- package/dist/common/logging.d.ts +0 -11
- package/dist/common/logging.js +0 -17
- package/dist/common/logging.js.map +0 -1
- package/dist/common/packageVersions.cjs.map +0 -1
- package/dist/common/packageVersions.d.cts +0 -3
- package/dist/common/packageVersions.d.ts +0 -3
- package/dist/common/packageVersions.js +0 -21
- package/dist/common/packageVersions.js.map +0 -1
- package/dist/common/paramValidation.cjs.map +0 -1
- package/dist/common/paramValidation.d.cts +0 -4
- package/dist/common/paramValidation.d.ts +0 -4
- package/dist/common/paramValidation.js +0 -17
- package/dist/common/paramValidation.js.map +0 -1
- package/dist/common/requestCounter.cjs +0 -109
- package/dist/common/requestCounter.cjs.map +0 -1
- package/dist/common/requestCounter.d.cts +0 -24
- package/dist/common/requestCounter.d.ts +0 -24
- package/dist/common/requestCounter.js +0 -90
- package/dist/common/requestCounter.js.map +0 -1
- package/dist/common/requestLogger.cjs +0 -541
- package/dist/common/requestLogger.cjs.map +0 -1
- package/dist/common/requestLogger.d.cts +0 -85
- package/dist/common/requestLogger.d.ts +0 -85
- package/dist/common/requestLogger.js +0 -507
- package/dist/common/requestLogger.js.map +0 -1
- package/dist/common/resources.cjs +0 -49
- package/dist/common/resources.cjs.map +0 -1
- package/dist/common/resources.d.cts +0 -6
- package/dist/common/resources.d.ts +0 -6
- package/dist/common/resources.js +0 -26
- package/dist/common/resources.js.map +0 -1
- package/dist/common/response.cjs +0 -104
- package/dist/common/response.cjs.map +0 -1
- package/dist/common/response.d.cts +0 -15
- package/dist/common/response.d.ts +0 -15
- package/dist/common/response.js +0 -80
- package/dist/common/response.js.map +0 -1
- package/dist/common/sentry.cjs +0 -56
- package/dist/common/sentry.cjs.map +0 -1
- package/dist/common/sentry.d.cts +0 -6
- package/dist/common/sentry.d.ts +0 -6
- package/dist/common/sentry.js +0 -23
- package/dist/common/sentry.js.map +0 -1
- package/dist/common/serverErrorCounter.cjs +0 -121
- package/dist/common/serverErrorCounter.cjs.map +0 -1
- package/dist/common/serverErrorCounter.d.cts +0 -23
- package/dist/common/serverErrorCounter.d.ts +0 -23
- package/dist/common/serverErrorCounter.js +0 -97
- package/dist/common/serverErrorCounter.js.map +0 -1
- package/dist/common/spanCollector.cjs +0 -199
- package/dist/common/spanCollector.cjs.map +0 -1
- package/dist/common/spanCollector.d.cts +0 -45
- package/dist/common/spanCollector.d.ts +0 -45
- package/dist/common/spanCollector.js +0 -176
- package/dist/common/spanCollector.js.map +0 -1
- package/dist/common/tempGzipFile.cjs +0 -125
- package/dist/common/tempGzipFile.cjs.map +0 -1
- package/dist/common/tempGzipFile.d.cts +0 -19
- package/dist/common/tempGzipFile.d.ts +0 -19
- package/dist/common/tempGzipFile.js +0 -102
- package/dist/common/tempGzipFile.js.map +0 -1
- package/dist/common/types.cjs +0 -17
- package/dist/common/types.cjs.map +0 -1
- package/dist/common/types.d.cts +0 -95
- package/dist/common/types.d.ts +0 -95
- package/dist/common/types.js +0 -1
- package/dist/common/types.js.map +0 -1
- package/dist/common/validationErrorCounter.cjs +0 -74
- package/dist/common/validationErrorCounter.cjs.map +0 -1
- package/dist/common/validationErrorCounter.d.cts +0 -20
- package/dist/common/validationErrorCounter.d.ts +0 -20
- package/dist/common/validationErrorCounter.js +0 -55
- package/dist/common/validationErrorCounter.js.map +0 -1
- package/dist/elysia/plugin.cjs +0 -237
- package/dist/elysia/plugin.cjs.map +0 -1
- package/dist/elysia/plugin.d.cts +0 -70
- package/dist/elysia/plugin.d.ts +0 -70
- package/dist/elysia/plugin.js +0 -218
- package/dist/elysia/plugin.js.map +0 -1
- package/dist/elysia/utils.cjs +0 -77
- package/dist/elysia/utils.cjs.map +0 -1
- package/dist/elysia/utils.d.cts +0 -14
- package/dist/elysia/utils.d.ts +0 -14
- package/dist/elysia/utils.js +0 -54
- package/dist/elysia/utils.js.map +0 -1
- package/dist/express/utils.cjs +0 -217
- package/dist/express/utils.cjs.map +0 -1
- package/dist/express/utils.d.cts +0 -37
- package/dist/express/utils.d.ts +0 -37
- package/dist/express/utils.js +0 -189
- package/dist/express/utils.js.map +0 -1
- package/dist/fastify/plugin.cjs +0 -316
- package/dist/fastify/plugin.cjs.map +0 -1
- package/dist/fastify/plugin.d.cts +0 -34
- package/dist/fastify/plugin.d.ts +0 -34
- package/dist/fastify/plugin.js +0 -282
- package/dist/fastify/plugin.js.map +0 -1
- package/dist/h3/plugin.cjs +0 -183
- package/dist/h3/plugin.cjs.map +0 -1
- package/dist/h3/plugin.d.cts +0 -27
- package/dist/h3/plugin.d.ts +0 -27
- package/dist/h3/plugin.js +0 -159
- package/dist/h3/plugin.js.map +0 -1
- package/dist/h3/utils.cjs +0 -77
- package/dist/h3/utils.cjs.map +0 -1
- package/dist/h3/utils.d.cts +0 -14
- package/dist/h3/utils.d.ts +0 -14
- package/dist/h3/utils.js +0 -54
- package/dist/h3/utils.js.map +0 -1
- package/dist/hapi/plugin.cjs +0 -210
- package/dist/hapi/plugin.cjs.map +0 -1
- package/dist/hapi/plugin.d.cts +0 -40
- package/dist/hapi/plugin.d.ts +0 -40
- package/dist/hapi/plugin.js +0 -187
- package/dist/hapi/plugin.js.map +0 -1
- package/dist/hapi/utils.cjs +0 -77
- package/dist/hapi/utils.cjs.map +0 -1
- package/dist/hapi/utils.d.cts +0 -16
- package/dist/hapi/utils.d.ts +0 -16
- package/dist/hapi/utils.js +0 -53
- package/dist/hapi/utils.js.map +0 -1
- package/dist/hono/utils.cjs +0 -113
- package/dist/hono/utils.cjs.map +0 -1
- package/dist/hono/utils.d.cts +0 -16
- package/dist/hono/utils.d.ts +0 -16
- package/dist/hono/utils.js +0 -88
- package/dist/hono/utils.js.map +0 -1
- package/dist/loggers/console.cjs +0 -67
- package/dist/loggers/console.cjs.map +0 -1
- package/dist/loggers/console.d.cts +0 -11
- package/dist/loggers/console.d.ts +0 -11
- package/dist/loggers/console.js +0 -44
- package/dist/loggers/console.js.map +0 -1
- package/dist/loggers/hapi.cjs.map +0 -1
- package/dist/loggers/hapi.d.cts +0 -12
- package/dist/loggers/hapi.d.ts +0 -12
- package/dist/loggers/hapi.js +0 -29
- package/dist/loggers/hapi.js.map +0 -1
- package/dist/loggers/index.cjs.map +0 -1
- package/dist/loggers/index.d.cts +0 -13
- package/dist/loggers/index.d.ts +0 -13
- package/dist/loggers/index.js +0 -13
- package/dist/loggers/index.js.map +0 -1
- package/dist/loggers/nestjs.cjs +0 -104
- package/dist/loggers/nestjs.cjs.map +0 -1
- package/dist/loggers/nestjs.d.cts +0 -11
- package/dist/loggers/nestjs.d.ts +0 -11
- package/dist/loggers/nestjs.js +0 -71
- package/dist/loggers/nestjs.js.map +0 -1
- package/dist/loggers/pino.cjs +0 -152
- package/dist/loggers/pino.cjs.map +0 -1
- package/dist/loggers/pino.d.cts +0 -11
- package/dist/loggers/pino.d.ts +0 -11
- package/dist/loggers/pino.js +0 -119
- package/dist/loggers/pino.js.map +0 -1
- package/dist/loggers/utils.cjs +0 -64
- package/dist/loggers/utils.cjs.map +0 -1
- package/dist/loggers/utils.d.cts +0 -6
- package/dist/loggers/utils.d.ts +0 -6
- package/dist/loggers/utils.js +0 -40
- package/dist/loggers/utils.js.map +0 -1
- package/dist/loggers/winston.cjs +0 -101
- package/dist/loggers/winston.cjs.map +0 -1
- package/dist/loggers/winston.d.cts +0 -11
- package/dist/loggers/winston.d.ts +0 -11
- package/dist/loggers/winston.js +0 -68
- package/dist/loggers/winston.js.map +0 -1
- package/dist/otel/index.cjs.map +0 -1
- package/dist/otel/index.d.cts +0 -2
- package/dist/otel/index.d.ts +0 -2
- package/dist/otel/index.js +0 -5
- package/dist/otel/index.js.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Buffer } from 'node:buffer';
|
|
2
|
-
|
|
3
|
-
declare function checkWritableFs(): boolean;
|
|
4
|
-
declare class TempGzipFile {
|
|
5
|
-
uuid: string;
|
|
6
|
-
private filePath;
|
|
7
|
-
private gzip;
|
|
8
|
-
private writeStream;
|
|
9
|
-
private readyPromise;
|
|
10
|
-
private closedPromise;
|
|
11
|
-
constructor(name: string);
|
|
12
|
-
get size(): number;
|
|
13
|
-
writeLines(lines: Buffer[]): Promise<void>;
|
|
14
|
-
getContent(): Promise<Buffer<ArrayBufferLike>>;
|
|
15
|
-
close(): Promise<void>;
|
|
16
|
-
delete(): Promise<void>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { checkWritableFs, TempGzipFile as default };
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
import { Buffer as Buffer2 } from "node:buffer";
|
|
4
|
-
import { randomUUID } from "node:crypto";
|
|
5
|
-
import { createWriteStream, mkdirSync, readFile, unlinkSync, writeFileSync } from "node:fs";
|
|
6
|
-
import { unlink } from "node:fs/promises";
|
|
7
|
-
import { tmpdir } from "node:os";
|
|
8
|
-
import { join } from "node:path";
|
|
9
|
-
import { createGzip } from "node:zlib";
|
|
10
|
-
const TEMP_DIR = join(tmpdir(), "apitally");
|
|
11
|
-
function checkWritableFs() {
|
|
12
|
-
try {
|
|
13
|
-
mkdirSync(TEMP_DIR, {
|
|
14
|
-
recursive: true
|
|
15
|
-
});
|
|
16
|
-
const testPath = join(TEMP_DIR, `test_${randomUUID()}`);
|
|
17
|
-
writeFileSync(testPath, "test");
|
|
18
|
-
unlinkSync(testPath);
|
|
19
|
-
return true;
|
|
20
|
-
} catch (error) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
__name(checkWritableFs, "checkWritableFs");
|
|
25
|
-
const _TempGzipFile = class _TempGzipFile {
|
|
26
|
-
uuid;
|
|
27
|
-
filePath;
|
|
28
|
-
gzip;
|
|
29
|
-
writeStream;
|
|
30
|
-
readyPromise;
|
|
31
|
-
closedPromise;
|
|
32
|
-
constructor(name) {
|
|
33
|
-
mkdirSync(TEMP_DIR, {
|
|
34
|
-
recursive: true
|
|
35
|
-
});
|
|
36
|
-
this.uuid = randomUUID();
|
|
37
|
-
this.filePath = join(TEMP_DIR, `${name}_${this.uuid}.gz`);
|
|
38
|
-
this.writeStream = createWriteStream(this.filePath);
|
|
39
|
-
this.readyPromise = new Promise((resolve, reject) => {
|
|
40
|
-
this.writeStream.once("ready", resolve);
|
|
41
|
-
this.writeStream.once("error", reject);
|
|
42
|
-
});
|
|
43
|
-
this.closedPromise = new Promise((resolve, reject) => {
|
|
44
|
-
this.writeStream.once("close", resolve);
|
|
45
|
-
this.writeStream.once("error", reject);
|
|
46
|
-
});
|
|
47
|
-
this.gzip = createGzip();
|
|
48
|
-
this.gzip.pipe(this.writeStream);
|
|
49
|
-
}
|
|
50
|
-
get size() {
|
|
51
|
-
return this.writeStream.bytesWritten;
|
|
52
|
-
}
|
|
53
|
-
async writeLines(lines) {
|
|
54
|
-
if (lines.length === 0) return;
|
|
55
|
-
await this.readyPromise;
|
|
56
|
-
const parts = [];
|
|
57
|
-
const newline = Buffer2.from("\n");
|
|
58
|
-
for (const line of lines) {
|
|
59
|
-
parts.push(line, newline);
|
|
60
|
-
}
|
|
61
|
-
const combined = Buffer2.concat(parts);
|
|
62
|
-
return new Promise((resolve, reject) => {
|
|
63
|
-
this.gzip.write(combined, (error) => {
|
|
64
|
-
if (error) {
|
|
65
|
-
reject(error);
|
|
66
|
-
} else {
|
|
67
|
-
resolve();
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
async getContent() {
|
|
73
|
-
return new Promise((resolve, reject) => {
|
|
74
|
-
readFile(this.filePath, (error, data) => {
|
|
75
|
-
if (error) {
|
|
76
|
-
reject(error);
|
|
77
|
-
} else {
|
|
78
|
-
resolve(data);
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
async close() {
|
|
84
|
-
await new Promise((resolve) => {
|
|
85
|
-
this.gzip.end(() => {
|
|
86
|
-
resolve();
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
await this.closedPromise;
|
|
90
|
-
}
|
|
91
|
-
async delete() {
|
|
92
|
-
await this.close();
|
|
93
|
-
await unlink(this.filePath);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
__name(_TempGzipFile, "TempGzipFile");
|
|
97
|
-
let TempGzipFile = _TempGzipFile;
|
|
98
|
-
export {
|
|
99
|
-
checkWritableFs,
|
|
100
|
-
TempGzipFile as default
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=tempGzipFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/tempGzipFile.ts"],"sourcesContent":["import { Buffer } from \"node:buffer\";\nimport { randomUUID } from \"node:crypto\";\nimport {\n createWriteStream,\n mkdirSync,\n readFile,\n unlinkSync,\n writeFileSync,\n WriteStream,\n} from \"node:fs\";\nimport { unlink } from \"node:fs/promises\";\nimport { tmpdir } from \"node:os\";\nimport { join } from \"node:path\";\nimport { createGzip, Gzip } from \"node:zlib\";\n\nconst TEMP_DIR = join(tmpdir(), \"apitally\");\n\nexport function checkWritableFs() {\n try {\n mkdirSync(TEMP_DIR, { recursive: true });\n const testPath = join(TEMP_DIR, `test_${randomUUID()}`);\n writeFileSync(testPath, \"test\");\n unlinkSync(testPath);\n return true;\n } catch (error) {\n return false;\n }\n}\n\nexport default class TempGzipFile {\n public uuid: string;\n private filePath: string;\n private gzip: Gzip;\n private writeStream: WriteStream;\n private readyPromise: Promise<void>;\n private closedPromise: Promise<void>;\n\n constructor(name: string) {\n mkdirSync(TEMP_DIR, { recursive: true });\n this.uuid = randomUUID();\n this.filePath = join(TEMP_DIR, `${name}_${this.uuid}.gz`);\n this.writeStream = createWriteStream(this.filePath);\n this.readyPromise = new Promise<void>((resolve, reject) => {\n this.writeStream.once(\"ready\", resolve);\n this.writeStream.once(\"error\", reject);\n });\n this.closedPromise = new Promise<void>((resolve, reject) => {\n this.writeStream.once(\"close\", resolve);\n this.writeStream.once(\"error\", reject);\n });\n this.gzip = createGzip();\n this.gzip.pipe(this.writeStream);\n }\n\n get size() {\n return this.writeStream.bytesWritten;\n }\n\n async writeLines(lines: Buffer[]) {\n if (lines.length === 0) return;\n await this.readyPromise;\n const parts: Buffer[] = [];\n const newline = Buffer.from(\"\\n\");\n for (const line of lines) {\n parts.push(line, newline);\n }\n const combined = Buffer.concat(parts);\n return new Promise<void>((resolve, reject) => {\n this.gzip.write(combined, (error) => {\n if (error) {\n reject(error);\n } else {\n resolve();\n }\n });\n });\n }\n\n async getContent() {\n return new Promise<Buffer>((resolve, reject) => {\n readFile(this.filePath, (error, data) => {\n if (error) {\n reject(error);\n } else {\n resolve(data);\n }\n });\n });\n }\n\n async close() {\n await new Promise<void>((resolve) => {\n this.gzip.end(() => {\n resolve();\n });\n });\n await this.closedPromise;\n }\n\n async delete() {\n await this.close();\n await unlink(this.filePath);\n }\n}\n"],"mappings":";;AAAA,SAASA,UAAAA,eAAc;AACvB,SAASC,kBAAkB;AAC3B,SACEC,mBACAC,WACAC,UACAC,YACAC,qBAEK;AACP,SAASC,cAAc;AACvB,SAASC,cAAc;AACvB,SAASC,YAAY;AACrB,SAASC,kBAAwB;AAEjC,MAAMC,WAAWF,KAAKD,OAAAA,GAAU,UAAA;AAEzB,SAASI,kBAAAA;AACd,MAAI;AACFT,cAAUQ,UAAU;MAAEE,WAAW;IAAK,CAAA;AACtC,UAAMC,WAAWL,KAAKE,UAAU,QAAQV,WAAAA,CAAAA,EAAc;AACtDK,kBAAcQ,UAAU,MAAA;AACxBT,eAAWS,QAAAA;AACX,WAAO;EACT,SAASC,OAAO;AACd,WAAO;EACT;AACF;AAVgBH;AAYhB,MAAqBI,gBAArB,MAAqBA,cAAAA;EACZC;EACCC;EACAC;EACAC;EACAC;EACAC;EAER,YAAYC,MAAc;AACxBpB,cAAUQ,UAAU;MAAEE,WAAW;IAAK,CAAA;AACtC,SAAKI,OAAOhB,WAAAA;AACZ,SAAKiB,WAAWT,KAAKE,UAAU,GAAGY,IAAAA,IAAQ,KAAKN,IAAI,KAAK;AACxD,SAAKG,cAAclB,kBAAkB,KAAKgB,QAAQ;AAClD,SAAKG,eAAe,IAAIG,QAAc,CAACC,SAASC,WAAAA;AAC9C,WAAKN,YAAYO,KAAK,SAASF,OAAAA;AAC/B,WAAKL,YAAYO,KAAK,SAASD,MAAAA;IACjC,CAAA;AACA,SAAKJ,gBAAgB,IAAIE,QAAc,CAACC,SAASC,WAAAA;AAC/C,WAAKN,YAAYO,KAAK,SAASF,OAAAA;AAC/B,WAAKL,YAAYO,KAAK,SAASD,MAAAA;IACjC,CAAA;AACA,SAAKP,OAAOT,WAAAA;AACZ,SAAKS,KAAKS,KAAK,KAAKR,WAAW;EACjC;EAEA,IAAIS,OAAO;AACT,WAAO,KAAKT,YAAYU;EAC1B;EAEA,MAAMC,WAAWC,OAAiB;AAChC,QAAIA,MAAMC,WAAW,EAAG;AACxB,UAAM,KAAKZ;AACX,UAAMa,QAAkB,CAAA;AACxB,UAAMC,UAAUnC,QAAOoC,KAAK,IAAA;AAC5B,eAAWC,QAAQL,OAAO;AACxBE,YAAMI,KAAKD,MAAMF,OAAAA;IACnB;AACA,UAAMI,WAAWvC,QAAOwC,OAAON,KAAAA;AAC/B,WAAO,IAAIV,QAAc,CAACC,SAASC,WAAAA;AACjC,WAAKP,KAAKsB,MAAMF,UAAU,CAACxB,UAAAA;AACzB,YAAIA,OAAO;AACTW,iBAAOX,KAAAA;QACT,OAAO;AACLU,kBAAAA;QACF;MACF,CAAA;IACF,CAAA;EACF;EAEA,MAAMiB,aAAa;AACjB,WAAO,IAAIlB,QAAgB,CAACC,SAASC,WAAAA;AACnCtB,eAAS,KAAKc,UAAU,CAACH,OAAO4B,SAAAA;AAC9B,YAAI5B,OAAO;AACTW,iBAAOX,KAAAA;QACT,OAAO;AACLU,kBAAQkB,IAAAA;QACV;MACF,CAAA;IACF,CAAA;EACF;EAEA,MAAMC,QAAQ;AACZ,UAAM,IAAIpB,QAAc,CAACC,YAAAA;AACvB,WAAKN,KAAK0B,IAAI,MAAA;AACZpB,gBAAAA;MACF,CAAA;IACF,CAAA;AACA,UAAM,KAAKH;EACb;EAEA,MAAMwB,SAAS;AACb,UAAM,KAAKF,MAAK;AAChB,UAAMrC,OAAO,KAAKW,QAAQ;EAC5B;AACF;AA1EqBF;AAArB,IAAqBA,eAArB;","names":["Buffer","randomUUID","createWriteStream","mkdirSync","readFile","unlinkSync","writeFileSync","unlink","tmpdir","join","createGzip","TEMP_DIR","checkWritableFs","recursive","testPath","error","TempGzipFile","uuid","filePath","gzip","writeStream","readyPromise","closedPromise","name","Promise","resolve","reject","once","pipe","size","bytesWritten","writeLines","lines","length","parts","newline","from","line","push","combined","concat","write","getContent","data","close","end","delete"]}
|
package/dist/common/types.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var types_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(types_exports);
|
|
17
|
-
//# sourceMappingURL=types.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/types.ts"],"sourcesContent":["import { Logger } from \"./logging.js\";\nimport { RequestLoggingConfig } from \"./requestLogger.js\";\n\nexport type ApitallyConfig = {\n clientId: string;\n env?: string;\n requestLogging?: Partial<RequestLoggingConfig>;\n appVersion?: string;\n logger?: Logger;\n\n /** @deprecated Use requestLogging instead */\n requestLoggingConfig?: Partial<RequestLoggingConfig>;\n};\n\nexport type ApitallyConsumer = {\n identifier: string;\n name?: string | null;\n group?: string | null;\n};\n\nexport type PathInfo = {\n method: string;\n path: string;\n};\n\nexport type StartupData = {\n paths: PathInfo[];\n versions: Record<string, string>;\n client: string;\n};\n\nexport type StartupPayload = {\n instance_uuid: string;\n message_uuid: string;\n} & StartupData;\n\nexport type ConsumerMethodPath = {\n consumer?: string | null;\n method: string;\n path: string;\n};\n\nexport type RequestInfo = ConsumerMethodPath & {\n statusCode: number;\n responseTime: number;\n requestSize?: string | number | null;\n responseSize?: string | number | null;\n};\n\nexport type RequestsItem = ConsumerMethodPath & {\n status_code: number;\n request_count: number;\n request_size_sum: number;\n response_size_sum: number;\n response_times: Record<number, number>;\n request_sizes: Record<number, number>;\n response_sizes: Record<number, number>;\n};\n\nexport type ValidationError = {\n loc: string;\n msg: string;\n type: string;\n};\n\nexport type ValidationErrorsItem = ConsumerMethodPath & {\n loc: Array<string>;\n msg: string;\n type: string;\n error_count: number;\n};\n\nexport type ServerError = {\n type: string;\n msg: string;\n traceback: string;\n};\n\nexport type ServerErrorsItem = ConsumerMethodPath & {\n type: string;\n msg: string;\n traceback: string;\n sentry_event_id: string | null;\n error_count: number;\n};\n\nexport type ConsumerItem = ApitallyConsumer;\n\nexport type SyncPayload = {\n timestamp: number;\n instance_uuid: string;\n message_uuid: string;\n requests: Array<RequestsItem>;\n validation_errors: Array<ValidationErrorsItem>;\n server_errors: Array<ServerErrorsItem>;\n consumers: Array<ConsumerItem>;\n resources: {\n cpu_percent: number;\n memory_rss: number;\n } | null;\n};\n"],"mappings":";;;;;;;;;;;;;;AAwFA;;","names":[]}
|
package/dist/common/types.d.cts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Logger } from './logging.cjs';
|
|
2
|
-
import { RequestLoggingConfig } from './requestLogger.cjs';
|
|
3
|
-
import 'winston';
|
|
4
|
-
import 'node:buffer';
|
|
5
|
-
import 'node:http';
|
|
6
|
-
import './spanCollector.cjs';
|
|
7
|
-
import '@opentelemetry/sdk-trace-base';
|
|
8
|
-
import './tempGzipFile.cjs';
|
|
9
|
-
|
|
10
|
-
type ApitallyConfig = {
|
|
11
|
-
clientId: string;
|
|
12
|
-
env?: string;
|
|
13
|
-
requestLogging?: Partial<RequestLoggingConfig>;
|
|
14
|
-
appVersion?: string;
|
|
15
|
-
logger?: Logger;
|
|
16
|
-
/** @deprecated Use requestLogging instead */
|
|
17
|
-
requestLoggingConfig?: Partial<RequestLoggingConfig>;
|
|
18
|
-
};
|
|
19
|
-
type ApitallyConsumer = {
|
|
20
|
-
identifier: string;
|
|
21
|
-
name?: string | null;
|
|
22
|
-
group?: string | null;
|
|
23
|
-
};
|
|
24
|
-
type PathInfo = {
|
|
25
|
-
method: string;
|
|
26
|
-
path: string;
|
|
27
|
-
};
|
|
28
|
-
type StartupData = {
|
|
29
|
-
paths: PathInfo[];
|
|
30
|
-
versions: Record<string, string>;
|
|
31
|
-
client: string;
|
|
32
|
-
};
|
|
33
|
-
type StartupPayload = {
|
|
34
|
-
instance_uuid: string;
|
|
35
|
-
message_uuid: string;
|
|
36
|
-
} & StartupData;
|
|
37
|
-
type ConsumerMethodPath = {
|
|
38
|
-
consumer?: string | null;
|
|
39
|
-
method: string;
|
|
40
|
-
path: string;
|
|
41
|
-
};
|
|
42
|
-
type RequestInfo = ConsumerMethodPath & {
|
|
43
|
-
statusCode: number;
|
|
44
|
-
responseTime: number;
|
|
45
|
-
requestSize?: string | number | null;
|
|
46
|
-
responseSize?: string | number | null;
|
|
47
|
-
};
|
|
48
|
-
type RequestsItem = ConsumerMethodPath & {
|
|
49
|
-
status_code: number;
|
|
50
|
-
request_count: number;
|
|
51
|
-
request_size_sum: number;
|
|
52
|
-
response_size_sum: number;
|
|
53
|
-
response_times: Record<number, number>;
|
|
54
|
-
request_sizes: Record<number, number>;
|
|
55
|
-
response_sizes: Record<number, number>;
|
|
56
|
-
};
|
|
57
|
-
type ValidationError = {
|
|
58
|
-
loc: string;
|
|
59
|
-
msg: string;
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
type ValidationErrorsItem = ConsumerMethodPath & {
|
|
63
|
-
loc: Array<string>;
|
|
64
|
-
msg: string;
|
|
65
|
-
type: string;
|
|
66
|
-
error_count: number;
|
|
67
|
-
};
|
|
68
|
-
type ServerError = {
|
|
69
|
-
type: string;
|
|
70
|
-
msg: string;
|
|
71
|
-
traceback: string;
|
|
72
|
-
};
|
|
73
|
-
type ServerErrorsItem = ConsumerMethodPath & {
|
|
74
|
-
type: string;
|
|
75
|
-
msg: string;
|
|
76
|
-
traceback: string;
|
|
77
|
-
sentry_event_id: string | null;
|
|
78
|
-
error_count: number;
|
|
79
|
-
};
|
|
80
|
-
type ConsumerItem = ApitallyConsumer;
|
|
81
|
-
type SyncPayload = {
|
|
82
|
-
timestamp: number;
|
|
83
|
-
instance_uuid: string;
|
|
84
|
-
message_uuid: string;
|
|
85
|
-
requests: Array<RequestsItem>;
|
|
86
|
-
validation_errors: Array<ValidationErrorsItem>;
|
|
87
|
-
server_errors: Array<ServerErrorsItem>;
|
|
88
|
-
consumers: Array<ConsumerItem>;
|
|
89
|
-
resources: {
|
|
90
|
-
cpu_percent: number;
|
|
91
|
-
memory_rss: number;
|
|
92
|
-
} | null;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export type { ApitallyConfig, ApitallyConsumer, ConsumerItem, ConsumerMethodPath, PathInfo, RequestInfo, RequestsItem, ServerError, ServerErrorsItem, StartupData, StartupPayload, SyncPayload, ValidationError, ValidationErrorsItem };
|
package/dist/common/types.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Logger } from './logging.js';
|
|
2
|
-
import { RequestLoggingConfig } from './requestLogger.js';
|
|
3
|
-
import 'winston';
|
|
4
|
-
import 'node:buffer';
|
|
5
|
-
import 'node:http';
|
|
6
|
-
import './spanCollector.js';
|
|
7
|
-
import '@opentelemetry/sdk-trace-base';
|
|
8
|
-
import './tempGzipFile.js';
|
|
9
|
-
|
|
10
|
-
type ApitallyConfig = {
|
|
11
|
-
clientId: string;
|
|
12
|
-
env?: string;
|
|
13
|
-
requestLogging?: Partial<RequestLoggingConfig>;
|
|
14
|
-
appVersion?: string;
|
|
15
|
-
logger?: Logger;
|
|
16
|
-
/** @deprecated Use requestLogging instead */
|
|
17
|
-
requestLoggingConfig?: Partial<RequestLoggingConfig>;
|
|
18
|
-
};
|
|
19
|
-
type ApitallyConsumer = {
|
|
20
|
-
identifier: string;
|
|
21
|
-
name?: string | null;
|
|
22
|
-
group?: string | null;
|
|
23
|
-
};
|
|
24
|
-
type PathInfo = {
|
|
25
|
-
method: string;
|
|
26
|
-
path: string;
|
|
27
|
-
};
|
|
28
|
-
type StartupData = {
|
|
29
|
-
paths: PathInfo[];
|
|
30
|
-
versions: Record<string, string>;
|
|
31
|
-
client: string;
|
|
32
|
-
};
|
|
33
|
-
type StartupPayload = {
|
|
34
|
-
instance_uuid: string;
|
|
35
|
-
message_uuid: string;
|
|
36
|
-
} & StartupData;
|
|
37
|
-
type ConsumerMethodPath = {
|
|
38
|
-
consumer?: string | null;
|
|
39
|
-
method: string;
|
|
40
|
-
path: string;
|
|
41
|
-
};
|
|
42
|
-
type RequestInfo = ConsumerMethodPath & {
|
|
43
|
-
statusCode: number;
|
|
44
|
-
responseTime: number;
|
|
45
|
-
requestSize?: string | number | null;
|
|
46
|
-
responseSize?: string | number | null;
|
|
47
|
-
};
|
|
48
|
-
type RequestsItem = ConsumerMethodPath & {
|
|
49
|
-
status_code: number;
|
|
50
|
-
request_count: number;
|
|
51
|
-
request_size_sum: number;
|
|
52
|
-
response_size_sum: number;
|
|
53
|
-
response_times: Record<number, number>;
|
|
54
|
-
request_sizes: Record<number, number>;
|
|
55
|
-
response_sizes: Record<number, number>;
|
|
56
|
-
};
|
|
57
|
-
type ValidationError = {
|
|
58
|
-
loc: string;
|
|
59
|
-
msg: string;
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
type ValidationErrorsItem = ConsumerMethodPath & {
|
|
63
|
-
loc: Array<string>;
|
|
64
|
-
msg: string;
|
|
65
|
-
type: string;
|
|
66
|
-
error_count: number;
|
|
67
|
-
};
|
|
68
|
-
type ServerError = {
|
|
69
|
-
type: string;
|
|
70
|
-
msg: string;
|
|
71
|
-
traceback: string;
|
|
72
|
-
};
|
|
73
|
-
type ServerErrorsItem = ConsumerMethodPath & {
|
|
74
|
-
type: string;
|
|
75
|
-
msg: string;
|
|
76
|
-
traceback: string;
|
|
77
|
-
sentry_event_id: string | null;
|
|
78
|
-
error_count: number;
|
|
79
|
-
};
|
|
80
|
-
type ConsumerItem = ApitallyConsumer;
|
|
81
|
-
type SyncPayload = {
|
|
82
|
-
timestamp: number;
|
|
83
|
-
instance_uuid: string;
|
|
84
|
-
message_uuid: string;
|
|
85
|
-
requests: Array<RequestsItem>;
|
|
86
|
-
validation_errors: Array<ValidationErrorsItem>;
|
|
87
|
-
server_errors: Array<ServerErrorsItem>;
|
|
88
|
-
consumers: Array<ConsumerItem>;
|
|
89
|
-
resources: {
|
|
90
|
-
cpu_percent: number;
|
|
91
|
-
memory_rss: number;
|
|
92
|
-
} | null;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export type { ApitallyConfig, ApitallyConsumer, ConsumerItem, ConsumerMethodPath, PathInfo, RequestInfo, RequestsItem, ServerError, ServerErrorsItem, StartupData, StartupPayload, SyncPayload, ValidationError, ValidationErrorsItem };
|
package/dist/common/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|
package/dist/common/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var validationErrorCounter_exports = {};
|
|
21
|
-
__export(validationErrorCounter_exports, {
|
|
22
|
-
default: () => ValidationErrorCounter
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(validationErrorCounter_exports);
|
|
25
|
-
var import_node_crypto = require("node:crypto");
|
|
26
|
-
const _ValidationErrorCounter = class _ValidationErrorCounter {
|
|
27
|
-
errorCounts;
|
|
28
|
-
errorDetails;
|
|
29
|
-
constructor() {
|
|
30
|
-
this.errorCounts = /* @__PURE__ */ new Map();
|
|
31
|
-
this.errorDetails = /* @__PURE__ */ new Map();
|
|
32
|
-
}
|
|
33
|
-
addValidationError(validationError) {
|
|
34
|
-
const key = this.getKey(validationError);
|
|
35
|
-
if (!this.errorDetails.has(key)) {
|
|
36
|
-
this.errorDetails.set(key, validationError);
|
|
37
|
-
}
|
|
38
|
-
this.errorCounts.set(key, (this.errorCounts.get(key) || 0) + 1);
|
|
39
|
-
}
|
|
40
|
-
getAndResetValidationErrors() {
|
|
41
|
-
const data = [];
|
|
42
|
-
this.errorCounts.forEach((count, key) => {
|
|
43
|
-
const validationError = this.errorDetails.get(key);
|
|
44
|
-
if (validationError) {
|
|
45
|
-
data.push({
|
|
46
|
-
consumer: validationError.consumer || null,
|
|
47
|
-
method: validationError.method,
|
|
48
|
-
path: validationError.path,
|
|
49
|
-
loc: validationError.loc.split(".").filter(Boolean),
|
|
50
|
-
msg: validationError.msg,
|
|
51
|
-
type: validationError.type,
|
|
52
|
-
error_count: count
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
this.errorCounts.clear();
|
|
57
|
-
this.errorDetails.clear();
|
|
58
|
-
return data;
|
|
59
|
-
}
|
|
60
|
-
getKey(validationError) {
|
|
61
|
-
const hashInput = [
|
|
62
|
-
validationError.consumer || "",
|
|
63
|
-
validationError.method.toUpperCase(),
|
|
64
|
-
validationError.path,
|
|
65
|
-
validationError.loc.split(".").filter(Boolean),
|
|
66
|
-
validationError.msg.trim(),
|
|
67
|
-
validationError.type
|
|
68
|
-
].join("|");
|
|
69
|
-
return (0, import_node_crypto.createHash)("md5").update(hashInput).digest("hex");
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
__name(_ValidationErrorCounter, "ValidationErrorCounter");
|
|
73
|
-
let ValidationErrorCounter = _ValidationErrorCounter;
|
|
74
|
-
//# sourceMappingURL=validationErrorCounter.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/validationErrorCounter.ts"],"sourcesContent":["import { createHash } from \"node:crypto\";\n\nimport {\n ConsumerMethodPath,\n ValidationError,\n ValidationErrorsItem,\n} from \"./types.js\";\n\nexport default class ValidationErrorCounter {\n private errorCounts: Map<string, number>;\n private errorDetails: Map<string, ConsumerMethodPath & ValidationError>;\n\n constructor() {\n this.errorCounts = new Map();\n this.errorDetails = new Map();\n }\n\n public addValidationError(\n validationError: ConsumerMethodPath & ValidationError,\n ) {\n const key = this.getKey(validationError);\n if (!this.errorDetails.has(key)) {\n this.errorDetails.set(key, validationError);\n }\n this.errorCounts.set(key, (this.errorCounts.get(key) || 0) + 1);\n }\n\n public getAndResetValidationErrors() {\n const data: Array<ValidationErrorsItem> = [];\n this.errorCounts.forEach((count, key) => {\n const validationError = this.errorDetails.get(key);\n if (validationError) {\n data.push({\n consumer: validationError.consumer || null,\n method: validationError.method,\n path: validationError.path,\n loc: validationError.loc.split(\".\").filter(Boolean),\n msg: validationError.msg,\n type: validationError.type,\n error_count: count,\n });\n }\n });\n this.errorCounts.clear();\n this.errorDetails.clear();\n return data;\n }\n\n private getKey(validationError: ConsumerMethodPath & ValidationError) {\n const hashInput = [\n validationError.consumer || \"\",\n validationError.method.toUpperCase(),\n validationError.path,\n validationError.loc.split(\".\").filter(Boolean),\n validationError.msg.trim(),\n validationError.type,\n ].join(\"|\");\n return createHash(\"md5\").update(hashInput).digest(\"hex\");\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;AAAA,yBAA2B;AAQ3B,MAAqBA,0BAArB,MAAqBA,wBAAAA;EACXC;EACAC;EAER,cAAc;AACZ,SAAKD,cAAc,oBAAIE,IAAAA;AACvB,SAAKD,eAAe,oBAAIC,IAAAA;EAC1B;EAEOC,mBACLC,iBACA;AACA,UAAMC,MAAM,KAAKC,OAAOF,eAAAA;AACxB,QAAI,CAAC,KAAKH,aAAaM,IAAIF,GAAAA,GAAM;AAC/B,WAAKJ,aAAaO,IAAIH,KAAKD,eAAAA;IAC7B;AACA,SAAKJ,YAAYQ,IAAIH,MAAM,KAAKL,YAAYS,IAAIJ,GAAAA,KAAQ,KAAK,CAAA;EAC/D;EAEOK,8BAA8B;AACnC,UAAMC,OAAoC,CAAA;AAC1C,SAAKX,YAAYY,QAAQ,CAACC,OAAOR,QAAAA;AAC/B,YAAMD,kBAAkB,KAAKH,aAAaQ,IAAIJ,GAAAA;AAC9C,UAAID,iBAAiB;AACnBO,aAAKG,KAAK;UACRC,UAAUX,gBAAgBW,YAAY;UACtCC,QAAQZ,gBAAgBY;UACxBC,MAAMb,gBAAgBa;UACtBC,KAAKd,gBAAgBc,IAAIC,MAAM,GAAA,EAAKC,OAAOC,OAAAA;UAC3CC,KAAKlB,gBAAgBkB;UACrBC,MAAMnB,gBAAgBmB;UACtBC,aAAaX;QACf,CAAA;MACF;IACF,CAAA;AACA,SAAKb,YAAYyB,MAAK;AACtB,SAAKxB,aAAawB,MAAK;AACvB,WAAOd;EACT;EAEQL,OAAOF,iBAAuD;AACpE,UAAMsB,YAAY;MAChBtB,gBAAgBW,YAAY;MAC5BX,gBAAgBY,OAAOW,YAAW;MAClCvB,gBAAgBa;MAChBb,gBAAgBc,IAAIC,MAAM,GAAA,EAAKC,OAAOC,OAAAA;MACtCjB,gBAAgBkB,IAAIM,KAAI;MACxBxB,gBAAgBmB;MAChBM,KAAK,GAAA;AACP,eAAOC,+BAAW,KAAA,EAAOC,OAAOL,SAAAA,EAAWM,OAAO,KAAA;EACpD;AACF;AAnDqBjC;AAArB,IAAqBA,yBAArB;","names":["ValidationErrorCounter","errorCounts","errorDetails","Map","addValidationError","validationError","key","getKey","has","set","get","getAndResetValidationErrors","data","forEach","count","push","consumer","method","path","loc","split","filter","Boolean","msg","type","error_count","clear","hashInput","toUpperCase","trim","join","createHash","update","digest"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ConsumerMethodPath, ValidationError, ValidationErrorsItem } from './types.cjs';
|
|
2
|
-
import './logging.cjs';
|
|
3
|
-
import 'winston';
|
|
4
|
-
import './requestLogger.cjs';
|
|
5
|
-
import 'node:buffer';
|
|
6
|
-
import 'node:http';
|
|
7
|
-
import './spanCollector.cjs';
|
|
8
|
-
import '@opentelemetry/sdk-trace-base';
|
|
9
|
-
import './tempGzipFile.cjs';
|
|
10
|
-
|
|
11
|
-
declare class ValidationErrorCounter {
|
|
12
|
-
private errorCounts;
|
|
13
|
-
private errorDetails;
|
|
14
|
-
constructor();
|
|
15
|
-
addValidationError(validationError: ConsumerMethodPath & ValidationError): void;
|
|
16
|
-
getAndResetValidationErrors(): ValidationErrorsItem[];
|
|
17
|
-
private getKey;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { ValidationErrorCounter as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ConsumerMethodPath, ValidationError, ValidationErrorsItem } from './types.js';
|
|
2
|
-
import './logging.js';
|
|
3
|
-
import 'winston';
|
|
4
|
-
import './requestLogger.js';
|
|
5
|
-
import 'node:buffer';
|
|
6
|
-
import 'node:http';
|
|
7
|
-
import './spanCollector.js';
|
|
8
|
-
import '@opentelemetry/sdk-trace-base';
|
|
9
|
-
import './tempGzipFile.js';
|
|
10
|
-
|
|
11
|
-
declare class ValidationErrorCounter {
|
|
12
|
-
private errorCounts;
|
|
13
|
-
private errorDetails;
|
|
14
|
-
constructor();
|
|
15
|
-
addValidationError(validationError: ConsumerMethodPath & ValidationError): void;
|
|
16
|
-
getAndResetValidationErrors(): ValidationErrorsItem[];
|
|
17
|
-
private getKey;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { ValidationErrorCounter as default };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
import { createHash } from "node:crypto";
|
|
4
|
-
const _ValidationErrorCounter = class _ValidationErrorCounter {
|
|
5
|
-
errorCounts;
|
|
6
|
-
errorDetails;
|
|
7
|
-
constructor() {
|
|
8
|
-
this.errorCounts = /* @__PURE__ */ new Map();
|
|
9
|
-
this.errorDetails = /* @__PURE__ */ new Map();
|
|
10
|
-
}
|
|
11
|
-
addValidationError(validationError) {
|
|
12
|
-
const key = this.getKey(validationError);
|
|
13
|
-
if (!this.errorDetails.has(key)) {
|
|
14
|
-
this.errorDetails.set(key, validationError);
|
|
15
|
-
}
|
|
16
|
-
this.errorCounts.set(key, (this.errorCounts.get(key) || 0) + 1);
|
|
17
|
-
}
|
|
18
|
-
getAndResetValidationErrors() {
|
|
19
|
-
const data = [];
|
|
20
|
-
this.errorCounts.forEach((count, key) => {
|
|
21
|
-
const validationError = this.errorDetails.get(key);
|
|
22
|
-
if (validationError) {
|
|
23
|
-
data.push({
|
|
24
|
-
consumer: validationError.consumer || null,
|
|
25
|
-
method: validationError.method,
|
|
26
|
-
path: validationError.path,
|
|
27
|
-
loc: validationError.loc.split(".").filter(Boolean),
|
|
28
|
-
msg: validationError.msg,
|
|
29
|
-
type: validationError.type,
|
|
30
|
-
error_count: count
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
this.errorCounts.clear();
|
|
35
|
-
this.errorDetails.clear();
|
|
36
|
-
return data;
|
|
37
|
-
}
|
|
38
|
-
getKey(validationError) {
|
|
39
|
-
const hashInput = [
|
|
40
|
-
validationError.consumer || "",
|
|
41
|
-
validationError.method.toUpperCase(),
|
|
42
|
-
validationError.path,
|
|
43
|
-
validationError.loc.split(".").filter(Boolean),
|
|
44
|
-
validationError.msg.trim(),
|
|
45
|
-
validationError.type
|
|
46
|
-
].join("|");
|
|
47
|
-
return createHash("md5").update(hashInput).digest("hex");
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
__name(_ValidationErrorCounter, "ValidationErrorCounter");
|
|
51
|
-
let ValidationErrorCounter = _ValidationErrorCounter;
|
|
52
|
-
export {
|
|
53
|
-
ValidationErrorCounter as default
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=validationErrorCounter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/validationErrorCounter.ts"],"sourcesContent":["import { createHash } from \"node:crypto\";\n\nimport {\n ConsumerMethodPath,\n ValidationError,\n ValidationErrorsItem,\n} from \"./types.js\";\n\nexport default class ValidationErrorCounter {\n private errorCounts: Map<string, number>;\n private errorDetails: Map<string, ConsumerMethodPath & ValidationError>;\n\n constructor() {\n this.errorCounts = new Map();\n this.errorDetails = new Map();\n }\n\n public addValidationError(\n validationError: ConsumerMethodPath & ValidationError,\n ) {\n const key = this.getKey(validationError);\n if (!this.errorDetails.has(key)) {\n this.errorDetails.set(key, validationError);\n }\n this.errorCounts.set(key, (this.errorCounts.get(key) || 0) + 1);\n }\n\n public getAndResetValidationErrors() {\n const data: Array<ValidationErrorsItem> = [];\n this.errorCounts.forEach((count, key) => {\n const validationError = this.errorDetails.get(key);\n if (validationError) {\n data.push({\n consumer: validationError.consumer || null,\n method: validationError.method,\n path: validationError.path,\n loc: validationError.loc.split(\".\").filter(Boolean),\n msg: validationError.msg,\n type: validationError.type,\n error_count: count,\n });\n }\n });\n this.errorCounts.clear();\n this.errorDetails.clear();\n return data;\n }\n\n private getKey(validationError: ConsumerMethodPath & ValidationError) {\n const hashInput = [\n validationError.consumer || \"\",\n validationError.method.toUpperCase(),\n validationError.path,\n validationError.loc.split(\".\").filter(Boolean),\n validationError.msg.trim(),\n validationError.type,\n ].join(\"|\");\n return createHash(\"md5\").update(hashInput).digest(\"hex\");\n }\n}\n"],"mappings":";;AAAA,SAASA,kBAAkB;AAQ3B,MAAqBC,0BAArB,MAAqBA,wBAAAA;EACXC;EACAC;EAER,cAAc;AACZ,SAAKD,cAAc,oBAAIE,IAAAA;AACvB,SAAKD,eAAe,oBAAIC,IAAAA;EAC1B;EAEOC,mBACLC,iBACA;AACA,UAAMC,MAAM,KAAKC,OAAOF,eAAAA;AACxB,QAAI,CAAC,KAAKH,aAAaM,IAAIF,GAAAA,GAAM;AAC/B,WAAKJ,aAAaO,IAAIH,KAAKD,eAAAA;IAC7B;AACA,SAAKJ,YAAYQ,IAAIH,MAAM,KAAKL,YAAYS,IAAIJ,GAAAA,KAAQ,KAAK,CAAA;EAC/D;EAEOK,8BAA8B;AACnC,UAAMC,OAAoC,CAAA;AAC1C,SAAKX,YAAYY,QAAQ,CAACC,OAAOR,QAAAA;AAC/B,YAAMD,kBAAkB,KAAKH,aAAaQ,IAAIJ,GAAAA;AAC9C,UAAID,iBAAiB;AACnBO,aAAKG,KAAK;UACRC,UAAUX,gBAAgBW,YAAY;UACtCC,QAAQZ,gBAAgBY;UACxBC,MAAMb,gBAAgBa;UACtBC,KAAKd,gBAAgBc,IAAIC,MAAM,GAAA,EAAKC,OAAOC,OAAAA;UAC3CC,KAAKlB,gBAAgBkB;UACrBC,MAAMnB,gBAAgBmB;UACtBC,aAAaX;QACf,CAAA;MACF;IACF,CAAA;AACA,SAAKb,YAAYyB,MAAK;AACtB,SAAKxB,aAAawB,MAAK;AACvB,WAAOd;EACT;EAEQL,OAAOF,iBAAuD;AACpE,UAAMsB,YAAY;MAChBtB,gBAAgBW,YAAY;MAC5BX,gBAAgBY,OAAOW,YAAW;MAClCvB,gBAAgBa;MAChBb,gBAAgBc,IAAIC,MAAM,GAAA,EAAKC,OAAOC,OAAAA;MACtCjB,gBAAgBkB,IAAIM,KAAI;MACxBxB,gBAAgBmB;MAChBM,KAAK,GAAA;AACP,WAAO/B,WAAW,KAAA,EAAOgC,OAAOJ,SAAAA,EAAWK,OAAO,KAAA;EACpD;AACF;AAnDqBhC;AAArB,IAAqBA,yBAArB;","names":["createHash","ValidationErrorCounter","errorCounts","errorDetails","Map","addValidationError","validationError","key","getKey","has","set","get","getAndResetValidationErrors","data","forEach","count","push","consumer","method","path","loc","split","filter","Boolean","msg","type","error_count","clear","hashInput","toUpperCase","trim","join","update","digest"]}
|