goldstein 5.13.0 → 5.13.1

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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2024.05.31, v5.13.1
2
+
3
+ fix:
4
+ - 1d705cf goldstein: keyword-useless-comma: rename-unnamed-identifier: StringLiteral
5
+
1
6
  2024.05.31, v5.13.0
2
7
 
3
8
  feature:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstein",
3
- "version": "5.13.0",
3
+ "version": "5.13.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "JavaScript with no limits",
@@ -2,7 +2,9 @@ export const report = () => {};
2
2
  export const fix = (path) => path.remove();
3
3
  export const traverse = ({push}) => ({
4
4
  ObjectProperty(path) {
5
- if (!path.node.key.name)
5
+ const keyPath = path.get('key');
6
+
7
+ if (keyPath.isIdentifier() && !keyPath.node.name)
6
8
  push(path);
7
9
  },
8
10
  });
@@ -30,8 +30,7 @@ export default function fn(Parser) {
30
30
  }
31
31
 
32
32
  /* c8 ignore start */
33
- return this.finishNode(node, isPattern ? 'ObjectPattern' : 'ObjectExpression');
34
- /* c8 ignore end */
33
+ return this.finishNode(node, isPattern ? 'ObjectPattern' : 'ObjectExpression'); /* c8 ignore end */
35
34
  }
36
35
  };
37
36
  }