putout 34.0.2 → 34.0.4

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.12.11, v34.0.4
2
+
3
+ feature:
4
+ - 8b2470a8d putout: runner: worker: report: rm useless arg: report
5
+ - 9b87f575c @putout/engine-processor: rm useless rawSource
6
+
7
+ 2023.12.11, v34.0.3
8
+
9
+ fix:
10
+ - 6538c3840 putout: loader: convert Buffer to string before transfrom
11
+
1
12
  2023.12.11, v34.0.2
2
13
 
3
14
  feature:
@@ -78,7 +78,6 @@ module.exports = async ({readFile, report, writeFile, exit, raw, write, log, cur
78
78
  });
79
79
 
80
80
  const line = await report(currentFormat, {
81
- report,
82
81
  formatterOptions,
83
82
  name: chooseName(name, resolvedName),
84
83
  source: rawSource,
@@ -113,9 +112,7 @@ async function runCache({fileCache, report, write, formatterOptions, currentForm
113
112
  return false;
114
113
 
115
114
  const places = fileCache.getPlaces(name);
116
-
117
115
  const formatterProxy = createFormatterProxy({
118
- report,
119
116
  formatterOptions,
120
117
  name: chooseName(name, resolvedName),
121
118
  places,
@@ -34,7 +34,7 @@ export const transformSource = async (source, context) => {
34
34
  source,
35
35
  };
36
36
 
37
- const {code} = await putoutAsync(source, {
37
+ const {code} = await putoutAsync(String(source), {
38
38
  printer: 'putout',
39
39
  ...options,
40
40
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "34.0.2",
3
+ "version": "34.0.4",
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",