@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/index.mjs
CHANGED
|
@@ -8908,6 +8908,7 @@ var AUTHORITY_QUERY_RESULT_KEYS = {
|
|
|
8908
8908
|
};
|
|
8909
8909
|
var EARLY_SYNC_REQUEST_DELAYS_MS = [2e3, 1e4, 3e4];
|
|
8910
8910
|
var SYNC_DEBUG_PREFIX = "[CADENZA_SYNC_DEBUG]";
|
|
8911
|
+
var SYNC_DEBUG_ENABLED = typeof process !== "undefined" && typeof process.env === "object" && process.env.CADENZA_SYNC_DEBUG === "true";
|
|
8911
8912
|
var SYNC_DEBUG_TABLES = /* @__PURE__ */ new Set(["intent_to_task_map"]);
|
|
8912
8913
|
var SYNC_DEBUG_TASK_NAMES = /* @__PURE__ */ new Set([
|
|
8913
8914
|
"Query service_instance",
|
|
@@ -8943,16 +8944,16 @@ var SYNC_DEBUG_INTENT_NAMES = /* @__PURE__ */ new Set([
|
|
|
8943
8944
|
"query-pg-cadenza-db-postgres-actor-signal_to_task_map"
|
|
8944
8945
|
]);
|
|
8945
8946
|
function shouldDebugSyncTable(tableName) {
|
|
8946
|
-
return SYNC_DEBUG_TABLES.has(tableName);
|
|
8947
|
+
return SYNC_DEBUG_ENABLED && SYNC_DEBUG_TABLES.has(tableName);
|
|
8947
8948
|
}
|
|
8948
8949
|
function shouldDebugSyncTaskName(taskName) {
|
|
8949
|
-
return typeof taskName === "string" && SYNC_DEBUG_TASK_NAMES.has(taskName);
|
|
8950
|
+
return SYNC_DEBUG_ENABLED && typeof taskName === "string" && SYNC_DEBUG_TASK_NAMES.has(taskName);
|
|
8950
8951
|
}
|
|
8951
8952
|
function shouldDebugSyncRoutineName(routineName) {
|
|
8952
|
-
return typeof routineName === "string" && SYNC_DEBUG_ROUTINE_NAMES.has(routineName);
|
|
8953
|
+
return SYNC_DEBUG_ENABLED && typeof routineName === "string" && SYNC_DEBUG_ROUTINE_NAMES.has(routineName);
|
|
8953
8954
|
}
|
|
8954
8955
|
function shouldDebugSyncIntentName(intentName) {
|
|
8955
|
-
return typeof intentName === "string" && SYNC_DEBUG_INTENT_NAMES.has(intentName);
|
|
8956
|
+
return SYNC_DEBUG_ENABLED && typeof intentName === "string" && SYNC_DEBUG_INTENT_NAMES.has(intentName);
|
|
8956
8957
|
}
|
|
8957
8958
|
function summarizeSyncDebugValue(value, depth = 0) {
|
|
8958
8959
|
if (value === null || value === void 0) {
|