influx 5.9.3 → 5.9.6
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 +21 -8
- package/.github/workflows/release.yml +18 -12
- package/README.md +1 -1
- package/lib/src/index.d.ts +6 -2
- package/lib/src/results.d.ts +6 -1
- package/package.json +9 -9
package/.github/workflows/CI.yml
CHANGED
|
@@ -8,10 +8,10 @@ jobs:
|
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
|
|
10
10
|
steps:
|
|
11
|
-
- uses: actions/checkout@
|
|
11
|
+
- uses: actions/checkout@v3
|
|
12
12
|
|
|
13
13
|
- name: Prettier
|
|
14
|
-
uses: creyD/prettier_action@v4.
|
|
14
|
+
uses: creyD/prettier_action@v4.3
|
|
15
15
|
with:
|
|
16
16
|
prettier_options: --write **/*.{tsx,ts,md}
|
|
17
17
|
commit_message: "style: prettier code"
|
|
@@ -21,11 +21,11 @@ jobs:
|
|
|
21
21
|
test-browser:
|
|
22
22
|
name: "Testing Browser"
|
|
23
23
|
|
|
24
|
-
runs-on: ubuntu-
|
|
24
|
+
runs-on: ubuntu-22.04
|
|
25
25
|
|
|
26
26
|
steps:
|
|
27
27
|
- name: Checkout
|
|
28
|
-
uses: actions/checkout@
|
|
28
|
+
uses: actions/checkout@v3
|
|
29
29
|
|
|
30
30
|
- name: Reconfigure Git to use HTTP authentication
|
|
31
31
|
run: >
|
|
@@ -33,7 +33,7 @@ jobs:
|
|
|
33
33
|
ssh://git@github.com/
|
|
34
34
|
|
|
35
35
|
- name: Setup Node.js
|
|
36
|
-
uses: actions/setup-node@
|
|
36
|
+
uses: actions/setup-node@v3
|
|
37
37
|
with:
|
|
38
38
|
node-version: "16"
|
|
39
39
|
|
|
@@ -52,12 +52,14 @@ jobs:
|
|
|
52
52
|
runs-on: ubuntu-latest
|
|
53
53
|
|
|
54
54
|
strategy:
|
|
55
|
+
fail-fast: false
|
|
56
|
+
|
|
55
57
|
matrix:
|
|
56
|
-
node: ["
|
|
58
|
+
node: ["16", "17", "18", "19"]
|
|
57
59
|
|
|
58
60
|
steps:
|
|
59
61
|
- name: Checkout
|
|
60
|
-
uses: actions/checkout@
|
|
62
|
+
uses: actions/checkout@v3
|
|
61
63
|
|
|
62
64
|
- name: Reconfigure Git to use HTTP authentication
|
|
63
65
|
run: >
|
|
@@ -65,7 +67,7 @@ jobs:
|
|
|
65
67
|
ssh://git@github.com/
|
|
66
68
|
|
|
67
69
|
- name: Setup node ${{ matrix.node }}
|
|
68
|
-
uses: actions/setup-node@
|
|
70
|
+
uses: actions/setup-node@v3
|
|
69
71
|
with:
|
|
70
72
|
node-version: ${{ matrix.node }}
|
|
71
73
|
|
|
@@ -82,3 +84,14 @@ jobs:
|
|
|
82
84
|
uses: coverallsapp/github-action@1.1.3
|
|
83
85
|
with:
|
|
84
86
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
87
|
+
parallel: true
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
finish:
|
|
91
|
+
needs: test-node
|
|
92
|
+
runs-on: ubuntu-latest
|
|
93
|
+
steps:
|
|
94
|
+
- name: Close parallel build
|
|
95
|
+
uses: coverallsapp/github-action@v1
|
|
96
|
+
with:
|
|
97
|
+
parallel-finished: true
|
|
@@ -2,29 +2,35 @@ name: Release
|
|
|
2
2
|
on:
|
|
3
3
|
push:
|
|
4
4
|
branches:
|
|
5
|
-
- master
|
|
5
|
+
- master # or main
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read # for checkout
|
|
9
|
+
|
|
6
10
|
jobs:
|
|
7
11
|
release:
|
|
8
12
|
name: Release
|
|
9
|
-
runs-on: ubuntu-
|
|
10
|
-
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
permissions:
|
|
15
|
+
contents: write # to be able to publish a GitHub release
|
|
16
|
+
issues: write # to be able to comment on released issues
|
|
17
|
+
pull-requests: write # to be able to comment on released pull requests
|
|
18
|
+
id-token: write # to enable use of OIDC for npm provenance
|
|
11
19
|
steps:
|
|
12
20
|
- name: Checkout
|
|
13
|
-
uses: actions/checkout@
|
|
21
|
+
uses: actions/checkout@v4
|
|
14
22
|
with:
|
|
15
23
|
fetch-depth: 0
|
|
16
|
-
- name: Reconfigure Git to use HTTP authentication
|
|
17
|
-
run: >
|
|
18
|
-
git config --global url."https://github.com/".insteadOf
|
|
19
|
-
ssh://git@github.com/
|
|
20
24
|
- name: Setup Node.js
|
|
21
|
-
uses: actions/setup-node@
|
|
25
|
+
uses: actions/setup-node@v4
|
|
22
26
|
with:
|
|
23
|
-
node-version:
|
|
27
|
+
node-version: "lts/*"
|
|
24
28
|
- name: Install dependencies
|
|
25
|
-
run: npm
|
|
29
|
+
run: npm clean-install
|
|
30
|
+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
|
|
31
|
+
run: npm audit signatures
|
|
26
32
|
- name: Release
|
|
27
33
|
env:
|
|
28
34
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
29
35
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
30
|
-
run:
|
|
36
|
+
run: npx semantic-release
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<a href="https://github.com/node-influx/node-influx/actions">
|
|
13
|
-
<img src="https://img.shields.io/github/workflow/status/node-influx/node-influx/CI
|
|
13
|
+
<img src="https://img.shields.io/github/actions/workflow/status/node-influx/node-influx/CI.yml?branch=master&style=flat-square"
|
|
14
14
|
alt="CI Status">
|
|
15
15
|
</a>
|
|
16
16
|
<a href="">
|
package/lib/src/index.d.ts
CHANGED
|
@@ -763,8 +763,12 @@ export declare class InfluxDB {
|
|
|
763
763
|
* ])
|
|
764
764
|
*/
|
|
765
765
|
writeMeasurement(measurement: string, points: IPoint[], options?: IWriteOptions): Promise<void>;
|
|
766
|
-
query<T>(query: string[], options?: IQueryOptions): Promise<Array<IResults<T
|
|
767
|
-
|
|
766
|
+
query<T>(query: string[], options?: IQueryOptions): Promise<Array<IResults<T & {
|
|
767
|
+
time: grammar.INanoDate;
|
|
768
|
+
}>>>;
|
|
769
|
+
query<T>(query: string, options?: IQueryOptions): Promise<IResults<T & {
|
|
770
|
+
time: grammar.INanoDate;
|
|
771
|
+
}>>;
|
|
768
772
|
/**
|
|
769
773
|
* QueryRaw functions similarly to .query() but it does no fancy
|
|
770
774
|
* transformations on the returned data; it calls `JSON.parse` and returns
|
package/lib/src/results.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { INanoDate } from "./grammar";
|
|
1
2
|
import { TimePrecision } from "./grammar";
|
|
2
3
|
/**
|
|
3
4
|
* A ResultError is thrown when a query generates errorful results from Influx.
|
|
@@ -108,7 +109,11 @@ export declare function assertNoErrors(res: IResponse): IResponse;
|
|
|
108
109
|
* 3. Multiple queries of types 1 and 2
|
|
109
110
|
* @private
|
|
110
111
|
*/
|
|
111
|
-
export declare function parse<T>(res: IResponse, precision?: TimePrecision): Array<IResults<T
|
|
112
|
+
export declare function parse<T>(res: IResponse, precision?: TimePrecision): Array<IResults<T & {
|
|
113
|
+
time: INanoDate;
|
|
114
|
+
}>> | IResults<T & {
|
|
115
|
+
time: INanoDate;
|
|
116
|
+
}>;
|
|
112
117
|
/**
|
|
113
118
|
* ParseSingle asserts that the response contains a single result,
|
|
114
119
|
* and returns that result.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "influx",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.6",
|
|
4
4
|
"description": "InfluxDB Client",
|
|
5
5
|
"main": "./lib/src/index.js",
|
|
6
6
|
"typings": "./lib/src/index",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/chai": "^4.2.11",
|
|
44
44
|
"@types/freeport": "1.0.22",
|
|
45
|
-
"@types/mocha": "^
|
|
46
|
-
"@types/node": "^
|
|
45
|
+
"@types/mocha": "^10.0.0",
|
|
46
|
+
"@types/node": "^18.0.0",
|
|
47
47
|
"@types/sinon": "^10.0.0",
|
|
48
48
|
"@types/sinon-chai": "^3.2.4",
|
|
49
49
|
"awesome-typescript-loader": "5.2.1",
|
|
50
|
-
"chai": "4.3.
|
|
50
|
+
"chai": "4.3.7",
|
|
51
51
|
"coveralls": "^3.1.0",
|
|
52
52
|
"esdoc": "1.1.0",
|
|
53
53
|
"esdoc-standard-plugin": "1.0.0",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"karma-sourcemap-loader": "0.3.8",
|
|
62
62
|
"karma-webpack": "^5.0.0-alpha.5",
|
|
63
63
|
"lodash": "4.17.21",
|
|
64
|
-
"mocha": "^
|
|
65
|
-
"node-fetch": "
|
|
64
|
+
"mocha": "^10.0.0",
|
|
65
|
+
"node-fetch": "3.3.0",
|
|
66
66
|
"npm-run-all": "4.1.5",
|
|
67
67
|
"open-cli": "^7.0.0",
|
|
68
68
|
"prettier": "^2.3.0",
|
|
69
|
-
"puppeteer": "^
|
|
70
|
-
"semantic-release": "^
|
|
71
|
-
"sinon": "^
|
|
69
|
+
"puppeteer": "^19.0.0",
|
|
70
|
+
"semantic-release": "^20.0.0",
|
|
71
|
+
"sinon": "^15.0.0",
|
|
72
72
|
"sinon-chai": "^3.5.0",
|
|
73
73
|
"stream-http": "github:node-influx/stream-http",
|
|
74
74
|
"ts-node": "^10.0.0",
|