@cspell/cspell-json-reporter
Advanced tools
Comparing version 8.11.0 to 8.12.1
import type { CSpellReporter, ReporterConfiguration } from '@cspell/cspell-types'; | ||
import type { CSpellJSONReporterSettings } from './CSpellJSONReporterSettings.js'; | ||
export declare function getReporter(settings: unknown | CSpellJSONReporterSettings, cliOptions?: ReporterConfiguration): Required<CSpellReporter>; | ||
type ReporterConsole = Pick<Console, 'log' | 'warn' | 'error'>; | ||
export interface CSpellJSONReporterConfiguration extends ReporterConfiguration { | ||
console?: ReporterConsole; | ||
} | ||
export declare function getReporter(settings: unknown | CSpellJSONReporterSettings, cliOptions?: CSpellJSONReporterConfiguration): Required<CSpellReporter>; | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -12,5 +12,7 @@ import { promises as fs } from 'node:fs'; | ||
const STDERR = 'stderr'; | ||
const _console = console; | ||
export function getReporter(settings, cliOptions) { | ||
const useSettings = normalizeSettings(settings); | ||
const reportData = { issues: [], info: [], debug: [], error: [], progress: [] }; | ||
const console = cliOptions?.console ?? _console; | ||
return { | ||
@@ -17,0 +19,0 @@ issue: (issue) => { |
{ | ||
"name": "@cspell/cspell-json-reporter", | ||
"version": "8.11.0", | ||
"version": "8.12.1", | ||
"description": "JSON reporter for CSpell", | ||
@@ -49,3 +49,3 @@ "author": "Jason Dent", | ||
"dependencies": { | ||
"@cspell/cspell-types": "8.11.0" | ||
"@cspell/cspell-types": "8.12.1" | ||
}, | ||
@@ -55,3 +55,3 @@ "engines": { | ||
}, | ||
"gitHead": "2b85b2b458b1117870a4f0aee18fb45ce991848d" | ||
"gitHead": "2b9d2fd6fb3a228886016f897c40e8b926e063ab" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12551
204
+ Added@cspell/cspell-types@8.12.1(transitive)
- Removed@cspell/cspell-types@8.11.0(transitive)
Updated@cspell/cspell-types@8.12.1