@resonatehq/supabase 0.1.3 → 0.1.5

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/dist/index.d.ts CHANGED
@@ -17,4 +17,5 @@ export declare class Resonate {
17
17
  }): void;
18
18
  setDependency(name: string, obj: any): void;
19
19
  handler(req: Request): Promise<Response>;
20
+ httpHandler(): Deno.HttpServer;
20
21
  }
package/dist/index.js CHANGED
@@ -113,6 +113,11 @@ class Resonate {
113
113
  }), { status: 500 });
114
114
  }
115
115
  }
116
+ httpHandler() {
117
+ return Deno.serve(async (req) => {
118
+ return await this.handler(req);
119
+ });
120
+ }
116
121
  }
117
122
  exports.Resonate = Resonate;
118
123
  function buildForwardedURL(req) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resonatehq/supabase",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Resonate FaaS handler for Supabase Edge Functions (TypeScript)",
5
5
  "repository": {
6
6
  "url": "https://github.com/resonatehq/resonate-faas-supabase-ts"
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@biomejs/biome": "2.3.6",
25
- "@types/bun": "latest",
25
+ "@types/deno": "^2.5.0",
26
26
  "open": "^10.2.0"
27
27
  },
28
28
  "peerDependencies": {
package/src/index.ts CHANGED
@@ -199,6 +199,12 @@ export class Resonate {
199
199
  );
200
200
  }
201
201
  }
202
+
203
+ public httpHandler(): Deno.HttpServer {
204
+ return Deno.serve(async (req: Request) => {
205
+ return await this.handler(req);
206
+ });
207
+ }
202
208
  }
203
209
 
204
210
  function buildForwardedURL(req: Request) {
package/tsconfig.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "module": "commonjs",
5
- "lib": ["ES2020"],
6
- "declaration": true,
7
- "outDir": "./dist",
8
- "rootDir": "./src",
9
- "strict": true,
10
- "esModuleInterop": true,
11
- "skipLibCheck": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "resolveJsonModule": true
14
- },
15
- "include": ["src/**/*"],
16
- "exclude": ["node_modules", "dist"]
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "commonjs",
5
+ "lib": ["ES2020", "DOM"],
6
+ "declaration": true,
7
+ "outDir": "./dist",
8
+ "rootDir": "./src",
9
+ "strict": true,
10
+ "esModuleInterop": true,
11
+ "skipLibCheck": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "resolveJsonModule": true
14
+ },
15
+ "include": ["src/**/*"],
16
+ "exclude": ["node_modules", "dist"]
17
17
  }