cspell 6.14.2 → 6.14.3

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.
@@ -5,10 +5,10 @@ import { TimedSuggestionsForWordResult } from './emitters/suggestionsEmitter';
5
5
  import { BaseOptions, LegacyOptions, LinterCliOptions, SuggestionOptions, TraceOptions } from './options';
6
6
  export { IncludeExcludeFlag } from 'cspell-lib';
7
7
  export type { TraceResult } from 'cspell-lib';
8
- export declare type AppError = NodeJS.ErrnoException;
8
+ export type AppError = NodeJS.ErrnoException;
9
9
  export declare function lint(fileGlobs: string[], options: LinterCliOptions, reporter?: CSpellReporter): Promise<RunResult>;
10
10
  export declare function trace(words: string[], options: TraceOptions): AsyncIterableIterator<TraceResult[]>;
11
- export declare type CheckTextResult = CheckTextInfo;
11
+ export type CheckTextResult = CheckTextInfo;
12
12
  export declare function checkText(filename: string, options: BaseOptions & LegacyOptions): Promise<CheckTextResult>;
13
13
  export declare function suggestions(words: string[], options: SuggestionOptions): AsyncIterable<TimedSuggestionsForWordResult>;
14
14
  export declare function createInit(): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  export declare function simpleRepl(): AsyncIterable<string>;
2
- export declare type CompleterResult = [string[], string];
3
- export declare type Completer = (line: string) => CompleterResult;
2
+ export type CompleterResult = [string[], string];
3
+ export type Completer = (line: string) => CompleterResult;
4
4
  export declare class SimpleRepl implements AsyncIterable<string> {
5
5
  prompt: string;
6
6
  beforeEach: undefined | (() => void);
@@ -1,7 +1,7 @@
1
1
  import type { FileResult } from '../../util/fileHelper';
2
2
  import type { CSpellLintResultCache } from './CSpellLintResultCache';
3
3
  import { FileDescriptor } from './fileEntryCache';
4
- export declare type CachedFileResult = Omit<FileResult, 'fileInfo' | 'elapsedTimeMs' | 'cached'>;
4
+ export type CachedFileResult = Omit<FileResult, 'fileInfo' | 'elapsedTimeMs' | 'cached'>;
5
5
  /**
6
6
  * This is the data cached.
7
7
  * Property names are short to help keep the cache file size small.
@@ -23,8 +23,8 @@ interface Dependency {
23
23
  interface CSpellCachedMetaData {
24
24
  data?: CachedData;
25
25
  }
26
- declare type Meta = FileDescriptor['meta'];
27
- export declare type CSpellCacheMeta = (Meta & CSpellCachedMetaData) | undefined;
26
+ type Meta = FileDescriptor['meta'];
27
+ export type CSpellCacheMeta = (Meta & CSpellCachedMetaData) | undefined;
28
28
  /**
29
29
  * Caches cspell results on disk
30
30
  */
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export type { FileDescriptor } from 'file-entry-cache';
5
5
  import type { FileEntryCache as FecFileEntryCache } from 'file-entry-cache';
6
- export declare type FileEntryCache = FecFileEntryCache;
6
+ export type FileEntryCache = FecFileEntryCache;
7
7
  export declare function createFromFile(pathToCache: string, useCheckSum: boolean, useRelative: boolean): FileEntryCache;
8
8
  export declare function normalizePath(filePath: string): string;
9
9
  //# sourceMappingURL=fileEntryCache.d.ts.map
@@ -4,7 +4,7 @@ export interface Table {
4
4
  deliminator?: string;
5
5
  }
6
6
  export declare function tableToLines(table: Table, deliminator?: string): string[];
7
- declare type TextDecorator = (t: string, index: number) => string;
7
+ type TextDecorator = (t: string, index: number) => string;
8
8
  export declare function decorateRowWith(row: string[], ...decorators: TextDecorator[]): string[];
9
9
  export {};
10
10
  //# sourceMappingURL=table.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export declare const uniqueFn: typeof uniqueFilterFnGenerator;
2
- declare type FilterFn<T> = (_v: T) => boolean;
2
+ type FilterFn<T> = (_v: T) => boolean;
3
3
  export declare function uniqueFilterFnGenerator<T>(): FilterFn<T>;
4
4
  export declare function uniqueFilterFnGenerator<T, U>(extractFn: (v: T) => U): FilterFn<T>;
5
5
  export declare function unique<T>(src: T[]): T[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell",
3
- "version": "6.14.2",
3
+ "version": "6.14.3",
4
4
  "description": "A Spelling Checker for Code!",
5
5
  "funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
6
6
  "main": "dist/index.js",
@@ -70,12 +70,12 @@
70
70
  },
71
71
  "homepage": "https://streetsidesoftware.github.io/cspell/",
72
72
  "dependencies": {
73
- "@cspell/cspell-pipe": "6.14.2",
73
+ "@cspell/cspell-pipe": "6.14.3",
74
74
  "chalk": "^4.1.2",
75
75
  "commander": "^9.4.1",
76
- "cspell-gitignore": "6.14.2",
77
- "cspell-glob": "6.14.2",
78
- "cspell-lib": "6.14.2",
76
+ "cspell-gitignore": "6.14.3",
77
+ "cspell-glob": "6.14.3",
78
+ "cspell-lib": "6.14.3",
79
79
  "fast-json-stable-stringify": "^2.1.0",
80
80
  "file-entry-cache": "^6.0.1",
81
81
  "fs-extra": "^10.1.0",
@@ -90,8 +90,8 @@
90
90
  "node": ">=14"
91
91
  },
92
92
  "devDependencies": {
93
- "@cspell/cspell-json-reporter": "6.14.2",
94
- "@cspell/cspell-types": "6.14.2",
93
+ "@cspell/cspell-json-reporter": "6.14.3",
94
+ "@cspell/cspell-types": "6.14.3",
95
95
  "@types/file-entry-cache": "^5.0.2",
96
96
  "@types/fs-extra": "^9.0.13",
97
97
  "@types/glob": "^8.0.0",
@@ -103,8 +103,8 @@
103
103
  "micromatch": "^4.0.5",
104
104
  "minimatch": "^5.1.0",
105
105
  "rimraf": "^3.0.2",
106
- "rollup": "^3.2.5",
106
+ "rollup": "^3.3.0",
107
107
  "rollup-plugin-dts": "^5.0.0"
108
108
  },
109
- "gitHead": "ea9692380357e9e890c20f15b1200cc1c6c3a2df"
109
+ "gitHead": "df0efdbb0dc7b084579130ba5fe97441c0ab67ca"
110
110
  }