@supabase/postgrest-js 3.0.0-next.7 → 3.0.0-next.9
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/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/PostgrestBuilder.ts +2 -2
- package/src/PostgrestClient.ts +2 -2
- package/src/PostgrestQueryBuilder.ts +2 -2
- package/src/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -107,7 +107,7 @@ var PostgrestBuilder = class {
|
|
|
107
107
|
* ```ts
|
|
108
108
|
* import { createClient } from '@supabase/supabase-js'
|
|
109
109
|
*
|
|
110
|
-
* const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-
|
|
110
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
111
111
|
* const { data, error } = await supabase.from('users').select('*')
|
|
112
112
|
* ```
|
|
113
113
|
*
|
|
@@ -119,7 +119,7 @@ var PostgrestBuilder = class {
|
|
|
119
119
|
*
|
|
120
120
|
* const builder = new PostgrestQueryBuilder(
|
|
121
121
|
* new URL('https://xyzcompany.supabase.co/rest/v1/users'),
|
|
122
|
-
* { headers: new Headers({ apikey: 'publishable-
|
|
122
|
+
* { headers: new Headers({ apikey: 'your-publishable-key' }) }
|
|
123
123
|
* )
|
|
124
124
|
* ```
|
|
125
125
|
*/
|
|
@@ -3090,7 +3090,7 @@ var PostgrestQueryBuilder = class {
|
|
|
3090
3090
|
* ```ts
|
|
3091
3091
|
* import { createClient } from '@supabase/supabase-js'
|
|
3092
3092
|
*
|
|
3093
|
-
* const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-
|
|
3093
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
3094
3094
|
* const { data, error } = await supabase.from('users').select('*')
|
|
3095
3095
|
* ```
|
|
3096
3096
|
*
|
|
@@ -3100,7 +3100,7 @@ var PostgrestQueryBuilder = class {
|
|
|
3100
3100
|
*
|
|
3101
3101
|
* const query = new PostgrestQueryBuilder(
|
|
3102
3102
|
* new URL('https://xyzcompany.supabase.co/rest/v1/users'),
|
|
3103
|
-
* { headers: { apikey: 'publishable-
|
|
3103
|
+
* { headers: { apikey: 'your-publishable-key' }, retry: true }
|
|
3104
3104
|
* )
|
|
3105
3105
|
* ```
|
|
3106
3106
|
*/
|
|
@@ -4678,7 +4678,7 @@ var PostgrestClient = class PostgrestClient {
|
|
|
4678
4678
|
* ```ts
|
|
4679
4679
|
* import { createClient } from '@supabase/supabase-js'
|
|
4680
4680
|
*
|
|
4681
|
-
* const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-
|
|
4681
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
4682
4682
|
* const { data, error } = await supabase.from('profiles').select('*')
|
|
4683
4683
|
* ```
|
|
4684
4684
|
*
|
|
@@ -4693,7 +4693,7 @@ var PostgrestClient = class PostgrestClient {
|
|
|
4693
4693
|
* import { PostgrestClient } from '@supabase/postgrest-js'
|
|
4694
4694
|
*
|
|
4695
4695
|
* const postgrest = new PostgrestClient('https://xyzcompany.supabase.co/rest/v1', {
|
|
4696
|
-
* headers: { apikey: 'publishable-
|
|
4696
|
+
* headers: { apikey: 'your-publishable-key' },
|
|
4697
4697
|
* schema: 'public',
|
|
4698
4698
|
* timeout: 30000, // 30 second timeout
|
|
4699
4699
|
* })
|