@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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -0
  2. 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(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-io/backend-sdk",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "Develit Backend SDK",
5
5
  "author": "Develit.io",
6
6
  "license": "ISC",