@shined/doctor-binding 0.0.30 → 0.0.31

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.
Files changed (3) hide show
  1. package/index.d.ts +63 -63
  2. package/index.js +3 -3
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -2,13 +2,15 @@
2
2
  /* eslint-disable */
3
3
  export declare class Standards {
4
4
  static create(cwd: string): Standards
5
- set validateNpmrc()
6
- validateNodeVersion(): Promise<Array<NapiMessages>>
7
- validatePackageJson(): Promise<Array<NapiMessages>>
8
- validateLint(): Promise<Array<NapiMessages>>
9
- validateAll(opts?: JsRenderOpts | undefined | null): Promise<Array<NapiMessages>>
5
+ validateNpmrc(): Promise<Array<JsMessages>>
6
+ validateNodeVersion(): Promise<Array<JsMessages>>
7
+ validatePackageJson(): Promise<Array<JsMessages>>
8
+ validateLint(): Promise<Array<JsMessages>>
9
+ validateAll(opts?: JsRenderOpts | undefined | null): Promise<Array<JsMessages>>
10
10
  }
11
11
 
12
+ export declare function cloc(paths: Array<string>, opts?: JsOpts | undefined | null): Array<JsLanguageStats>
13
+
12
14
  export interface Diagnostic {
13
15
  fileName: string
14
16
  help: string
@@ -19,8 +21,6 @@ export interface Diagnostic {
19
21
  labels: Array<LabeledLoc>
20
22
  }
21
23
 
22
- export declare function getLangStats(paths: Array<string>, opts?: Opts | undefined | null): Array<LangStats>
23
-
24
24
  export interface GlobJsArgs {
25
25
  ignore?: Array<string>
26
26
  cwd: string
@@ -31,25 +31,30 @@ export interface GlobJsArgs {
31
31
 
32
32
  export declare function initializeLogger(level?: LogLevel | undefined | null): void
33
33
 
34
- export interface JsRenderOpts {
35
- withDashboard?: boolean
36
- maxRenderCount?: number
37
- quiet?: boolean
34
+ export interface JsDiagnostics {
35
+ message: string
36
+ code?: string
37
+ severity?: JsSeverity
38
+ help?: string
39
+ url?: string
40
+ labels?: Array<JsLabeledSpan>
38
41
  }
39
42
 
40
- export interface LabeledLoc {
41
- span: Span
42
- loc: Location
43
+ export interface JsLabeledSpan {
44
+ label?: string
45
+ span: JsSourceSpan
46
+ loc: JsSourceLocation
47
+ primary: boolean
43
48
  }
44
49
 
45
- export interface LangStats {
46
- lang: LangType
50
+ export interface JsLanguageStats {
51
+ lang: JsLanguageType
47
52
  code: number
48
53
  comments: number
49
54
  blanks: number
50
55
  }
51
56
 
52
- export declare const enum LangType {
57
+ export declare const enum JsLanguageType {
53
58
  ABNF = 'ABNF',
54
59
  Abap = 'Abap',
55
60
  ActionScript = 'ActionScript',
@@ -278,77 +283,72 @@ export declare const enum LangType {
278
283
  Zsh = 'Zsh'
279
284
  }
280
285
 
281
- export interface Location {
282
- start: Position
283
- end: Position
286
+ export interface JsMessages {
287
+ sourcePath: string
288
+ diagnostics: Array<JsDiagnostics>
284
289
  }
285
290
 
286
- export declare const enum LogLevel {
287
- Error = 0,
288
- Warn = 1,
289
- Info = 2,
290
- Debug = 3,
291
- Trace = 4
291
+ export interface JsOpts {
292
+ ignore?: Array<string>
292
293
  }
293
294
 
294
- export declare const enum NaPiCategory {
295
- V20250601Inner = 0
295
+ export interface JsRenderOpts {
296
+ withDashboard?: boolean
297
+ maxRenderCount?: number
298
+ quiet?: boolean
296
299
  }
297
300
 
298
- export interface NapiDiagnostics {
299
- message: string
300
- code?: string
301
- severity?: Severity
302
- help?: string
303
- url?: string
304
- labels?: Array<NapiLabeledSpan>
301
+ export declare const enum JsSeverity {
302
+ Error = 'Error',
303
+ Warning = 'Warning',
304
+ Advice = 'Advice'
305
305
  }
306
306
 
307
- export interface NapiLabeledSpan {
308
- label?: string
309
- span: SourceSpan
310
- loc: SourceLocation
311
- primary: boolean
307
+ export interface JsSourceLocation {
308
+ start: JsSourcePosition
309
+ end: JsSourcePosition
312
310
  }
313
311
 
314
- export interface NapiMessages {
315
- sourcePath: string
316
- diagnostics: Array<NapiDiagnostics>
312
+ export interface JsSourcePosition {
313
+ row: number
314
+ col: number
317
315
  }
318
316
 
319
- export interface Opts {
320
- ignore: Array<string>
317
+ export interface JsSourceSpan {
318
+ offset: number
319
+ length: number
321
320
  }
322
321
 
323
- export interface Position {
324
- line: number
325
- col: number
322
+ export interface LabeledLoc {
323
+ span: Span
324
+ loc: Location
326
325
  }
327
326
 
328
- export interface Response {
329
- rc: string
330
- map: Record<string, number>
327
+ export interface Location {
328
+ start: Position
329
+ end: Position
331
330
  }
332
331
 
333
- export declare const enum Severity {
334
- Error = 'Error',
335
- Warning = 'Warning',
336
- Advice = 'Advice'
332
+ export declare const enum LogLevel {
333
+ Error = 0,
334
+ Warn = 1,
335
+ Info = 2,
336
+ Debug = 3,
337
+ Trace = 4
337
338
  }
338
339
 
339
- export interface SourceLocation {
340
- start: SourcePosition
341
- end: SourcePosition
340
+ export declare const enum NaPiCategory {
341
+ V20250601Inner = 0
342
342
  }
343
343
 
344
- export interface SourcePosition {
345
- row: number
344
+ export interface Position {
345
+ line: number
346
346
  col: number
347
347
  }
348
348
 
349
- export interface SourceSpan {
350
- offset: number
351
- length: number
349
+ export interface Response {
350
+ rc: string
351
+ map: Record<string, number>
352
352
  }
353
353
 
354
354
  export interface Span {
package/index.js CHANGED
@@ -376,11 +376,11 @@ if (!nativeBinding) {
376
376
 
377
377
  module.exports = nativeBinding
378
378
  module.exports.Standards = nativeBinding.Standards
379
- module.exports.getLangStats = nativeBinding.getLangStats
379
+ module.exports.cloc = nativeBinding.cloc
380
380
  module.exports.initializeLogger = nativeBinding.initializeLogger
381
- module.exports.LangType = nativeBinding.LangType
381
+ module.exports.JsLanguageType = nativeBinding.JsLanguageType
382
+ module.exports.JsSeverity = nativeBinding.JsSeverity
382
383
  module.exports.LogLevel = nativeBinding.LogLevel
383
384
  module.exports.NaPiCategory = nativeBinding.NaPiCategory
384
- module.exports.Severity = nativeBinding.Severity
385
385
  module.exports.unSafeInnerDebugLint = nativeBinding.unSafeInnerDebugLint
386
386
  module.exports.unSafeInnerLint = nativeBinding.unSafeInnerLint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shined/doctor-binding",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "repository": {
@@ -20,13 +20,13 @@
20
20
  },
21
21
  "homepage": "https://github.com/sheinsight/doctor-engine#readme",
22
22
  "optionalDependencies": {
23
- "@shined/doctor-binding-darwin-x64": "0.0.30",
24
- "@shined/doctor-binding-darwin-arm64": "0.0.30",
25
- "@shined/doctor-binding-win32-x64-msvc": "0.0.30",
26
- "@shined/doctor-binding-win32-arm64-msvc": "0.0.30",
27
- "@shined/doctor-binding-linux-x64-gnu": "0.0.30",
28
- "@shined/doctor-binding-linux-x64-musl": "0.0.30",
29
- "@shined/doctor-binding-linux-arm64-gnu": "0.0.30",
30
- "@shined/doctor-binding-linux-arm64-musl": "0.0.30"
23
+ "@shined/doctor-binding-darwin-x64": "0.0.31",
24
+ "@shined/doctor-binding-darwin-arm64": "0.0.31",
25
+ "@shined/doctor-binding-win32-x64-msvc": "0.0.31",
26
+ "@shined/doctor-binding-win32-arm64-msvc": "0.0.31",
27
+ "@shined/doctor-binding-linux-x64-gnu": "0.0.31",
28
+ "@shined/doctor-binding-linux-x64-musl": "0.0.31",
29
+ "@shined/doctor-binding-linux-arm64-gnu": "0.0.31",
30
+ "@shined/doctor-binding-linux-arm64-musl": "0.0.31"
31
31
  }
32
32
  }