@supabase/functions-js 2.107.0-beta.0 → 2.107.0-beta.6

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.
@@ -74,7 +74,7 @@ export declare class FunctionsClient {
74
74
  * ```
75
75
  *
76
76
  * @exampleDescription Error handling
77
- * A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function.
77
+ * A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function. Log the full error object so fields like `name`, `context`, and any structured body aren't hidden.
78
78
  *
79
79
  * @example Error handling
80
80
  * ```js
@@ -89,11 +89,11 @@ export declare class FunctionsClient {
89
89
  *
90
90
  * if (error instanceof FunctionsHttpError) {
91
91
  * const errorMessage = await error.context.json()
92
- * console.log('Function returned an error', errorMessage)
92
+ * console.error('Function returned an error', errorMessage)
93
93
  * } else if (error instanceof FunctionsRelayError) {
94
- * console.log('Relay error:', error.message)
94
+ * console.error('Relay error:', error)
95
95
  * } else if (error instanceof FunctionsFetchError) {
96
- * console.log('Fetch error:', error.message)
96
+ * console.error('Fetch error:', error)
97
97
  * }
98
98
  * ```
99
99
  *
@@ -78,7 +78,7 @@ class FunctionsClient {
78
78
  * ```
79
79
  *
80
80
  * @exampleDescription Error handling
81
- * A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function.
81
+ * A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function. Log the full error object so fields like `name`, `context`, and any structured body aren't hidden.
82
82
  *
83
83
  * @example Error handling
84
84
  * ```js
@@ -93,11 +93,11 @@ class FunctionsClient {
93
93
  *
94
94
  * if (error instanceof FunctionsHttpError) {
95
95
  * const errorMessage = await error.context.json()
96
- * console.log('Function returned an error', errorMessage)
96
+ * console.error('Function returned an error', errorMessage)
97
97
  * } else if (error instanceof FunctionsRelayError) {
98
- * console.log('Relay error:', error.message)
98
+ * console.error('Relay error:', error)
99
99
  * } else if (error instanceof FunctionsFetchError) {
100
- * console.log('Fetch error:', error.message)
100
+ * console.error('Fetch error:', error)
101
101
  * }
102
102
  * ```
103
103
  *
@@ -1,2 +1,2 @@
1
- export declare const version = "2.107.0-beta.0";
1
+ export declare const version = "2.107.0-beta.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -7,5 +7,5 @@ exports.version = void 0;
7
7
  // - Debugging and support (identifying which version is running)
8
8
  // - Telemetry and logging (version reporting in errors/analytics)
9
9
  // - Ensuring build artifacts match the published package version
10
- exports.version = '2.107.0-beta.0';
10
+ exports.version = '2.107.0-beta.6';
11
11
  //# sourceMappingURL=version.js.map
@@ -74,7 +74,7 @@ export declare class FunctionsClient {
74
74
  * ```
75
75
  *
76
76
  * @exampleDescription Error handling
77
- * A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function.
77
+ * A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function. Log the full error object so fields like `name`, `context`, and any structured body aren't hidden.
78
78
  *
79
79
  * @example Error handling
80
80
  * ```js
@@ -89,11 +89,11 @@ export declare class FunctionsClient {
89
89
  *
90
90
  * if (error instanceof FunctionsHttpError) {
91
91
  * const errorMessage = await error.context.json()
92
- * console.log('Function returned an error', errorMessage)
92
+ * console.error('Function returned an error', errorMessage)
93
93
  * } else if (error instanceof FunctionsRelayError) {
94
- * console.log('Relay error:', error.message)
94
+ * console.error('Relay error:', error)
95
95
  * } else if (error instanceof FunctionsFetchError) {
96
- * console.log('Fetch error:', error.message)
96
+ * console.error('Fetch error:', error)
97
97
  * }
98
98
  * ```
99
99
  *
@@ -75,7 +75,7 @@ export class FunctionsClient {
75
75
  * ```
76
76
  *
77
77
  * @exampleDescription Error handling
78
- * A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function.
78
+ * A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function. Log the full error object so fields like `name`, `context`, and any structured body aren't hidden.
79
79
  *
80
80
  * @example Error handling
81
81
  * ```js
@@ -90,11 +90,11 @@ export class FunctionsClient {
90
90
  *
91
91
  * if (error instanceof FunctionsHttpError) {
92
92
  * const errorMessage = await error.context.json()
93
- * console.log('Function returned an error', errorMessage)
93
+ * console.error('Function returned an error', errorMessage)
94
94
  * } else if (error instanceof FunctionsRelayError) {
95
- * console.log('Relay error:', error.message)
95
+ * console.error('Relay error:', error)
96
96
  * } else if (error instanceof FunctionsFetchError) {
97
- * console.log('Fetch error:', error.message)
97
+ * console.error('Fetch error:', error)
98
98
  * }
99
99
  * ```
100
100
  *
@@ -1,2 +1,2 @@
1
- export declare const version = "2.107.0-beta.0";
1
+ export declare const version = "2.107.0-beta.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -4,5 +4,5 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.107.0-beta.0';
7
+ export const version = '2.107.0-beta.6';
8
8
  //# sourceMappingURL=version.js.map