@zudojs/errors 1.3.1 → 1.4.0
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 +1 -0
- package/dist/base/core/baseError.core.d.ts +6 -1
- package/dist/base/core/baseError.core.js +6 -1
- package/dist/base/core/baseError.serialize.d.ts +0 -1
- package/dist/base/core/baseError.serialize.js +0 -1
- package/dist/base/core/errorCause.redact.d.ts +0 -1
- package/dist/base/core/errorCause.redact.js +0 -1
- package/dist/base/core/errorMetadata.core.d.ts +0 -1
- package/dist/base/core/errorMetadata.core.js +0 -1
- package/dist/base/core/errorMetadata.type.d.ts +0 -1
- package/dist/base/core/errorMetadata.type.js +0 -1
- package/dist/base/core/index.d.ts +0 -1
- package/dist/base/core/index.js +0 -1
- package/dist/base/index.d.ts +0 -1
- package/dist/base/index.js +0 -1
- package/dist/base/types/baseError.type.d.ts +6 -1
- package/dist/base/types/baseError.type.js +0 -1
- package/dist/base/types/errorCategory.enum.d.ts +0 -1
- package/dist/base/types/errorCategory.enum.js +0 -1
- package/dist/base/types/errorCategory.helpers.d.ts +0 -1
- package/dist/base/types/errorCategory.helpers.js +0 -1
- package/dist/base/types/errorCategory.type.d.ts +0 -1
- package/dist/base/types/errorCategory.type.js +0 -1
- package/dist/base/types/errorCode.type.d.ts +0 -1
- package/dist/base/types/errorCode.type.js +0 -1
- package/dist/base/types/errorSeverity.type.d.ts +0 -1
- package/dist/base/types/errorSeverity.type.js +0 -1
- package/dist/base/types/index.d.ts +0 -1
- package/dist/base/types/index.js +0 -1
- package/dist/base/utils/baseError.utils.d.ts +0 -1
- package/dist/base/utils/baseError.utils.js +0 -1
- package/dist/base/utils/index.d.ts +0 -1
- package/dist/base/utils/index.js +0 -1
- package/dist/domain/access/authError.base.d.ts +0 -1
- package/dist/domain/access/authError.base.js +0 -1
- package/dist/domain/access/authentication.error.d.ts +0 -1
- package/dist/domain/access/authentication.error.js +0 -1
- package/dist/domain/access/authorization.error.d.ts +0 -1
- package/dist/domain/access/authorization.error.js +0 -1
- package/dist/domain/access/index.d.ts +0 -1
- package/dist/domain/access/index.js +0 -1
- package/dist/domain/access/oauthError.base.d.ts +0 -1
- package/dist/domain/access/oauthError.base.js +0 -1
- package/dist/domain/access/rateLimit.error.d.ts +0 -1
- package/dist/domain/access/rateLimit.error.js +0 -1
- package/dist/domain/api/api.error.d.ts +0 -1
- package/dist/domain/api/api.error.js +0 -1
- package/dist/domain/api/apiError.base.d.ts +0 -1
- package/dist/domain/api/apiError.base.js +0 -1
- package/dist/domain/api/apiError.lifecycle.d.ts +0 -1
- package/dist/domain/api/apiError.lifecycle.js +0 -1
- package/dist/domain/api/apiError.routing.d.ts +0 -1
- package/dist/domain/api/apiError.routing.js +0 -1
- package/dist/domain/api/index.d.ts +0 -1
- package/dist/domain/api/index.js +0 -1
- package/dist/domain/app/application.error.d.ts +0 -1
- package/dist/domain/app/application.error.js +0 -1
- package/dist/domain/app/configuration.error.d.ts +0 -1
- package/dist/domain/app/configuration.error.js +0 -1
- package/dist/domain/app/domain.error.d.ts +0 -1
- package/dist/domain/app/domain.error.js +0 -1
- package/dist/domain/app/index.d.ts +0 -1
- package/dist/domain/app/index.js +0 -1
- package/dist/domain/app/lifecycle.error.d.ts +0 -1
- package/dist/domain/app/lifecycle.error.js +0 -1
- package/dist/domain/app/lifecycleError.base.d.ts +0 -1
- package/dist/domain/app/lifecycleError.base.js +0 -1
- package/dist/domain/app/lifecycleError.types.d.ts +0 -1
- package/dist/domain/app/lifecycleError.types.js +0 -1
- package/dist/domain/app/module.error.d.ts +0 -1
- package/dist/domain/app/module.error.js +0 -1
- package/dist/domain/app/moduleError.base.d.ts +0 -1
- package/dist/domain/app/moduleError.base.js +0 -1
- package/dist/domain/app/moduleError.types.d.ts +0 -1
- package/dist/domain/app/moduleError.types.js +0 -1
- package/dist/domain/body/bodyParser.error.d.ts +0 -1
- package/dist/domain/body/bodyParser.error.js +0 -1
- package/dist/domain/body/httpBody.error.d.ts +0 -1
- package/dist/domain/body/httpBody.error.js +0 -1
- package/dist/domain/body/httpBodyError.base.d.ts +0 -1
- package/dist/domain/body/httpBodyError.base.js +0 -1
- package/dist/domain/body/httpBodyError.types.d.ts +0 -1
- package/dist/domain/body/httpBodyError.types.js +0 -1
- package/dist/domain/body/httpFormData.error.d.ts +0 -1
- package/dist/domain/body/httpFormData.error.js +0 -1
- package/dist/domain/body/index.d.ts +0 -1
- package/dist/domain/body/index.js +0 -1
- package/dist/domain/body/multipart.error.d.ts +0 -1
- package/dist/domain/body/multipart.error.js +0 -1
- package/dist/domain/cli/cliError.base.d.ts +0 -1
- package/dist/domain/cli/cliError.base.js +0 -1
- package/dist/domain/cli/index.d.ts +0 -1
- package/dist/domain/cli/index.js +0 -1
- package/dist/domain/constant/constantError.base.d.ts +0 -1
- package/dist/domain/constant/constantError.base.js +0 -1
- package/dist/domain/constant/index.d.ts +0 -1
- package/dist/domain/constant/index.js +0 -1
- package/dist/domain/cqrs/cqrsError.base.d.ts +0 -1
- package/dist/domain/cqrs/cqrsError.base.js +0 -1
- package/dist/domain/cqrs/cqrsError.result.d.ts +0 -1
- package/dist/domain/cqrs/cqrsError.result.js +0 -1
- package/dist/domain/cqrs/index.d.ts +0 -1
- package/dist/domain/cqrs/index.js +0 -1
- package/dist/domain/documentation/documentation.error.d.ts +0 -1
- package/dist/domain/documentation/documentation.error.js +0 -1
- package/dist/domain/documentation/documentationError.base.d.ts +0 -1
- package/dist/domain/documentation/documentationError.base.js +0 -1
- package/dist/domain/documentation/documentationError.types.d.ts +0 -1
- package/dist/domain/documentation/documentationError.types.js +0 -1
- package/dist/domain/documentation/index.d.ts +0 -1
- package/dist/domain/documentation/index.js +0 -1
- package/dist/domain/event/event.error.d.ts +0 -1
- package/dist/domain/event/event.error.js +0 -1
- package/dist/domain/event/eventError.base.d.ts +0 -1
- package/dist/domain/event/eventError.base.js +0 -1
- package/dist/domain/event/eventError.handler.d.ts +0 -1
- package/dist/domain/event/eventError.handler.js +0 -1
- package/dist/domain/event/eventError.lifecycle.d.ts +0 -1
- package/dist/domain/event/eventError.lifecycle.js +0 -1
- package/dist/domain/event/eventError.serialization.d.ts +0 -1
- package/dist/domain/event/eventError.serialization.js +0 -1
- package/dist/domain/event/index.d.ts +0 -1
- package/dist/domain/event/index.js +0 -1
- package/dist/domain/index.d.ts +0 -1
- package/dist/domain/index.js +0 -1
- package/dist/domain/message/index.d.ts +0 -1
- package/dist/domain/message/index.js +0 -1
- package/dist/domain/message/message.error.d.ts +0 -1
- package/dist/domain/message/message.error.js +0 -1
- package/dist/domain/message/messageError.base.d.ts +0 -1
- package/dist/domain/message/messageError.base.js +0 -1
- package/dist/domain/message/messageError.handler.d.ts +0 -1
- package/dist/domain/message/messageError.handler.js +0 -1
- package/dist/domain/message/messageError.lifecycle.d.ts +0 -1
- package/dist/domain/message/messageError.lifecycle.js +0 -1
- package/dist/domain/message/messageError.serialization.d.ts +0 -1
- package/dist/domain/message/messageError.serialization.js +0 -1
- package/dist/domain/message/messageError.validation.d.ts +0 -1
- package/dist/domain/message/messageError.validation.js +0 -1
- package/dist/domain/openapi/index.d.ts +0 -1
- package/dist/domain/openapi/index.js +0 -1
- package/dist/domain/openapi/openApiError.base.d.ts +0 -1
- package/dist/domain/openapi/openApiError.base.js +0 -1
- package/dist/domain/plugin/index.d.ts +0 -1
- package/dist/domain/plugin/index.js +0 -1
- package/dist/domain/plugin/plugin.error.d.ts +0 -1
- package/dist/domain/plugin/plugin.error.js +0 -1
- package/dist/domain/plugin/pluginError.base.d.ts +0 -1
- package/dist/domain/plugin/pluginError.base.js +0 -1
- package/dist/domain/plugin/pluginError.lifecycle.d.ts +0 -1
- package/dist/domain/plugin/pluginError.lifecycle.js +0 -1
- package/dist/domain/plugin/pluginError.runtime.d.ts +0 -1
- package/dist/domain/plugin/pluginError.runtime.js +0 -1
- package/dist/domain/queue/index.d.ts +0 -1
- package/dist/domain/queue/index.js +0 -1
- package/dist/domain/queue/queue.error.d.ts +0 -1
- package/dist/domain/queue/queue.error.js +0 -1
- package/dist/domain/queue/queueError.base.d.ts +0 -1
- package/dist/domain/queue/queueError.base.js +0 -1
- package/dist/domain/queue/queueError.job.d.ts +0 -1
- package/dist/domain/queue/queueError.job.js +0 -1
- package/dist/domain/queue/queueError.queue.d.ts +0 -1
- package/dist/domain/queue/queueError.queue.js +0 -1
- package/dist/domain/queue/queueError.worker.d.ts +0 -1
- package/dist/domain/queue/queueError.worker.js +0 -1
- package/dist/domain/rpc/index.d.ts +0 -1
- package/dist/domain/rpc/index.js +0 -1
- package/dist/domain/rpc/rpc.error.d.ts +0 -1
- package/dist/domain/rpc/rpc.error.js +0 -1
- package/dist/domain/rpc/rpcError.base.d.ts +0 -1
- package/dist/domain/rpc/rpcError.base.js +0 -1
- package/dist/domain/rpc/rpcError.protocol.d.ts +0 -1
- package/dist/domain/rpc/rpcError.protocol.js +0 -1
- package/dist/domain/rpc/rpcError.transport.d.ts +0 -1
- package/dist/domain/rpc/rpcError.transport.js +0 -1
- package/dist/domain/scheduler/index.d.ts +0 -1
- package/dist/domain/scheduler/index.js +0 -1
- package/dist/domain/scheduler/scheduler.error.d.ts +0 -1
- package/dist/domain/scheduler/scheduler.error.js +0 -1
- package/dist/domain/scheduler/schedulerError.base.d.ts +0 -1
- package/dist/domain/scheduler/schedulerError.base.js +0 -1
- package/dist/domain/scheduler/schedulerError.execution.d.ts +0 -1
- package/dist/domain/scheduler/schedulerError.execution.js +0 -1
- package/dist/domain/scheduler/schedulerError.schedule.d.ts +0 -1
- package/dist/domain/scheduler/schedulerError.schedule.js +0 -1
- package/dist/domain/schema/index.d.ts +0 -1
- package/dist/domain/schema/index.js +0 -1
- package/dist/domain/schema/schema.error.d.ts +0 -1
- package/dist/domain/schema/schema.error.js +0 -1
- package/dist/domain/schema/schemaError.base.d.ts +0 -1
- package/dist/domain/schema/schemaError.base.js +0 -1
- package/dist/domain/schema/schemaError.types.d.ts +0 -1
- package/dist/domain/schema/schemaError.types.js +0 -1
- package/dist/domain/serialization/index.d.ts +0 -1
- package/dist/domain/serialization/index.js +0 -1
- package/dist/domain/serialization/serialization.error.d.ts +2 -2
- package/dist/domain/serialization/serialization.error.js +2 -2
- package/dist/domain/serialization/serializationError.base.d.ts +0 -1
- package/dist/domain/serialization/serializationError.base.js +0 -1
- package/dist/domain/serialization/serializationError.limits.d.ts +51 -0
- package/dist/domain/serialization/serializationError.limits.js +70 -0
- package/dist/domain/serialization/serializationError.types.d.ts +0 -30
- package/dist/domain/serialization/serializationError.types.js +0 -50
- package/dist/domain/shared/domainError.helpers.d.ts +0 -1
- package/dist/domain/shared/domainError.helpers.js +0 -1
- package/dist/domain/state/conflict.error.d.ts +0 -1
- package/dist/domain/state/conflict.error.js +0 -1
- package/dist/domain/state/index.d.ts +0 -1
- package/dist/domain/state/index.js +0 -1
- package/dist/domain/state/notFound.error.d.ts +0 -1
- package/dist/domain/state/notFound.error.js +0 -1
- package/dist/domain/state/validation.error.d.ts +0 -1
- package/dist/domain/state/validation.error.js +0 -1
- package/dist/domain/state/validationError.base.d.ts +0 -1
- package/dist/domain/state/validationError.base.js +0 -1
- package/dist/domain/state/validationError.helpers.d.ts +0 -1
- package/dist/domain/state/validationError.helpers.js +0 -1
- package/dist/domain/transaction/index.d.ts +0 -1
- package/dist/domain/transaction/index.js +0 -1
- package/dist/domain/transaction/transactionError.base.d.ts +0 -1
- package/dist/domain/transaction/transactionError.base.js +0 -1
- package/dist/domain/transaction/transactionError.misc.d.ts +0 -1
- package/dist/domain/transaction/transactionError.misc.js +0 -1
- package/dist/domain/transaction/transactionError.types.d.ts +0 -1
- package/dist/domain/transaction/transactionError.types.js +0 -1
- package/dist/domain/traversal/index.d.ts +0 -1
- package/dist/domain/traversal/index.js +0 -1
- package/dist/domain/traversal/traversalLimit.error.d.ts +0 -1
- package/dist/domain/traversal/traversalLimit.error.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/infrastructure/adapter/adapter.error.d.ts +0 -1
- package/dist/infrastructure/adapter/adapter.error.js +0 -1
- package/dist/infrastructure/adapter/adapterError.base.d.ts +0 -1
- package/dist/infrastructure/adapter/adapterError.base.js +0 -1
- package/dist/infrastructure/adapter/adapterError.lifecycle.d.ts +0 -1
- package/dist/infrastructure/adapter/adapterError.lifecycle.js +0 -1
- package/dist/infrastructure/adapter/adapterError.operation.d.ts +0 -1
- package/dist/infrastructure/adapter/adapterError.operation.js +2 -3
- package/dist/infrastructure/adapter/index.d.ts +0 -1
- package/dist/infrastructure/adapter/index.js +0 -1
- package/dist/infrastructure/cache/cache.error.d.ts +0 -1
- package/dist/infrastructure/cache/cache.error.js +0 -1
- package/dist/infrastructure/cache/cacheError.base.d.ts +0 -1
- package/dist/infrastructure/cache/cacheError.base.js +0 -1
- package/dist/infrastructure/cache/cacheError.factory.d.ts +0 -1
- package/dist/infrastructure/cache/cacheError.factory.js +0 -1
- package/dist/infrastructure/cache/index.d.ts +0 -1
- package/dist/infrastructure/cache/index.js +0 -1
- package/dist/infrastructure/container/container.error.d.ts +0 -1
- package/dist/infrastructure/container/container.error.js +0 -1
- package/dist/infrastructure/container/containerError.base.d.ts +0 -1
- package/dist/infrastructure/container/containerError.base.js +0 -1
- package/dist/infrastructure/container/containerError.registration.d.ts +0 -1
- package/dist/infrastructure/container/containerError.registration.js +0 -1
- package/dist/infrastructure/container/index.d.ts +0 -1
- package/dist/infrastructure/container/index.js +0 -1
- package/dist/infrastructure/httpPipeline/httpMiddleware.error.d.ts +0 -1
- package/dist/infrastructure/httpPipeline/httpMiddleware.error.js +0 -1
- package/dist/infrastructure/httpPipeline/httpRequestGuard.error.d.ts +0 -1
- package/dist/infrastructure/httpPipeline/httpRequestGuard.error.js +0 -1
- package/dist/infrastructure/httpPipeline/index.d.ts +0 -1
- package/dist/infrastructure/httpPipeline/index.js +0 -1
- package/dist/infrastructure/index.d.ts +0 -1
- package/dist/infrastructure/index.js +0 -1
- package/dist/infrastructure/middleware/index.d.ts +0 -1
- package/dist/infrastructure/middleware/index.js +0 -1
- package/dist/infrastructure/middleware/middleware.error.d.ts +0 -1
- package/dist/infrastructure/middleware/middleware.error.js +3 -1
- package/dist/infrastructure/middleware/middlewareError.types.d.ts +8 -3
- package/dist/infrastructure/middleware/middlewareError.types.js +27 -4
- package/dist/infrastructure/network/http.error.d.ts +0 -1
- package/dist/infrastructure/network/http.error.js +0 -1
- package/dist/infrastructure/network/httpAdapter.error.d.ts +0 -1
- package/dist/infrastructure/network/httpAdapter.error.js +0 -1
- package/dist/infrastructure/network/httpClient.errors.d.ts +0 -1
- package/dist/infrastructure/network/httpClient.errors.js +0 -1
- package/dist/infrastructure/network/httpClientError.advanced.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.advanced.js +0 -1
- package/dist/infrastructure/network/httpClientError.base.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.base.js +0 -1
- package/dist/infrastructure/network/httpClientError.common.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.common.js +0 -1
- package/dist/infrastructure/network/httpClientError.error.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.error.js +0 -1
- package/dist/infrastructure/network/httpClientError.options.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.options.js +0 -1
- package/dist/infrastructure/network/httpClientError.specialized.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.specialized.js +0 -1
- package/dist/infrastructure/network/httpClientError.types.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.types.js +0 -1
- package/dist/infrastructure/network/httpError.base.d.ts +0 -1
- package/dist/infrastructure/network/httpError.base.js +0 -1
- package/dist/infrastructure/network/httpError.helpers.d.ts +0 -1
- package/dist/infrastructure/network/httpError.helpers.js +0 -1
- package/dist/infrastructure/network/httpResponse.error.d.ts +0 -1
- package/dist/infrastructure/network/httpResponse.error.js +0 -1
- package/dist/infrastructure/network/httpRouter.error.d.ts +0 -1
- package/dist/infrastructure/network/httpRouter.error.js +0 -1
- package/dist/infrastructure/network/httpRouterError.base.d.ts +0 -1
- package/dist/infrastructure/network/httpRouterError.base.js +0 -1
- package/dist/infrastructure/network/httpRouterError.types.d.ts +22 -2
- package/dist/infrastructure/network/httpRouterError.types.js +24 -4
- package/dist/infrastructure/network/httpServerError.error.d.ts +7 -1
- package/dist/infrastructure/network/httpServerError.error.js +8 -2
- package/dist/infrastructure/network/httpServerLifecycle.error.d.ts +0 -1
- package/dist/infrastructure/network/httpServerLifecycle.error.js +0 -1
- package/dist/infrastructure/network/httpServerLifecycleError.base.d.ts +0 -1
- package/dist/infrastructure/network/httpServerLifecycleError.base.js +0 -1
- package/dist/infrastructure/network/httpServerLifecycleError.types.d.ts +0 -1
- package/dist/infrastructure/network/httpServerLifecycleError.types.js +0 -1
- package/dist/infrastructure/network/httpStream.error.d.ts +0 -1
- package/dist/infrastructure/network/httpStream.error.js +0 -1
- package/dist/infrastructure/network/index.d.ts +0 -1
- package/dist/infrastructure/network/index.js +0 -1
- package/dist/infrastructure/network/network.error.d.ts +0 -1
- package/dist/infrastructure/network/network.error.js +0 -1
- package/dist/infrastructure/network/networkError.base.d.ts +0 -1
- package/dist/infrastructure/network/networkError.base.js +0 -1
- package/dist/infrastructure/network/networkError.factory.d.ts +0 -1
- package/dist/infrastructure/network/networkError.factory.js +0 -1
- package/dist/infrastructure/network/routePattern.error.d.ts +0 -1
- package/dist/infrastructure/network/routePattern.error.js +0 -1
- package/dist/infrastructure/network/timeout.error.d.ts +0 -1
- package/dist/infrastructure/network/timeout.error.js +0 -1
- package/dist/infrastructure/network/timeoutError.base.d.ts +0 -1
- package/dist/infrastructure/network/timeoutError.base.js +0 -1
- package/dist/infrastructure/network/timeoutError.factory.d.ts +0 -1
- package/dist/infrastructure/network/timeoutError.factory.js +0 -1
- package/dist/infrastructure/service/externalService.error.d.ts +0 -1
- package/dist/infrastructure/service/externalService.error.js +0 -1
- package/dist/infrastructure/service/externalServiceError.base.d.ts +9 -3
- package/dist/infrastructure/service/externalServiceError.base.js +20 -3
- package/dist/infrastructure/service/externalServiceError.factory.d.ts +0 -1
- package/dist/infrastructure/service/externalServiceError.factory.js +0 -1
- package/dist/infrastructure/service/index.d.ts +0 -1
- package/dist/infrastructure/service/index.js +0 -1
- package/dist/infrastructure/service/service.error.d.ts +0 -1
- package/dist/infrastructure/service/service.error.js +0 -1
- package/dist/infrastructure/service/serviceError.base.d.ts +0 -1
- package/dist/infrastructure/service/serviceError.base.js +0 -1
- package/dist/infrastructure/service/serviceError.factory.d.ts +0 -1
- package/dist/infrastructure/service/serviceError.factory.js +0 -1
- package/dist/infrastructure/storage/database.error.d.ts +0 -1
- package/dist/infrastructure/storage/database.error.js +0 -1
- package/dist/infrastructure/storage/databaseError.base.d.ts +0 -1
- package/dist/infrastructure/storage/databaseError.base.js +0 -1
- package/dist/infrastructure/storage/databaseError.factory.d.ts +0 -1
- package/dist/infrastructure/storage/databaseError.factory.js +0 -1
- package/dist/infrastructure/storage/index.d.ts +0 -1
- package/dist/infrastructure/storage/index.js +0 -1
- package/dist/infrastructure/storage/storage.error.d.ts +0 -1
- package/dist/infrastructure/storage/storage.error.js +0 -1
- package/dist/infrastructure/storage/storageError.base.d.ts +0 -1
- package/dist/infrastructure/storage/storageError.base.js +0 -1
- package/dist/infrastructure/storage/storageError.factory.d.ts +0 -1
- package/dist/infrastructure/storage/storageError.factory.js +0 -1
- package/dist/system/crypto.error.d.ts +0 -1
- package/dist/system/crypto.error.js +0 -1
- package/dist/system/cryptoError.base.d.ts +0 -1
- package/dist/system/cryptoError.base.js +0 -1
- package/dist/system/cryptoError.factory.d.ts +0 -1
- package/dist/system/cryptoError.factory.js +0 -1
- package/dist/system/index.d.ts +0 -1
- package/dist/system/index.js +0 -1
- package/dist/system/logging/index.d.ts +0 -1
- package/dist/system/logging/index.js +0 -1
- package/dist/system/logging/logging.error.d.ts +0 -1
- package/dist/system/logging/logging.error.js +0 -1
- package/dist/system/observability/index.d.ts +0 -1
- package/dist/system/observability/index.js +0 -1
- package/dist/system/observability/observabilityError.base.d.ts +0 -1
- package/dist/system/observability/observabilityError.base.js +0 -1
- package/dist/system/runtime.error.d.ts +0 -1
- package/dist/system/runtime.error.js +0 -1
- package/dist/system/runtimeError.base.d.ts +0 -1
- package/dist/system/runtimeError.base.js +0 -1
- package/dist/system/runtimeError.types.d.ts +0 -1
- package/dist/system/runtimeError.types.js +0 -1
- package/dist/system/system.error.d.ts +0 -1
- package/dist/system/system.error.js +0 -1
- package/dist/system/systemError.base.d.ts +0 -1
- package/dist/system/systemError.base.js +0 -1
- package/dist/system/systemError.factory.d.ts +0 -1
- package/dist/system/systemError.factory.js +0 -1
- package/dist/utils/errorHandler.core.d.ts +1 -1
- package/dist/utils/errorHandler.core.js +12 -12
- package/dist/utils/errorHandler.factory.d.ts +0 -1
- package/dist/utils/errorHandler.factory.js +0 -1
- package/dist/utils/errorHandler.types.d.ts +11 -4
- package/dist/utils/errorHandler.types.js +0 -1
- package/dist/utils/errorMapper.core.d.ts +0 -1
- package/dist/utils/errorMapper.core.js +0 -1
- package/dist/utils/errorMapper.mappers.d.ts +0 -1
- package/dist/utils/errorMapper.mappers.js +0 -1
- package/dist/utils/errorMapper.registry.d.ts +0 -1
- package/dist/utils/errorMapper.registry.js +0 -1
- package/dist/utils/errorMapper.types.d.ts +0 -1
- package/dist/utils/errorMapper.types.js +0 -1
- package/dist/utils/errorSerializer.core.d.ts +6 -4
- package/dist/utils/errorSerializer.core.js +17 -19
- package/dist/utils/errorSerializer.factory.d.ts +0 -1
- package/dist/utils/errorSerializer.factory.js +0 -1
- package/dist/utils/errorSerializer.public.d.ts +41 -0
- package/dist/utils/errorSerializer.public.js +54 -0
- package/dist/utils/errorSerializer.types.d.ts +19 -3
- package/dist/utils/errorSerializer.types.js +0 -1
- package/dist/utils/errorUtils.extraction.d.ts +0 -1
- package/dist/utils/errorUtils.extraction.js +0 -1
- package/dist/utils/errorUtils.helper.d.ts +0 -1
- package/dist/utils/errorUtils.helper.js +0 -1
- package/dist/utils/errorUtils.transform.d.ts +0 -1
- package/dist/utils/errorUtils.transform.js +0 -1
- package/dist/utils/errorUtils.typeCheck.d.ts +0 -1
- package/dist/utils/errorUtils.typeCheck.js +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/package.json +1 -1
|
@@ -46,6 +46,8 @@ export interface PublicErrorHandlerResult {
|
|
|
46
46
|
readonly correlationId?: string;
|
|
47
47
|
/** Allow-listed, redacted metadata (see `ErrorHandlerOptions.publicMetadataKeys`). */
|
|
48
48
|
readonly details?: Readonly<Record<string, unknown>>;
|
|
49
|
+
/** Issues of an exposable validation or schema error, values redacted. */
|
|
50
|
+
readonly issues?: readonly unknown[];
|
|
49
51
|
}
|
|
50
52
|
/** Callback used to report errors to an external logger or monitoring system. */
|
|
51
53
|
export type ErrorReporter = (error: BaseError, context?: ErrorHandlerContext) => void | Promise<void>;
|
|
@@ -68,12 +70,17 @@ export interface ErrorHandlerOptions {
|
|
|
68
70
|
*/
|
|
69
71
|
readonly includeStack?: boolean;
|
|
70
72
|
/**
|
|
71
|
-
* Metadata keys copied into `PublicErrorHandlerResult.details
|
|
72
|
-
* exposed errors
|
|
73
|
-
*
|
|
73
|
+
* Metadata keys copied into `PublicErrorHandlerResult.details`, for exposed
|
|
74
|
+
* and non-exposed errors alike. When omitted, no metadata is published
|
|
75
|
+
* unless `exposeMetadata` is set.
|
|
74
76
|
*/
|
|
75
77
|
readonly publicMetadataKeys?: readonly string[];
|
|
78
|
+
/**
|
|
79
|
+
* Copy the whole (redacted) metadata of errors with `expose: true` into
|
|
80
|
+
* `details`. Defaults to false; see `ErrorSerializerOptions.exposeMetadata`
|
|
81
|
+
* for why this is opt-in. Ignored when `publicMetadataKeys` is set.
|
|
82
|
+
*/
|
|
83
|
+
readonly exposeMetadata?: boolean;
|
|
76
84
|
/** Pattern used to detect sensitive metadata keys. */
|
|
77
85
|
readonly sensitiveKeyPattern?: RegExp;
|
|
78
86
|
}
|
|
79
|
-
//# sourceMappingURL=errorHandler.types.d.ts.map
|
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
export type { ErrorMapperContext, ErrorMapping, ErrorMapperPredicate, ErrorMapper, ErrorMappingRule, } from "./errorMapper.types.js";
|
|
5
5
|
export { ErrorMapperRegistry, createErrorMapperRegistry, } from "./errorMapper.registry.js";
|
|
6
6
|
export { mapNativeError, mapError, mapErrorType, createErrorMappingRule, applyErrorMapping, type ErrorConstructor, } from "./errorMapper.mappers.js";
|
|
7
|
-
//# sourceMappingURL=errorMapper.core.d.ts.map
|
|
@@ -33,4 +33,3 @@ export declare function mapErrorType<T extends Error>(name: string, errorType: E
|
|
|
33
33
|
export declare function createErrorMappingRule(name: string, predicate: ErrorMapperPredicate, mapper: ErrorMapper | ErrorMapping, priority?: number): ErrorMappingRule;
|
|
34
34
|
/** Builds a BaseError from a declarative `ErrorMapping`. */
|
|
35
35
|
export declare function applyErrorMapping(error: unknown, mapping: ErrorMapping, context?: ErrorMapperContext): BaseError;
|
|
36
|
-
//# sourceMappingURL=errorMapper.mappers.d.ts.map
|
|
@@ -14,6 +14,7 @@ export declare class ErrorSerializer {
|
|
|
14
14
|
private readonly redactSensitiveData;
|
|
15
15
|
private readonly sensitiveKeyPattern;
|
|
16
16
|
private readonly publicMetadataKeys;
|
|
17
|
+
private readonly exposeMetadata;
|
|
17
18
|
constructor(options?: ErrorSerializerOptions);
|
|
18
19
|
/**
|
|
19
20
|
* Serializes an error for internal logging or monitoring.
|
|
@@ -26,9 +27,11 @@ export declare class ErrorSerializer {
|
|
|
26
27
|
/**
|
|
27
28
|
* Serializes an error for an untrusted API client.
|
|
28
29
|
*
|
|
29
|
-
* Never includes a stack or cause. Metadata is
|
|
30
|
-
*
|
|
31
|
-
* is
|
|
30
|
+
* Never includes a stack or cause. Metadata is included only for keys
|
|
31
|
+
* allow-listed by `publicMetadataKeys`, or, with `exposeMetadata`, for
|
|
32
|
+
* errors with `expose: true`; either way it is redacted. The `issues` of an
|
|
33
|
+
* exposable validation or schema error are included with submitted values
|
|
34
|
+
* replaced by type descriptions.
|
|
32
35
|
*/
|
|
33
36
|
serializePublic(error: BaseError): PublicErrorResponse;
|
|
34
37
|
/** Serializes an unknown thrown value. */
|
|
@@ -51,4 +54,3 @@ export declare class ErrorSerializer {
|
|
|
51
54
|
/** Removes commonly sensitive metadata fields (recursively). */
|
|
52
55
|
private redactMetadata;
|
|
53
56
|
}
|
|
54
|
-
//# sourceMappingURL=errorSerializer.core.d.ts.map
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* Converts errors into safe, predictable serialized structures.
|
|
3
3
|
*/
|
|
4
4
|
import { BaseError } from "../base/core/baseError.core.js";
|
|
5
|
-
import {
|
|
5
|
+
import { redactErrorMetadata } from "../base/core/errorMetadata.core.js";
|
|
6
6
|
import { isGenuineSerializedBaseError, MAX_CAUSE_DEPTH, toJSONWithFrame, } from "../base/core/baseError.serialize.js";
|
|
7
7
|
import { redactCauseFields, redactCauseValue, } from "../base/core/errorCause.redact.js";
|
|
8
8
|
import { normalizeUnknownError } from "./errorSerializer.factory.js";
|
|
9
|
+
import { selectPublicIssues, selectPublicMetadata, } from "./errorSerializer.public.js";
|
|
9
10
|
export { createErrorSerializer, serializeError, serializePublicError, normalizeUnknownError, } from "./errorSerializer.factory.js";
|
|
10
11
|
/** Converts errors into safe, predictable serialized structures. */
|
|
11
12
|
export class ErrorSerializer {
|
|
@@ -16,6 +17,7 @@ export class ErrorSerializer {
|
|
|
16
17
|
redactSensitiveData;
|
|
17
18
|
sensitiveKeyPattern;
|
|
18
19
|
publicMetadataKeys;
|
|
20
|
+
exposeMetadata;
|
|
19
21
|
constructor(options = {}) {
|
|
20
22
|
this.includeStack = options.includeStack ?? false;
|
|
21
23
|
this.includeCause = options.includeCause ?? false;
|
|
@@ -24,6 +26,7 @@ export class ErrorSerializer {
|
|
|
24
26
|
this.redactSensitiveData = options.redactSensitiveData ?? true;
|
|
25
27
|
this.sensitiveKeyPattern = options.sensitiveKeyPattern;
|
|
26
28
|
this.publicMetadataKeys = options.publicMetadataKeys;
|
|
29
|
+
this.exposeMetadata = options.exposeMetadata ?? false;
|
|
27
30
|
}
|
|
28
31
|
/**
|
|
29
32
|
* Serializes an error for internal logging or monitoring.
|
|
@@ -39,18 +42,22 @@ export class ErrorSerializer {
|
|
|
39
42
|
/**
|
|
40
43
|
* Serializes an error for an untrusted API client.
|
|
41
44
|
*
|
|
42
|
-
* Never includes a stack or cause. Metadata is
|
|
43
|
-
*
|
|
44
|
-
* is
|
|
45
|
+
* Never includes a stack or cause. Metadata is included only for keys
|
|
46
|
+
* allow-listed by `publicMetadataKeys`, or, with `exposeMetadata`, for
|
|
47
|
+
* errors with `expose: true`; either way it is redacted. The `issues` of an
|
|
48
|
+
* exposable validation or schema error are included with submitted values
|
|
49
|
+
* replaced by type descriptions.
|
|
45
50
|
*/
|
|
46
51
|
serializePublic(error) {
|
|
47
52
|
const metadata = this.publicMetadata(error);
|
|
53
|
+
const issues = selectPublicIssues(error);
|
|
48
54
|
return {
|
|
49
55
|
code: error.code,
|
|
50
56
|
message: error.expose ? error.message : this.safeMessage,
|
|
51
57
|
category: error.category,
|
|
52
58
|
statusCode: error.statusCode,
|
|
53
59
|
...(metadata !== undefined ? { metadata } : {}),
|
|
60
|
+
...(issues !== undefined ? { issues } : {}),
|
|
54
61
|
};
|
|
55
62
|
}
|
|
56
63
|
/** Serializes an unknown thrown value. */
|
|
@@ -116,20 +123,12 @@ export class ErrorSerializer {
|
|
|
116
123
|
publicMetadata(error) {
|
|
117
124
|
if (!this.includeMetadata)
|
|
118
125
|
return undefined;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return undefined;
|
|
128
|
-
}
|
|
129
|
-
const redacted = this.redactSensitiveData
|
|
130
|
-
? this.redactMetadata(metadata)
|
|
131
|
-
: metadata;
|
|
132
|
-
return Object.keys(redacted).length > 0 ? redacted : undefined;
|
|
126
|
+
return selectPublicMetadata(error, {
|
|
127
|
+
publicMetadataKeys: this.publicMetadataKeys,
|
|
128
|
+
exposeMetadata: this.exposeMetadata,
|
|
129
|
+
redactSensitiveData: this.redactSensitiveData,
|
|
130
|
+
sensitiveKeyPattern: this.sensitiveKeyPattern,
|
|
131
|
+
});
|
|
133
132
|
}
|
|
134
133
|
/** Removes commonly sensitive metadata fields (recursively). */
|
|
135
134
|
redactMetadata(metadata) {
|
|
@@ -138,4 +137,3 @@ export class ErrorSerializer {
|
|
|
138
137
|
});
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
|
-
//# sourceMappingURL=errorSerializer.core.js.map
|
|
@@ -13,4 +13,3 @@ export declare function serializeError(error: BaseError, options?: ErrorSerializ
|
|
|
13
13
|
export declare function serializePublicError(error: BaseError, options?: ErrorSerializerOptions): PublicErrorResponse;
|
|
14
14
|
/** Converts an unknown thrown value into a BaseError. */
|
|
15
15
|
export declare function normalizeUnknownError(value: unknown): BaseError;
|
|
16
|
-
//# sourceMappingURL=errorSerializer.factory.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decides what an untrusted client may see of an error's metadata and
|
|
3
|
+
* issues. Shared by `ErrorSerializer.serializePublic` and
|
|
4
|
+
* `ErrorHandler.toPublicResult` so the two never disagree.
|
|
5
|
+
*/
|
|
6
|
+
import type { BaseError } from "../base/core/baseError.core.js";
|
|
7
|
+
import type { ErrorMetadata } from "../base/core/errorMetadata.type.js";
|
|
8
|
+
/** The options that govern public metadata selection. */
|
|
9
|
+
export interface PublicMetadataPolicy {
|
|
10
|
+
/** Keys copied into the public output for every error. */
|
|
11
|
+
readonly publicMetadataKeys?: readonly string[];
|
|
12
|
+
/** Copy the whole (redacted) metadata of errors with `expose: true`. */
|
|
13
|
+
readonly exposeMetadata?: boolean;
|
|
14
|
+
/** Redact sensitive keys. Defaults to true. */
|
|
15
|
+
readonly redactSensitiveData?: boolean;
|
|
16
|
+
/** Pattern used to detect sensitive metadata keys. */
|
|
17
|
+
readonly sensitiveKeyPattern?: RegExp;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Metadata allowed in a public response, or `undefined` when there is none.
|
|
21
|
+
*
|
|
22
|
+
* `publicMetadataKeys` allow-lists specific keys for exposed and non-exposed
|
|
23
|
+
* errors alike. Without it, metadata is included only when `exposeMetadata`
|
|
24
|
+
* is set and the error is exposable. `expose: true` on its own reveals no
|
|
25
|
+
* metadata: it says the *message* is safe for a client, and errors routinely
|
|
26
|
+
* carry decline codes, upstream ids and internal state in the metadata of an
|
|
27
|
+
* exposed error. Until round 12 that metadata was published whenever
|
|
28
|
+
* `expose` was true.
|
|
29
|
+
*/
|
|
30
|
+
export declare function selectPublicMetadata(error: BaseError, policy: PublicMetadataPolicy): Readonly<ErrorMetadata> | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The issue list of an exposable validation or schema error, or `undefined`.
|
|
33
|
+
*
|
|
34
|
+
* `ValidationError.issues` and `SchemaError.issues` are the part of a 400 a
|
|
35
|
+
* client actually needs, and the public serializer used to drop them. Any
|
|
36
|
+
* exposable error carrying an `issues` array qualifies, so errors from a
|
|
37
|
+
* second copy of this package are covered too. Submitted values inside the
|
|
38
|
+
* issues (`value`, `received`, `input`, `actual`) are replaced by a type
|
|
39
|
+
* description, exactly as the errors' own `toJSON()` does.
|
|
40
|
+
*/
|
|
41
|
+
export declare function selectPublicIssues(error: BaseError): readonly unknown[] | undefined;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decides what an untrusted client may see of an error's metadata and
|
|
3
|
+
* issues. Shared by `ErrorSerializer.serializePublic` and
|
|
4
|
+
* `ErrorHandler.toPublicResult` so the two never disagree.
|
|
5
|
+
*/
|
|
6
|
+
import { pickErrorMetadata, redactErrorMetadata, } from "../base/core/errorMetadata.core.js";
|
|
7
|
+
import { redactIssueValues, toJsonSafeIssues, } from "../domain/shared/domainError.helpers.js";
|
|
8
|
+
/**
|
|
9
|
+
* Metadata allowed in a public response, or `undefined` when there is none.
|
|
10
|
+
*
|
|
11
|
+
* `publicMetadataKeys` allow-lists specific keys for exposed and non-exposed
|
|
12
|
+
* errors alike. Without it, metadata is included only when `exposeMetadata`
|
|
13
|
+
* is set and the error is exposable. `expose: true` on its own reveals no
|
|
14
|
+
* metadata: it says the *message* is safe for a client, and errors routinely
|
|
15
|
+
* carry decline codes, upstream ids and internal state in the metadata of an
|
|
16
|
+
* exposed error. Until round 12 that metadata was published whenever
|
|
17
|
+
* `expose` was true.
|
|
18
|
+
*/
|
|
19
|
+
export function selectPublicMetadata(error, policy) {
|
|
20
|
+
let metadata;
|
|
21
|
+
if (policy.publicMetadataKeys !== undefined) {
|
|
22
|
+
metadata = pickErrorMetadata(error.metadata, policy.publicMetadataKeys);
|
|
23
|
+
}
|
|
24
|
+
else if (policy.exposeMetadata === true && error.expose) {
|
|
25
|
+
metadata = error.metadata;
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
const visible = policy.redactSensitiveData === false
|
|
31
|
+
? metadata
|
|
32
|
+
: redactErrorMetadata(metadata, {
|
|
33
|
+
sensitiveKeyPattern: policy.sensitiveKeyPattern,
|
|
34
|
+
});
|
|
35
|
+
return Object.keys(visible).length > 0 ? visible : undefined;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The issue list of an exposable validation or schema error, or `undefined`.
|
|
39
|
+
*
|
|
40
|
+
* `ValidationError.issues` and `SchemaError.issues` are the part of a 400 a
|
|
41
|
+
* client actually needs, and the public serializer used to drop them. Any
|
|
42
|
+
* exposable error carrying an `issues` array qualifies, so errors from a
|
|
43
|
+
* second copy of this package are covered too. Submitted values inside the
|
|
44
|
+
* issues (`value`, `received`, `input`, `actual`) are replaced by a type
|
|
45
|
+
* description, exactly as the errors' own `toJSON()` does.
|
|
46
|
+
*/
|
|
47
|
+
export function selectPublicIssues(error) {
|
|
48
|
+
if (!error.expose)
|
|
49
|
+
return undefined;
|
|
50
|
+
const issues = error.issues;
|
|
51
|
+
if (!Array.isArray(issues) || issues.length === 0)
|
|
52
|
+
return undefined;
|
|
53
|
+
return redactIssueValues(toJsonSafeIssues(issues));
|
|
54
|
+
}
|
|
@@ -21,10 +21,21 @@ export interface ErrorSerializerOptions {
|
|
|
21
21
|
* Metadata keys allowed in public output.
|
|
22
22
|
*
|
|
23
23
|
* When provided, only these keys are copied into `PublicErrorResponse.metadata`
|
|
24
|
-
* (for exposed and non-exposed errors alike).
|
|
25
|
-
*
|
|
24
|
+
* (for exposed and non-exposed errors alike). This is the recommended way
|
|
25
|
+
* to publish metadata: name the keys a client may see.
|
|
26
26
|
*/
|
|
27
27
|
readonly publicMetadataKeys?: readonly string[];
|
|
28
|
+
/**
|
|
29
|
+
* Copy the whole (redacted) metadata of errors with `expose: true` into
|
|
30
|
+
* `PublicErrorResponse.metadata`. Defaults to false.
|
|
31
|
+
*
|
|
32
|
+
* This was the behaviour before round 12 and is a data-exposure risk:
|
|
33
|
+
* `expose` says the message is safe for a client, not that everything put
|
|
34
|
+
* in `metadata` (decline codes, upstream ids, internal state) is. Prefer
|
|
35
|
+
* `publicMetadataKeys`; enable this only for errors whose metadata is
|
|
36
|
+
* written for clients. Ignored when `publicMetadataKeys` is set.
|
|
37
|
+
*/
|
|
38
|
+
readonly exposeMetadata?: boolean;
|
|
28
39
|
}
|
|
29
40
|
/** Public error representation suitable for an API response. */
|
|
30
41
|
export interface PublicErrorResponse {
|
|
@@ -33,8 +44,13 @@ export interface PublicErrorResponse {
|
|
|
33
44
|
readonly category: ErrorCategory;
|
|
34
45
|
readonly statusCode: number;
|
|
35
46
|
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
47
|
+
/**
|
|
48
|
+
* Validation or schema issues of an exposable error (`ValidationError`,
|
|
49
|
+
* `SchemaError` and any error carrying an `issues` array), with submitted
|
|
50
|
+
* values replaced by type descriptions. Absent for non-exposed errors.
|
|
51
|
+
*/
|
|
52
|
+
readonly issues?: readonly unknown[];
|
|
36
53
|
}
|
|
37
54
|
/** Internal serialized error representation. */
|
|
38
55
|
export interface InternalErrorResponse extends SerializedBaseError {
|
|
39
56
|
}
|
|
40
|
-
//# sourceMappingURL=errorSerializer.types.d.ts.map
|
|
@@ -14,4 +14,3 @@ export declare function getRootCause(value: unknown): unknown;
|
|
|
14
14
|
export declare function getRootBaseError(value: unknown): BaseError | undefined;
|
|
15
15
|
/** Extracts a plain object of useful error diagnostics. */
|
|
16
16
|
export declare function getErrorDiagnostics(value: unknown): Record<string, unknown>;
|
|
17
|
-
//# sourceMappingURL=errorUtils.extraction.d.ts.map
|
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
export { isErrorLike, isOperationalError, isExposableError, isServerError, isClientError, hasErrorCategory, hasErrorSeverity, } from "./errorUtils.typeCheck.js";
|
|
5
5
|
export { getErrorMessage, getErrorName, getErrorStack, getRootCause, getRootBaseError, getErrorDiagnostics, } from "./errorUtils.extraction.js";
|
|
6
6
|
export { toError, withErrorContext, tryCatch, tryCatchAsync, normalizeToBaseError, } from "./errorUtils.transform.js";
|
|
7
|
-
//# sourceMappingURL=errorUtils.helper.d.ts.map
|
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
export { isErrorLike, isOperationalError, isExposableError, isServerError, isClientError, hasErrorCategory, hasErrorSeverity, } from "./errorUtils.typeCheck.js";
|
|
5
5
|
export { getErrorMessage, getErrorName, getErrorStack, getRootCause, getRootBaseError, getErrorDiagnostics, } from "./errorUtils.extraction.js";
|
|
6
6
|
export { toError, withErrorContext, tryCatch, tryCatchAsync, normalizeToBaseError, } from "./errorUtils.transform.js";
|
|
7
|
-
//# sourceMappingURL=errorUtils.helper.js.map
|
|
@@ -24,4 +24,3 @@ export declare function tryCatchAsync<T>(operation: () => T | Promise<T>): Promi
|
|
|
24
24
|
}>;
|
|
25
25
|
/** Converts an unknown thrown value into a BaseError. */
|
|
26
26
|
export declare function normalizeToBaseError(value: unknown): BaseError;
|
|
27
|
-
//# sourceMappingURL=errorUtils.transform.d.ts.map
|
|
@@ -21,4 +21,3 @@ export declare function isClientError(value: unknown): boolean;
|
|
|
21
21
|
export declare function hasErrorCategory(value: unknown, category: ErrorCategory): boolean;
|
|
22
22
|
/** Returns whether an error has a specific severity. */
|
|
23
23
|
export declare function hasErrorSeverity(value: unknown, severity: ErrorSeverity): boolean;
|
|
24
|
-
//# sourceMappingURL=errorUtils.typeCheck.d.ts.map
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED