@quenty/memorystoreutils 6.4.0 → 6.4.1-canary.497.25c8512.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 +8 -0
- package/package.json +4 -4
- package/src/MemoryStoreUtils.lua +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.4.1-canary.497.25c8512.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/memorystoreutils@6.4.0...@quenty/memorystoreutils@6.4.1-canary.497.25c8512.0) (2024-09-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/memorystoreutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [6.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/memorystoreutils@6.3.0...@quenty/memorystoreutils@6.4.0) (2024-09-12)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/memorystoreutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/memorystoreutils",
|
|
3
|
-
"version": "6.4.0",
|
|
3
|
+
"version": "6.4.1-canary.497.25c8512.0",
|
|
4
4
|
"description": "Utility functions for memory store srevice",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/loader": "
|
|
30
|
-
"@quenty/promise": "
|
|
29
|
+
"@quenty/loader": "10.4.1-canary.497.25c8512.0",
|
|
30
|
+
"@quenty/promise": "10.4.1-canary.497.25c8512.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@quenty/loader": "file:../loader"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "25c85124769eb0c92ad4d4c51bc950d9c319c994"
|
|
39
39
|
}
|
package/src/MemoryStoreUtils.lua
CHANGED
|
@@ -28,7 +28,7 @@ function MemoryStoreUtils.promiseAdd(queue, value, expirationSeconds, priority)
|
|
|
28
28
|
|
|
29
29
|
return Promise.spawn(function(resolve, reject)
|
|
30
30
|
if DEBUG_QUEUE then
|
|
31
|
-
print(("[MemoryStoreUtils.promiseAdd] - Queuing %q"
|
|
31
|
+
print(string.format("[MemoryStoreUtils.promiseAdd] - Queuing %q", HttpService:JSONEncode(value)))
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
local ok, err = pcall(function()
|
|
@@ -37,7 +37,7 @@ function MemoryStoreUtils.promiseAdd(queue, value, expirationSeconds, priority)
|
|
|
37
37
|
|
|
38
38
|
if not ok then
|
|
39
39
|
if DEBUG_QUEUE then
|
|
40
|
-
warn(("Failed to queue due to %q"
|
|
40
|
+
warn(string.format("Failed to queue due to %q", err or "nil"))
|
|
41
41
|
end
|
|
42
42
|
return reject(err or "[MemoryStoreUtils.promiseAdd] - Failed to AddAsync to the queue")
|
|
43
43
|
end
|
|
@@ -73,7 +73,7 @@ function MemoryStoreUtils.promiseRead(queue, count, allOrNothing, waitTimeout)
|
|
|
73
73
|
if not ok then
|
|
74
74
|
if DEBUG_QUEUE then
|
|
75
75
|
print("[MemoryStoreUtils.promiseRead] - Read from queue", ok, values, removeId)
|
|
76
|
-
warn(("[MemoryStoreUtils.promiseRead] - Failed to read queue due to %q"
|
|
76
|
+
warn(string.format("[MemoryStoreUtils.promiseRead] - Failed to read queue due to %q", err or "nil"))
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
return reject(err or "[MemoryStoreUtils.promiseRead] - Failed to ReadAsync from the queue")
|
|
@@ -99,7 +99,7 @@ function MemoryStoreUtils.promiseRemove(queue, id)
|
|
|
99
99
|
|
|
100
100
|
return Promise.spawn(function(resolve, reject)
|
|
101
101
|
if DEBUG_QUEUE then
|
|
102
|
-
print(("[MemoryStoreUtils.promiseRemove] - Removing %q"
|
|
102
|
+
print(string.format("[MemoryStoreUtils.promiseRemove] - Removing %q", HttpService:JSONEncode(id)))
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
local ok, err = pcall(function()
|
|
@@ -108,7 +108,7 @@ function MemoryStoreUtils.promiseRemove(queue, id)
|
|
|
108
108
|
|
|
109
109
|
if not ok then
|
|
110
110
|
if DEBUG_QUEUE then
|
|
111
|
-
warn(("Failed to remove queue id %q due to %q"
|
|
111
|
+
warn(string.format("Failed to remove queue id %q due to %q", id, err or "nil"))
|
|
112
112
|
end
|
|
113
113
|
|
|
114
114
|
return reject(err or "[MemoryStoreUtils.promiseRemove] - Failed to RemoveAsync from the queue")
|