@cadenza.io/service 2.17.31 → 2.17.33
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 +13 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +17 -2
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -785,12 +785,18 @@ function normalizeServiceRegistryInsertResult(tableName, ctx, queryData, rawResu
|
|
|
785
785
|
result.queryData = normalizedQueryData;
|
|
786
786
|
if (tableName === "service") {
|
|
787
787
|
const resolvedServiceName = String(
|
|
788
|
-
result.__serviceName ?? resolvedData?.name ?? resolvedData?.service_name ??
|
|
788
|
+
ctx.__serviceName ?? result.__serviceName ?? resolvedData?.name ?? resolvedData?.service_name ?? ""
|
|
789
789
|
).trim();
|
|
790
790
|
if (resolvedServiceName) {
|
|
791
791
|
result.__serviceName = resolvedServiceName;
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
|
+
const resolvedLocalServiceInstanceId = String(
|
|
795
|
+
ctx.__serviceInstanceId ?? resolvedData?.uuid ?? resolvedData?.service_instance_id ?? ""
|
|
796
|
+
).trim();
|
|
797
|
+
if (resolvedLocalServiceInstanceId) {
|
|
798
|
+
result.__serviceInstanceId = resolvedLocalServiceInstanceId;
|
|
799
|
+
}
|
|
794
800
|
if (tableName === "service_instance" || tableName === "service_instance_transport") {
|
|
795
801
|
const resolvedUuid = String(
|
|
796
802
|
result.uuid ?? resolvedData?.uuid ?? ctx.__serviceInstanceId ?? ""
|
|
@@ -5954,6 +5960,9 @@ function resolveSyncServiceName(task) {
|
|
|
5954
5960
|
const registryServiceName = typeof CadenzaService.serviceRegistry.serviceName === "string" ? CadenzaService.serviceRegistry.serviceName.trim() : "";
|
|
5955
5961
|
return taskServiceName || registryServiceName || void 0;
|
|
5956
5962
|
}
|
|
5963
|
+
function isLocalOnlySyncIntent(intentName) {
|
|
5964
|
+
return intentName === import_core5.META_ACTOR_SESSION_STATE_PERSIST_INTENT;
|
|
5965
|
+
}
|
|
5957
5966
|
function buildIntentRegistryData(intent) {
|
|
5958
5967
|
const name = String(intent?.name ?? "").trim();
|
|
5959
5968
|
if (!name) {
|
|
@@ -6752,6 +6761,9 @@ var GraphSyncController = class _GraphSyncController {
|
|
|
6752
6761
|
task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
|
|
6753
6762
|
for (const intent of task.handlesIntents) {
|
|
6754
6763
|
if (task.__registeredIntents.has(intent)) continue;
|
|
6764
|
+
if (isLocalOnlySyncIntent(intent)) {
|
|
6765
|
+
continue;
|
|
6766
|
+
}
|
|
6755
6767
|
if (isMetaIntentName(intent) && !task.isMeta) {
|
|
6756
6768
|
if (!task.__invalidMetaIntentWarnings.has(intent)) {
|
|
6757
6769
|
task.__invalidMetaIntentWarnings.add(intent);
|