@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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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
|
|
1271
|
-
* suffix Cloudflare appends
|
|
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
|
|
1271
|
-
* suffix Cloudflare appends
|
|
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
|
|
703
|
+
return /-dlq(?:-|$)/.test(queueName);
|
|
704
704
|
}
|
|
705
705
|
function parseDlqAlertRecipients(raw) {
|
|
706
706
|
if (!raw) return [];
|