@kronos-integration/service-influxdb 2.0.11 → 2.0.13
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/README.md +3 -1
- package/package.json +13 -9
- package/.github/dependabot.yml +0 -19
- package/.github/pr_labeler.yml +0 -61
- package/.github/workflows/auto_approve.yml +0 -13
- package/.github/workflows/ci.yml +0 -75
- package/.github/workflows/codeql_analysis.yml +0 -30
- package/.github/workflows/pr_labeler.yml +0 -14
- package/.github/workflows/update_package_lock.yml +0 -36
- package/.github/workflows/update_readme_api.yml +0 -32
- package/tests/influxdb-ava.mjs +0 -27
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@kronos-integration/service-influxdb)
|
|
1
2
|
[](https://spdx.org/licenses/0BSD.html)
|
|
3
|
+
[](https://bundlejs.com/?q=@kronos-integration/service-influxdb)
|
|
4
|
+
[](https://npmjs.org/package/@kronos-integration/service-influxdb)
|
|
2
5
|
[](https://github.com/Kronos-Integration/service-influxdb/issues)
|
|
3
6
|
[](https://actions-badge.atrox.dev/Kronos-Integration/service-influxdb/goto)
|
|
4
7
|
[](https://github.com/prettier/prettier)
|
|
5
8
|
[](http://commitizen.github.io/cz-cli/)
|
|
6
9
|
[](https://snyk.io/test/github/Kronos-Integration/service-influxdb)
|
|
7
|
-
[](https://coveralls.io/github/Kronos-Integration/service-influxdb)
|
|
8
10
|
|
|
9
11
|
# @kronos-integration/service-influxdb
|
|
10
12
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service-influxdb",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
7
7
|
},
|
|
8
|
+
"packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"default": "./src/service-influxdb.mjs"
|
|
@@ -21,22 +22,22 @@
|
|
|
21
22
|
"email": "markus.felten@gmx.de"
|
|
22
23
|
}
|
|
23
24
|
],
|
|
24
|
-
"license": "
|
|
25
|
+
"license": "0BSD",
|
|
25
26
|
"scripts": {
|
|
26
27
|
"test": "node --run test:ava",
|
|
27
28
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
28
29
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
29
|
-
"docs": "documentation readme --section=API ./src
|
|
30
|
+
"docs": "documentation readme --section=API ./src**/*.mjs",
|
|
30
31
|
"lint": "node --run lint:docs",
|
|
31
|
-
"lint:docs": "documentation lint ./src
|
|
32
|
+
"lint:docs": "documentation lint ./src**/*.mjs"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@influxdata/influxdb-client": "^1.35.0",
|
|
35
|
-
"@kronos-integration/service": "^15.1.
|
|
36
|
-
"pacc": "^
|
|
36
|
+
"@kronos-integration/service": "^15.1.4",
|
|
37
|
+
"pacc": "^6.1.0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^
|
|
40
|
+
"@types/node": "^25.0.1",
|
|
40
41
|
"ava": "^6.4.1",
|
|
41
42
|
"c8": "^10.1.3",
|
|
42
43
|
"documentation": "^14.0.3",
|
|
@@ -49,11 +50,14 @@
|
|
|
49
50
|
"type": "git",
|
|
50
51
|
"url": "git+https://github.com/Kronos-Integration/service-influxdb.git"
|
|
51
52
|
},
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/Kronos-Integration/service-influxdb/issues"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://github.com/Kronos-Integration/service-influxdb#readme",
|
|
52
57
|
"template": {
|
|
53
58
|
"inheritFrom": [
|
|
54
59
|
"arlac77/template-arlac77-github",
|
|
55
60
|
"arlac77/template-kronos-component"
|
|
56
61
|
]
|
|
57
|
-
}
|
|
58
|
-
"packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45"
|
|
62
|
+
}
|
|
59
63
|
}
|
package/.github/dependabot.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: npm
|
|
4
|
-
directory: /
|
|
5
|
-
schedule:
|
|
6
|
-
interval: daily
|
|
7
|
-
commit-message:
|
|
8
|
-
prefix: "fix(deps):"
|
|
9
|
-
prefix-development: "chore(deps):"
|
|
10
|
-
labels:
|
|
11
|
-
- npm dependencies
|
|
12
|
-
- package-ecosystem: github-actions
|
|
13
|
-
directory: /
|
|
14
|
-
schedule:
|
|
15
|
-
interval: daily
|
|
16
|
-
commit-message:
|
|
17
|
-
prefix: "chore(action):"
|
|
18
|
-
labels:
|
|
19
|
-
- dependencies
|
package/.github/pr_labeler.yml
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
ci:
|
|
2
|
-
- changed-files:
|
|
3
|
-
- any-glob-to-any-file:
|
|
4
|
-
- .github/workflows/*
|
|
5
|
-
- .travis.yml
|
|
6
|
-
dependencies:
|
|
7
|
-
- changed-files:
|
|
8
|
-
- any-glob-to-any-file:
|
|
9
|
-
- package-lock.json
|
|
10
|
-
- yarn.lockfile
|
|
11
|
-
deployment:
|
|
12
|
-
- changed-files:
|
|
13
|
-
- any-glob-to-any-file:
|
|
14
|
-
- netlify.toml
|
|
15
|
-
- _redirects
|
|
16
|
-
documentation:
|
|
17
|
-
- changed-files:
|
|
18
|
-
- any-glob-to-any-file:
|
|
19
|
-
- docs/**/*
|
|
20
|
-
- "**/*.md"
|
|
21
|
-
github:
|
|
22
|
-
- changed-files:
|
|
23
|
-
- any-glob-to-any-file:
|
|
24
|
-
- .github/**/*
|
|
25
|
-
git:
|
|
26
|
-
- changed-files:
|
|
27
|
-
- any-glob-to-any-file:
|
|
28
|
-
- .gitignore
|
|
29
|
-
labels:
|
|
30
|
-
- changed-files:
|
|
31
|
-
- any-glob-to-any-file:
|
|
32
|
-
- .github/pr_labeler.yml
|
|
33
|
-
lint:
|
|
34
|
-
- changed-files:
|
|
35
|
-
- any-glob-to-any-file:
|
|
36
|
-
- .stylelintrc.json
|
|
37
|
-
npm:
|
|
38
|
-
- changed-files:
|
|
39
|
-
- any-glob-to-any-file:
|
|
40
|
-
- .npmignore
|
|
41
|
-
- package.json
|
|
42
|
-
- package-lock.json
|
|
43
|
-
openapi:
|
|
44
|
-
- changed-files:
|
|
45
|
-
- any-glob-to-any-file:
|
|
46
|
-
- openapi/*
|
|
47
|
-
rollup:
|
|
48
|
-
- changed-files:
|
|
49
|
-
- any-glob-to-any-file:
|
|
50
|
-
- rollup.config.mjs
|
|
51
|
-
styling:
|
|
52
|
-
- changed-files:
|
|
53
|
-
- any-glob-to-any-file:
|
|
54
|
-
- "**/*.css"
|
|
55
|
-
test:
|
|
56
|
-
- changed-files:
|
|
57
|
-
- any-glob-to-any-file: tests/**/*
|
|
58
|
-
vscode:
|
|
59
|
-
- changed-files:
|
|
60
|
-
- any-glob-to-any-file:
|
|
61
|
-
- .vscode/*
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
name: Auto approve
|
|
2
|
-
on: pull_request_target
|
|
3
|
-
jobs:
|
|
4
|
-
auto-approve:
|
|
5
|
-
runs-on: ubuntu-latest
|
|
6
|
-
steps:
|
|
7
|
-
- uses: hmarr/auto-approve-action@v4.0.0
|
|
8
|
-
if: github.actor == 'dependabot[bot]'
|
|
9
|
-
with:
|
|
10
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
11
|
-
review-message: Auto approved automated PR
|
|
12
|
-
permissions:
|
|
13
|
-
pull-requests: write
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- master
|
|
6
|
-
- next
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- master
|
|
10
|
-
- next
|
|
11
|
-
permissions:
|
|
12
|
-
contents: read
|
|
13
|
-
id-token: write
|
|
14
|
-
jobs:
|
|
15
|
-
test-node:
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
strategy:
|
|
18
|
-
matrix:
|
|
19
|
-
os:
|
|
20
|
-
- ubuntu-latest
|
|
21
|
-
node-version:
|
|
22
|
-
- 24.11.1
|
|
23
|
-
steps:
|
|
24
|
-
- name: checkout
|
|
25
|
-
uses: actions/checkout@v6.0.1
|
|
26
|
-
- name: prepare node
|
|
27
|
-
uses: actions/setup-node@v6.1.0
|
|
28
|
-
with:
|
|
29
|
-
node-version: ${{ matrix.node-version }}
|
|
30
|
-
- name: install
|
|
31
|
-
run: npm ci
|
|
32
|
-
- name: test and coverage
|
|
33
|
-
run: npm run cover --if-present
|
|
34
|
-
- name: coveralls
|
|
35
|
-
uses: coverallsapp/github-action@v2
|
|
36
|
-
with:
|
|
37
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
38
|
-
flag-name: run-${{ matrix.test_number }}
|
|
39
|
-
path-to-lcov: build/coverage/lcov.info
|
|
40
|
-
parallel: true
|
|
41
|
-
continue-on-error: true
|
|
42
|
-
release:
|
|
43
|
-
needs:
|
|
44
|
-
- test-node
|
|
45
|
-
runs-on: ubuntu-latest
|
|
46
|
-
permissions:
|
|
47
|
-
contents: write
|
|
48
|
-
issues: write
|
|
49
|
-
pull-requests: write
|
|
50
|
-
id-token: write
|
|
51
|
-
steps:
|
|
52
|
-
- name: checkout
|
|
53
|
-
uses: actions/checkout@v6.0.1
|
|
54
|
-
- name: prepare node
|
|
55
|
-
uses: actions/setup-node@v6.1.0
|
|
56
|
-
with:
|
|
57
|
-
node-version: 24.11.1
|
|
58
|
-
- name: install
|
|
59
|
-
run: npm ci
|
|
60
|
-
- name: release
|
|
61
|
-
run: npx semantic-release
|
|
62
|
-
env:
|
|
63
|
-
CI: "true"
|
|
64
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
65
|
-
finish:
|
|
66
|
-
needs:
|
|
67
|
-
- test-node
|
|
68
|
-
runs-on: ubuntu-latest
|
|
69
|
-
steps:
|
|
70
|
-
- name: finish coveralls
|
|
71
|
-
uses: coverallsapp/github-action@v2
|
|
72
|
-
with:
|
|
73
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
74
|
-
path-to-lcov: build/coverage/lcov.info
|
|
75
|
-
parallel-finished: true
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
name: CodeQL
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- master
|
|
6
|
-
pull_request:
|
|
7
|
-
branches:
|
|
8
|
-
- master
|
|
9
|
-
jobs:
|
|
10
|
-
analyze:
|
|
11
|
-
name: Analyze
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- name: checkout
|
|
15
|
-
uses: actions/checkout@v6.0.1
|
|
16
|
-
- name: git checkout
|
|
17
|
-
run: git checkout
|
|
18
|
-
if: ${{ github.event_name == 'pull_request' }}
|
|
19
|
-
- name: initialize CodeQL
|
|
20
|
-
uses: github/codeql-action/init@v4
|
|
21
|
-
with:
|
|
22
|
-
languages: javascript
|
|
23
|
-
- name: prepare node
|
|
24
|
-
uses: actions/setup-node@v6.1.0
|
|
25
|
-
with:
|
|
26
|
-
node-version: 24.11.1
|
|
27
|
-
- name: install
|
|
28
|
-
run: npm ci
|
|
29
|
-
- name: perform CodeQL analysis
|
|
30
|
-
uses: github/codeql-action/analyze@v4
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
name: Pull Request Labeler
|
|
2
|
-
on: pull_request_target
|
|
3
|
-
jobs:
|
|
4
|
-
triage:
|
|
5
|
-
permissions:
|
|
6
|
-
contents: read
|
|
7
|
-
pull-requests: write
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/labeler@v6
|
|
11
|
-
with:
|
|
12
|
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
13
|
-
configuration-path: .github/pr_labeler.yml
|
|
14
|
-
sync-labels: false
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
name: Update package lock
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
paths:
|
|
5
|
-
- package.json
|
|
6
|
-
schedule:
|
|
7
|
-
- cron: 13 8 * * 6
|
|
8
|
-
jobs:
|
|
9
|
-
update_package_lock:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- name: checkout
|
|
13
|
-
uses: actions/checkout@v6.0.1
|
|
14
|
-
- name: prepare node
|
|
15
|
-
uses: actions/setup-node@v6.1.0
|
|
16
|
-
with:
|
|
17
|
-
node-version: 24.11.1
|
|
18
|
-
- name: remove lock
|
|
19
|
-
run: rm package-lock.json
|
|
20
|
-
- name: install playwright
|
|
21
|
-
run: npx playwright install
|
|
22
|
-
- name: test
|
|
23
|
-
run: npm install-test
|
|
24
|
-
env:
|
|
25
|
-
BROWSER: chrome
|
|
26
|
-
- name: create pull request
|
|
27
|
-
uses: gr2m/create-or-update-pull-request-action@v1.10.1
|
|
28
|
-
env:
|
|
29
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
30
|
-
with:
|
|
31
|
-
path: package-lock.json
|
|
32
|
-
title: Regenerate package lock
|
|
33
|
-
body: bring lock in sync
|
|
34
|
-
branch: package-lock
|
|
35
|
-
labels: npm
|
|
36
|
-
commit-message: "chore(deps): lock"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
name: API to readme
|
|
2
|
-
on:
|
|
3
|
-
schedule:
|
|
4
|
-
- cron: 31 14 * * 6
|
|
5
|
-
push:
|
|
6
|
-
paths:
|
|
7
|
-
- src/*
|
|
8
|
-
jobs:
|
|
9
|
-
update_readme_api:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- name: checkout
|
|
13
|
-
uses: actions/checkout@v6.0.1
|
|
14
|
-
- name: prepare node
|
|
15
|
-
uses: actions/setup-node@v6.1.0
|
|
16
|
-
with:
|
|
17
|
-
node-version: 24.11.1
|
|
18
|
-
- name: install
|
|
19
|
-
run: npm ci
|
|
20
|
-
- name: run docs
|
|
21
|
-
run: npm run docs
|
|
22
|
-
- uses: gr2m/create-or-update-pull-request-action@v1.10.1
|
|
23
|
-
env:
|
|
24
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
25
|
-
with:
|
|
26
|
-
path: README.md
|
|
27
|
-
title: Sync API into README
|
|
28
|
-
branch: readme-api
|
|
29
|
-
commit-message: "docs(README): sync API"
|
|
30
|
-
permissions:
|
|
31
|
-
contents: write
|
|
32
|
-
pull-requests: write
|
package/tests/influxdb-ava.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import test from "ava";
|
|
2
|
-
|
|
3
|
-
import { StandaloneServiceProvider } from "@kronos-integration/service";
|
|
4
|
-
import { ServiceInfluxdb, PointEndpoint } from "@kronos-integration/service-influxdb";
|
|
5
|
-
|
|
6
|
-
test("start / stop", async t => {
|
|
7
|
-
const sp = new StandaloneServiceProvider();
|
|
8
|
-
|
|
9
|
-
const influxdb = await sp.declareService({
|
|
10
|
-
type: ServiceInfluxdb,
|
|
11
|
-
url: "http://localhost:8086",
|
|
12
|
-
endpoints: {
|
|
13
|
-
"aPoint.aField": {}
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
await influxdb.start();
|
|
18
|
-
t.is(influxdb.state, "running");
|
|
19
|
-
|
|
20
|
-
t.truthy(influxdb.client);
|
|
21
|
-
t.truthy(influxdb.writeApi);
|
|
22
|
-
|
|
23
|
-
t.true(influxdb.endpoints["aPoint.aField"] instanceof PointEndpoint);
|
|
24
|
-
|
|
25
|
-
await influxdb.stop();
|
|
26
|
-
t.is(influxdb.state, "stopped");
|
|
27
|
-
});
|