@kezh/my-custom-js-converter 0.0.25 → 0.0.26
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 +6 -0
- package/package.json +1 -1
package/core/encode.js
CHANGED
|
@@ -326,6 +326,12 @@ function modifyModMethods(mod, methodNames, modAst) {
|
|
|
326
326
|
if (methodNames.includes(property.name)) {
|
|
327
327
|
if (core_1.types.isIdentifier(path.node.object) ||
|
|
328
328
|
core_1.types.isThisExpression(path.node.object)) {
|
|
329
|
+
if (core_1.types.isIdentifier(path.node.object)) {
|
|
330
|
+
const object = path.node.object;
|
|
331
|
+
if (object.name !== mod) {
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
329
335
|
property.name = `${property.name}__${mod}`;
|
|
330
336
|
}
|
|
331
337
|
}
|