@kezh/my-custom-js-converter 0.0.14 → 0.0.16

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 -0
  2. package/package.json +1 -1
package/core/encode.js CHANGED
@@ -130,6 +130,7 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
130
130
  if (!useMethodNames.length) {
131
131
  return [];
132
132
  }
133
+ console.log(`use method names => ${useMethodNames}`);
133
134
  const thisMethodNames = new Set();
134
135
  (0, traverse_1.default)(modAst, {
135
136
  ThisExpression(path) {
@@ -139,6 +140,7 @@ function getInlineThisMethodNames(modMethodNames, useMethodNames, modAst) {
139
140
  return;
140
141
  }
141
142
  if (useMethodNames.includes(id.name)) {
143
+ console.log(`id name => ${id.name}`);
142
144
  const memberExpression = path.findParent((path) => path.isMemberExpression());
143
145
  const property = memberExpression === null || memberExpression === void 0 ? void 0 : memberExpression.node.property;
144
146
  if (!core_1.types.isIdentifier(property)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kezh/my-custom-js-converter",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "自定义代码转换器",
5
5
  "main": "index.js",
6
6
  "bin": {