putout 29.2.0 → 29.2.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
@@ -1,3 +1,14 @@
1
+ 2023.04.06, v29.2.1
2
+
3
+ fix:
4
+ - 57300440e putout: printer
5
+
6
+ feature:
7
+ - ffbc87d77 @putout/test: add ability to pass options
8
+ - ad3d99815 @putout/test: add ability to pass options
9
+ - 339f9e4a5 @putout/plugin-remove-empty: import: report
10
+ - e076e3d45 @putout/test: add support of PUTOUT_PRINTER
11
+
1
12
  2023.04.04, v29.2.0
2
13
 
3
14
  feature:
package/lib/putout.js CHANGED
@@ -18,6 +18,7 @@ const isString = (a) => typeof a === 'string';
18
18
  const defaultOpts = (opts = {}) => {
19
19
  const {
20
20
  parser = 'babel',
21
+ printer = opts.printer || 'recast',
21
22
  fix = true,
22
23
  fixCount = 2,
23
24
  loadPlugins = loader.loadPlugins,
@@ -27,6 +28,7 @@ const defaultOpts = (opts = {}) => {
27
28
  return {
28
29
  ...opts,
29
30
  parser,
31
+ printer,
30
32
  fix,
31
33
  fixCount,
32
34
  loadPlugins,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "29.2.0",
3
+ "version": "29.2.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",