@noverax/courier-sveltekit 0.8.0 → 0.9.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/lib/handle.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as svelteKitIncomingRequest } from "./request-context-BW9-Huf7.js";
1
+ import { t as svelteKitIncomingRequest } from "./request-context-DpXqKKl3.js";
2
2
  import { withIncomingRequest } from "@noverax/courier/node";
3
3
  // src/handle.ts
4
4
  /**
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as svelteKitRequestContext, r as svelteKitClientAddress, t as svelteKitIncomingRequest } from "./request-context-BW9-Huf7.js";
1
+ import { n as svelteKitRequestContext, r as svelteKitClientAddress, t as svelteKitIncomingRequest } from "./request-context-DpXqKKl3.js";
2
2
  import { announceWhenRegistered } from "@noverax/courier/announce";
3
3
  import { rememberPeerAddress, serverOriginOf } from "@noverax/courier/internal";
4
4
  import { createHandler, handleWhileConnected } from "@noverax/courier/server";
@@ -1,4 +1,4 @@
1
- import { cookieHeaderAfter, forwardedChain } from "@noverax/courier/internal";
1
+ import { cookieHeaderAfter, forwardedChain, isError } from "@noverax/courier/internal";
2
2
  import { createLogger } from "@noverax/courier/server";
3
3
  // src/client-address.ts
4
4
  const log$1 = createLogger("SvelteKit");
@@ -111,7 +111,7 @@ function setCookieIn(event, { cookie }) {
111
111
  event.cookies.set(cookie.name, cookie.value, optionsOf(cookie));
112
112
  return true;
113
113
  } catch (error) {
114
- if (error instanceof Error && error.message.includes("after the response has been generated")) return "the response had already been generated";
114
+ if (isError(error) && error.message.includes("after the response has been generated")) return "the response had already been generated";
115
115
  throw error;
116
116
  }
117
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noverax/courier-sveltekit",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "SvelteKit adapter for Courier: an endpoint that proxies typed calls to any backend, with the user's session in load functions and form actions",
5
5
  "keywords": [
6
6
  "courier",
@@ -80,8 +80,8 @@
80
80
  "access": "public"
81
81
  },
82
82
  "peerDependencies": {
83
- "@noverax/courier": "^0.8.0",
84
- "@noverax/courier-build": "^0.8.0",
83
+ "@noverax/courier": "^0.9.1",
84
+ "@noverax/courier-build": "^0.9.1",
85
85
  "vite": ">=5.0.0"
86
86
  },
87
87
  "peerDependenciesMeta": {