Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@supabase/postgrest-js

Package Overview
Dependencies
Maintainers
3
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supabase/postgrest-js - npm Package Compare versions

Comparing version 0.24.1 to 0.24.2

9

dist/main/lib/PostgrestQueryBuilder.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc