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

cspell

Package Overview
Dependencies
Maintainers
1
Versions
436
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell - npm Package Compare versions

Comparing version 8.17.2 to 8.17.3

4

dist/esm/lint/lint.d.ts
import type { RunResult } from '@cspell/cspell-types';
import type { LintRequest } from './LintRequest.js';
export declare function runLint(cfg: LintRequest): Promise<RunResult>;
export declare class LinterError extends Error {
constructor(message: string);
toString(): string;
}
//# sourceMappingURL=lint.d.ts.map

@@ -91,3 +91,3 @@ import * as path from 'node:path';

if (fileInfo.errorCode !== 'EISDIR' && cfg.options.mustFindFiles) {
const err = toError(`File not found: "${filename}"`);
const err = new LinterError(`File not found: "${filename}"`);
reporter.error('Linter:', err);

@@ -545,2 +545,10 @@ result.errors += 1;

}
export class LinterError extends Error {
constructor(message) {
super(message);
}
toString() {
return this.message;
}
}
//# sourceMappingURL=lint.js.map

2

dist/esm/pkgInfo.d.ts
export { pkgDir } from './dirname.js';
export declare const name = "cspell";
export declare const version = "8.17.2";
export declare const version = "8.17.3";
export declare const engines: {

@@ -5,0 +5,0 @@ node: string;

// This file is generated by tools/patch-version.mjs
export { pkgDir } from './dirname.js';
export const name = 'cspell';
export const version = '8.17.2';
export const version = '8.17.3';
export const engines = { node: '>=18' };
export const npmPackage = { name, version, engines };
//# sourceMappingURL=pkgInfo.js.map
import assert from 'node:assert';
import { stat } from 'node:fs/promises';
import path from 'node:path';
import { isError } from '../errors.js';
import { isErrorLike } from '../errors.js';
import { DiskCache } from './DiskCache.js';

@@ -50,3 +50,3 @@ import { DummyCache } from './DummyCache.js';

catch (err) {
if (isError(err) && err.code === 'ENOENT') {
if (isErrorLike(err) && err.code === 'ENOENT') {
return cacheLocation;

@@ -53,0 +53,0 @@ }

@@ -18,2 +18,3 @@ export declare class CheckFailed extends Error {

export declare function isError(e: unknown): e is NodeError;
export declare function isErrorLike(e: unknown): e is NodeError;
export declare function toApplicationError(e: unknown, message?: string): ApplicationError;

@@ -20,0 +21,0 @@ export interface NodeError extends Error {

@@ -34,10 +34,15 @@ import { format } from 'node:util';

return e;
if (isErrorLike(e)) {
const ex = new Error(e.message, { cause: e });
if (e.code !== undefined)
ex.code = e.code;
return ex;
}
const message = format(e);
return {
name: 'error',
message,
toString: () => message,
};
return new Error(message);
}
export function isError(e) {
return e instanceof Error;
}
export function isErrorLike(e) {
if (e instanceof Error)

@@ -44,0 +49,0 @@ return true;

{
"name": "cspell",
"version": "8.17.2",
"version": "8.17.3",
"description": "A Spelling Checker for Code!",

@@ -84,15 +84,15 @@ "funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",

"dependencies": {
"@cspell/cspell-json-reporter": "8.17.2",
"@cspell/cspell-pipe": "8.17.2",
"@cspell/cspell-types": "8.17.2",
"@cspell/dynamic-import": "8.17.2",
"@cspell/url": "8.17.2",
"@cspell/cspell-json-reporter": "8.17.3",
"@cspell/cspell-pipe": "8.17.3",
"@cspell/cspell-types": "8.17.3",
"@cspell/dynamic-import": "8.17.3",
"@cspell/url": "8.17.3",
"chalk": "^5.4.1",
"chalk-template": "^1.1.0",
"commander": "^13.0.0",
"cspell-dictionary": "8.17.2",
"cspell-gitignore": "8.17.2",
"cspell-glob": "8.17.2",
"cspell-io": "8.17.2",
"cspell-lib": "8.17.2",
"commander": "^13.1.0",
"cspell-dictionary": "8.17.3",
"cspell-gitignore": "8.17.3",
"cspell-glob": "8.17.3",
"cspell-io": "8.17.3",
"cspell-lib": "8.17.3",
"fast-json-stable-stringify": "^2.1.0",

@@ -115,3 +115,3 @@ "file-entry-cache": "^9.1.0",

},
"gitHead": "160c982e8d1e3b4951acb6fc003d013f3b0597e0"
"gitHead": "9a0d2b4584112b33d137faa98e9931ad4e7b6050"
}

@@ -317,3 +317,3 @@ # cspell

cspell needs Node 14 and above.
CSpell needs Node 18 and above.

@@ -320,0 +320,0 @@ ## How it works

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