@kezh/my-custom-js-converter 0.0.14 → 0.0.16
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 -0
- package/package.json +1 -1
package/core/encode.js
CHANGED
|
@@ -130,6 +130,7 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
|
|
|
130
130
|
if (!useMethodNames.length) {
|
|
131
131
|
return [];
|
|
132
132
|
}
|
|
133
|
+
console.log(`use method names => ${useMethodNames}`);
|
|
133
134
|
const thisMethodNames = new Set();
|
|
134
135
|
(0, traverse_1.default)(modAst, {
|
|
135
136
|
ThisExpression(path) {
|
|
@@ -139,6 +140,7 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
|
|
|
139
140
|
return;
|
|
140
141
|
}
|
|
141
142
|
if (useMethodNames.includes(id.name)) {
|
|
143
|
+
console.log(`id name => ${id.name}`);
|
|
142
144
|
const memberExpression = path.findParent((path) => path.isMemberExpression());
|
|
143
145
|
const property = memberExpression === null || memberExpression === void 0 ? void 0 : memberExpression.node.property;
|
|
144
146
|
if (!core_1.types.isIdentifier(property)) {
|