cspell-lib 6.30.0 → 6.30.2

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.
@@ -17,8 +17,20 @@ export declare class ConfigLoader {
17
17
  */
18
18
  protected constructor(cspellIO: CSpellIO);
19
19
  protected cachedFiles: Map<string, import("../../../Models/CSpellSettingsInternalDef.js").CSpellSettingsInternal>;
20
- protected cspellConfigExplorer: import("cosmiconfig").PublicExplorer;
21
- protected cspellConfigExplorerSync: import("cosmiconfig").PublicExplorerSync;
20
+ protected cspellConfigExplorer: {
21
+ readonly search: (searchFrom?: string | undefined) => Promise<import("cosmiconfig/dist/types.js").CosmiconfigResult>;
22
+ readonly load: (filepath: string) => Promise<import("cosmiconfig/dist/types.js").CosmiconfigResult>;
23
+ readonly clearLoadCache: () => void;
24
+ readonly clearSearchCache: () => void;
25
+ readonly clearCaches: () => void;
26
+ };
27
+ protected cspellConfigExplorerSync: {
28
+ readonly search: (searchFrom?: string | undefined) => import("cosmiconfig/dist/types.js").CosmiconfigResult;
29
+ readonly load: (filepath: string) => import("cosmiconfig/dist/types.js").CosmiconfigResult;
30
+ readonly clearLoadCache: () => void;
31
+ readonly clearSearchCache: () => void;
32
+ readonly clearCaches: () => void;
33
+ };
22
34
  protected globalSettings: CSpellSettingsI | undefined;
23
35
  /**
24
36
  * Read / import a cspell configuration file.
@@ -70,8 +82,20 @@ export declare class ConfigLoader {
70
82
  declare class ConfigLoaderInternal extends ConfigLoader {
71
83
  constructor(cspellIO: CSpellIO);
72
84
  get _cachedFiles(): Map<string, import("../../../Models/CSpellSettingsInternalDef.js").CSpellSettingsInternal>;
73
- get _cspellConfigExplorer(): import("cosmiconfig").PublicExplorer;
74
- get _cspellConfigExplorerSync(): import("cosmiconfig").PublicExplorerSync;
85
+ get _cspellConfigExplorer(): {
86
+ readonly search: (searchFrom?: string | undefined) => Promise<import("cosmiconfig/dist/types.js").CosmiconfigResult>;
87
+ readonly load: (filepath: string) => Promise<import("cosmiconfig/dist/types.js").CosmiconfigResult>;
88
+ readonly clearLoadCache: () => void;
89
+ readonly clearSearchCache: () => void;
90
+ readonly clearCaches: () => void;
91
+ };
92
+ get _cspellConfigExplorerSync(): {
93
+ readonly search: (searchFrom?: string | undefined) => import("cosmiconfig/dist/types.js").CosmiconfigResult;
94
+ readonly load: (filepath: string) => import("cosmiconfig/dist/types.js").CosmiconfigResult;
95
+ readonly clearLoadCache: () => void;
96
+ readonly clearSearchCache: () => void;
97
+ readonly clearCaches: () => void;
98
+ };
75
99
  readonly _readConfig: (fileRef: ImportFileRef) => import("@cspell/cspell-types").CSpellSettingsWithSourceTrace;
76
100
  readonly _normalizeSettings: (rawSettings: import("@cspell/cspell-types").CSpellSettingsWithSourceTrace, pathToSettingsFile: string, pnpSettings: import("../../../util/types.js").OptionalOrUndefined<import("@cspell/cspell-types").PnPSettings>) => import("../../../Models/CSpellSettingsInternalDef.js").CSpellSettingsInternal;
77
101
  normalizeSearchForConfigResultAsync(searchPath: string, searchResult: Promise<SearchForConfigResult | null>, pnpSettings: PnPSettingsOptional): Promise<NormalizeSearchForConfigResult>;
@@ -2,8 +2,7 @@ import type { CSpellSettings, CSpellSettingsWithSourceTrace } from '@cspell/cspe
2
2
  export interface GlobalSettingsWithSource extends Partial<GlobalCSpellSettings> {
3
3
  source: CSpellSettingsWithSourceTrace['source'];
4
4
  }
5
- export interface GlobalCSpellSettings {
6
- import: CSpellSettings['import'];
5
+ export interface GlobalCSpellSettings extends Required<Pick<CSpellSettings, 'import'>> {
7
6
  }
8
7
  export declare function getRawGlobalSettings(): GlobalSettingsWithSource;
9
8
  export declare function writeRawGlobalSettings(settings: GlobalCSpellSettings): Error | undefined;
@@ -17,8 +17,20 @@ export declare class ConfigLoader {
17
17
  */
18
18
  protected constructor(cspellIO: CSpellIO);
19
19
  protected cachedFiles: Map<string, import("../../../Models/CSpellSettingsInternalDef.js").CSpellSettingsInternal>;
20
- protected cspellConfigExplorer: import("cosmiconfig").PublicExplorer;
21
- protected cspellConfigExplorerSync: import("cosmiconfig").PublicExplorerSync;
20
+ protected cspellConfigExplorer: {
21
+ readonly search: (searchFrom?: string | undefined) => Promise<import("cosmiconfig/dist/types.js").CosmiconfigResult>;
22
+ readonly load: (filepath: string) => Promise<import("cosmiconfig/dist/types.js").CosmiconfigResult>;
23
+ readonly clearLoadCache: () => void;
24
+ readonly clearSearchCache: () => void;
25
+ readonly clearCaches: () => void;
26
+ };
27
+ protected cspellConfigExplorerSync: {
28
+ readonly search: (searchFrom?: string | undefined) => import("cosmiconfig/dist/types.js").CosmiconfigResult;
29
+ readonly load: (filepath: string) => import("cosmiconfig/dist/types.js").CosmiconfigResult;
30
+ readonly clearLoadCache: () => void;
31
+ readonly clearSearchCache: () => void;
32
+ readonly clearCaches: () => void;
33
+ };
22
34
  protected globalSettings: CSpellSettingsI | undefined;
23
35
  /**
24
36
  * Read / import a cspell configuration file.
@@ -70,8 +82,20 @@ export declare class ConfigLoader {
70
82
  declare class ConfigLoaderInternal extends ConfigLoader {
71
83
  constructor(cspellIO: CSpellIO);
72
84
  get _cachedFiles(): Map<string, import("../../../Models/CSpellSettingsInternalDef.js").CSpellSettingsInternal>;
73
- get _cspellConfigExplorer(): import("cosmiconfig").PublicExplorer;
74
- get _cspellConfigExplorerSync(): import("cosmiconfig").PublicExplorerSync;
85
+ get _cspellConfigExplorer(): {
86
+ readonly search: (searchFrom?: string | undefined) => Promise<import("cosmiconfig/dist/types.js").CosmiconfigResult>;
87
+ readonly load: (filepath: string) => Promise<import("cosmiconfig/dist/types.js").CosmiconfigResult>;
88
+ readonly clearLoadCache: () => void;
89
+ readonly clearSearchCache: () => void;
90
+ readonly clearCaches: () => void;
91
+ };
92
+ get _cspellConfigExplorerSync(): {
93
+ readonly search: (searchFrom?: string | undefined) => import("cosmiconfig/dist/types.js").CosmiconfigResult;
94
+ readonly load: (filepath: string) => import("cosmiconfig/dist/types.js").CosmiconfigResult;
95
+ readonly clearLoadCache: () => void;
96
+ readonly clearSearchCache: () => void;
97
+ readonly clearCaches: () => void;
98
+ };
75
99
  readonly _readConfig: (fileRef: ImportFileRef) => import("@cspell/cspell-types").CSpellSettingsWithSourceTrace;
76
100
  readonly _normalizeSettings: (rawSettings: import("@cspell/cspell-types").CSpellSettingsWithSourceTrace, pathToSettingsFile: string, pnpSettings: import("../../../util/types.js").OptionalOrUndefined<import("@cspell/cspell-types").PnPSettings>) => import("../../../Models/CSpellSettingsInternalDef.js").CSpellSettingsInternal;
77
101
  normalizeSearchForConfigResultAsync(searchPath: string, searchResult: Promise<SearchForConfigResult | null>, pnpSettings: PnPSettingsOptional): Promise<NormalizeSearchForConfigResult>;
@@ -2,8 +2,7 @@ import type { CSpellSettings, CSpellSettingsWithSourceTrace } from '@cspell/cspe
2
2
  export interface GlobalSettingsWithSource extends Partial<GlobalCSpellSettings> {
3
3
  source: CSpellSettingsWithSourceTrace['source'];
4
4
  }
5
- export interface GlobalCSpellSettings {
6
- import: CSpellSettings['import'];
5
+ export interface GlobalCSpellSettings extends Required<Pick<CSpellSettings, 'import'>> {
7
6
  }
8
7
  export declare function getRawGlobalSettings(): GlobalSettingsWithSource;
9
8
  export declare function writeRawGlobalSettings(settings: GlobalCSpellSettings): Error | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell-lib",
3
- "version": "6.30.0",
3
+ "version": "6.30.2",
4
4
  "description": "A library of useful functions used across various cspell tools.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cjs/index.js",
@@ -57,19 +57,19 @@
57
57
  },
58
58
  "homepage": "https://github.com/streetsidesoftware/cspell#readme",
59
59
  "dependencies": {
60
- "@cspell/cspell-bundled-dicts": "6.30.0",
61
- "@cspell/cspell-pipe": "6.30.0",
62
- "@cspell/cspell-types": "6.30.0",
63
- "@cspell/strong-weak-map": "6.30.0",
60
+ "@cspell/cspell-bundled-dicts": "6.30.2",
61
+ "@cspell/cspell-pipe": "6.30.2",
62
+ "@cspell/cspell-types": "6.30.2",
63
+ "@cspell/strong-weak-map": "6.30.2",
64
64
  "clear-module": "^4.1.2",
65
65
  "comment-json": "^4.2.3",
66
66
  "configstore": "^5.0.1",
67
- "cosmiconfig": "^8.1.0",
68
- "cspell-dictionary": "6.30.0",
69
- "cspell-glob": "6.30.0",
70
- "cspell-grammar": "6.30.0",
71
- "cspell-io": "6.30.0",
72
- "cspell-trie-lib": "6.30.0",
67
+ "cosmiconfig": "8.0.0",
68
+ "cspell-dictionary": "6.30.2",
69
+ "cspell-glob": "6.30.2",
70
+ "cspell-grammar": "6.30.2",
71
+ "cspell-io": "6.30.2",
72
+ "cspell-trie-lib": "6.30.2",
73
73
  "fast-equals": "^4.0.3",
74
74
  "find-up": "^5.0.0",
75
75
  "gensequence": "^5.0.2",
@@ -92,12 +92,12 @@
92
92
  "@cspell/dict-nl-nl": "^2.2.8",
93
93
  "@cspell/dict-python": "^4.0.2",
94
94
  "@types/configstore": "^5.0.1",
95
- "@types/jest": "^29.4.4",
95
+ "@types/jest": "^29.5.0",
96
96
  "cspell-dict-nl-nl": "^1.1.2",
97
97
  "expect": "^29.5.0",
98
98
  "jest": "^29.5.0",
99
99
  "lorem-ipsum": "^2.0.8",
100
100
  "ts-jest": "^29.0.5"
101
101
  },
102
- "gitHead": "9af8c211fdeeb58e2d7a2be0e72405a23fe954cc"
102
+ "gitHead": "4da6895c680084f3b741ad24a73c5bb011a57b35"
103
103
  }