@develit-io/backend-sdk 10.0.1 → 10.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 +5 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -881,6 +881,11 @@ function develitWorker(Worker) {
|
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
883
|
pushToQueue(queue, message) {
|
|
884
|
+
if (!queue) {
|
|
885
|
+
throw new Error(
|
|
886
|
+
"[pushToQueue] Queue binding is undefined \u2014 check your wrangler config"
|
|
887
|
+
);
|
|
888
|
+
}
|
|
884
889
|
if (!Array.isArray(message))
|
|
885
890
|
return queue.send(message, { contentType: "v8" });
|
|
886
891
|
return queue.sendBatch(
|