@supernova-studio/client 1.64.0 → 1.65.0

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.js CHANGED
@@ -19765,13 +19765,23 @@ var LocalProjectActionExecutor = class {
19765
19765
  if (!existingFeature) {
19766
19766
  throw new Error(`Cannot update feature: feature ${id} was not found in local storage`);
19767
19767
  }
19768
+ let publishedState = existingFeature.publishedState;
19769
+ if (input.publishedState === null) {
19770
+ publishedState = void 0;
19771
+ } else if (input.publishedState) {
19772
+ publishedState = {
19773
+ ...input.publishedState,
19774
+ lastPublishedAt: /* @__PURE__ */ new Date()
19775
+ };
19776
+ }
19768
19777
  const mergedFeature = {
19769
19778
  ...existingFeature,
19770
19779
  name: _nullishCoalesce(input.name, () => ( existingFeature.name)),
19771
19780
  description: _nullishCoalesce(input.description, () => ( existingFeature.description)),
19772
19781
  isArchived: _nullishCoalesce(input.isArchived, () => ( existingFeature.isArchived)),
19773
19782
  status: _nullishCoalesce(input.status, () => ( existingFeature.status)),
19774
- updatedAt: /* @__PURE__ */ new Date()
19783
+ updatedAt: /* @__PURE__ */ new Date(),
19784
+ publishedState
19775
19785
  };
19776
19786
  this.features.set(id, mergedFeature);
19777
19787
  }