@kezh/my-custom-js-converter 0.0.16 → 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.
Files changed (2) hide show
  1. package/core/encode.js +1 -4
  2. 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) {
@@ -140,13 +139,11 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
140
139
  return;
141
140
  }
142
141
  if (useMethodNames.includes(id.name)) {
143
- console.log(`id name => ${id.name}`);
144
142
  const memberExpression = path.findParent((path) => path.isMemberExpression());
145
143
  const property = memberExpression === null || memberExpression === void 0 ? void 0 : memberExpression.node.property;
146
144
  if (!core_1.types.isIdentifier(property)) {
147
145
  return;
148
146
  }
149
- console.log(`property name => ${property.name}`);
150
147
  if (modMethodNames.includes(property.name)) {
151
148
  thisMethodNames.add(property.name);
152
149
  }
@@ -155,7 +152,7 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
155
152
  });
156
153
  return [
157
154
  ...thisMethodNames,
158
- ...getInlineThisMethodNames(modMethodNames, [...thisMethodNames])
155
+ ...getInlineThisMethodNames(modMethodNames, [...thisMethodNames], modAst)
159
156
  ];
160
157
  }
161
158
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kezh/my-custom-js-converter",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "自定义代码转换器",
5
5
  "main": "index.js",
6
6
  "bin": {