@putout/printer 7.0.0 → 7.1.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,16 @@
|
|
|
1
|
+
2023.12.11, v7.1.0
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- 0bab268 @putout/printer: tokenize: node check
|
|
5
|
+
- 6731f76 @putout/printer: tokenize: node check
|
|
6
|
+
|
|
7
|
+
feature:
|
|
8
|
+
- 43bee61 @putout/printer: ImportExpression: add
|
|
9
|
+
- c718594 @putout/printer: @putout/operate v12.0.0
|
|
10
|
+
- 11aed5c @putout/printer: typescript v5.3.3
|
|
11
|
+
- ce15416 @putout/printer: supertape v9.0.0
|
|
12
|
+
- df59fe3 @putout/printer: eslint-plugin-putout v22.0.0
|
|
13
|
+
|
|
1
14
|
2023.12.10, v7.0.0
|
|
2
15
|
|
|
3
16
|
feature:
|
|
@@ -45,6 +45,7 @@ const {ConditionalExpression} = require('./conditional-expression');
|
|
|
45
45
|
const {StaticBlock} = require('./class/static-block');
|
|
46
46
|
const {RecordExpression} = require('./object-expression/record-expression');
|
|
47
47
|
const {TupleExpression} = require('./array-expression/tuple-expression');
|
|
48
|
+
const {ImportExpression} = require('./import-expression');
|
|
48
49
|
|
|
49
50
|
module.exports = {
|
|
50
51
|
...functions,
|
|
@@ -70,6 +71,7 @@ module.exports = {
|
|
|
70
71
|
ObjectPattern,
|
|
71
72
|
PrivateName,
|
|
72
73
|
RestElement,
|
|
74
|
+
ImportExpression,
|
|
73
75
|
SpreadElement,
|
|
74
76
|
SequenceExpression,
|
|
75
77
|
StaticBlock,
|
package/lib/tokenize/tokenize.js
CHANGED
|
@@ -229,10 +229,11 @@ module.exports.tokenize = (ast, overrides) => {
|
|
|
229
229
|
print: maybePrint,
|
|
230
230
|
});
|
|
231
231
|
|
|
232
|
-
maybeThrow(!currentTraverse, path, `☝️Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'`);
|
|
232
|
+
maybeThrow(!currentTraverse, path, `☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'`);
|
|
233
233
|
|
|
234
234
|
const currentIndent = i;
|
|
235
235
|
parseLeadingComments(path, printer, semantics);
|
|
236
|
+
|
|
236
237
|
// this is main thing
|
|
237
238
|
maybePlugin(currentTraverse, path, printer, semantics);
|
|
238
239
|
parseTrailingComments(path, printer, semantics);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/printer",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
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",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"url": "git://github.com/putoutjs/printer.git"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
|
-
"wisdom": "madrun wisdom",
|
|
18
17
|
"test": "madrun test",
|
|
19
18
|
"test:dts": "madrun test:dts",
|
|
20
19
|
"watch:test": "madrun watch:test",
|
|
@@ -27,9 +26,9 @@
|
|
|
27
26
|
"report": "madrun report"
|
|
28
27
|
},
|
|
29
28
|
"dependencies": {
|
|
30
|
-
"@putout/babel": "^
|
|
29
|
+
"@putout/babel": "^2.0.0",
|
|
31
30
|
"@putout/compare": "^14.0.0",
|
|
32
|
-
"@putout/operate": "^
|
|
31
|
+
"@putout/operate": "^12.0.0",
|
|
33
32
|
"@putout/operator-json": "^1.2.0",
|
|
34
33
|
"fullstore": "^3.0.0",
|
|
35
34
|
"just-snake-case": "^3.2.0",
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
"escover": "^4.0.1",
|
|
59
58
|
"eslint": "^8.0.1",
|
|
60
59
|
"eslint-plugin-n": "^16.0.0",
|
|
61
|
-
"eslint-plugin-putout": "^
|
|
60
|
+
"eslint-plugin-putout": "^22.0.0",
|
|
62
61
|
"estree-to-babel": "^8.0.0",
|
|
63
62
|
"just-kebab-case": "^4.2.0",
|
|
64
63
|
"madrun": "^10.0.0",
|
|
@@ -66,8 +65,9 @@
|
|
|
66
65
|
"montag": "^1.0.0",
|
|
67
66
|
"nodemon": "^3.0.1",
|
|
68
67
|
"putout": "^34.0.0",
|
|
69
|
-
"supertape": "^
|
|
70
|
-
"try-catch": "^3.0.0"
|
|
68
|
+
"supertape": "^9.0.0",
|
|
69
|
+
"try-catch": "^3.0.0",
|
|
70
|
+
"typescript": "^5.3.3"
|
|
71
71
|
},
|
|
72
72
|
"license": "MIT",
|
|
73
73
|
"engines": {
|