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

influx

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

influx - npm Package Compare versions

Comparing version 5.5.3 to 5.6.0

13

lib/src/index.d.ts

@@ -140,2 +140,7 @@ /// <reference types="node" />

database?: string;
/**
* Any placeholders used by the query. Using these is strongly recommended
* to avoid injection attacks.
*/
placeholders?: Record<string, string>;
}

@@ -213,6 +218,10 @@ /**

* select * from response_times
* where host = ${Influx.escape.stringLit(os.hostname())}
* where host = $<host>
* order by time desc
* limit 10
* `)
* `, {
* placeholders: {
* host: os.hostname()
* }
* })
* }).then(rows => {

@@ -219,0 +228,0 @@ * rows.forEach(row => console.log(`A request to ${row.path} took ${row.duration}ms`))

11

lib/src/index.js

@@ -134,6 +134,10 @@ "use strict";

* select * from response_times
* where host = ${Influx.escape.stringLit(os.hostname())}
* where host = $<host>
* order by time desc
* limit 10
* `)
* `, {
* placeholders: {
* host: os.hostname()
* }
* })
* }).then(rows => {

@@ -929,3 +933,3 @@ * rows.forEach(row => console.log(`A request to ${row.path} took ${row.duration}ms`))

queryRaw(query, options = {}) {
const { database = this._defaultDB(), retentionPolicy } = options;
const { database = this._defaultDB(), retentionPolicy, placeholders = {}, } = options;
if (query instanceof Array) {

@@ -939,2 +943,3 @@ query = query.join(";");

rp: retentionPolicy,
params: placeholders,
}));

@@ -941,0 +946,0 @@ }

{
"name": "influx",
"version": "5.5.3",
"version": "5.6.0",
"description": "InfluxDB Client",

@@ -39,3 +39,4 @@ "main": "./lib/src/index.js",

"Connor Peet <connor@peet.io>",
"Steffen Konerow <steffen@nrg-media.de> (http://www.nrg-media.de)"
"Steffen Konerow <steffen@nrg-media.de> (http://www.nrg-media.de)",
"Timm Murray <tmurray@wumpus-cave.net> (http://wumpus-cave.net)"
],

@@ -42,0 +43,0 @@ "license": "MIT",

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