@putout/printer 16.6.0 → 17.0.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 +23 -0
- package/README.md +6 -6
- package/lib/json.js +3 -5
- package/lib/print-tokens/cook.js +1 -3
- package/lib/print-tokens/index.js +2 -4
- package/lib/printer.js +6 -11
- package/lib/tokenize/comment/comment.js +3 -9
- package/lib/tokenize/comment/comments-printer/comments-printer.js +4 -6
- package/lib/tokenize/comment/maybe-inside-fn.js +1 -3
- package/lib/tokenize/comment/parse-comments.js +2 -4
- package/lib/tokenize/comment/parse-leading-comments.js +8 -12
- package/lib/tokenize/comment/parse-trailing-comments.js +8 -15
- package/lib/tokenize/debug.js +6 -8
- package/lib/tokenize/expressions/array-expression/array-expression.js +10 -15
- package/lib/tokenize/expressions/array-expression/indent.js +5 -11
- package/lib/tokenize/expressions/array-expression/is-object-after-simple.js +3 -5
- package/lib/tokenize/expressions/array-expression/newline.js +7 -11
- package/lib/tokenize/expressions/array-pattern/array-pattern.js +2 -3
- package/lib/tokenize/expressions/assignment-expression/assignment-expression-comments.js +6 -7
- package/lib/tokenize/expressions/assignment-expression/assignment-expression.js +8 -12
- package/lib/tokenize/expressions/assignment-expression/maybe-parens-condition.js +3 -6
- package/lib/tokenize/expressions/assignment-expression/print-separator.js +2 -3
- package/lib/tokenize/expressions/assignment-pattern.js +1 -3
- package/lib/tokenize/expressions/binary-expression/binary-expression.js +5 -8
- package/lib/tokenize/expressions/binary-expression/concatenate.js +3 -4
- package/lib/tokenize/expressions/binary-expression/maybe-space.js +1 -3
- package/lib/tokenize/expressions/call-expression/call-expression.js +4 -6
- package/lib/tokenize/expressions/class/class-property.js +9 -11
- package/lib/tokenize/expressions/class/class.js +8 -12
- package/lib/tokenize/expressions/class/static-block.js +1 -3
- package/lib/tokenize/expressions/conditional-expression.js +2 -4
- package/lib/tokenize/expressions/function/arrow-function-expression.js +4 -6
- package/lib/tokenize/expressions/function/class-method.js +8 -12
- package/lib/tokenize/expressions/function/function-declaration.js +5 -7
- package/lib/tokenize/expressions/function/function-expression.js +4 -6
- package/lib/tokenize/expressions/function/functions.js +5 -19
- package/lib/tokenize/expressions/function/kind.js +1 -3
- package/lib/tokenize/expressions/function/object-method.js +5 -7
- package/lib/tokenize/expressions/function/params.js +2 -4
- package/lib/tokenize/expressions/function/print-function-params.js +4 -8
- package/lib/tokenize/expressions/import-expression.js +2 -5
- package/lib/tokenize/expressions/index.js +27 -72
- package/lib/tokenize/expressions/logical-expression/chain.js +3 -4
- package/lib/tokenize/expressions/logical-expression/logical-expression.js +3 -5
- package/lib/tokenize/expressions/member-expression/chain.js +2 -3
- package/lib/tokenize/expressions/member-expression/is-looks-like-chain.js +4 -6
- package/lib/tokenize/expressions/member-expression/member-expressions.js +6 -8
- package/lib/tokenize/expressions/new-expression/new-expression.js +4 -6
- package/lib/tokenize/expressions/object-expression/is-inside-tuple.js +2 -3
- package/lib/tokenize/expressions/object-expression/is-third-object-inside-array.js +2 -3
- package/lib/tokenize/expressions/object-expression/maybe-print-computed.js +1 -3
- package/lib/tokenize/expressions/object-expression/object-expression.js +9 -13
- package/lib/tokenize/expressions/object-expression/object-property.js +4 -6
- package/lib/tokenize/expressions/object-expression/print-key.js +2 -4
- package/lib/tokenize/expressions/object-pattern/calculate-long-assign-pattern.js +3 -6
- package/lib/tokenize/expressions/object-pattern/comments.js +1 -3
- package/lib/tokenize/expressions/object-pattern/more-then-max-properties-in-one-line.js +1 -3
- package/lib/tokenize/expressions/object-pattern/more-then-max-properties-length-in-one-line.js +2 -3
- package/lib/tokenize/expressions/object-pattern/object-pattern.js +12 -20
- package/lib/tokenize/expressions/object-pattern/wrong-shorthand.js +1 -3
- package/lib/tokenize/expressions/parenthesized-expression/parenthesized-expression.js +2 -3
- package/lib/tokenize/expressions/rest-element.js +2 -4
- package/lib/tokenize/expressions/sequence-expression/maybe-write-brace.js +1 -3
- package/lib/tokenize/expressions/sequence-expression/sequence-expression-comments.js +4 -5
- package/lib/tokenize/expressions/sequence-expression/sequence-expression.js +8 -11
- package/lib/tokenize/expressions/spread-element.js +2 -4
- package/lib/tokenize/expressions/tagged-template-expression.js +1 -3
- package/lib/tokenize/expressions/unary-expression/unary-expressions.js +7 -9
- package/lib/tokenize/is.js +35 -43
- package/lib/tokenize/jsx/index.js +37 -45
- package/lib/tokenize/jsx/jsx-attribute.js +2 -4
- package/lib/tokenize/jsx/jsx-element.js +2 -3
- package/lib/tokenize/jsx/jsx-fragment.js +3 -5
- package/lib/tokenize/jsx/jsx-opening-element.js +2 -4
- package/lib/tokenize/jsx/jsx-text/jsx-text.js +2 -4
- package/lib/tokenize/{expressions → literals}/decorator/decorator.js +3 -4
- package/lib/tokenize/literals/directive-literal.js +1 -3
- package/lib/tokenize/literals/identifier.js +4 -6
- package/lib/tokenize/literals/index.js +41 -46
- package/lib/tokenize/literals/string-literal.js +1 -3
- package/lib/tokenize/literals/template-literal.js +2 -4
- package/lib/tokenize/literals/void-pattern/void-pattern.js +1 -3
- package/lib/tokenize/literals/write-template-literal.js +1 -3
- package/lib/tokenize/mark.js +5 -11
- package/lib/tokenize/maybe/index.js +6 -9
- package/lib/tokenize/maybe/maybe-declare.js +1 -3
- package/lib/tokenize/maybe/maybe-decorators.js +1 -3
- package/lib/tokenize/maybe/maybe-parens.js +3 -5
- package/lib/tokenize/maybe/maybe-type-annotation.js +3 -6
- package/lib/tokenize/maybe/satisfy.js +2 -4
- package/lib/tokenize/maybe-get.js +1 -3
- package/lib/tokenize/overrides/overrides.js +3 -5
- package/lib/tokenize/overrides/parse-quotes.js +1 -3
- package/lib/tokenize/overrides/parse-round-braces.js +4 -10
- package/lib/tokenize/statements/block-statement/block-statement.js +9 -12
- package/lib/tokenize/statements/block-statement/get-directives.js +1 -3
- package/lib/tokenize/statements/block-statement/inside-if-with-no-body.js +2 -4
- package/lib/tokenize/statements/block-statement/is-call-inside-chain.js +3 -4
- package/lib/tokenize/statements/break-statement/break-statement.js +3 -5
- package/lib/tokenize/statements/continue-statement/continue-statement.js +2 -4
- package/lib/tokenize/statements/debugger-statement.js +2 -3
- package/lib/tokenize/statements/do-while-statement/do-while-statement.js +2 -3
- package/lib/tokenize/statements/empty-statement/empty-statement.js +2 -4
- package/lib/tokenize/statements/export-declaration/export-all-declaration.js +1 -3
- package/lib/tokenize/statements/export-declaration/export-declaration.js +10 -15
- package/lib/tokenize/statements/export-declaration/export-default-declaration.js +3 -5
- package/lib/tokenize/statements/expression-statement/expression-statement-comments.js +4 -6
- package/lib/tokenize/statements/expression-statement/expression-statement.js +9 -25
- package/lib/tokenize/statements/expression-statement/is-inside-assign-next-assign-function.js +2 -3
- package/lib/tokenize/statements/for-in-statement.js +1 -3
- package/lib/tokenize/statements/for-of-statement/for-of-statement.js +5 -8
- package/lib/tokenize/statements/for-statement.js +4 -7
- package/lib/tokenize/statements/if-statement/if-statement.js +5 -8
- package/lib/tokenize/statements/import-declaration/import-attribute.js +2 -4
- package/lib/tokenize/statements/import-declaration/import-declaration-comments.js +3 -4
- package/lib/tokenize/statements/import-declaration/import-declaration.js +10 -17
- package/lib/tokenize/statements/index.js +27 -61
- package/lib/tokenize/statements/labeled-statement/labeled-statement.js +2 -4
- package/lib/tokenize/statements/program/program.js +4 -6
- package/lib/tokenize/statements/return-statement/maybe-space-after-keyword.js +1 -3
- package/lib/tokenize/statements/return-statement/return-statement.js +8 -11
- package/lib/tokenize/statements/switch-statement/switch-statement.js +5 -9
- package/lib/tokenize/statements/try-statement/try-statements.js +3 -5
- package/lib/tokenize/statements/variable-declaration/maybe-space-after-keyword.js +1 -3
- package/lib/tokenize/statements/variable-declaration/variable-declaration.js +9 -13
- package/lib/tokenize/statements/while-statement/while-statement.js +3 -5
- package/lib/tokenize/statements/with-statement/with-statement.js +3 -5
- package/lib/tokenize/tokenize.js +12 -18
- package/lib/tokenize/typescript/enum/ts-enum-declaration.js +4 -7
- package/lib/tokenize/typescript/enum/ts-enum-member.js +1 -3
- package/lib/tokenize/typescript/function/print-return-type.js +2 -4
- package/lib/tokenize/typescript/function/ts-call-signature-declaration.js +3 -5
- package/lib/tokenize/typescript/function/ts-construct-signature-declaration.js +4 -7
- package/lib/tokenize/typescript/function/ts-constructor-type.js +3 -5
- package/lib/tokenize/typescript/function/ts-declare-function.js +4 -6
- package/lib/tokenize/typescript/function/ts-declare-method.js +2 -4
- package/lib/tokenize/typescript/function/ts-function-type.js +4 -7
- package/lib/tokenize/typescript/function/ts-method-signature.js +6 -9
- package/lib/tokenize/typescript/index.js +171 -207
- package/lib/tokenize/typescript/interface/ts-interface-body.js +2 -4
- package/lib/tokenize/typescript/interface/ts-interface-declaration.js +5 -8
- package/lib/tokenize/typescript/mapped-type/ts-mapped-type.js +2 -3
- package/lib/tokenize/typescript/namespace/ts-module-declaration.js +4 -6
- package/lib/tokenize/typescript/ts-as-expression/ts-as-expression.js +3 -5
- package/lib/tokenize/typescript/ts-conditional-type.js +1 -3
- package/lib/tokenize/typescript/ts-export-assignment/ts-export-assignment.js +2 -4
- package/lib/tokenize/typescript/ts-import-type/ts-import-type.js +2 -4
- package/lib/tokenize/typescript/ts-infer-type/ts-infer-type.js +2 -4
- package/lib/tokenize/typescript/ts-intersection-type.js +1 -3
- package/lib/tokenize/typescript/ts-optional-type/ts-optional-type.js +1 -3
- package/lib/tokenize/typescript/ts-parameter-property/ts-parameter-property.js +3 -5
- package/lib/tokenize/typescript/ts-parenthesized-type/ts-parenthesized-type.js +1 -3
- package/lib/tokenize/typescript/ts-property-signature/comments.js +4 -7
- package/lib/tokenize/typescript/ts-property-signature/ts-property-signature.js +10 -15
- package/lib/tokenize/typescript/ts-template-literal-type/ts-template-literal-type.js +2 -4
- package/lib/tokenize/typescript/ts-type-parameter-declaration/ts-type-parameter-declaration.js +4 -5
- package/lib/tokenize/typescript/ts-type-query/ts-type-query.js +2 -4
- package/lib/tokenize/typescript/ts-type-reference/ts-type-reference.js +1 -3
- package/lib/tokenize/typescript/ts-union-type/ts-union-type.js +2 -3
- package/lib/tokenize/typescript/tuple/ts-named-tuple-member.js +1 -3
- package/lib/tokenize/typescript/tuple/ts-tuple-type.js +1 -3
- package/lib/tokenize/typescript/type/ts-type-alias-declaration.js +5 -8
- package/lib/tokenize/typescript/type/ts-type-literal.js +1 -3
- package/lib/tokenize/typescript/type/ts-type-parameter.js +2 -4
- package/lib/tokenize/visitors.js +5 -14
- package/lib/types.js +1 -3
- package/package.json +15 -15
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const {types} = require('@putout/babel');
|
|
4
|
-
const {maybeParens} = require('../../maybe/maybe-parens');
|
|
1
|
+
import {types} from '@putout/babel';
|
|
2
|
+
import {maybeParens} from '../../maybe/maybe-parens.js';
|
|
5
3
|
|
|
6
4
|
const {
|
|
7
5
|
isVariableDeclarator,
|
|
8
6
|
isObjectExpression,
|
|
9
7
|
} = types;
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
export const TSAsExpression = maybeParens((path, {print, maybe}) => {
|
|
12
10
|
const is = isParens(path);
|
|
13
11
|
|
|
14
12
|
maybe.print(is, '(');
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import {createImportExpression} from '../../expressions/import-expression.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
module.exports.TSImportType = (path, printer) => {
|
|
3
|
+
export const TSImportType = (path, printer) => {
|
|
6
4
|
createImportExpression(path, printer);
|
|
7
5
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {maybeParens} from '../../maybe/maybe-parens.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
module.exports.TSInferType = maybeParens((path, {print}) => {
|
|
3
|
+
export const TSInferType = maybeParens((path, {print}) => {
|
|
6
4
|
print('infer ');
|
|
7
5
|
print('__typeParameter');
|
|
8
6
|
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {hasLeadingComment} from '../../is.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
module.exports.TSParameterProperty = (path, {print, maybe, indent}) => {
|
|
3
|
+
export const TSParameterProperty = (path, {print, maybe, indent}) => {
|
|
6
4
|
const {
|
|
7
5
|
decorators,
|
|
8
6
|
readonly,
|
|
@@ -43,7 +41,7 @@ module.exports.TSParameterProperty = (path, {print, maybe, indent}) => {
|
|
|
43
41
|
print.breakline();
|
|
44
42
|
};
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
TSParameterProperty.printLeadingCommentLine = (path, printer, semantics, {printComment}) => {
|
|
47
45
|
const {indent, print} = printer;
|
|
48
46
|
|
|
49
47
|
if (path.node.decorators) {
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import {isPrev} from '#is';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const noop = () => {};
|
|
5
|
-
|
|
6
|
-
module.exports.printLeadingCommentLine = (path, printer, semantics, {printComment}) => {
|
|
3
|
+
export const printLeadingCommentLine = (path, printer, semantics, {printComment}) => {
|
|
7
4
|
const {print} = printer;
|
|
8
5
|
print.breakline();
|
|
9
6
|
printComment();
|
|
10
7
|
print.breakline();
|
|
11
8
|
};
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
export const printLeadingCommentBlock = (path, printer, semantics, {printComment}) => {
|
|
14
11
|
const {print, maybe} = printer;
|
|
15
12
|
|
|
16
13
|
maybe.print.breakline(!isPrev(path));
|
|
@@ -18,4 +15,4 @@ module.exports.printLeadingCommentBlock = (path, printer, semantics, {printComme
|
|
|
18
15
|
print.indent();
|
|
19
16
|
};
|
|
20
17
|
|
|
21
|
-
|
|
18
|
+
export const printTrailingCommentBlock = () => {};
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const {maybePrintTypeAnnotation} = require('../../maybe/maybe-type-annotation');
|
|
4
|
-
|
|
5
|
-
const {
|
|
1
|
+
import {maybePrintTypeAnnotation} from '../../maybe/maybe-type-annotation.js';
|
|
2
|
+
import {
|
|
6
3
|
hasTrailingComment,
|
|
7
4
|
isNext,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const {
|
|
5
|
+
} from '../../is.js';
|
|
6
|
+
import {printKey} from '../../expressions/object-expression/print-key.js';
|
|
7
|
+
import {
|
|
13
8
|
printLeadingCommentLine,
|
|
14
9
|
printLeadingCommentBlock,
|
|
15
10
|
printTrailingCommentBlock,
|
|
16
|
-
}
|
|
11
|
+
} from './comments.js';
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
export const TSPropertySignature = (path, printer) => {
|
|
19
14
|
const {maybe, write} = printer;
|
|
20
15
|
const {optional, readonly} = path.node;
|
|
21
16
|
|
|
@@ -33,9 +28,9 @@ module.exports.TSPropertySignature = (path, printer) => {
|
|
|
33
28
|
if (isNext(path) && hasTrailingComment(path))
|
|
34
29
|
write.newline();
|
|
35
30
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
TSPropertySignature.printLeadingCommentLine = printLeadingCommentLine;
|
|
32
|
+
TSPropertySignature.printLeadingCommentBlock = printLeadingCommentBlock;
|
|
33
|
+
TSPropertySignature.printTrailingCommentBlock = printTrailingCommentBlock;
|
|
39
34
|
|
|
40
35
|
function isTSTypeLiteralWithOneMember({parentPath}) {
|
|
41
36
|
if (!parentPath.parentPath.isTSTypeParameterInstantiation())
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {writeTemplateLiteral} from '../../literals/write-template-literal.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
module.exports.TSTemplateLiteralType = (path, printer) => {
|
|
3
|
+
export const TSTemplateLiteralType = (path, printer) => {
|
|
6
4
|
const quasis = path.get('quasis');
|
|
7
5
|
const types = path.get('types');
|
|
8
6
|
|
package/lib/tokenize/typescript/ts-type-parameter-declaration/ts-type-parameter-declaration.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import {types} from '@putout/babel';
|
|
2
|
+
import {createPrintSpace} from '../../expressions/function/print-function-params.js';
|
|
3
|
+
import {printParams} from '../../expressions/function/params.js';
|
|
2
4
|
|
|
3
|
-
const {types} = require('@putout/babel');
|
|
4
|
-
const {createPrintSpace} = require('../../expressions/function/print-function-params');
|
|
5
|
-
const {printParams} = require('../../expressions/function/params');
|
|
6
5
|
const {isTSUnionType} = types;
|
|
7
6
|
const noop = () => {};
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
export const TSTypeParameterDeclaration = (path, printer, semantics) => {
|
|
10
9
|
const {print, indent} = printer;
|
|
11
10
|
const isNewline = hasComplexParameters(path);
|
|
12
11
|
const printSpace = createPrintSpace({
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {maybeParens} from '../../maybe/maybe-parens.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
module.exports.TSTypeQuery = maybeParens((path, {print}) => {
|
|
3
|
+
export const TSTypeQuery = maybeParens((path, {print}) => {
|
|
6
4
|
print('typeof ');
|
|
7
5
|
print('__exprName');
|
|
8
6
|
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import {maybeParens} from '../../maybe/maybe-parens.js';
|
|
2
2
|
|
|
3
|
-
const {maybeParens} = require('../../maybe/maybe-parens');
|
|
4
3
|
const insideTypeDeclaration = ({parentPath}) => parentPath.isTSTypeAliasDeclaration();
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
export const TSUnionType = maybeParens({
|
|
7
6
|
condition: (path) => {
|
|
8
7
|
return path.parentPath.isTSArrayType();
|
|
9
8
|
},
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const {
|
|
1
|
+
import {
|
|
4
2
|
isLast,
|
|
5
3
|
isNext,
|
|
6
4
|
isNextParent,
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const {maybeDeclare} = require('../../maybe/maybe-declare');
|
|
5
|
+
} from '../../is.js';
|
|
6
|
+
import {markAfter} from '../../mark.js';
|
|
7
|
+
import {maybeDeclare} from '../../maybe/maybe-declare.js';
|
|
11
8
|
|
|
12
9
|
const isNextType = (a) => a
|
|
13
10
|
.getNextSibling()
|
|
@@ -17,7 +14,7 @@ const isNextExport = (a) => a
|
|
|
17
14
|
.getNextSibling()
|
|
18
15
|
.isExportDeclaration();
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
export const TSTypeAliasDeclaration = {
|
|
21
18
|
beforeIf: (path) => !path.parentPath.isExportDeclaration(),
|
|
22
19
|
before: (path, {indent}) => {
|
|
23
20
|
indent();
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {exists} from '../../is.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
module.exports.TSTypeParameter = (path, {write, traverse}) => {
|
|
3
|
+
export const TSTypeParameter = (path, {write, traverse}) => {
|
|
6
4
|
const constraint = path.get('constraint');
|
|
7
5
|
|
|
8
6
|
if (path.node.in)
|
package/lib/tokenize/visitors.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './expressions/index.js';
|
|
2
|
+
export * from './statements/index.js';
|
|
3
|
+
export * from './literals/index.js';
|
|
4
|
+
export * from './typescript/index.js';
|
|
5
|
+
export * from './jsx/index.js';
|
|
2
6
|
|
|
3
|
-
const expressions = require('./expressions');
|
|
4
|
-
const statements = require('./statements');
|
|
5
|
-
const literals = require('./literals');
|
|
6
|
-
const typescript = require('./typescript');
|
|
7
|
-
const jsx = require('./jsx');
|
|
8
|
-
|
|
9
|
-
module.exports = {
|
|
10
|
-
...expressions,
|
|
11
|
-
...statements,
|
|
12
|
-
...literals,
|
|
13
|
-
...typescript,
|
|
14
|
-
...jsx,
|
|
15
|
-
};
|
package/lib/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/printer",
|
|
3
|
-
"version": "
|
|
4
|
-
"type": "
|
|
3
|
+
"version": "17.0.1",
|
|
4
|
+
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Simplest possible opinionated Babel AST printer for 🐊Putout",
|
|
7
7
|
"homepage": "https://github.com/putoutjs/printer#readme",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@putout/babel": "^5.0.0",
|
|
37
37
|
"@putout/compare": "^19.0.1",
|
|
38
38
|
"@putout/operate": "^15.0.0",
|
|
39
|
-
"@putout/operator-json": "^
|
|
40
|
-
"fullstore": "^
|
|
39
|
+
"@putout/operator-json": "^3.1.0",
|
|
40
|
+
"fullstore": "^4.0.0",
|
|
41
41
|
"just-snake-case": "^3.2.0",
|
|
42
42
|
"parse-import-specifiers": "^1.0.1",
|
|
43
43
|
"rendy": "^4.0.0"
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@babel/parser": "
|
|
73
|
-
"@putout/eslint": "^
|
|
72
|
+
"@babel/parser": "^7.28.5",
|
|
73
|
+
"@putout/eslint": "^5.0.2",
|
|
74
74
|
"@putout/plugin-minify": "^11.2.1",
|
|
75
|
-
"@putout/plugin-printer": "^
|
|
75
|
+
"@putout/plugin-printer": "^7.0.0",
|
|
76
76
|
"@putout/plugin-promises": "^18.0.0",
|
|
77
77
|
"@putout/plugin-react-hook-form": "^6.0.0",
|
|
78
78
|
"@putout/plugin-react-hooks": "^9.0.0",
|
|
@@ -82,22 +82,22 @@
|
|
|
82
82
|
"escover": "^5.0.0",
|
|
83
83
|
"eslint": "^9.0.0",
|
|
84
84
|
"eslint-plugin-putout": "^29.0.0",
|
|
85
|
-
"estree-to-babel": "^
|
|
86
|
-
"goldstein": "^
|
|
85
|
+
"estree-to-babel": "^12.0.0",
|
|
86
|
+
"goldstein": "^7.0.0",
|
|
87
87
|
"just-kebab-case": "^4.2.0",
|
|
88
|
-
"madrun": "^
|
|
88
|
+
"madrun": "^12.0.0",
|
|
89
89
|
"montag": "^1.0.0",
|
|
90
90
|
"nodemon": "^3.0.1",
|
|
91
91
|
"putout": "^41.0.0",
|
|
92
|
-
"redlint": "^
|
|
93
|
-
"samadhi": "^
|
|
94
|
-
"supertape": "^
|
|
95
|
-
"try-catch": "^
|
|
92
|
+
"redlint": "^5.0.2",
|
|
93
|
+
"samadhi": "^4.0.2",
|
|
94
|
+
"supertape": "^12.0.9",
|
|
95
|
+
"try-catch": "^4.0.6",
|
|
96
96
|
"typescript": "^5.3.3"
|
|
97
97
|
},
|
|
98
98
|
"license": "MIT",
|
|
99
99
|
"engines": {
|
|
100
|
-
"node": ">=
|
|
100
|
+
"node": ">=22"
|
|
101
101
|
},
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|