@develit-io/backend-sdk 12.4.0 → 12.4.1

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.d.mts CHANGED
@@ -1267,8 +1267,10 @@ declare class DatabaseTransaction<TAuditAction = string> {
1267
1267
  declare const DLQ_ALERT_DEFAULT_MIN_SIZE = 50;
1268
1268
  declare const DLQ_ALERT_DEFAULT_MAX_INTERVAL = 21600;
1269
1269
  /**
1270
- * A DLQ is any queue whose name contains `-dlq`. Robust to the environment
1271
- * suffix Cloudflare appends in deployed envs (e.g. `...-dlq-production`).
1270
+ * A DLQ is any queue whose name ends in `-dlq` or carries `-dlq` as a token
1271
+ * before the environment suffix Cloudflare appends (e.g. `...-dlq-production`).
1272
+ * Matches `-dlq` as a token rather than a bare substring, so names that merely
1273
+ * contain it (e.g. `orders-dlqx`) are not misclassified as DLQs.
1272
1274
  */
1273
1275
  declare function isDlqQueue(queueName: string): boolean;
1274
1276
  /**
package/dist/index.d.ts CHANGED
@@ -1267,8 +1267,10 @@ declare class DatabaseTransaction<TAuditAction = string> {
1267
1267
  declare const DLQ_ALERT_DEFAULT_MIN_SIZE = 50;
1268
1268
  declare const DLQ_ALERT_DEFAULT_MAX_INTERVAL = 21600;
1269
1269
  /**
1270
- * A DLQ is any queue whose name contains `-dlq`. Robust to the environment
1271
- * suffix Cloudflare appends in deployed envs (e.g. `...-dlq-production`).
1270
+ * A DLQ is any queue whose name ends in `-dlq` or carries `-dlq` as a token
1271
+ * before the environment suffix Cloudflare appends (e.g. `...-dlq-production`).
1272
+ * Matches `-dlq` as a token rather than a bare substring, so names that merely
1273
+ * contain it (e.g. `orders-dlqx`) are not misclassified as DLQs.
1272
1274
  */
1273
1275
  declare function isDlqQueue(queueName: string): boolean;
1274
1276
  /**
package/dist/index.mjs CHANGED
@@ -700,7 +700,7 @@ const defineCommand = (handler) => {
700
700
  const DLQ_ALERT_DEFAULT_MIN_SIZE = 50;
701
701
  const DLQ_ALERT_DEFAULT_MAX_INTERVAL = 21600;
702
702
  function isDlqQueue(queueName) {
703
- return queueName.includes("-dlq");
703
+ return /-dlq(?:-|$)/.test(queueName);
704
704
  }
705
705
  function parseDlqAlertRecipients(raw) {
706
706
  if (!raw) return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-io/backend-sdk",
3
- "version": "12.4.0",
3
+ "version": "12.4.1",
4
4
  "description": "Develit Backend SDK",
5
5
  "author": "Develit.io",
6
6
  "license": "ISC",