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