@kronos-integration/service-influxdb 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-influxdb",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@influxdata/influxdb-client": "^1.35.0",
40
- "@kronos-integration/service": "^13.1.2",
40
+ "@kronos-integration/service": "^13.1.3",
41
41
  "pacc": "^3.11.1"
42
42
  },
43
43
  "devDependencies": {
@@ -7,6 +7,7 @@ import {
7
7
  import { Service } from "@kronos-integration/service";
8
8
  import { InfluxDB } from "@influxdata/influxdb-client";
9
9
  import { PointEndpoint } from "./point-endpoint.mjs";
10
+ export { PointEndpoint };
10
11
 
11
12
  /**
12
13
  * influxdb client.
@@ -1,7 +1,7 @@
1
1
  import test from "ava";
2
2
 
3
3
  import { StandaloneServiceProvider } from "@kronos-integration/service";
4
- import { ServiceInfluxdb } from "@kronos-integration/service-influxdb";
4
+ import { ServiceInfluxdb, PointEndpoint } from "@kronos-integration/service-influxdb";
5
5
 
6
6
  test("start / stop", async t => {
7
7
  const sp = new StandaloneServiceProvider();
@@ -20,7 +20,7 @@ test("start / stop", async t => {
20
20
  t.truthy(influxdb.client);
21
21
  t.truthy(influxdb.writeApi);
22
22
 
23
- //influxdb.endpoints["aPoint.aField"].receive("1.23");
23
+ t.true(influxdb.endpoints["aPoint.aField"] instanceof PointEndpoint);
24
24
 
25
25
  await influxdb.stop();
26
26
  t.is(influxdb.state, "stopped");
@@ -1,3 +1,4 @@
1
+ export { PointEndpoint };
1
2
  /**
2
3
  * influxdb client.
3
4
  */
@@ -7,5 +8,6 @@ export class ServiceInfluxdb extends Service {
7
8
  writeApi: import("@influxdata/influxdb-client").WriteApi;
8
9
  }
9
10
  export default ServiceInfluxdb;
11
+ import { PointEndpoint } from "./point-endpoint.mjs";
10
12
  import { Service } from "@kronos-integration/service";
11
13
  import { InfluxDB } from "@influxdata/influxdb-client";