@kosdev-code/kos-ui-sdk 0.1.0-next.1036 → 0.1.0-next.1043

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.
@@ -10204,13 +10204,11 @@ class KosSubscriptionManager {
10204
10204
  };
10205
10205
  }
10206
10206
  resolvePropKey(template) {
10207
- const propRegex = /.*({PROP_(.+)})/;
10208
- let topic = template.includes("{MODEL_ID}") ? template.replace("{MODEL_ID}", this.modelId) : template;
10209
- const match = topic.match(propRegex);
10210
- if (match && match[2] in this.modelData) {
10211
- topic = topic.replace(match[1], this.modelData[match[2]]);
10212
- }
10213
- return topic;
10207
+ const topic = template.includes("{MODEL_ID}") ? template.replace("{MODEL_ID}", this.modelId) : template;
10208
+ return topic.replace(
10209
+ /{PROP_([^}]+)}/g,
10210
+ (placeholder, propName) => propName in this.modelData ? this.modelData[propName] : placeholder
10211
+ );
10214
10212
  }
10215
10213
  // ===== FLOW CONTROL METHODS =====
10216
10214
  async subscribeWithFlowControl(config2, resolvedTopic, lifecycle) {
@@ -25411,4 +25409,4 @@ exports.waitForRequest = waitForRequest;
25411
25409
  exports.whenReady = whenReady;
25412
25410
  exports.withCancellation = withCancellation;
25413
25411
  exports.wrapWithFutureLifecycle = wrapWithFutureLifecycle;
25414
- //# sourceMappingURL=software-info-registration-CWlRW0sN.cjs.map
25412
+ //# sourceMappingURL=software-info-registration-JdgonknE.cjs.map