@putout/processor-filesystem 1.0.2 → 1.2.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.
- package/lib/filesystem.js +3 -2
- package/lib/is-filesystem.cjs +5 -0
- package/lib/name.cjs +3 -0
- package/package.json +1 -1
package/lib/filesystem.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import filesystemCLI from '@putout/cli-filesystem';
|
|
2
2
|
import filesystem from '@putout/operator-filesystem';
|
|
3
|
+
import {name} from './name.cjs';
|
|
3
4
|
|
|
4
|
-
const prefix =
|
|
5
|
+
const prefix = `${name}(`;
|
|
5
6
|
const sufix = ');\n';
|
|
6
7
|
|
|
7
8
|
export const files = [
|
|
@@ -22,7 +23,7 @@ export const branch = (rawSource) => {
|
|
|
22
23
|
export const merge = (rawSource, list) => {
|
|
23
24
|
filesystem.deinit(filesystemCLI);
|
|
24
25
|
|
|
25
|
-
const
|
|
26
|
+
const source = list.pop();
|
|
26
27
|
|
|
27
28
|
return fromJS(source) + '\n';
|
|
28
29
|
};
|
package/lib/name.cjs
ADDED
package/package.json
CHANGED