@supabase/functions-js 1.2.3 → 1.2.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.
@@ -50,7 +50,7 @@ class FunctionsClient {
50
50
  if (!responseType || responseType === 'json') {
51
51
  data = yield response.json();
52
52
  }
53
- else if (responseType === 'arraybuffer') {
53
+ else if (responseType === 'arrayBuffer') {
54
54
  data = yield response.arrayBuffer();
55
55
  }
56
56
  else if (responseType === 'blob') {
@@ -3,7 +3,7 @@ export declare type Fetch = typeof crossFetch;
3
3
  export declare enum ResponseType {
4
4
  json = 0,
5
5
  text = 1,
6
- arraybuffer = 2,
6
+ arrayBuffer = 2,
7
7
  blob = 3
8
8
  }
9
9
  export declare type FunctionInvokeOptions = {
@@ -5,7 +5,7 @@ var ResponseType;
5
5
  (function (ResponseType) {
6
6
  ResponseType[ResponseType["json"] = 0] = "json";
7
7
  ResponseType[ResponseType["text"] = 1] = "text";
8
- ResponseType[ResponseType["arraybuffer"] = 2] = "arraybuffer";
8
+ ResponseType[ResponseType["arrayBuffer"] = 2] = "arrayBuffer";
9
9
  ResponseType[ResponseType["blob"] = 3] = "blob";
10
10
  })(ResponseType = exports.ResponseType || (exports.ResponseType = {}));
11
11
  //# sourceMappingURL=types.js.map
@@ -47,7 +47,7 @@ export class FunctionsClient {
47
47
  if (!responseType || responseType === 'json') {
48
48
  data = yield response.json();
49
49
  }
50
- else if (responseType === 'arraybuffer') {
50
+ else if (responseType === 'arrayBuffer') {
51
51
  data = yield response.arrayBuffer();
52
52
  }
53
53
  else if (responseType === 'blob') {
@@ -3,7 +3,7 @@ export declare type Fetch = typeof crossFetch;
3
3
  export declare enum ResponseType {
4
4
  json = 0,
5
5
  text = 1,
6
- arraybuffer = 2,
6
+ arrayBuffer = 2,
7
7
  blob = 3
8
8
  }
9
9
  export declare type FunctionInvokeOptions = {
@@ -2,7 +2,7 @@ export var ResponseType;
2
2
  (function (ResponseType) {
3
3
  ResponseType[ResponseType["json"] = 0] = "json";
4
4
  ResponseType[ResponseType["text"] = 1] = "text";
5
- ResponseType[ResponseType["arraybuffer"] = 2] = "arraybuffer";
5
+ ResponseType[ResponseType["arrayBuffer"] = 2] = "arrayBuffer";
6
6
  ResponseType[ResponseType["blob"] = 3] = "blob";
7
7
  })(ResponseType || (ResponseType = {}));
8
8
  //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/functions-js",
3
- "version": "1.2.3",
3
+ "version": "1.2.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",
package/src/index.ts CHANGED
@@ -50,7 +50,7 @@ export class FunctionsClient {
50
50
  const { responseType } = invokeOptions ?? {}
51
51
  if (!responseType || responseType === 'json') {
52
52
  data = await response.json()
53
- } else if (responseType === 'arraybuffer') {
53
+ } else if (responseType === 'arrayBuffer') {
54
54
  data = await response.arrayBuffer()
55
55
  } else if (responseType === 'blob') {
56
56
  data = await response.blob()
package/src/types.ts CHANGED
@@ -5,7 +5,7 @@ export type Fetch = typeof crossFetch
5
5
  export enum ResponseType {
6
6
  json,
7
7
  text,
8
- arraybuffer,
8
+ arrayBuffer,
9
9
  blob,
10
10
  }
11
11