svelte2tsx 0.4.8 → 0.4.9

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/index.js CHANGED
@@ -2127,11 +2127,9 @@ function handleSlot(htmlx, str, slotEl, component, slotName, ifScope, templateSc
2127
2127
  : slotEl.start);
2128
2128
  str.move(attr.start, attr.end, slotDefInsertionPoint);
2129
2129
  //remove let:
2130
+ str.remove(attr.start, attr.start + 'let:'.length);
2130
2131
  if (hasMoved) {
2131
- str.overwrite(attr.start, attr.start + 'let:'.length, ', ');
2132
- }
2133
- else {
2134
- str.remove(attr.start, attr.start + 'let:'.length);
2132
+ str.appendRight(attr.start + 'let:'.length, ', ');
2135
2133
  }
2136
2134
  templateScope.inits.add(((_a = attr.expression) === null || _a === void 0 ? void 0 : _a.name) || attr.name);
2137
2135
  hasMoved = true;
package/index.mjs CHANGED
@@ -2097,11 +2097,9 @@ function handleSlot(htmlx, str, slotEl, component, slotName, ifScope, templateSc
2097
2097
  : slotEl.start);
2098
2098
  str.move(attr.start, attr.end, slotDefInsertionPoint);
2099
2099
  //remove let:
2100
+ str.remove(attr.start, attr.start + 'let:'.length);
2100
2101
  if (hasMoved) {
2101
- str.overwrite(attr.start, attr.start + 'let:'.length, ', ');
2102
- }
2103
- else {
2104
- str.remove(attr.start, attr.start + 'let:'.length);
2102
+ str.appendRight(attr.start + 'let:'.length, ', ');
2105
2103
  }
2106
2104
  templateScope.inits.add(((_a = attr.expression) === null || _a === void 0 ? void 0 : _a.name) || attr.name);
2107
2105
  hasMoved = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte2tsx",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Convert Svelte components to TSX for type checking",
5
5
  "author": "David Pershouse",
6
6
  "license": "MIT",
package/svelte-jsx.d.ts CHANGED
@@ -469,6 +469,7 @@ declare namespace svelte.JSX {
469
469
  download?: any | undefined;
470
470
  draggable?: boolean | 'true' | 'false' | undefined;
471
471
  enctype?: string | undefined;
472
+ enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined;
472
473
  for?: string | undefined;
473
474
  form?: string | undefined;
474
475
  formaction?: string | undefined;