@putout/printer 15.14.0 → 15.14.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
package/lib/printer.d.ts
CHANGED
|
@@ -21,15 +21,14 @@ interface Semantics {
|
|
|
21
21
|
type Print = (input: string | types.Node) => void;
|
|
22
22
|
type Indent = () => void;
|
|
23
23
|
type Traverse = (input: types.Node) => void;
|
|
24
|
-
|
|
25
24
|
type MaybeCondition = (condition: boolean) => void;
|
|
26
25
|
|
|
27
26
|
declare const MaybeIndent: {
|
|
28
27
|
inc: MaybeCondition;
|
|
29
28
|
dec: MaybeCondition;
|
|
30
29
|
};
|
|
31
|
-
declare function MaybeIndent(condition: boolean): void;
|
|
32
30
|
|
|
31
|
+
declare function MaybeIndent(condition: boolean): void;
|
|
33
32
|
type MaybePrint = (condition: boolean, input: string | types.Node) => void;
|
|
34
33
|
type MaybeTraverse = (condition: boolean, input: types.Node) => void;
|
|
35
34
|
|
|
@@ -22,6 +22,7 @@ const {DoWhileStatement} = require('./do-while-statement/do-while-statement');
|
|
|
22
22
|
const {Program} = require('./program/program');
|
|
23
23
|
const {ContinueStatement} = require('./continue-statement/continue-statement');
|
|
24
24
|
const {LabeledStatement} = require('./labeled-statement/labeled-statement');
|
|
25
|
+
const {EmptyStatement} = require('./empty-statement/empty-statement');
|
|
25
26
|
|
|
26
27
|
const {
|
|
27
28
|
ExportNamespaceSpecifier,
|
|
@@ -47,9 +48,7 @@ module.exports = {
|
|
|
47
48
|
DebuggerStatement,
|
|
48
49
|
LabeledStatement,
|
|
49
50
|
Program,
|
|
50
|
-
EmptyStatement
|
|
51
|
-
write(';');
|
|
52
|
-
},
|
|
51
|
+
EmptyStatement,
|
|
53
52
|
InterpreterDirective(path, {print}) {
|
|
54
53
|
// shebang, hashbang
|
|
55
54
|
print(`#!${path.node.value}\n`);
|
package/package.json
CHANGED