New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

typescript-svelte-plugin

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-svelte-plugin - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

9

dist/src/svelte-snapshots.js

@@ -231,3 +231,6 @@ "use strict";

const readFile = this.projectService.host.readFile;
this.projectService.host.readFile = (path) => {
this.projectService.host.readFile = (path, encoding) => {
if (!this.configManager.getConfig().enable) {
return readFile(path, encoding);
}
// The following (very hacky) first two checks make sure that the ambient module definitions

@@ -253,3 +256,3 @@ // that tell TS "every import ending with .svelte is a valid module" are removed.

}
else if ((0, utils_1.isSvelteFilePath)(path) && this.configManager.getConfig().enable) {
else if ((0, utils_1.isSvelteFilePath)(path)) {
this.logger.debug('Read Svelte file:', path);

@@ -284,3 +287,3 @@ const svelteCode = readFile(path) || '';

else {
return readFile(path);
return readFile(path, encoding);
}

@@ -287,0 +290,0 @@ };

{
"name": "typescript-svelte-plugin",
"version": "0.3.5",
"version": "0.3.6",
"description": "A TypeScript Plugin providing Svelte intellisense",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc