@kontur.candy/generator 4.262.0-readonly-candy.1 → 4.264.0-readonly-candy.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -122232,7 +122232,8 @@ class EvaluateTemplateVisitor {
122232
122232
  }
122233
122233
 
122234
122234
  node.attributes[attributeName] = updatedValue;
122235
- } else if (typeof attribute === "object") {
122235
+ } else if (typeof attribute === "object" && !Array.isArray(attribute) && attribute !== null) {
122236
+ const newValue = {};
122236
122237
  Object.keys(attribute).forEach(key => {
122237
122238
  const value = attribute[key];
122238
122239
 
@@ -122243,9 +122244,12 @@ class EvaluateTemplateVisitor {
122243
122244
  updatedValue = this.applyStringParameter(parameter, updatedValue);
122244
122245
  }
122245
122246
 
122246
- attribute[key] = updatedValue;
122247
+ newValue[key] = updatedValue;
122248
+ } else if (typeof value === "number") {
122249
+ newValue[key] = value;
122247
122250
  }
122248
122251
  });
122252
+ node.attributes[attributeName] = newValue;
122249
122253
  }
122250
122254
  }
122251
122255
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.262.0-readonly-candy.1",
3
+ "version": "4.264.0-readonly-candy.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,