svelte2tsx 0.7.56 → 0.7.57

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 (3) hide show
  1. package/index.js +4 -0
  2. package/index.mjs +4 -0
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -7520,6 +7520,10 @@ class ExportedNames {
7520
7520
  return;
7521
7521
  }
7522
7522
  name.elements.forEach((child) => {
7523
+ // Skip array binding holes (`[a, , c]`), which have no `name`.
7524
+ if (ts.isOmittedExpression(child)) {
7525
+ return;
7526
+ }
7523
7527
  this.addExportForBindingPattern(child.name, isLet, undefined, type, required);
7524
7528
  });
7525
7529
  }
package/index.mjs CHANGED
@@ -7500,6 +7500,10 @@ class ExportedNames {
7500
7500
  return;
7501
7501
  }
7502
7502
  name.elements.forEach((child) => {
7503
+ // Skip array binding holes (`[a, , c]`), which have no `name`.
7504
+ if (ts.isOmittedExpression(child)) {
7505
+ return;
7506
+ }
7503
7507
  this.addExportForBindingPattern(child.name, isLet, undefined, type, required);
7504
7508
  });
7505
7509
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte2tsx",
3
- "version": "0.7.56",
3
+ "version": "0.7.57",
4
4
  "description": "Convert Svelte components to TSX for type checking",
5
5
  "author": "The Svelte Community",
6
6
  "license": "MIT",
@@ -25,13 +25,13 @@
25
25
  "@rollup/plugin-node-resolve": "^15.0.0",
26
26
  "@rollup/plugin-typescript": "^10.0.0",
27
27
  "@types/estree": "^0.0.42",
28
- "@types/mocha": "^9.1.0",
28
+ "@types/mocha": "^10.0.10",
29
29
  "@types/node": "^18.0.0",
30
30
  "@types/unist": "^2.0.3",
31
31
  "@types/vfile": "^3.0.2",
32
32
  "estree-walker": "^2.0.1",
33
33
  "magic-string": "^0.30.11",
34
- "mocha": "^9.2.0",
34
+ "mocha": "^11.7.6",
35
35
  "periscopic": "^2.0.2",
36
36
  "rollup": "3.7.5",
37
37
  "rollup-plugin-delete": "^2.0.0",