@shined/doctor-binding 0.0.24-snapshot.9 → 0.0.25

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 +28 -17
  2. package/index.js +3 -3
  3. package/package.json +10 -10
package/index.d.ts CHANGED
@@ -30,10 +30,6 @@ export interface GlobJsArgs {
30
30
 
31
31
  export declare function initializeLogger(level?: LogLevel | undefined | null): void
32
32
 
33
- export declare function innerDebugLint(oxlintConfig: string, globJsArgs: GlobJsArgs): Promise<Array<Diagnostic>>
34
-
35
- export declare function innerLint(globJsArgs: GlobJsArgs, category: NaPiCategory): Promise<Array<Diagnostic>>
36
-
37
33
  export interface LabeledLoc {
38
34
  span: Span
39
35
  loc: Location
@@ -295,7 +291,7 @@ export declare const enum NaPiCategory {
295
291
  export interface NapiDiagnostics {
296
292
  message: string
297
293
  code?: string
298
- severity?: NapiSeverity
294
+ severity?: Severity
299
295
  help?: string
300
296
  url?: string
301
297
  labels?: Array<NapiLabeledSpan>
@@ -303,7 +299,8 @@ export interface NapiDiagnostics {
303
299
 
304
300
  export interface NapiLabeledSpan {
305
301
  label?: string
306
- span: NapiSourceSpan
302
+ span: SourceSpan
303
+ loc: SourceLocation
307
304
  primary: boolean
308
305
  }
309
306
 
@@ -312,17 +309,6 @@ export interface NapiMessages {
312
309
  diagnostics: Array<NapiDiagnostics>
313
310
  }
314
311
 
315
- export declare const enum NapiSeverity {
316
- Error = 'Error',
317
- Warning = 'Warning',
318
- Advice = 'Advice'
319
- }
320
-
321
- export interface NapiSourceSpan {
322
- offset: number
323
- length: number
324
- }
325
-
326
312
  export interface Opts {
327
313
  ignore: Array<string>
328
314
  }
@@ -337,7 +323,32 @@ export interface Response {
337
323
  map: Record<string, number>
338
324
  }
339
325
 
326
+ export declare const enum Severity {
327
+ Error = 'Error',
328
+ Warning = 'Warning',
329
+ Advice = 'Advice'
330
+ }
331
+
332
+ export interface SourceLocation {
333
+ start: SourcePosition
334
+ end: SourcePosition
335
+ }
336
+
337
+ export interface SourcePosition {
338
+ row: number
339
+ col: number
340
+ }
341
+
342
+ export interface SourceSpan {
343
+ offset: number
344
+ length: number
345
+ }
346
+
340
347
  export interface Span {
341
348
  offset: number
342
349
  length: number
343
350
  }
351
+
352
+ export declare function unSafeInnerDebugLint(oxlintConfig: string, globJsArgs: GlobJsArgs): Promise<Array<Diagnostic>>
353
+
354
+ export declare function unSafeInnerLint(globJsArgs: GlobJsArgs, category: NaPiCategory): Promise<Array<Diagnostic>>
package/index.js CHANGED
@@ -378,9 +378,9 @@ module.exports = nativeBinding
378
378
  module.exports.doctor = nativeBinding.doctor
379
379
  module.exports.getLangStats = nativeBinding.getLangStats
380
380
  module.exports.initializeLogger = nativeBinding.initializeLogger
381
- module.exports.innerDebugLint = nativeBinding.innerDebugLint
382
- module.exports.innerLint = nativeBinding.innerLint
383
381
  module.exports.LangType = nativeBinding.LangType
384
382
  module.exports.LogLevel = nativeBinding.LogLevel
385
383
  module.exports.NaPiCategory = nativeBinding.NaPiCategory
386
- module.exports.NapiSeverity = nativeBinding.NapiSeverity
384
+ module.exports.Severity = nativeBinding.Severity
385
+ module.exports.unSafeInnerDebugLint = nativeBinding.unSafeInnerDebugLint
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.24-snapshot.9",
3
+ "version": "0.0.25",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "publishConfig": {
10
10
  "access": "public",
11
- "tag": "snapshot"
11
+ "tag": "latest"
12
12
  },
13
13
  "files": [
14
14
  "index.js",
@@ -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.24-snapshot.9",
24
- "@shined/doctor-binding-darwin-arm64": "0.0.24-snapshot.9",
25
- "@shined/doctor-binding-win32-x64-msvc": "0.0.24-snapshot.9",
26
- "@shined/doctor-binding-win32-arm64-msvc": "0.0.24-snapshot.9",
27
- "@shined/doctor-binding-linux-x64-gnu": "0.0.24-snapshot.9",
28
- "@shined/doctor-binding-linux-x64-musl": "0.0.24-snapshot.9",
29
- "@shined/doctor-binding-linux-arm64-gnu": "0.0.24-snapshot.9",
30
- "@shined/doctor-binding-linux-arm64-musl": "0.0.24-snapshot.9"
23
+ "@shined/doctor-binding-darwin-x64": "0.0.25",
24
+ "@shined/doctor-binding-darwin-arm64": "0.0.25",
25
+ "@shined/doctor-binding-win32-x64-msvc": "0.0.25",
26
+ "@shined/doctor-binding-win32-arm64-msvc": "0.0.25",
27
+ "@shined/doctor-binding-linux-x64-gnu": "0.0.25",
28
+ "@shined/doctor-binding-linux-x64-musl": "0.0.25",
29
+ "@shined/doctor-binding-linux-arm64-gnu": "0.0.25",
30
+ "@shined/doctor-binding-linux-arm64-musl": "0.0.25"
31
31
  }
32
32
  }