@putout/plugin-putout 24.0.0 → 24.1.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.
|
@@ -5,12 +5,16 @@ const {
|
|
|
5
5
|
isTemplateLiteral,
|
|
6
6
|
} = types;
|
|
7
7
|
|
|
8
|
+
const check = ({__a}) => isStringLiteral(__a) || isTemplateLiteral(__a);
|
|
9
|
+
|
|
8
10
|
export const report = () => `Typeof 'report' should be a 'function'`;
|
|
9
11
|
|
|
10
12
|
export const match = () => ({
|
|
11
|
-
'module.exports.report = __a':
|
|
13
|
+
'module.exports.report = __a': check,
|
|
14
|
+
'export const report = __a': check,
|
|
12
15
|
});
|
|
13
16
|
|
|
14
17
|
export const replace = () => ({
|
|
15
18
|
'module.exports.report = __a': 'module.exports.report = () => __a',
|
|
19
|
+
'export const report = __a': 'export const report = () => __a',
|
|
16
20
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-putout",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout plugin helps with plugins development",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"eslint": "^9.0.0",
|
|
52
52
|
"eslint-plugin-n": "^17.0.0",
|
|
53
53
|
"eslint-plugin-putout": "^26.0.0",
|
|
54
|
-
"madrun": "^
|
|
54
|
+
"madrun": "^11.0.0",
|
|
55
55
|
"montag": "^1.2.1",
|
|
56
56
|
"nodemon": "^3.0.1",
|
|
57
57
|
"supertape": "^10.0.0"
|