@floatingpixels/supabase-nuxt 0.2.2 → 0.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.
- package/dist/module.d.mts +17 -2
- package/dist/module.d.ts +17 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -6
- package/dist/runtime/plugins/middleware-auth-redirect.d.ts +1 -1
- package/dist/types.d.mts +7 -1
- package/dist/types.d.ts +7 -1
- package/package.json +15 -15
package/dist/module.d.mts
CHANGED
|
@@ -62,7 +62,7 @@ interface ModuleOptions {
|
|
|
62
62
|
* @default {
|
|
63
63
|
maxAge: 60 * 60 * 8,
|
|
64
64
|
sameSite: 'lax',
|
|
65
|
-
secure:
|
|
65
|
+
secure: false,
|
|
66
66
|
}
|
|
67
67
|
* @type CookieOptions
|
|
68
68
|
* @docs https://nuxt.com/docs/api/composables/use-cookie#options
|
|
@@ -83,6 +83,21 @@ interface ModuleOptions {
|
|
|
83
83
|
clientOptions?: SupabaseClientOptions<string>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
declare module '@nuxt/schema' {
|
|
87
|
+
interface PublicRuntimeConfig {
|
|
88
|
+
supabase: {
|
|
89
|
+
url: string;
|
|
90
|
+
key: string;
|
|
91
|
+
redirect: boolean;
|
|
92
|
+
redirectOptions: RedirectOptions;
|
|
93
|
+
cookieName: string;
|
|
94
|
+
cookieOptions: CookieOptions;
|
|
95
|
+
types: string | false;
|
|
96
|
+
clientOptions: SupabaseClientOptions<string>;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
86
101
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
87
102
|
|
|
88
|
-
export {
|
|
103
|
+
export { _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ interface ModuleOptions {
|
|
|
62
62
|
* @default {
|
|
63
63
|
maxAge: 60 * 60 * 8,
|
|
64
64
|
sameSite: 'lax',
|
|
65
|
-
secure:
|
|
65
|
+
secure: false,
|
|
66
66
|
}
|
|
67
67
|
* @type CookieOptions
|
|
68
68
|
* @docs https://nuxt.com/docs/api/composables/use-cookie#options
|
|
@@ -83,6 +83,21 @@ interface ModuleOptions {
|
|
|
83
83
|
clientOptions?: SupabaseClientOptions<string>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
declare module '@nuxt/schema' {
|
|
87
|
+
interface PublicRuntimeConfig {
|
|
88
|
+
supabase: {
|
|
89
|
+
url: string;
|
|
90
|
+
key: string;
|
|
91
|
+
redirect: boolean;
|
|
92
|
+
redirectOptions: RedirectOptions;
|
|
93
|
+
cookieName: string;
|
|
94
|
+
cookieOptions: CookieOptions;
|
|
95
|
+
types: string | false;
|
|
96
|
+
clientOptions: SupabaseClientOptions<string>;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
86
101
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
87
102
|
|
|
88
|
-
export {
|
|
103
|
+
export { _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -22,7 +22,7 @@ const module = defineNuxtModule({
|
|
|
22
22
|
cookieOptions: {
|
|
23
23
|
maxAge: 60 * 60 * 8,
|
|
24
24
|
sameSite: "lax",
|
|
25
|
-
secure:
|
|
25
|
+
secure: false
|
|
26
26
|
},
|
|
27
27
|
clientOptions: {
|
|
28
28
|
auth: {
|
|
@@ -36,19 +36,19 @@ const module = defineNuxtModule({
|
|
|
36
36
|
setup(options, nuxt) {
|
|
37
37
|
const { resolve } = createResolver(import.meta.url);
|
|
38
38
|
if (!options.url) {
|
|
39
|
-
console.warn("Missing `SUPABASE_URL` in
|
|
39
|
+
console.warn("Missing `SUPABASE_URL` in environmewnt");
|
|
40
40
|
}
|
|
41
41
|
if (!options.key) {
|
|
42
|
-
console.warn("Missing `SUPABASE_KEY` in
|
|
42
|
+
console.warn("Missing `SUPABASE_KEY` in environment");
|
|
43
43
|
}
|
|
44
44
|
nuxt.options.runtimeConfig.public.supabase = defu(nuxt.options.runtimeConfig.public.supabase, {
|
|
45
45
|
url: options.url,
|
|
46
46
|
key: options.key,
|
|
47
47
|
redirect: options.redirect,
|
|
48
48
|
redirectOptions: options.redirectOptions,
|
|
49
|
-
clientOptions: options.clientOptions
|
|
49
|
+
clientOptions: options.clientOptions,
|
|
50
|
+
cookieOptions: options.cookieOptions
|
|
50
51
|
});
|
|
51
|
-
nuxt.options.runtimeConfig.public.supabase.cookieOptions = nuxt.options.runtimeConfig.public.supabase.cookieOptions || options.cookieOptions;
|
|
52
52
|
nuxt.options.runtimeConfig.supabase = defu(nuxt.options.runtimeConfig.supabase, {
|
|
53
53
|
serviceKey: options.serviceKey
|
|
54
54
|
});
|
|
@@ -94,7 +94,7 @@ const module = defineNuxtModule({
|
|
|
94
94
|
config.optimizeDeps = defu(typeof config.optimizeDeps === "object" ? config.optimizeDeps : {}, {
|
|
95
95
|
include: [
|
|
96
96
|
"@supabase/functions-js",
|
|
97
|
-
"@supabase/
|
|
97
|
+
"@supabase/auth-js",
|
|
98
98
|
"@supabase/postgrest-js",
|
|
99
99
|
"@supabase/realtime-js",
|
|
100
100
|
"@supabase/storage-js",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|
package/dist/types.d.mts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NuxtModule } from '@nuxt/schema'
|
|
2
|
+
|
|
3
|
+
import type { default as Module } from './module.js'
|
|
4
|
+
|
|
5
|
+
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
|
+
|
|
7
|
+
export { default } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NuxtModule } from '@nuxt/schema'
|
|
2
|
+
|
|
3
|
+
import type { default as Module } from './module'
|
|
4
|
+
|
|
5
|
+
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
|
+
|
|
7
|
+
export { default } from './module'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floatingpixels/supabase-nuxt",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Supabase module for Nuxt",
|
|
5
5
|
"repository": "floatingpixels/supabase-nuxt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,36 +57,36 @@
|
|
|
57
57
|
"db:fullseed": "(npx @snaplet/seed sync) -and (npx tsx seed.ts)"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@nuxt/kit": "^3.14.
|
|
61
|
-
"@supabase/ssr": "^0.5.
|
|
60
|
+
"@nuxt/kit": "^3.14.1592",
|
|
61
|
+
"@supabase/ssr": "^0.5.2",
|
|
62
62
|
"@supabase/supabase-js": "^2.46.1",
|
|
63
63
|
"defu": "^6.1.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@nuxt/devtools": "^1.6.
|
|
67
|
-
"@nuxt/eslint-config": "^0.
|
|
66
|
+
"@nuxt/devtools": "^1.6.1",
|
|
67
|
+
"@nuxt/eslint-config": "^0.7.1",
|
|
68
68
|
"@nuxt/module-builder": "^0.8.4",
|
|
69
|
-
"@nuxt/schema": "^3.14.
|
|
69
|
+
"@nuxt/schema": "^3.14.1592",
|
|
70
70
|
"@nuxt/test-utils": "^3.14.4",
|
|
71
|
-
"@playwright/test": "^1.
|
|
71
|
+
"@playwright/test": "^1.49.0",
|
|
72
72
|
"@snaplet/copycat": "^5.1.0",
|
|
73
73
|
"@snaplet/seed": "^0.98.0",
|
|
74
74
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
75
|
-
"@types/node": "^22.9.
|
|
76
|
-
"@vitest/coverage-v8": "2.1.
|
|
75
|
+
"@types/node": "^22.9.1",
|
|
76
|
+
"@vitest/coverage-v8": "2.1.5",
|
|
77
77
|
"@vue/test-utils": "^2.4.6",
|
|
78
78
|
"changelogen": "^0.5.7",
|
|
79
|
-
"eslint": "^9.
|
|
79
|
+
"eslint": "^9.15.0",
|
|
80
80
|
"eslint-config-prettier": "^9.1.0",
|
|
81
|
-
"happy-dom": "^15.11.
|
|
82
|
-
"nuxt": "^3.14.
|
|
83
|
-
"playwright-core": "^1.
|
|
81
|
+
"happy-dom": "^15.11.6",
|
|
82
|
+
"nuxt": "^3.14.1592",
|
|
83
|
+
"playwright-core": "^1.49.0",
|
|
84
84
|
"postgres": "^3.4.5",
|
|
85
85
|
"prettier": "^3.3.3",
|
|
86
86
|
"release-it": "^17.10.0",
|
|
87
|
-
"supabase": "^1.
|
|
87
|
+
"supabase": "^1.223.10",
|
|
88
88
|
"typescript": "^5.6.3",
|
|
89
|
-
"vitest": "^2.1.
|
|
89
|
+
"vitest": "^2.1.5",
|
|
90
90
|
"vue-tsc": "^2.1.10"
|
|
91
91
|
}
|
|
92
92
|
}
|