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

@supabase/postgrest-js

Package Overview
Dependencies
Maintainers
4
Versions
139
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.28.4 to 0.29.0

4

dist/main/lib/PostgrestTransformBuilder.d.ts

@@ -49,3 +49,7 @@ import { PostgrestBuilder, PostgrestSingleResponse } from './types';

single(): PromiseLike<PostgrestSingleResponse<T>>;
/**
* Set the response type to CSV.
*/
csv(): this;
}
//# sourceMappingURL=PostgrestTransformBuilder.d.ts.map

@@ -79,4 +79,11 @@ "use strict";

}
/**
* Set the response type to CSV.
*/
csv() {
this.headers['Accept'] = 'text/csv';
return this;
}
}
exports.default = PostgrestTransformBuilder;
//# sourceMappingURL=PostgrestTransformBuilder.js.map

2

dist/main/lib/types.js

@@ -49,3 +49,3 @@ "use strict";

const text = yield res.text();
if (text && text !== '')
if (text && text !== '' && this.headers['Accept'] !== 'text/csv')
data = JSON.parse(text);

@@ -52,0 +52,0 @@ }

@@ -49,3 +49,7 @@ import { PostgrestBuilder, PostgrestSingleResponse } from './types';

single(): PromiseLike<PostgrestSingleResponse<T>>;
/**
* Set the response type to CSV.
*/
csv(): this;
}
//# sourceMappingURL=PostgrestTransformBuilder.d.ts.map

@@ -77,3 +77,10 @@ import { PostgrestBuilder } from './types';

}
/**
* Set the response type to CSV.
*/
csv() {
this.headers['Accept'] = 'text/csv';
return this;
}
}
//# sourceMappingURL=PostgrestTransformBuilder.js.map

@@ -43,3 +43,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const text = yield res.text();
if (text && text !== '')
if (text && text !== '' && this.headers['Accept'] !== 'text/csv')
data = JSON.parse(text);

@@ -46,0 +46,0 @@ }

{
"name": "@supabase/postgrest-js",
"version": "0.28.4",
"version": "0.29.0",
"description": "Isomorphic PostgREST client",

@@ -5,0 +5,0 @@ "keywords": [

@@ -96,2 +96,10 @@ import { PostgrestBuilder, PostgrestSingleResponse } from './types'

}
/**
* Set the response type to CSV.
*/
csv(): this {
this.headers['Accept'] = 'text/csv'
return this
}
}

@@ -94,3 +94,4 @@ import fetch from 'cross-fetch'

const text = await res.text()
if (text && text !== '') data = JSON.parse(text)
if (text && text !== '' && this.headers['Accept'] !== 'text/csv')
data = JSON.parse(text)
}

@@ -97,0 +98,0 @@

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

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