goldstein 5.21.0 → 5.21.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.12.19, v5.21.1
2
+
3
+ feature:
4
+ - d949ff5 goldstein: keyword-export-no-const: no declaration.id
5
+
1
6
  2024.12.19, v5.21.0
2
7
 
3
8
  feature:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstein",
3
- "version": "5.21.0",
3
+ "version": "5.21.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "JavaScript with no limits",
@@ -60,5 +60,8 @@ export default function keywordBrokenString(Parser) {
60
60
  }
61
61
 
62
62
  function isNewLine(code) {
63
- return code === 10 || code === 13 || code === 0x2028 || code === 0x2029;
63
+ return code === 10
64
+ || code === 13
65
+ || code === 0x2028
66
+ || code === 0x2029;
64
67
  }
@@ -45,7 +45,7 @@ export default function keywordExportNoConst(Parser) {
45
45
  node.declaration = VariableDeclaration('const', [
46
46
  VariableDeclarator(node.declaration.expression.left, node.declaration.expression.right),
47
47
  ]);
48
- else
48
+ else if (node.declaration.id)
49
49
  this.checkExport(exports, node.declaration.id, node.declaration.id.start);
50
50
 
51
51
  node.specifiers = [];