@kezh/my-custom-js-converter 0.0.22 → 0.0.24
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 -2
- package/package.json +1 -1
package/core/encode.js
CHANGED
|
@@ -324,8 +324,8 @@ function modifyModMethods(mod, methodNames, modAst) {
|
|
|
324
324
|
if (core_1.types.isIdentifier(path.node.property)) {
|
|
325
325
|
const property = path.node.property;
|
|
326
326
|
if (methodNames.includes(property.name)) {
|
|
327
|
-
if (core_1.types.isIdentifier(path.node) ||
|
|
328
|
-
core_1.types.isThisExpression(path.node)) {
|
|
327
|
+
if (core_1.types.isIdentifier(path.node.object) ||
|
|
328
|
+
core_1.types.isThisExpression(path.node.object)) {
|
|
329
329
|
property.name = `${property.name}__${mod}`;
|
|
330
330
|
}
|
|
331
331
|
}
|