svelte2tsx 0.6.22 → 0.6.23

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 +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1395,7 +1395,7 @@ function blankPossiblyErrorOperatorOrPropertyAccess(htmlx) {
1395
1395
  htmlx =
1396
1396
  htmlx.substring(0, backwardIndex) + ' ' + htmlx.substring(backwardIndex + 1);
1397
1397
  }
1398
- else if (!/\s/.test(char)) {
1398
+ else if (!/\s/.test(char) && char !== ')' && char !== ']') {
1399
1399
  break;
1400
1400
  }
1401
1401
  backwardIndex--;
package/index.mjs CHANGED
@@ -1375,7 +1375,7 @@ function blankPossiblyErrorOperatorOrPropertyAccess(htmlx) {
1375
1375
  htmlx =
1376
1376
  htmlx.substring(0, backwardIndex) + ' ' + htmlx.substring(backwardIndex + 1);
1377
1377
  }
1378
- else if (!/\s/.test(char)) {
1378
+ else if (!/\s/.test(char) && char !== ')' && char !== ']') {
1379
1379
  break;
1380
1380
  }
1381
1381
  backwardIndex--;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte2tsx",
3
- "version": "0.6.22",
3
+ "version": "0.6.23",
4
4
  "description": "Convert Svelte components to TSX for type checking",
5
5
  "author": "David Pershouse",
6
6
  "license": "MIT",