@kronos-integration/service-influxdb 1.0.3 → 1.2.0
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/.github/workflows/ci.yml
CHANGED
|
@@ -22,14 +22,6 @@ jobs:
|
|
|
22
22
|
steps:
|
|
23
23
|
- name: checkout
|
|
24
24
|
uses: actions/checkout@v4.2.2
|
|
25
|
-
# - name: Setup InfluxDB
|
|
26
|
-
# uses: influxdata/influxdb-action@v3
|
|
27
|
-
# with:
|
|
28
|
-
# influxdb_version: latest
|
|
29
|
-
# influxdb_org: influxdata
|
|
30
|
-
# influxdb_user: ci_user
|
|
31
|
-
# influxdb_password: password
|
|
32
|
-
# influxdb_bucket: dummy
|
|
33
25
|
- name: prepare node
|
|
34
26
|
uses: actions/setup-node@v4.4.0
|
|
35
27
|
with:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service-influxdb",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@influxdata/influxdb-client": "^1.35.0",
|
|
40
|
-
"@kronos-integration/service": "^13.
|
|
40
|
+
"@kronos-integration/service": "^13.1.1",
|
|
41
41
|
"pacc": "^3.9.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^24.0
|
|
44
|
+
"@types/node": "^24.1.0",
|
|
45
45
|
"ava": "^6.4.1",
|
|
46
46
|
"c8": "^10.1.3",
|
|
47
47
|
"documentation": "^14.0.3",
|
package/src/service-influxdb.mjs
CHANGED
|
@@ -56,7 +56,10 @@ export class ServiceInfluxdb extends Service {
|
|
|
56
56
|
async _start() {
|
|
57
57
|
await super._start();
|
|
58
58
|
|
|
59
|
-
const client = new InfluxDB({
|
|
59
|
+
const client = new InfluxDB({
|
|
60
|
+
url: this.url,
|
|
61
|
+
token: await this.getCredential("token")
|
|
62
|
+
});
|
|
60
63
|
|
|
61
64
|
this.client = client;
|
|
62
65
|
}
|