typescript-svelte-plugin 0.3.20 → 0.3.21
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.
|
@@ -114,7 +114,7 @@ function getKitDiagnostics(methodName, fileName, info, ts, logger) {
|
|
|
114
114
|
const basename = path_1.default.basename(fileName);
|
|
115
115
|
const validExports = Object.keys(sveltekit_1.kitExports).filter((key) => (0, sveltekit_1.isKitRouteExportAllowedIn)(basename, sveltekit_1.kitExports[key]));
|
|
116
116
|
if (source && basename.startsWith('+')) {
|
|
117
|
-
const exports = svelte2tsx_1.internalHelpers.findExports(source, /* irrelevant */ false);
|
|
117
|
+
const exports = svelte2tsx_1.internalHelpers.findExports(ts, source, /* irrelevant */ false);
|
|
118
118
|
for (const exportName of exports.keys()) {
|
|
119
119
|
if (!validExports.includes(exportName) && !exportName.startsWith('_')) {
|
|
120
120
|
const node = exports.get(exportName).node;
|
|
@@ -554,7 +554,7 @@ function getProxiedLanguageService(info, ts, logger) {
|
|
|
554
554
|
return this.files[fileName];
|
|
555
555
|
}
|
|
556
556
|
upsertKitFile(fileName) {
|
|
557
|
-
const result = svelte2tsx_1.internalHelpers.upsertKitFile(fileName, {
|
|
557
|
+
const result = svelte2tsx_1.internalHelpers.upsertKitFile(ts, fileName, {
|
|
558
558
|
clientHooksPath: this.clientHooksPath,
|
|
559
559
|
paramsPath: this.paramsPath,
|
|
560
560
|
serverHooksPath: this.serverHooksPath
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typescript-svelte-plugin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"description": "A TypeScript Plugin providing Svelte intellisense",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@jridgewell/sourcemap-codec": "^1.4.14",
|
|
27
|
-
"svelte2tsx": "~0.6.
|
|
27
|
+
"svelte2tsx": "~0.6.8"
|
|
28
28
|
}
|
|
29
29
|
}
|