@develit-io/backend-sdk 11.0.0 → 11.0.2
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/dist/index.mjs +6 -4
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -864,15 +864,17 @@ function develitWorker(Worker) {
|
|
|
864
864
|
`${this.name}:${this.action}:error`
|
|
865
865
|
);
|
|
866
866
|
}
|
|
867
|
-
pushToQueue(queue, message) {
|
|
867
|
+
async pushToQueue(queue, message) {
|
|
868
868
|
if (!queue) {
|
|
869
869
|
throw new Error(
|
|
870
870
|
"[pushToQueue] Queue binding is undefined \u2014 check your wrangler config"
|
|
871
871
|
);
|
|
872
872
|
}
|
|
873
|
-
if (!Array.isArray(message))
|
|
874
|
-
|
|
875
|
-
|
|
873
|
+
if (!Array.isArray(message)) {
|
|
874
|
+
await queue.send(message, { contentType: "v8" });
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
await queue.sendBatch(
|
|
876
878
|
message.map((m) => ({
|
|
877
879
|
body: m,
|
|
878
880
|
contentType: "v8"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-io/backend-sdk",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"description": "Develit Backend SDK",
|
|
5
5
|
"author": "Develit.io",
|
|
6
6
|
"license": "ISC",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@develit-io/general-codes": "^1.19.0",
|
|
44
44
|
"drizzle-orm": "1.0.0-rc.1",
|
|
45
|
-
"drizzle-zod": "1.0.0-
|
|
45
|
+
"drizzle-zod": "1.0.0-rc.1",
|
|
46
46
|
"hono": "^4.12.7",
|
|
47
47
|
"zod": "^4.3.6"
|
|
48
48
|
},
|