@taiga-ui/prettier-config 0.452.0 → 0.453.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/prettier-config",
3
- "version": "0.452.0",
3
+ "version": "0.453.0",
4
4
  "description": "Taiga-ui prettier config",
5
5
  "keywords": [
6
6
  "prettier",
@@ -138,20 +138,28 @@ function collectComments(ast) {
138
138
  };
139
139
 
140
140
  if (Array.isArray(ast.comments)) {
141
- ast.comments.forEach(push);
141
+ for (const comment of ast.comments) {
142
+ push(comment);
143
+ }
142
144
  }
143
145
 
144
146
  visit(ast, (node) => {
145
147
  if (Array.isArray(node.comments)) {
146
- node.comments.forEach(push);
148
+ for (const comment of node.comments) {
149
+ push(comment);
150
+ }
147
151
  }
148
152
 
149
153
  if (Array.isArray(node.leadingComments)) {
150
- node.leadingComments.forEach(push);
154
+ for (const comment of node.leadingComments) {
155
+ push(comment);
156
+ }
151
157
  }
152
158
 
153
159
  if (Array.isArray(node.trailingComments)) {
154
- node.trailingComments.forEach(push);
160
+ for (const comment of node.trailingComments) {
161
+ push(comment);
162
+ }
155
163
  }
156
164
  });
157
165