@farm.js/supabase 0.1.66 → 0.1.68
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/client.d.ts +5 -5
- package/dist/client.js +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/package.json +3 -3
package/dist/client.d.ts
CHANGED
|
@@ -28,10 +28,10 @@ export interface SupabaseLogoutInput {
|
|
|
28
28
|
returnTo?: string;
|
|
29
29
|
}
|
|
30
30
|
export declare const supabaseClient: {
|
|
31
|
-
login: import("@farm.js/core
|
|
32
|
-
signup: import("@farm.js/core
|
|
33
|
-
oauth: import("@farm.js/core
|
|
34
|
-
logout: import("@farm.js/core
|
|
35
|
-
session: import("@farm.js/core
|
|
31
|
+
login: import("@farm.js/core").FarmIntegrationAPIOperation<SupabaseCredentials, never, SupabaseRedirectResult, false, "POST">;
|
|
32
|
+
signup: import("@farm.js/core").FarmIntegrationAPIOperation<SupabaseCredentials, never, SupabaseSignUpResult, false, "POST">;
|
|
33
|
+
oauth: import("@farm.js/core").FarmIntegrationAPIOperation<never, SupabaseOAuthInput, SupabaseRedirectResult, false, "GET">;
|
|
34
|
+
logout: import("@farm.js/core").FarmIntegrationAPIOperation<SupabaseLogoutInput, never, SupabaseRedirectResult, false, "POST">;
|
|
35
|
+
session: import("@farm.js/core").FarmIntegrationAPIOperation<never, never, SupabaseSessionResult, false, "GET">;
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createServerClient } from "@supabase/ssr";
|
|
2
|
-
import {
|
|
2
|
+
import type { FarmIntegrationHandlerContext, FarmIntegrationLogger } from "@farm.js/core";
|
|
3
3
|
export interface SupabaseIntegrationPages {
|
|
4
4
|
signIn?: string;
|
|
5
5
|
signUp?: string;
|
|
@@ -70,8 +70,8 @@ export declare function supabase(input?: SupabaseIntegrationInput): import("@far
|
|
|
70
70
|
readonly kind: "farm-integration-api-operation";
|
|
71
71
|
path: string;
|
|
72
72
|
method: "POST";
|
|
73
|
-
bodyFormat?: import("@farm.js/core/
|
|
74
|
-
responseFormat?: import("@farm.js/core/
|
|
73
|
+
bodyFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIBodyFormat | undefined;
|
|
74
|
+
responseFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIResponseFormat | undefined;
|
|
75
75
|
headers?: {
|
|
76
76
|
[x: string]: string;
|
|
77
77
|
} | undefined;
|
|
@@ -97,8 +97,8 @@ export declare function supabase(input?: SupabaseIntegrationInput): import("@far
|
|
|
97
97
|
readonly kind: "farm-integration-api-operation";
|
|
98
98
|
path: string;
|
|
99
99
|
method: "GET";
|
|
100
|
-
bodyFormat?: import("@farm.js/core/
|
|
101
|
-
responseFormat?: import("@farm.js/core/
|
|
100
|
+
bodyFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIBodyFormat | undefined;
|
|
101
|
+
responseFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIResponseFormat | undefined;
|
|
102
102
|
headers?: {
|
|
103
103
|
[x: string]: string;
|
|
104
104
|
} | undefined;
|
|
@@ -122,8 +122,8 @@ export declare function supabase(input?: SupabaseIntegrationInput): import("@far
|
|
|
122
122
|
readonly kind: "farm-integration-api-operation";
|
|
123
123
|
path: string;
|
|
124
124
|
method: "GET";
|
|
125
|
-
bodyFormat?: import("@farm.js/core/
|
|
126
|
-
responseFormat?: import("@farm.js/core/
|
|
125
|
+
bodyFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIBodyFormat | undefined;
|
|
126
|
+
responseFormat?: import("@farm.js/core/integrations").FarmIntegrationAPIResponseFormat | undefined;
|
|
127
127
|
headers?: {
|
|
128
128
|
[x: string]: string;
|
|
129
129
|
} | undefined;
|
|
@@ -149,7 +149,7 @@ export declare function supabase(input?: SupabaseIntegrationInput): import("@far
|
|
|
149
149
|
}[];
|
|
150
150
|
routes: {
|
|
151
151
|
path: string;
|
|
152
|
-
methods: ("
|
|
152
|
+
methods: ("GET" | "POST")[];
|
|
153
153
|
handler(_request: Request, context: FarmIntegrationHandlerContext): Promise<Response>;
|
|
154
154
|
}[];
|
|
155
155
|
middleware: {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAsB,MAAM,eAAe,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAsB,MAAM,eAAe,CAAC;AACvE,OAAO,KAAK,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAyC1F,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9E,MAAM,MAAM,gCAAgC,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAExF,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,kBAAkB,CAAC;IACxC,OAAO,EAAE,gCAAgC,CAAC;CAC3C;AAED;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACxC,OAAO,EAAE,kCAAkC,KACxC,yBAAyB,CAAC;AAE/B,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,wBAAwB,CAAC;IACjC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,GAAG,CAAC,EAAE,qBAAqB,CAAC;CAC7B;AAED,UAAU,mBAAmB;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,qBAAqB;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiwBD,wBAAgB,QAAQ,CAAC,KAAK,GAAE,wBAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAuG7B,OAAO,WAAW,6BAA6B;;;;0BA+czC,OAAO,WAAW,6BAA6B;;mDAgDpF"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createServerClient } from "@supabase/ssr";
|
|
2
|
-
import { defineIntegration, forwardIntegrationSetCookies, } from "@farm.js/core";
|
|
3
|
-
import { describeIntegrationOriginRejection, resolveIntegrationAllowedOrigins, validateIntegrationRequestOrigin, } from "@farm.js/core/integrations";
|
|
4
|
-
import { api as clientApi } from "@farm.js/core/client";
|
|
2
|
+
import { api as clientApi, defineIntegration, describeIntegrationOriginRejection, forwardIntegrationSetCookies, resolveIntegrationAllowedOrigins, validateIntegrationRequestOrigin, } from "@farm.js/core/integrations";
|
|
5
3
|
import { createPathInferredClientApi, createDocumentNavigationMatchers, escapeHtml, getOrigin, createRequestCookie, getReturnTo, integrationConfig, normalizeMatchers, parseCookieHeaderList, resolveAppPath, resolveCallbackSettings, toAbsoluteUrl, withSearchParams, } from "@farm.js/integration-utils";
|
|
6
4
|
import { supabaseAuthFormFields, } from "./client.js";
|
|
7
5
|
function createSupabaseApi(input = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farm.js/supabase",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.68",
|
|
4
4
|
"description": "Supabase integration for Farm.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@supabase/ssr": "^0.9.0",
|
|
33
33
|
"@supabase/supabase-js": "^2.99.2",
|
|
34
|
-
"@farm.js/integration-utils": "0.1.
|
|
35
|
-
"@farm.js/core": "0.1.
|
|
34
|
+
"@farm.js/integration-utils": "0.1.68",
|
|
35
|
+
"@farm.js/core": "0.1.68"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc",
|