@kezh/my-custom-js-converter 0.0.9 → 0.0.10
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/core/encode.js +5 -4
- package/package.json +1 -1
package/core/encode.js
CHANGED
|
@@ -104,12 +104,13 @@ function getImportMethods(modPathByName, methodNamesByMod) {
|
|
|
104
104
|
let mergeMethodNames = [
|
|
105
105
|
...new Set([...useMethodNames, ...inlineMethodNames])
|
|
106
106
|
];
|
|
107
|
-
console.log(`import methods => ${mergeMethodNames}`);
|
|
108
107
|
modifyModMethods(name, mergeMethodNames, modAst);
|
|
109
108
|
mergeMethodNames = mergeMethodNames.map((m) => `${m}__${name}`);
|
|
110
|
-
const mergeMethods =
|
|
111
|
-
.
|
|
112
|
-
.
|
|
109
|
+
const mergeMethods = mergeMethodNames
|
|
110
|
+
.map((name) => {
|
|
111
|
+
return modMethods.find((m) => core_1.types.isIdentifier(m.key) && m.key.name === name);
|
|
112
|
+
}).filter(m => m);
|
|
113
|
+
console.log(`import methods size => ${mergeMethods.length}`);
|
|
113
114
|
return mergeMethods.map((m) => {
|
|
114
115
|
console.log(`${m.key}`);
|
|
115
116
|
m.body = core_1.types.addComment(m.body, "inner", "auto-generated: Please do not modify the.");
|