@cadenza.io/service 2.17.62 → 2.17.63
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/browser/index.js +5 -4
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +5 -4
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.mjs
CHANGED
|
@@ -6352,6 +6352,7 @@ var AUTHORITY_QUERY_RESULT_KEYS = {
|
|
|
6352
6352
|
};
|
|
6353
6353
|
var EARLY_SYNC_REQUEST_DELAYS_MS = [2e3, 1e4, 3e4];
|
|
6354
6354
|
var SYNC_DEBUG_PREFIX = "[CADENZA_SYNC_DEBUG]";
|
|
6355
|
+
var SYNC_DEBUG_ENABLED = typeof process !== "undefined" && typeof process.env === "object" && process.env.CADENZA_SYNC_DEBUG === "true";
|
|
6355
6356
|
var SYNC_DEBUG_TABLES = /* @__PURE__ */ new Set(["intent_to_task_map"]);
|
|
6356
6357
|
var SYNC_DEBUG_TASK_NAMES = /* @__PURE__ */ new Set([
|
|
6357
6358
|
"Query service_instance",
|
|
@@ -6387,16 +6388,16 @@ var SYNC_DEBUG_INTENT_NAMES = /* @__PURE__ */ new Set([
|
|
|
6387
6388
|
"query-pg-cadenza-db-postgres-actor-signal_to_task_map"
|
|
6388
6389
|
]);
|
|
6389
6390
|
function shouldDebugSyncTable(tableName) {
|
|
6390
|
-
return SYNC_DEBUG_TABLES.has(tableName);
|
|
6391
|
+
return SYNC_DEBUG_ENABLED && SYNC_DEBUG_TABLES.has(tableName);
|
|
6391
6392
|
}
|
|
6392
6393
|
function shouldDebugSyncTaskName(taskName) {
|
|
6393
|
-
return typeof taskName === "string" && SYNC_DEBUG_TASK_NAMES.has(taskName);
|
|
6394
|
+
return SYNC_DEBUG_ENABLED && typeof taskName === "string" && SYNC_DEBUG_TASK_NAMES.has(taskName);
|
|
6394
6395
|
}
|
|
6395
6396
|
function shouldDebugSyncRoutineName(routineName) {
|
|
6396
|
-
return typeof routineName === "string" && SYNC_DEBUG_ROUTINE_NAMES.has(routineName);
|
|
6397
|
+
return SYNC_DEBUG_ENABLED && typeof routineName === "string" && SYNC_DEBUG_ROUTINE_NAMES.has(routineName);
|
|
6397
6398
|
}
|
|
6398
6399
|
function shouldDebugSyncIntentName(intentName) {
|
|
6399
|
-
return typeof intentName === "string" && SYNC_DEBUG_INTENT_NAMES.has(intentName);
|
|
6400
|
+
return SYNC_DEBUG_ENABLED && typeof intentName === "string" && SYNC_DEBUG_INTENT_NAMES.has(intentName);
|
|
6400
6401
|
}
|
|
6401
6402
|
function summarizeSyncDebugValue(value, depth = 0) {
|
|
6402
6403
|
if (value === null || value === void 0) {
|