@putout/printer 1.25.1 → 1.26.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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2023.04.06, v1.26.0
2
+
3
+ feature:
4
+ - 3ad5aab @putout/printer: prevent indent infinite loop
5
+
1
6
  2023.04.06, v1.25.1
2
7
 
3
8
  feature:
@@ -215,7 +215,7 @@ function printIndent(i, indent) {
215
215
  let result = '';
216
216
  ++i;
217
217
 
218
- while (--i) {
218
+ while (--i > 0) {
219
219
  result += indent;
220
220
  }
221
221
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "1.25.1",
3
+ "version": "1.26.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Easiest possible opinionated Babel AST printer made with ❤️ to use in 🐊Putout",