@donkeylabs/adapter-sveltekit 0.5.0 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donkeylabs/adapter-sveltekit",
3
- "version": "0.5.0",
3
+ "version": "0.6.4",
4
4
  "type": "module",
5
5
  "description": "SvelteKit adapter for @donkeylabs/server - seamless SSR/browser API integration",
6
6
  "main": "./src/index.ts",
@@ -51,7 +51,7 @@
51
51
  ],
52
52
  "repository": {
53
53
  "type": "git",
54
- "url": "https://github.com/donkeylabs/server",
54
+ "url": "https://github.com/donkeylabs-io/donkeylabs",
55
55
  "directory": "packages/adapter-sveltekit"
56
56
  },
57
57
  "license": "MIT"
@@ -87,6 +87,23 @@ export class UnifiedApiClientBase {
87
87
  return response.json();
88
88
  }
89
89
 
90
+ /**
91
+ * Make a raw request (for non-JSON endpoints like streaming).
92
+ * Returns the raw Response object without processing.
93
+ */
94
+ protected async rawRequest(
95
+ route: string,
96
+ init?: RequestInit
97
+ ): Promise<Response> {
98
+ const url = `${this.baseUrl}/${route}`;
99
+ const fetchFn = this.customFetch ?? fetch;
100
+
101
+ return fetchFn(url, {
102
+ method: "POST",
103
+ ...init,
104
+ });
105
+ }
106
+
90
107
  /**
91
108
  * SSE (Server-Sent Events) subscription.
92
109
  * Only works in the browser.