@quenty/influxdbclient 7.18.2 → 7.19.0-canary.544.de8fcee.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/CHANGELOG.md +6 -2
- package/package.json +15 -15
- package/src/Shared/Utils/InfluxDBEscapeUtils.spec.lua +42 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [7.19.0-canary.544.de8fcee.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/influxdbclient@7.18.1...@quenty/influxdbclient@7.19.0-canary.544.de8fcee.0) (2025-04-01)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix existing tests ([655787c](https://github.com/Quenty/NevermoreEngine/commit/655787ced1139136e12f81800e229aa076731561))
|
|
12
|
+
* Fix type errors ([50b3238](https://github.com/Quenty/NevermoreEngine/commit/50b3238ecfb563676e4795dac04f63a3b9741141))
|
|
9
13
|
|
|
10
14
|
|
|
11
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/influxdbclient",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.19.0-canary.544.de8fcee.0",
|
|
4
4
|
"description": "Provides a Roblox Lua InfluxDB client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "
|
|
29
|
-
"@quenty/httppromise": "
|
|
30
|
-
"@quenty/jsonutils": "
|
|
31
|
-
"@quenty/loader": "
|
|
32
|
-
"@quenty/maid": "
|
|
33
|
-
"@quenty/math": "
|
|
34
|
-
"@quenty/promise": "
|
|
35
|
-
"@quenty/rx": "
|
|
36
|
-
"@quenty/servicebag": "
|
|
37
|
-
"@quenty/signal": "
|
|
38
|
-
"@quenty/string": "
|
|
39
|
-
"@quenty/table": "
|
|
40
|
-
"@quenty/valueobject": "
|
|
28
|
+
"@quenty/baseobject": "10.8.0",
|
|
29
|
+
"@quenty/httppromise": "10.10.1",
|
|
30
|
+
"@quenty/jsonutils": "10.10.1",
|
|
31
|
+
"@quenty/loader": "10.8.0",
|
|
32
|
+
"@quenty/maid": "3.4.0",
|
|
33
|
+
"@quenty/math": "2.7.1",
|
|
34
|
+
"@quenty/promise": "10.10.1",
|
|
35
|
+
"@quenty/rx": "13.17.0-canary.544.de8fcee.0",
|
|
36
|
+
"@quenty/servicebag": "11.11.1",
|
|
37
|
+
"@quenty/signal": "7.10.0",
|
|
38
|
+
"@quenty/string": "3.3.1",
|
|
39
|
+
"@quenty/table": "3.7.1",
|
|
40
|
+
"@quenty/valueobject": "13.17.0-canary.544.de8fcee.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "de8fcee995fcdae464964357b4c770c03f4c7e03"
|
|
46
46
|
}
|
|
@@ -5,47 +5,57 @@
|
|
|
5
5
|
local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
6
6
|
|
|
7
7
|
local InfluxDBEscapeUtils = require("InfluxDBEscapeUtils")
|
|
8
|
+
local Jest = require("Jest")
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
expect(InfluxDBEscapeUtils.measurement("hi")).to.equal("hi")
|
|
13
|
-
end)
|
|
10
|
+
local describe = Jest.Globals.describe
|
|
11
|
+
local expect = Jest.Globals.expect
|
|
12
|
+
local it = Jest.Globals.it
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
describe("InfluxDBEscapeUtils.measurement", function()
|
|
15
|
+
it("should pass through fine", function()
|
|
16
|
+
local measurement = InfluxDBEscapeUtils.measurement("hi")
|
|
17
|
+
expect(measurement).toBe("hi")
|
|
18
18
|
end)
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
it("should escape tabs", function()
|
|
21
|
+
local measurement = InfluxDBEscapeUtils.measurement("\thi")
|
|
22
|
+
expect(measurement).toBe("\\thi")
|
|
23
|
+
end)
|
|
24
|
+
end)
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
describe("InfluxDBEscapeUtils.quoted", function()
|
|
27
|
+
it("should pass through fine", function()
|
|
28
|
+
expect(InfluxDBEscapeUtils.quoted("hi")).toBe("\"hi\"")
|
|
28
29
|
end)
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
it("should escape quotes", function()
|
|
32
|
+
expect(InfluxDBEscapeUtils.quoted("\"hi")).toBe("\"\\\"hi\"")
|
|
33
|
+
end)
|
|
34
|
+
end)
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
describe("InfluxDBEscapeUtils.tag", function()
|
|
37
|
+
it("should pass through fine", function()
|
|
38
|
+
local tag = InfluxDBEscapeUtils.tag("hi")
|
|
39
|
+
expect(tag).toBe("hi")
|
|
40
|
+
end)
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
it("should escape tabs", function()
|
|
43
|
+
local tag = InfluxDBEscapeUtils.tag("\thi")
|
|
44
|
+
expect(tag).toBe("\\thi")
|
|
45
|
+
end)
|
|
42
46
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
it("should escape =", function()
|
|
48
|
+
local tag = InfluxDBEscapeUtils.tag("=hi")
|
|
49
|
+
expect(tag).toBe("\\=hi")
|
|
50
|
+
end)
|
|
51
|
+
|
|
52
|
+
it("should escape = and \\", function()
|
|
53
|
+
local tag = InfluxDBEscapeUtils.tag("\\=hi")
|
|
54
|
+
expect(tag).toBe("\\\\\\=hi")
|
|
55
|
+
end)
|
|
46
56
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
57
|
+
it("should escape \\n", function()
|
|
58
|
+
local tag = InfluxDBEscapeUtils.tag("\nhi")
|
|
59
|
+
expect(tag).toBe("\\nhi")
|
|
50
60
|
end)
|
|
51
|
-
end
|
|
61
|
+
end)
|