@kezh/my-custom-js-converter 0.0.10 → 0.0.12
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 +2 -1
- package/package.json +1 -1
package/core/encode.js
CHANGED
|
@@ -99,6 +99,7 @@ function getImportMethods(modPathByName, methodNamesByMod) {
|
|
|
99
99
|
return [];
|
|
100
100
|
}
|
|
101
101
|
const modMethodNames = modMethods.map((m) => m.key.name);
|
|
102
|
+
console.log(`method names => ${modMethodNames}`);
|
|
102
103
|
const useMethodNames = methodNamesByMod.get(name);
|
|
103
104
|
const inlineMethodNames = getInlineThisMethodNames(modMethodNames, useMethodNames, modAst);
|
|
104
105
|
let mergeMethodNames = [
|
|
@@ -112,7 +113,6 @@ function getImportMethods(modPathByName, methodNamesByMod) {
|
|
|
112
113
|
}).filter(m => m);
|
|
113
114
|
console.log(`import methods size => ${mergeMethods.length}`);
|
|
114
115
|
return mergeMethods.map((m) => {
|
|
115
|
-
console.log(`${m.key}`);
|
|
116
116
|
m.body = core_1.types.addComment(m.body, "inner", "auto-generated: Please do not modify the.");
|
|
117
117
|
return m;
|
|
118
118
|
});
|
|
@@ -143,6 +143,7 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
|
|
|
143
143
|
if (!core_1.types.isIdentifier(property)) {
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
|
+
console.log(`property name => ${property.name}`);
|
|
146
147
|
if (modMethodNames.includes(property.name)) {
|
|
147
148
|
thisMethodNames.add(property.name);
|
|
148
149
|
}
|