@putout/printer
Advanced tools
Comparing version 9.12.0 to 9.13.0
@@ -11,2 +11,4 @@ 'use strict'; | ||
module.exports.print = (ast, overrides = {}) => { | ||
check(ast); | ||
const options = maybeJSON(ast, overrides); | ||
@@ -20,1 +22,6 @@ const tokens = tokenize(ast, options); | ||
module.exports.maybeVisitor = maybeVisitor; | ||
function check(ast) { | ||
if (typeof ast !== 'object') | ||
throw Error('☝️Looks like ast not an object'); | ||
} |
@@ -124,2 +124,1 @@ 'use strict'; | ||
}; | ||
@@ -7,2 +7,3 @@ 'use strict'; | ||
} = require('../../is'); | ||
const {printParams} = require('./params'); | ||
@@ -9,0 +10,0 @@ const {maybeDecorators} = require('../../maybe/maybe-decorators'); |
{ | ||
"name": "@putout/printer", | ||
"version": "9.12.0", | ||
"version": "9.13.0", | ||
"type": "commonjs", | ||
@@ -59,3 +59,3 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
"eslint": "^9.0.0", | ||
"eslint-plugin-putout": "^22.0.0", | ||
"eslint-plugin-putout": "^23.0.0", | ||
"estree-to-babel": "^9.0.0", | ||
@@ -62,0 +62,0 @@ "goldstein": "^5.14.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231129
5086