@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.
Files changed (2) hide show
  1. package/core/encode.js +6 -0
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kezh/my-custom-js-converter",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "自定义代码转换器",
5
5
  "main": "index.js",
6
6
  "bin": {