@capgo/capacitor-supabase 8.0.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { CapacitorSupabasePlugin } from './definitions';
2
+ declare const CapacitorSupabase: CapacitorSupabasePlugin;
3
+ export * from './definitions';
4
+ export { CapacitorSupabase };
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const CapacitorSupabase = registerPlugin('CapacitorSupabase', {
3
+ web: () => import('./web').then((m) => new m.CapacitorSupabaseWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { CapacitorSupabase };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { AuthResult, AuthStateChange, CapacitorSupabasePlugin, DeleteOptions, InsertOptions, QueryResult, SelectOptions, Session, SetSessionOptions, SignInWithOAuthOptions, SignInWithOtpOptions, SignInWithPasswordOptions, SignUpOptions, SupabaseConfig, UpdateOptions, User, VerifyOtpOptions } from './definitions';
3
+ export declare class CapacitorSupabaseWeb extends WebPlugin implements CapacitorSupabasePlugin {
4
+ initialize(_options: SupabaseConfig): Promise<void>;
5
+ signInWithPassword(_options: SignInWithPasswordOptions): Promise<AuthResult>;
6
+ signUp(_options: SignUpOptions): Promise<AuthResult>;
7
+ signInWithOAuth(_options: SignInWithOAuthOptions): Promise<void>;
8
+ signInWithOtp(_options: SignInWithOtpOptions): Promise<void>;
9
+ verifyOtp(_options: VerifyOtpOptions): Promise<AuthResult>;
10
+ signOut(): Promise<void>;
11
+ getSession(): Promise<{
12
+ session: Session | null;
13
+ }>;
14
+ refreshSession(): Promise<{
15
+ session: Session | null;
16
+ }>;
17
+ getUser(): Promise<{
18
+ user: User | null;
19
+ }>;
20
+ setSession(_options: SetSessionOptions): Promise<{
21
+ session: Session | null;
22
+ }>;
23
+ select<T = unknown>(_options: SelectOptions): Promise<QueryResult<T[]>>;
24
+ insert<T = unknown>(_options: InsertOptions): Promise<QueryResult<T>>;
25
+ update<T = unknown>(_options: UpdateOptions): Promise<QueryResult<T>>;
26
+ delete<T = unknown>(_options: DeleteOptions): Promise<QueryResult<T>>;
27
+ addListener(_eventName: 'authStateChange', _listenerFunc: (data: AuthStateChange) => void): Promise<{
28
+ remove: () => Promise<void>;
29
+ }>;
30
+ getPluginVersion(): Promise<{
31
+ version: string;
32
+ }>;
33
+ }
@@ -0,0 +1,68 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class CapacitorSupabaseWeb extends WebPlugin {
3
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
+ async initialize(_options) {
5
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
6
+ }
7
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
8
+ async signInWithPassword(_options) {
9
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
10
+ }
11
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
12
+ async signUp(_options) {
13
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
14
+ }
15
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
16
+ async signInWithOAuth(_options) {
17
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
18
+ }
19
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
20
+ async signInWithOtp(_options) {
21
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
22
+ }
23
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
24
+ async verifyOtp(_options) {
25
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
26
+ }
27
+ async signOut() {
28
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
29
+ }
30
+ async getSession() {
31
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
32
+ }
33
+ async refreshSession() {
34
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
35
+ }
36
+ async getUser() {
37
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
38
+ }
39
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
40
+ async setSession(_options) {
41
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
42
+ }
43
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
44
+ async select(_options) {
45
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
46
+ }
47
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
48
+ async insert(_options) {
49
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
50
+ }
51
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
52
+ async update(_options) {
53
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
54
+ }
55
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
56
+ async delete(_options) {
57
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
58
+ }
59
+ async addListener(_eventName,
60
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
61
+ _listenerFunc) {
62
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
63
+ }
64
+ async getPluginVersion() {
65
+ return { version: 'web' };
66
+ }
67
+ }
68
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAsB5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjD,6DAA6D;IAC7D,KAAK,CAAC,UAAU,CAAC,QAAwB;QACvC,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,kBAAkB,CAAC,QAAmC;QAC1D,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,MAAM,CAAC,QAAuB;QAClC,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,eAAe,CAAC,QAAgC;QACpD,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,aAAa,CAAC,QAA8B;QAChD,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,SAAS,CAAC,QAA0B;QACxC,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,KAAK,CAAC,UAAU;QACd,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,UAAU,CAAC,QAA2B;QAC1C,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,MAAM,CAAc,QAAuB;QAC/C,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,MAAM,CAAc,QAAuB;QAC/C,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,MAAM,CAAc,QAAuB;QAC/C,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,6DAA6D;IAC7D,KAAK,CAAC,MAAM,CAAc,QAAuB;QAC/C,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAEQ,KAAK,CAAC,WAAW,CACxB,UAA6B;IAC7B,6DAA6D;IAC7D,aAA8C;QAE9C,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;CACF"}
@@ -0,0 +1,82 @@
1
+ 'use strict';
2
+
3
+ var core = require('@capacitor/core');
4
+
5
+ const CapacitorSupabase = core.registerPlugin('CapacitorSupabase', {
6
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.CapacitorSupabaseWeb()),
7
+ });
8
+
9
+ class CapacitorSupabaseWeb extends core.WebPlugin {
10
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
11
+ async initialize(_options) {
12
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
13
+ }
14
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
+ async signInWithPassword(_options) {
16
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
17
+ }
18
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
19
+ async signUp(_options) {
20
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
21
+ }
22
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
23
+ async signInWithOAuth(_options) {
24
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
25
+ }
26
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
27
+ async signInWithOtp(_options) {
28
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
29
+ }
30
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
31
+ async verifyOtp(_options) {
32
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
33
+ }
34
+ async signOut() {
35
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
36
+ }
37
+ async getSession() {
38
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
39
+ }
40
+ async refreshSession() {
41
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
42
+ }
43
+ async getUser() {
44
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
45
+ }
46
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
47
+ async setSession(_options) {
48
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
49
+ }
50
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
51
+ async select(_options) {
52
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
53
+ }
54
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
55
+ async insert(_options) {
56
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
57
+ }
58
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
59
+ async update(_options) {
60
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
61
+ }
62
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
63
+ async delete(_options) {
64
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
65
+ }
66
+ async addListener(_eventName,
67
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
68
+ _listenerFunc) {
69
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
70
+ }
71
+ async getPluginVersion() {
72
+ return { version: 'web' };
73
+ }
74
+ }
75
+
76
+ var web = /*#__PURE__*/Object.freeze({
77
+ __proto__: null,
78
+ CapacitorSupabaseWeb: CapacitorSupabaseWeb
79
+ });
80
+
81
+ exports.CapacitorSupabase = CapacitorSupabase;
82
+ //# sourceMappingURL=plugin.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorSupabase = registerPlugin('CapacitorSupabase', {\n web: () => import('./web').then((m) => new m.CapacitorSupabaseWeb()),\n});\nexport * from './definitions';\nexport { CapacitorSupabase };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorSupabaseWeb extends WebPlugin {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async initialize(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async signInWithPassword(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async signUp(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async signInWithOAuth(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async signInWithOtp(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async verifyOtp(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async signOut() {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async getSession() {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async refreshSession() {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async getUser() {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async setSession(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async select(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async insert(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async update(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async delete(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async addListener(_eventName, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _listenerFunc) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;AAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;AACxE,CAAC;;ACFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;AACpD;AACA,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;AAC/B,QAAQ,MAAM,IAA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AAM,CAAC,QAAQ,EAAE;AAC3B,QAAQ,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC;AACxG,IAAI;AACJ;AACA,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;AAC3B,QAAQ,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC;AACxG,IAAI;AACJ;AACA,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;AAC3B,QAAQ,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC;AACxG,IAAI;AACJ,IAAI,MAAM,WAAW,CAAC,UAAU;AAChC;AACA,IAAI,aAAa,EAAE;AACnB,QAAQ,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC;AACxG,IAAI;AACJ,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;AACjC,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js ADDED
@@ -0,0 +1,85 @@
1
+ var capacitorCapacitorSupabase = (function (exports, core) {
2
+ 'use strict';
3
+
4
+ const CapacitorSupabase = core.registerPlugin('CapacitorSupabase', {
5
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.CapacitorSupabaseWeb()),
6
+ });
7
+
8
+ class CapacitorSupabaseWeb extends core.WebPlugin {
9
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
+ async initialize(_options) {
11
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
12
+ }
13
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
+ async signInWithPassword(_options) {
15
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
16
+ }
17
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
+ async signUp(_options) {
19
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
20
+ }
21
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
22
+ async signInWithOAuth(_options) {
23
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
24
+ }
25
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
26
+ async signInWithOtp(_options) {
27
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
28
+ }
29
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
30
+ async verifyOtp(_options) {
31
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
32
+ }
33
+ async signOut() {
34
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
35
+ }
36
+ async getSession() {
37
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
38
+ }
39
+ async refreshSession() {
40
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
41
+ }
42
+ async getUser() {
43
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
44
+ }
45
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
46
+ async setSession(_options) {
47
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
48
+ }
49
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
50
+ async select(_options) {
51
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
52
+ }
53
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
54
+ async insert(_options) {
55
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
56
+ }
57
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
58
+ async update(_options) {
59
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
60
+ }
61
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
62
+ async delete(_options) {
63
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
64
+ }
65
+ async addListener(_eventName,
66
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
67
+ _listenerFunc) {
68
+ throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');
69
+ }
70
+ async getPluginVersion() {
71
+ return { version: 'web' };
72
+ }
73
+ }
74
+
75
+ var web = /*#__PURE__*/Object.freeze({
76
+ __proto__: null,
77
+ CapacitorSupabaseWeb: CapacitorSupabaseWeb
78
+ });
79
+
80
+ exports.CapacitorSupabase = CapacitorSupabase;
81
+
82
+ return exports;
83
+
84
+ })({}, capacitorExports);
85
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorSupabase = registerPlugin('CapacitorSupabase', {\n web: () => import('./web').then((m) => new m.CapacitorSupabaseWeb()),\n});\nexport * from './definitions';\nexport { CapacitorSupabase };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorSupabaseWeb extends WebPlugin {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async initialize(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async signInWithPassword(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async signUp(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async signInWithOAuth(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async signInWithOtp(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async verifyOtp(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async signOut() {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async getSession() {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async refreshSession() {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async getUser() {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async setSession(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async select(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async insert(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async update(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async delete(_options) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async addListener(_eventName, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _listenerFunc) {\n throw new Error('Web implementation not available. Use @supabase/supabase-js directly for web.');\n }\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;IAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;IACxE,CAAC;;ICFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;IACpD;IACA,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC;IACxG,IAAI;IACJ;IACA,IAAI,MAAM,kBAAkB,CAAC,QAAQ,EAAE;IACvC,QAAQ,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC;IACxG,IAAI;IACJ;IACA,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;IAC3B,QAAQ,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC;IACxG,IAAI;IAC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