New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

athena-client

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

athena-client - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

8

lib/client.js

@@ -84,2 +84,10 @@ 'use strict'

data = yield request.getQueryResults(queryId, nowConfig)
let previousToken
while (data.NextToken && data.NextToken !== previousToken) {
let dataTmp = yield request.getQueryResults(queryId, nowConfig, data.NextToken)
data.NextToken = dataTmp.NextToken || null
data.ResultSet.Rows = data.ResultSet.Rows.concat(dataTmp.ResultSet.Rows)
previousToken = data.NextToken
}
let format = options.format || nowConfig.format

@@ -86,0 +94,0 @@ data = extractData(data, format)

5

lib/request.js

@@ -98,3 +98,3 @@ 'use strict'

getQueryResults(queryId, config, retryCount) {
getQueryResults(queryId, config, nextToken) {
return new Promise((resolve, reject) => {

@@ -105,2 +105,5 @@ let retryCount = 0

}
if (nextToken) {
params.NextToken = nextToken
}
let loopFunc = () => {

@@ -107,0 +110,0 @@ athena.getQueryResults(params, (err, data) => {

2

package.json
{
"name": "athena-client",
"version": "1.0.5",
"version": "1.0.6",
"description": "a nodejs simple aws athena client",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/KoteiIto/node-athena",

@@ -81,3 +81,4 @@ 'use strict'

]
}
},
NextToken: "TOKEN",
}

@@ -84,0 +85,0 @@ return new Promise((resolve, reject) => {

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