@terraforge/core 0.0.33 → 0.0.35

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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -5
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -985,6 +985,10 @@ const deployApp = async (app, opt) => {
985
985
  else {
986
986
  const inputChanged = !compareState(nodeState.input, input);
987
987
  const hasDrift = !!nodeState.drifted;
988
+ console.log("DEPLOY_NODE", meta$1.urn);
989
+ console.log("STATE_NODE", nodeState);
990
+ console.log("INPUT_CHANGED", inputChanged);
991
+ console.log("HAS_DRIFT", hasDrift);
988
992
  if (!inputChanged && !hasDrift) Object.assign(nodeState, partialNewResourceState);
989
993
  else {
990
994
  let newResourceState;
@@ -1119,9 +1123,6 @@ const hydrate = async (app, opt) => {
1119
1123
 
1120
1124
  //#endregion
1121
1125
  //#region src/workspace/procedure/refresh.ts
1122
- const copy = (value) => {
1123
- return JSON.parse(JSON.stringify(value));
1124
- };
1125
1126
  const createDeleteOperation = (urn, stackState, onCommit) => {
1126
1127
  return {
1127
1128
  urn,
@@ -1136,8 +1137,8 @@ const createUpdateOperation = (urn, state, before, after, nodeState, onCommit) =
1136
1137
  return {
1137
1138
  urn,
1138
1139
  operation: "update",
1139
- before: copy(before),
1140
- after: copy(after),
1140
+ before: structuredClone(before),
1141
+ after: structuredClone(after),
1141
1142
  commit() {
1142
1143
  nodeState.output = state;
1143
1144
  nodeState.drifted = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terraforge/core",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",