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

@omotes/sdk

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@omotes/sdk - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "@omotes/sdk",
"version": "0.0.6",
"version": "0.0.7",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -10,3 +10,6 @@ import { Job } from './Job';

createJob(type: JobTypeName, esdl: string): Promise<Job>;
getProfile(dbName: string, host: string, port: number, measurement: string, field: string): Promise<import("influx").IResults<unknown>>;
getProfile(dbName: string, host: string, port: number, measurement: string, field: string, filterId: string): Promise<import("influx").IResults<{
value: number;
time: import("influx").INanoDate;
}>>;
}

@@ -40,5 +40,5 @@ "use strict";

}
getProfile(dbName, host, port, measurement, field) {
getProfile(dbName, host, port, measurement, field, filterId) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
return (0, profiles_1.getProfile)(dbName, host, port, measurement, field, this.options.influxUser, this.options.influxPassword);
return (0, profiles_1.getProfile)(dbName, host, port, measurement, field, filterId, this.options.influxUser, this.options.influxPassword);
});

@@ -45,0 +45,0 @@ }

@@ -1,1 +0,5 @@

export declare function getProfile(dbName: string, host: string, port: number, measurement: string, field: string, username: string, password: string): Promise<import("influx").IResults<unknown>>;
import { INanoDate } from 'influx';
export declare function getProfile(dbName: string, host: string, port: number, measurement: string, field: string, filterId: string, username: string, password: string): Promise<import("influx").IResults<{
value: number;
time: INanoDate;
}>>;

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

const influx_1 = require("influx");
function getProfile(dbName, host, port, measurement, field, username, password) {
function getProfile(dbName, host, port, measurement, field, filterId, username, password) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {

@@ -25,3 +25,4 @@ const db = new influx_1.InfluxDB({

});
return db.query(`SELECT * FROM ${field}`);
const query = `select ${influx_1.escape.quoted(field)} as value, output_esdl_id from ${influx_1.escape.quoted(measurement)} where output_esdl_id = $filterId;`;
return db.query(query, { placeholders: { filterId } });
});

@@ -28,0 +29,0 @@ }

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