@supabase/postgrest-js
Advanced tools
Comparing version 0.24.1 to 0.24.2
@@ -62,3 +62,2 @@ "use strict"; | ||
prefersHeaders.push('resolution=merge-duplicates'); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
if (upsert && onConflict !== undefined) | ||
@@ -69,4 +68,4 @@ this.url.searchParams.set('on_conflict', onConflict); | ||
prefersHeaders.push(`count=${count}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
} | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
return new PostgrestFilterBuilder_1.default(this); | ||
@@ -84,8 +83,7 @@ } | ||
prefersHeaders.push(`return=${returning}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
this.body = values; | ||
if (count) { | ||
prefersHeaders.push(`count=${count}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
} | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
return new PostgrestFilterBuilder_1.default(this); | ||
@@ -102,7 +100,6 @@ } | ||
prefersHeaders.push(`return=${returning}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
if (count) { | ||
prefersHeaders.push(`count=${count}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
} | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
return new PostgrestFilterBuilder_1.default(this); | ||
@@ -109,0 +106,0 @@ } |
@@ -57,3 +57,2 @@ import { PostgrestBuilder } from './types'; | ||
prefersHeaders.push('resolution=merge-duplicates'); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
if (upsert && onConflict !== undefined) | ||
@@ -64,4 +63,4 @@ this.url.searchParams.set('on_conflict', onConflict); | ||
prefersHeaders.push(`count=${count}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
} | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
return new PostgrestFilterBuilder(this); | ||
@@ -79,8 +78,7 @@ } | ||
prefersHeaders.push(`return=${returning}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
this.body = values; | ||
if (count) { | ||
prefersHeaders.push(`count=${count}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
} | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
return new PostgrestFilterBuilder(this); | ||
@@ -97,7 +95,6 @@ } | ||
prefersHeaders.push(`return=${returning}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
if (count) { | ||
prefersHeaders.push(`count=${count}`); | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
} | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
return new PostgrestFilterBuilder(this); | ||
@@ -104,0 +101,0 @@ } |
{ | ||
"name": "@supabase/postgrest-js", | ||
"version": "0.24.1", | ||
"version": "0.24.2", | ||
"description": "Isomorphic PostgREST client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -12,18 +12,27 @@ # Postgrest JS | ||
## Documentation | ||
Visit our [wiki](https://github.com/supabase/postgrest-js/wiki) to get started! | ||
## Usage online | ||
Visit our [docs](https://supabase.io/docs/postgrest/client/postgrest-client) to get started! | ||
### supabase/supabase-js | ||
- [Repository](https://github.com/supabase/supabase-js) | ||
- [Documentation](https://supabase.io/docs) | ||
### Quick start | ||
## Contributing | ||
Install | ||
- Fork the repo on GitHub | ||
- Clone the project to your own machine | ||
- Commit changes to your own branch | ||
- Push your work back up to your fork | ||
- Submit a Pull request so that we can review your changes and merge | ||
``` | ||
npm install @supabase/postgrest-js | ||
``` | ||
Usage | ||
``` | ||
import { PostgrestClient } from '@supabase/postgrest-js' | ||
const REST_URL = 'http://localhost:3000' | ||
const postgrest = new PostgrestClient(REST_URL) | ||
``` | ||
- select(): https://supabase.io/docs/postgrest/client/select | ||
- insert(): https://supabase.io/docs/postgrest/client/insert | ||
- update(): https://supabase.io/docs/postgrest/client/update | ||
- delete(): https://supabase.io/docs/postgrest/client/update | ||
## License | ||
@@ -37,3 +46,2 @@ | ||
![Watch this repo](https://gitcdn.xyz/repo/supabase/monorepo/master/web/static/watch-repo.gif "Watch this repo") | ||
@@ -45,3 +53,5 @@ | ||
[![Worklife VC](https://user-images.githubusercontent.com/10214025/90451355-34d71200-e11e-11ea-81f9-1592fd1e9146.png)](https://www.worklife.vc) | ||
[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase) | ||
![Watch this repo](https://gitcdn.xyz/repo/supabase/monorepo/master/web/static/watch-repo.gif "Watch this repo") |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55
129965
2167