@supabase/functions-js 2.4.2 → 2.4.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.
@@ -1,2 +1,2 @@
1
- export declare const version = "2.4.2";
1
+ export declare const version = "2.4.4";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '2.4.2';
4
+ exports.version = '2.4.4';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const version = "2.4.2";
1
+ export declare const version = "2.4.4";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,2 +1,2 @@
1
- export const version = '2.4.2';
1
+ export const version = '2.4.4';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/functions-js",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "description": "JS Client library to interact with Supabase Functions.",
5
5
  "main": "dist/main/index.js",
6
6
  "module": "dist/module/index.js",
@@ -1,5 +1,3 @@
1
- import OpenAI from 'openai'
2
-
3
1
  declare namespace Supabase {
4
2
  export interface ModelOptions {
5
3
  /**
@@ -39,7 +37,9 @@ declare namespace Supabase {
39
37
  * Execute the given prompt in model session
40
38
  */
41
39
  run(
42
- prompt: string | Omit<OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
40
+ prompt:
41
+ | string
42
+ | Omit<import('openai').OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
43
43
  modelOptions?: ModelOptions
44
44
  ): unknown
45
45
  }
@@ -56,3 +56,7 @@ declare namespace Supabase {
56
56
  */
57
57
  export const ai: Ai
58
58
  }
59
+
60
+ declare namespace EdgeRuntime {
61
+ export function waitUntil<T>(promise: Promise<T>): Promise<T>
62
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.4.2'
1
+ export const version = '2.4.4'