@putout/printer
Advanced tools
Comparing version 8.6.0 to 8.6.1
@@ -7,3 +7,3 @@ 'use strict'; | ||
const {maybePlugin} = require('./tokenize/maybe/index'); | ||
const {maybeVisitor} = require('./tokenize/maybe/index'); | ||
const visitors = require('./tokenize/visitors'); | ||
@@ -19,2 +19,2 @@ | ||
module.exports.visitors = visitors; | ||
module.exports.maybePlugin = maybePlugin; | ||
module.exports.maybeVisitor = maybeVisitor; |
'use strict'; | ||
const {ArrayExpression} = require('./array-expression'); | ||
const {maybePlugin} = require('../../maybe'); | ||
const {maybeVisitor} = require('../../maybe'); | ||
@@ -9,3 +9,3 @@ module.exports.TupleExpression = (path, operations, semantics) => { | ||
write('#'); | ||
maybePlugin(ArrayExpression, path, operations, semantics); | ||
maybeVisitor(ArrayExpression, path, operations, semantics); | ||
}; |
@@ -35,3 +35,3 @@ 'use strict'; | ||
module.exports.maybePlugin = (plugin, path, printer, options) => { | ||
module.exports.maybeVisitor = (plugin, path, printer, options) => { | ||
if (isFn(plugin)) | ||
@@ -38,0 +38,0 @@ return plugin(path, printer, options); |
@@ -12,3 +12,3 @@ 'use strict'; | ||
maybeFile, | ||
maybePlugin, | ||
maybeVisitor, | ||
maybeThrow, | ||
@@ -225,3 +225,3 @@ } = require('./maybe'); | ||
// this is main thing | ||
maybePlugin(currentTraverse, path, printer, semantics); | ||
maybeVisitor(currentTraverse, path, printer, semantics); | ||
parseTrailingComments(path, printer, semantics); | ||
@@ -228,0 +228,0 @@ maybeThrow(i !== currentIndent, path, `☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'`); |
{ | ||
"name": "@putout/printer", | ||
"version": "8.6.0", | ||
"version": "8.6.1", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
Sorry, the diff of this file is not supported yet
206717