@shined/doctor 0.0.7 → 0.0.8

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 +10 -0
  2. package/index.js +2 -0
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -17,6 +17,8 @@ export interface GlobJsArgs {
17
17
  absolute?: boolean
18
18
  }
19
19
 
20
+ export declare function initializeLogger(level?: LogLevel | undefined | null): void
21
+
20
22
  export declare function innerDebugLint(oxlintConfig: string, globJsArgs: GlobJsArgs): Promise<Array<Diagnostic>>
21
23
 
22
24
  export declare function innerLint(globJsArgs: GlobJsArgs, category: NaPiCategory): Promise<Array<Diagnostic>>
@@ -31,6 +33,14 @@ export interface Location {
31
33
  end: Position
32
34
  }
33
35
 
36
+ export declare const enum LogLevel {
37
+ Error = 0,
38
+ Warn = 1,
39
+ Info = 2,
40
+ Debug = 3,
41
+ Trace = 4
42
+ }
43
+
34
44
  export declare const enum NaPiCategory {
35
45
  V20250601Inner = 0
36
46
  }
package/index.js CHANGED
@@ -370,6 +370,8 @@ if (!nativeBinding) {
370
370
  throw new Error(`Failed to load native binding`)
371
371
  }
372
372
 
373
+ module.exports.initializeLogger = nativeBinding.initializeLogger
373
374
  module.exports.innerDebugLint = nativeBinding.innerDebugLint
374
375
  module.exports.innerLint = nativeBinding.innerLint
376
+ module.exports.LogLevel = nativeBinding.LogLevel
375
377
  module.exports.NaPiCategory = nativeBinding.NaPiCategory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shined/doctor",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "repository": {
@@ -19,13 +19,13 @@
19
19
  "cac": "^6.7.14"
20
20
  },
21
21
  "optionalDependencies": {
22
- "@shined/doctor-darwin-x64": "0.0.7",
23
- "@shined/doctor-darwin-arm64": "0.0.7",
24
- "@shined/doctor-win32-x64-msvc": "0.0.7",
25
- "@shined/doctor-win32-arm64-msvc": "0.0.7",
26
- "@shined/doctor-linux-x64-gnu": "0.0.7",
27
- "@shined/doctor-linux-x64-musl": "0.0.7",
28
- "@shined/doctor-linux-arm64-gnu": "0.0.7",
29
- "@shined/doctor-linux-arm64-musl": "0.0.7"
22
+ "@shined/doctor-darwin-x64": "0.0.8",
23
+ "@shined/doctor-darwin-arm64": "0.0.8",
24
+ "@shined/doctor-win32-x64-msvc": "0.0.8",
25
+ "@shined/doctor-win32-arm64-msvc": "0.0.8",
26
+ "@shined/doctor-linux-x64-gnu": "0.0.8",
27
+ "@shined/doctor-linux-x64-musl": "0.0.8",
28
+ "@shined/doctor-linux-arm64-gnu": "0.0.8",
29
+ "@shined/doctor-linux-arm64-musl": "0.0.8"
30
30
  }
31
31
  }