Socket
Socket
Sign inDemoInstall

@astrojs/check

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/check - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

10

dist/index.js

@@ -21,3 +21,3 @@ import { AstroCheck } from '@astrojs/language-server';

const require = createRequire(import.meta.url);
const checker = new AstroCheck(workspaceRoot, require.resolve('typescript/lib/tsserverlibrary.js'), flags.tsconfig);
const checker = new AstroCheck(workspaceRoot, require.resolve('typescript'), flags.tsconfig);
let req = 0;

@@ -32,14 +32,14 @@ if (flags.watch) {

// Dynamically get the list of extensions to watch from the files already included in the project
const checkedExtensions = Array.from(new Set(checker.project.languageHost.getScriptFileNames().map((fileName) => path.extname(fileName))));
const checkedExtensions = Array.from(new Set(checker.linter.languageHost.getScriptFileNames().map((fileName) => path.extname(fileName))));
createWatcher(workspaceRoot, checkedExtensions)
.on('add', (fileName) => {
checker.project.fileCreated(fileName);
checker.linter.fileCreated(fileName);
update();
})
.on('unlink', (fileName) => {
checker.project.fileDeleted(fileName);
checker.linter.fileDeleted(fileName);
update();
})
.on('change', (fileName) => {
checker.project.fileUpdated(fileName);
checker.linter.fileUpdated(fileName);
update();

@@ -46,0 +46,0 @@ });

{
"name": "@astrojs/check",
"version": "0.4.1",
"version": "0.5.0",
"author": "withastro",

@@ -23,3 +23,3 @@ "license": "MIT",

"dependencies": {
"@astrojs/language-server": "^2.6.2",
"@astrojs/language-server": "^2.7.0",
"chokidar": "^3.5.3",

@@ -26,0 +26,0 @@ "fast-glob": "^3.3.1",

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