@depup/supabase__supabase-js 2.99.2-depup.0

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/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @depup/supabase__supabase-js
2
+
3
+ > Dependency-bumped version of [@supabase/supabase-js](https://www.npmjs.com/package/@supabase/supabase-js)
4
+
5
+ Generated by [DepUp](https://github.com/depup/npm) -- all production
6
+ dependencies bumped to latest versions.
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @depup/supabase__supabase-js
12
+ ```
13
+
14
+ | Field | Value |
15
+ |-------|-------|
16
+ | Original | [@supabase/supabase-js](https://www.npmjs.com/package/@supabase/supabase-js) @ 2.99.2 |
17
+ | Processed | 2026-03-18 |
18
+ | Smoke test | passed |
19
+ | Deps updated | 0 |
20
+
21
+ ---
22
+
23
+ Source: https://github.com/depup/npm | Original: https://www.npmjs.com/package/@supabase/supabase-js
24
+
25
+ License inherited from the original package.
package/changes.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "bumped": {},
3
+ "timestamp": "2026-03-18T23:27:58.653Z",
4
+ "totalUpdated": 0
5
+ }
package/dist/cors.cjs ADDED
@@ -0,0 +1,85 @@
1
+
2
+ //#region src/cors.ts
3
+ /**
4
+ * Canonical CORS configuration for Supabase Edge Functions
5
+ *
6
+ * This module exports CORS headers that stay synchronized with the Supabase SDK.
7
+ * When new headers are added to the SDK, they are automatically included here,
8
+ * preventing CORS errors in Edge Functions.
9
+ *
10
+ * @example Basic usage
11
+ * ```typescript
12
+ * import { corsHeaders } from '@supabase/supabase-js/cors'
13
+ *
14
+ * Deno.serve(async (req) => {
15
+ * if (req.method === 'OPTIONS') {
16
+ * return new Response('ok', { headers: corsHeaders })
17
+ * }
18
+ *
19
+ * return new Response(
20
+ * JSON.stringify({ data: 'Hello' }),
21
+ * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
22
+ * )
23
+ * })
24
+ * ```
25
+ *
26
+ * @module cors
27
+ */
28
+ /**
29
+ * All custom headers sent by the Supabase SDK.
30
+ * These headers need to be included in CORS configuration to prevent preflight failures.
31
+ *
32
+ * Headers:
33
+ * - authorization: Bearer token for authentication
34
+ * - x-client-info: Library version information
35
+ * - apikey: Project API key
36
+ * - content-type: Standard HTTP content type
37
+ */
38
+ const SUPABASE_HEADERS = [
39
+ "authorization",
40
+ "x-client-info",
41
+ "apikey",
42
+ "content-type"
43
+ ].join(", ");
44
+ /**
45
+ * All HTTP methods used by the Supabase SDK
46
+ */
47
+ const SUPABASE_METHODS = [
48
+ "GET",
49
+ "POST",
50
+ "PUT",
51
+ "PATCH",
52
+ "DELETE",
53
+ "OPTIONS"
54
+ ].join(", ");
55
+ /**
56
+ * Default CORS headers for Supabase Edge Functions.
57
+ *
58
+ * Includes all headers sent by Supabase client libraries and allows all standard HTTP methods.
59
+ * Use this for simple CORS configurations with wildcard origin.
60
+ *
61
+ * @example
62
+ * ```typescript
63
+ * import { corsHeaders } from '@supabase/supabase-js/cors'
64
+ *
65
+ * Deno.serve(async (req) => {
66
+ * if (req.method === 'OPTIONS') {
67
+ * return new Response('ok', { headers: corsHeaders })
68
+ * }
69
+ *
70
+ * return new Response(
71
+ * JSON.stringify({ data: 'Hello' }),
72
+ * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
73
+ * )
74
+ * })
75
+ * ```
76
+ */
77
+ const corsHeaders = {
78
+ "Access-Control-Allow-Origin": "*",
79
+ "Access-Control-Allow-Headers": SUPABASE_HEADERS,
80
+ "Access-Control-Allow-Methods": SUPABASE_METHODS
81
+ };
82
+
83
+ //#endregion
84
+ exports.corsHeaders = corsHeaders;
85
+ //# sourceMappingURL=cors.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cors.cjs","names":["corsHeaders: CorsHeaders"],"sources":["../src/cors.ts"],"sourcesContent":["/**\n * Canonical CORS configuration for Supabase Edge Functions\n *\n * This module exports CORS headers that stay synchronized with the Supabase SDK.\n * When new headers are added to the SDK, they are automatically included here,\n * preventing CORS errors in Edge Functions.\n *\n * @example Basic usage\n * ```typescript\n * import { corsHeaders } from '@supabase/supabase-js/cors'\n *\n * Deno.serve(async (req) => {\n * if (req.method === 'OPTIONS') {\n * return new Response('ok', { headers: corsHeaders })\n * }\n *\n * return new Response(\n * JSON.stringify({ data: 'Hello' }),\n * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }\n * )\n * })\n * ```\n *\n * @module cors\n */\n\n/**\n * All custom headers sent by the Supabase SDK.\n * These headers need to be included in CORS configuration to prevent preflight failures.\n *\n * Headers:\n * - authorization: Bearer token for authentication\n * - x-client-info: Library version information\n * - apikey: Project API key\n * - content-type: Standard HTTP content type\n */\nconst SUPABASE_HEADERS = ['authorization', 'x-client-info', 'apikey', 'content-type'].join(', ')\n\n/**\n * All HTTP methods used by the Supabase SDK\n */\nconst SUPABASE_METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'].join(', ')\n\n/**\n * Type representing CORS headers as a record of header names to values\n */\nexport type CorsHeaders = Record<string, string>\n\n/**\n * Default CORS headers for Supabase Edge Functions.\n *\n * Includes all headers sent by Supabase client libraries and allows all standard HTTP methods.\n * Use this for simple CORS configurations with wildcard origin.\n *\n * @example\n * ```typescript\n * import { corsHeaders } from '@supabase/supabase-js/cors'\n *\n * Deno.serve(async (req) => {\n * if (req.method === 'OPTIONS') {\n * return new Response('ok', { headers: corsHeaders })\n * }\n *\n * return new Response(\n * JSON.stringify({ data: 'Hello' }),\n * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }\n * )\n * })\n * ```\n */\nexport const corsHeaders: CorsHeaders = {\n 'Access-Control-Allow-Origin': '*',\n 'Access-Control-Allow-Headers': SUPABASE_HEADERS,\n 'Access-Control-Allow-Methods': SUPABASE_METHODS,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,MAAM,mBAAmB;CAAC;CAAiB;CAAiB;CAAU;CAAe,CAAC,KAAK,KAAK;;;;AAKhG,MAAM,mBAAmB;CAAC;CAAO;CAAQ;CAAO;CAAS;CAAU;CAAU,CAAC,KAAK,KAAK;;;;;;;;;;;;;;;;;;;;;;;AA6BxF,MAAaA,cAA2B;CACtC,+BAA+B;CAC/B,gCAAgC;CAChC,gCAAgC;CACjC"}
@@ -0,0 +1,56 @@
1
+ //#region src/cors.d.ts
2
+ /**
3
+ * Canonical CORS configuration for Supabase Edge Functions
4
+ *
5
+ * This module exports CORS headers that stay synchronized with the Supabase SDK.
6
+ * When new headers are added to the SDK, they are automatically included here,
7
+ * preventing CORS errors in Edge Functions.
8
+ *
9
+ * @example Basic usage
10
+ * ```typescript
11
+ * import { corsHeaders } from '@supabase/supabase-js/cors'
12
+ *
13
+ * Deno.serve(async (req) => {
14
+ * if (req.method === 'OPTIONS') {
15
+ * return new Response('ok', { headers: corsHeaders })
16
+ * }
17
+ *
18
+ * return new Response(
19
+ * JSON.stringify({ data: 'Hello' }),
20
+ * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
21
+ * )
22
+ * })
23
+ * ```
24
+ *
25
+ * @module cors
26
+ */
27
+ /**
28
+ * Type representing CORS headers as a record of header names to values
29
+ */
30
+ type CorsHeaders = Record<string, string>;
31
+ /**
32
+ * Default CORS headers for Supabase Edge Functions.
33
+ *
34
+ * Includes all headers sent by Supabase client libraries and allows all standard HTTP methods.
35
+ * Use this for simple CORS configurations with wildcard origin.
36
+ *
37
+ * @example
38
+ * ```typescript
39
+ * import { corsHeaders } from '@supabase/supabase-js/cors'
40
+ *
41
+ * Deno.serve(async (req) => {
42
+ * if (req.method === 'OPTIONS') {
43
+ * return new Response('ok', { headers: corsHeaders })
44
+ * }
45
+ *
46
+ * return new Response(
47
+ * JSON.stringify({ data: 'Hello' }),
48
+ * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
49
+ * )
50
+ * })
51
+ * ```
52
+ */
53
+ declare const corsHeaders: CorsHeaders;
54
+ //#endregion
55
+ export { CorsHeaders, corsHeaders };
56
+ //# sourceMappingURL=cors.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cors.d.cts","names":[],"sources":["../src/cors.ts"],"sourcesContent":[],"mappings":";;AA8CA;AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;KAxBY,WAAA,GAAc;;;;;;;;;;;;;;;;;;;;;;;cAwBb,aAAa"}
@@ -0,0 +1,56 @@
1
+ //#region src/cors.d.ts
2
+ /**
3
+ * Canonical CORS configuration for Supabase Edge Functions
4
+ *
5
+ * This module exports CORS headers that stay synchronized with the Supabase SDK.
6
+ * When new headers are added to the SDK, they are automatically included here,
7
+ * preventing CORS errors in Edge Functions.
8
+ *
9
+ * @example Basic usage
10
+ * ```typescript
11
+ * import { corsHeaders } from '@supabase/supabase-js/cors'
12
+ *
13
+ * Deno.serve(async (req) => {
14
+ * if (req.method === 'OPTIONS') {
15
+ * return new Response('ok', { headers: corsHeaders })
16
+ * }
17
+ *
18
+ * return new Response(
19
+ * JSON.stringify({ data: 'Hello' }),
20
+ * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
21
+ * )
22
+ * })
23
+ * ```
24
+ *
25
+ * @module cors
26
+ */
27
+ /**
28
+ * Type representing CORS headers as a record of header names to values
29
+ */
30
+ type CorsHeaders = Record<string, string>;
31
+ /**
32
+ * Default CORS headers for Supabase Edge Functions.
33
+ *
34
+ * Includes all headers sent by Supabase client libraries and allows all standard HTTP methods.
35
+ * Use this for simple CORS configurations with wildcard origin.
36
+ *
37
+ * @example
38
+ * ```typescript
39
+ * import { corsHeaders } from '@supabase/supabase-js/cors'
40
+ *
41
+ * Deno.serve(async (req) => {
42
+ * if (req.method === 'OPTIONS') {
43
+ * return new Response('ok', { headers: corsHeaders })
44
+ * }
45
+ *
46
+ * return new Response(
47
+ * JSON.stringify({ data: 'Hello' }),
48
+ * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
49
+ * )
50
+ * })
51
+ * ```
52
+ */
53
+ declare const corsHeaders: CorsHeaders;
54
+ //#endregion
55
+ export { CorsHeaders, corsHeaders };
56
+ //# sourceMappingURL=cors.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cors.d.mts","names":[],"sources":["../src/cors.ts"],"sourcesContent":[],"mappings":";;AA8CA;AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;KAxBY,WAAA,GAAc;;;;;;;;;;;;;;;;;;;;;;;cAwBb,aAAa"}
package/dist/cors.mjs ADDED
@@ -0,0 +1,84 @@
1
+ //#region src/cors.ts
2
+ /**
3
+ * Canonical CORS configuration for Supabase Edge Functions
4
+ *
5
+ * This module exports CORS headers that stay synchronized with the Supabase SDK.
6
+ * When new headers are added to the SDK, they are automatically included here,
7
+ * preventing CORS errors in Edge Functions.
8
+ *
9
+ * @example Basic usage
10
+ * ```typescript
11
+ * import { corsHeaders } from '@supabase/supabase-js/cors'
12
+ *
13
+ * Deno.serve(async (req) => {
14
+ * if (req.method === 'OPTIONS') {
15
+ * return new Response('ok', { headers: corsHeaders })
16
+ * }
17
+ *
18
+ * return new Response(
19
+ * JSON.stringify({ data: 'Hello' }),
20
+ * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
21
+ * )
22
+ * })
23
+ * ```
24
+ *
25
+ * @module cors
26
+ */
27
+ /**
28
+ * All custom headers sent by the Supabase SDK.
29
+ * These headers need to be included in CORS configuration to prevent preflight failures.
30
+ *
31
+ * Headers:
32
+ * - authorization: Bearer token for authentication
33
+ * - x-client-info: Library version information
34
+ * - apikey: Project API key
35
+ * - content-type: Standard HTTP content type
36
+ */
37
+ const SUPABASE_HEADERS = [
38
+ "authorization",
39
+ "x-client-info",
40
+ "apikey",
41
+ "content-type"
42
+ ].join(", ");
43
+ /**
44
+ * All HTTP methods used by the Supabase SDK
45
+ */
46
+ const SUPABASE_METHODS = [
47
+ "GET",
48
+ "POST",
49
+ "PUT",
50
+ "PATCH",
51
+ "DELETE",
52
+ "OPTIONS"
53
+ ].join(", ");
54
+ /**
55
+ * Default CORS headers for Supabase Edge Functions.
56
+ *
57
+ * Includes all headers sent by Supabase client libraries and allows all standard HTTP methods.
58
+ * Use this for simple CORS configurations with wildcard origin.
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * import { corsHeaders } from '@supabase/supabase-js/cors'
63
+ *
64
+ * Deno.serve(async (req) => {
65
+ * if (req.method === 'OPTIONS') {
66
+ * return new Response('ok', { headers: corsHeaders })
67
+ * }
68
+ *
69
+ * return new Response(
70
+ * JSON.stringify({ data: 'Hello' }),
71
+ * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
72
+ * )
73
+ * })
74
+ * ```
75
+ */
76
+ const corsHeaders = {
77
+ "Access-Control-Allow-Origin": "*",
78
+ "Access-Control-Allow-Headers": SUPABASE_HEADERS,
79
+ "Access-Control-Allow-Methods": SUPABASE_METHODS
80
+ };
81
+
82
+ //#endregion
83
+ export { corsHeaders };
84
+ //# sourceMappingURL=cors.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cors.mjs","names":["corsHeaders: CorsHeaders"],"sources":["../src/cors.ts"],"sourcesContent":["/**\n * Canonical CORS configuration for Supabase Edge Functions\n *\n * This module exports CORS headers that stay synchronized with the Supabase SDK.\n * When new headers are added to the SDK, they are automatically included here,\n * preventing CORS errors in Edge Functions.\n *\n * @example Basic usage\n * ```typescript\n * import { corsHeaders } from '@supabase/supabase-js/cors'\n *\n * Deno.serve(async (req) => {\n * if (req.method === 'OPTIONS') {\n * return new Response('ok', { headers: corsHeaders })\n * }\n *\n * return new Response(\n * JSON.stringify({ data: 'Hello' }),\n * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }\n * )\n * })\n * ```\n *\n * @module cors\n */\n\n/**\n * All custom headers sent by the Supabase SDK.\n * These headers need to be included in CORS configuration to prevent preflight failures.\n *\n * Headers:\n * - authorization: Bearer token for authentication\n * - x-client-info: Library version information\n * - apikey: Project API key\n * - content-type: Standard HTTP content type\n */\nconst SUPABASE_HEADERS = ['authorization', 'x-client-info', 'apikey', 'content-type'].join(', ')\n\n/**\n * All HTTP methods used by the Supabase SDK\n */\nconst SUPABASE_METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'].join(', ')\n\n/**\n * Type representing CORS headers as a record of header names to values\n */\nexport type CorsHeaders = Record<string, string>\n\n/**\n * Default CORS headers for Supabase Edge Functions.\n *\n * Includes all headers sent by Supabase client libraries and allows all standard HTTP methods.\n * Use this for simple CORS configurations with wildcard origin.\n *\n * @example\n * ```typescript\n * import { corsHeaders } from '@supabase/supabase-js/cors'\n *\n * Deno.serve(async (req) => {\n * if (req.method === 'OPTIONS') {\n * return new Response('ok', { headers: corsHeaders })\n * }\n *\n * return new Response(\n * JSON.stringify({ data: 'Hello' }),\n * { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }\n * )\n * })\n * ```\n */\nexport const corsHeaders: CorsHeaders = {\n 'Access-Control-Allow-Origin': '*',\n 'Access-Control-Allow-Headers': SUPABASE_HEADERS,\n 'Access-Control-Allow-Methods': SUPABASE_METHODS,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,MAAM,mBAAmB;CAAC;CAAiB;CAAiB;CAAU;CAAe,CAAC,KAAK,KAAK;;;;AAKhG,MAAM,mBAAmB;CAAC;CAAO;CAAQ;CAAO;CAAS;CAAU;CAAU,CAAC,KAAK,KAAK;;;;;;;;;;;;;;;;;;;;;;;AA6BxF,MAAaA,cAA2B;CACtC,+BAA+B;CAC/B,gCAAgC;CAChC,gCAAgC;CACjC"}