@putout/plugin-esm 9.6.0 → 9.7.0

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.
@@ -17,7 +17,10 @@ const {
17
17
 
18
18
  const getMessage = (a) => a.message;
19
19
 
20
- export const report = (file, {from, to}) => `Resolve import source: '${from}' -> '${to}'`;
20
+ export const report = (file, {from, to, filename}) => {
21
+ return `Resolve import source: '${from}' -> '${to}' in '${filename}'`;
22
+ };
23
+
21
24
  export const fix = (file, {content, ast, from, to}) => {
22
25
  transform(ast, content, {
23
26
  rules: {
@@ -69,6 +72,7 @@ export const scan = (rootPath, {push, trackFile, crawlFile}) => {
69
72
 
70
73
  for (const [from, to] of resolvedTuples) {
71
74
  push(file, {
75
+ filename,
72
76
  from,
73
77
  to,
74
78
  content,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-esm",
3
- "version": "9.6.0",
3
+ "version": "9.7.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin improves ability to transform ESM code",