Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-check

Package Overview
Dependencies
Maintainers
1
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-check - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

24

dist/src/index.js

@@ -22,3 +22,3 @@ "use strict";

const writers_1 = require("./writers");
const outputFormats = ["human", "human-verbose", "machine"];
const outputFormats = ['human', 'human-verbose', 'machine'];
/* eslint-disable @typescript-eslint/no-empty-function */

@@ -39,3 +39,3 @@ class NullLogger {

/* eslint-enable @typescript-eslint/no-empty-function */
function prepareClientConnection() {
function prepareClientConnection(workspaceUri) {
return __awaiter(this, void 0, void 0, function* () {

@@ -49,2 +49,9 @@ const up = new TestStream();

clientConnection.listen();
yield clientConnection.sendRequest(vscode_languageserver_protocol_1.InitializeRequest.type, {
capabilities: {},
processId: 1,
rootUri: workspaceUri,
workspaceFolders: null,
initializationOptions: { config: {} },
});
return clientConnection;

@@ -56,3 +63,3 @@ });

writer.start(workspaceUri.fsPath);
const clientConnection = yield prepareClientConnection();
const clientConnection = yield prepareClientConnection(workspaceUri.toString());
const files = glob.sync('**/*.svelte', {

@@ -66,3 +73,3 @@ cwd: workspaceUri.fsPath,

errorCount: 0,
warningCount: 0
warningCount: 0,
};

@@ -89,3 +96,2 @@ for (const absFilePath of absFilePaths) {

}
// eslint-disable-next-line max-len
writer.file(res, workspaceUri.fsPath, path.relative(workspaceUri.fsPath, absFilePath), text);

@@ -118,6 +124,8 @@ res.forEach((d) => {

}
const outputFormat = outputFormats.includes(myArgs['output']) ? myArgs['output'] : "human-verbose";
const outputFormat = outputFormats.includes(myArgs['output'])
? myArgs['output']
: 'human-verbose';
let writer;
if (outputFormat === "human-verbose" || outputFormat === "human") {
writer = new writers_1.HumanFriendlyWriter(process.stdout, outputFormat === "human-verbose");
if (outputFormat === 'human-verbose' || outputFormat === 'human') {
writer = new writers_1.HumanFriendlyWriter(process.stdout, outputFormat === 'human-verbose');
}

@@ -124,0 +132,0 @@ else {

@@ -1,1 +0,1 @@

{"name":"svelte-check","description":"Svelte Code Checker Terminal Interface","version":"0.1.4","main":"./dist/src/index.js","bin":"./bin/svelte-check","author":"The Svelte Community","license":"MIT","dependencies":{"chalk":"^4.0.0","glob":"^7.1.6","minimist":"^1.2.5","svelte-language-server":"*","vscode-languageserver":"6.1.1","vscode-languageserver-protocol":"3.15.3","vscode-languageserver-types":"3.15.1","vscode-uri":"2.1.1"},"scripts":{"build":"tsc","test":"npm --version"},"devDependencies":{"@types/glob":"^7.1.1","@types/minimist":"^1.2.0","typescript":"*"}}
{"name":"svelte-check","description":"Svelte Code Checker Terminal Interface","version":"0.1.5","main":"./dist/src/index.js","bin":"./bin/svelte-check","author":"The Svelte Community","license":"MIT","dependencies":{"chalk":"^4.0.0","glob":"^7.1.6","minimist":"^1.2.5","svelte-language-server":"*","vscode-languageserver":"6.1.1","vscode-languageserver-protocol":"3.15.3","vscode-languageserver-types":"3.15.1","vscode-uri":"2.1.1"},"scripts":{"build":"tsc","test":"npm --version"},"devDependencies":{"@types/glob":"^7.1.1","@types/minimist":"^1.2.0","typescript":"*"}}

Sorry, the diff of this file is not supported yet

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