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

presto-client

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

presto-client - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

lib/presto-client/headers.js

@@ -10,2 +10,4 @@ var Headers = exports.Headers = function(){

Headers.TIME_ZONE = 'X-Presto-Time-Zone';
Headers.CURRENT_STATE = 'X-Presto-Current-State';

@@ -12,0 +14,0 @@ Headers.MAX_WAIT = 'X-Presto-Max-Wait';

@@ -146,2 +146,4 @@ var http = require('http');

header[Headers.SESSION] = opts.session;
if (opts.timezone)
header[Headers.TIME_ZONE] = opts.timezone;

@@ -177,3 +179,6 @@ var req = { method: 'POST', path: '/v1/execute', headers: header, body: query };

header[Headers.SESSION] = opts.session;
if (opts.timezone)
header[Headers.TIME_ZONE] = opts.timezone;
var fetch_info = opts.info || false;

@@ -180,0 +185,0 @@

2

package.json
{
"name": "presto-client",
"version": "0.1.2",
"version": "0.1.3",
"description": "Distributed query engine Presto client library for node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -82,2 +82,4 @@ # presto-client-node

* set session variables via the [X-Presto-Session header](https://stackoverflow.com/questions/37082016/how-to-manage-presto-query-session-variables-using-rest-api) - string should have form `key1=val1,key2=val2`
* timezone [string :optional]
* set time zone via [X-Presto-Time-Zone header](https://prestodb.io/docs/current/release/release-0.66.html)
* callback [function(error, data, columns)]

@@ -102,2 +104,3 @@ * called once when query finished

* schema [string]
* timezone [string :optional]
* info [boolean :optional]

@@ -186,2 +189,4 @@ * fetch query info (execution statistics) for success callback, or not (default false)

* 0.1.3:
* add X-Presto-Time-Zone if "timezone" specified
* 0.1.2:

@@ -188,0 +193,0 @@ * add X-Presto-Session if "session" specified

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