From 1f88a065e794518204484c6370ffb34ac22c3a63 Mon Sep 17 00:00:00 2001 From: semcc Date: Tue, 26 Mar 2024 19:30:24 -0700 Subject: [PATCH 1/2] fix: expose NornirRouteNotFoundError class --- packages/rest/src/runtime/index.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rest/src/runtime/index.mts b/packages/rest/src/runtime/index.mts index 01ebab2..2e529f2 100644 --- a/packages/rest/src/runtime/index.mts +++ b/packages/rest/src/runtime/index.mts @@ -17,7 +17,7 @@ export { UnparsedHttpEvent, SerializedHttpResponse } from './http-event.mjs'; export {RouteHolder, NornirRestRequestValidationError} from './route-holder.mjs' -export {NornirRestRequestError, NornirRestError, httpErrorHandler, mapError, mapErrorClass} from './error.mjs' +export {NornirRestRequestError, NornirRestError, httpErrorHandler, mapError, mapErrorClass,NornirRouteNotFoundError} from './error.mjs' export {ApiGatewayProxyV2, startLocalServer} from "./converters.mjs" export {httpEventParser, HttpBodyParser, HttpBodyParserMap, HttpQueryStringParser, NornirRestParseError} from "./parse.mjs" export {httpResponseSerializer, HttpBodySerializer, HttpBodySerializerMap} from "./serialize.mjs" From 620782ea55a747fb4d056df9420a9e061a3ec93f Mon Sep 17 00:00:00 2001 From: semcc Date: Tue, 26 Mar 2024 19:31:20 -0700 Subject: [PATCH 2/2] docs(changeset): Expose the NornirRouteNotFoundError class --- .changeset/seven-panthers-remain.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/seven-panthers-remain.md diff --git a/.changeset/seven-panthers-remain.md b/.changeset/seven-panthers-remain.md new file mode 100644 index 0000000..e91acf3 --- /dev/null +++ b/.changeset/seven-panthers-remain.md @@ -0,0 +1,5 @@ +--- +"@nornir/rest": patch +--- + +Expose the NornirRouteNotFoundError class