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.5.0 to 0.6.0

5

lib/presto-client/index.js

@@ -34,2 +34,4 @@ const { URL } = require('url') ;

this.schema = args.schema;
this.source = args.source || 'nodejs-client';

@@ -62,2 +64,5 @@ this.checkInterval = args.checkInterval || QUERY_STATE_CHECK_INTERVAL;

opts.headers[Headers.USER] = client.user;
if (client.source)
opts.headers[Headers.SOURCE] = client.source;

@@ -64,0 +69,0 @@ opts.headers[Headers.USER_AGENT] = this.userAgent;

2

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

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

@@ -13,2 +13,3 @@ # presto-client-node

schema: 'default',
source: 'nodejs-client'
state: function(error, query_id, stats){ console.log({message:"status changed", id:query_id, stats:stats}); },

@@ -54,2 +55,4 @@ columns: function(error, data){ console.log({resultColumns: data}); },

* Username of query (default: process user name)
* source [string]
* Source of query (default: nodejs-client)
* basic_auth [object]

@@ -168,2 +171,4 @@ * Pass in a user and password to enable Authorization Basic headers on all requests.

* 0.6.0:
* add X-Presto-Source if "source" specified
* 0.5.0:

@@ -170,0 +175,0 @@ * remove support for execute(arg, callback) using `/v1/execute`

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