@putout/printer 12.32.0 → 12.32.1

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
+ 2025.02.15, v12.32.1
2
+
3
+ fix:
4
+ - 1ae65ad @putout/printer: DEBUG -> LOG_DEBUG
5
+
1
6
  2025.02.14, v12.32.0
2
7
 
3
8
  feature:
@@ -11,11 +11,11 @@ const {
11
11
  LOG_ALL,
12
12
  LOG_TOKENS,
13
13
  LOG_TERM,
14
- DEBUG,
14
+ LOG_DEBUG,
15
15
  } = process.env;
16
16
 
17
17
  module.exports.createDebug = (tokens) => (a) => {
18
- if (!DEBUG)
18
+ if (!LOG_DEBUG)
19
19
  return;
20
20
 
21
21
  tokens.push({
@@ -200,4 +200,3 @@ function isSimpleAfterObject(path) {
200
200
 
201
201
  return prev.isObjectExpression();
202
202
  }
203
-
@@ -25,4 +25,3 @@ module.exports.isNextSimple = (a) => {
25
25
 
26
26
  return SIMPLE_TYPES.includes(type);
27
27
  };
28
-
@@ -124,7 +124,7 @@ function isNotLastBody(path) {
124
124
  }
125
125
 
126
126
  function isNotLastOrParentLast(path) {
127
- return !(isLast(path) || isParentLast(path));
127
+ return !isLast(path) && !isParentLast(path);
128
128
  }
129
129
 
130
130
  function isNextUp(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "12.32.0",
3
+ "version": "12.32.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",
@@ -66,6 +66,7 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@putout/eslint": "^3.5.0",
69
+ "@putout/eslint-flat": "^2.0.0",
69
70
  "@putout/plugin-minify": "^9.0.0",
70
71
  "@putout/plugin-printer": "^4.0.0",
71
72
  "@putout/plugin-promises": "^16.0.0",
package/tsconfig.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2015",
4
+ "skipLibCheck": true
5
+ }
6
+ }