@kezh/my-custom-js-converter 0.0.15 → 0.0.17
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 +1 -3
- package/package.json +1 -1
package/core/encode.js
CHANGED
|
@@ -130,7 +130,6 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
|
|
|
130
130
|
if (!useMethodNames.length) {
|
|
131
131
|
return [];
|
|
132
132
|
}
|
|
133
|
-
console.log(`use method names => ${useMethodNames}`);
|
|
134
133
|
const thisMethodNames = new Set();
|
|
135
134
|
(0, traverse_1.default)(modAst, {
|
|
136
135
|
ThisExpression(path) {
|
|
@@ -145,7 +144,6 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
|
|
|
145
144
|
if (!core_1.types.isIdentifier(property)) {
|
|
146
145
|
return;
|
|
147
146
|
}
|
|
148
|
-
console.log(`property name => ${property.name}`);
|
|
149
147
|
if (modMethodNames.includes(property.name)) {
|
|
150
148
|
thisMethodNames.add(property.name);
|
|
151
149
|
}
|
|
@@ -154,7 +152,7 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
|
|
|
154
152
|
});
|
|
155
153
|
return [
|
|
156
154
|
...thisMethodNames,
|
|
157
|
-
...getInlineThisMethodNames(modMethodNames, [...thisMethodNames])
|
|
155
|
+
...getInlineThisMethodNames(modMethodNames, [...thisMethodNames], modAst)
|
|
158
156
|
];
|
|
159
157
|
}
|
|
160
158
|
/**
|