@supabase/functions-js 2.107.0-canary.1 → 2.107.0-canary.2
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/main/FunctionsClient.d.ts +4 -4
- package/dist/main/FunctionsClient.js +4 -4
- package/dist/main/version.d.ts +1 -1
- package/dist/main/version.js +1 -1
- package/dist/module/FunctionsClient.d.ts +4 -4
- package/dist/module/FunctionsClient.js +4 -4
- package/dist/module/version.d.ts +1 -1
- package/dist/module/version.js +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/FunctionsClient.ts +4 -4
- package/src/version.ts +1 -1
package/package.json
CHANGED
package/src/FunctionsClient.ts
CHANGED
|
@@ -101,7 +101,7 @@ export class FunctionsClient {
|
|
|
101
101
|
* ```
|
|
102
102
|
*
|
|
103
103
|
* @exampleDescription Error handling
|
|
104
|
-
* 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.
|
|
104
|
+
* 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.
|
|
105
105
|
*
|
|
106
106
|
* @example Error handling
|
|
107
107
|
* ```js
|
|
@@ -116,11 +116,11 @@ export class FunctionsClient {
|
|
|
116
116
|
*
|
|
117
117
|
* if (error instanceof FunctionsHttpError) {
|
|
118
118
|
* const errorMessage = await error.context.json()
|
|
119
|
-
* console.
|
|
119
|
+
* console.error('Function returned an error', errorMessage)
|
|
120
120
|
* } else if (error instanceof FunctionsRelayError) {
|
|
121
|
-
* console.
|
|
121
|
+
* console.error('Relay error:', error)
|
|
122
122
|
* } else if (error instanceof FunctionsFetchError) {
|
|
123
|
-
* console.
|
|
123
|
+
* console.error('Fetch error:', error)
|
|
124
124
|
* }
|
|
125
125
|
* ```
|
|
126
126
|
*
|
package/src/version.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
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-canary.
|
|
7
|
+
export const version = '2.107.0-canary.2'
|