@shined/doctor 0.0.7 → 0.0.9
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.
- package/index.d.ts +11 -0
- package/index.js +2 -0
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -15,8 +15,11 @@ export interface GlobJsArgs {
|
|
|
15
15
|
cwd: string
|
|
16
16
|
verbose?: boolean
|
|
17
17
|
absolute?: boolean
|
|
18
|
+
globals?: Record<string, string>
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
export declare function initializeLogger(level?: LogLevel | undefined | null): void
|
|
22
|
+
|
|
20
23
|
export declare function innerDebugLint(oxlintConfig: string, globJsArgs: GlobJsArgs): Promise<Array<Diagnostic>>
|
|
21
24
|
|
|
22
25
|
export declare function innerLint(globJsArgs: GlobJsArgs, category: NaPiCategory): Promise<Array<Diagnostic>>
|
|
@@ -31,6 +34,14 @@ export interface Location {
|
|
|
31
34
|
end: Position
|
|
32
35
|
}
|
|
33
36
|
|
|
37
|
+
export declare const enum LogLevel {
|
|
38
|
+
Error = 0,
|
|
39
|
+
Warn = 1,
|
|
40
|
+
Info = 2,
|
|
41
|
+
Debug = 3,
|
|
42
|
+
Trace = 4
|
|
43
|
+
}
|
|
44
|
+
|
|
34
45
|
export declare const enum NaPiCategory {
|
|
35
46
|
V20250601Inner = 0
|
|
36
47
|
}
|
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.
|
|
3
|
+
"version": "0.0.9",
|
|
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.
|
|
23
|
-
"@shined/doctor-darwin-arm64": "0.0.
|
|
24
|
-
"@shined/doctor-win32-x64-msvc": "0.0.
|
|
25
|
-
"@shined/doctor-win32-arm64-msvc": "0.0.
|
|
26
|
-
"@shined/doctor-linux-x64-gnu": "0.0.
|
|
27
|
-
"@shined/doctor-linux-x64-musl": "0.0.
|
|
28
|
-
"@shined/doctor-linux-arm64-gnu": "0.0.
|
|
29
|
-
"@shined/doctor-linux-arm64-musl": "0.0.
|
|
22
|
+
"@shined/doctor-darwin-x64": "0.0.9",
|
|
23
|
+
"@shined/doctor-darwin-arm64": "0.0.9",
|
|
24
|
+
"@shined/doctor-win32-x64-msvc": "0.0.9",
|
|
25
|
+
"@shined/doctor-win32-arm64-msvc": "0.0.9",
|
|
26
|
+
"@shined/doctor-linux-x64-gnu": "0.0.9",
|
|
27
|
+
"@shined/doctor-linux-x64-musl": "0.0.9",
|
|
28
|
+
"@shined/doctor-linux-arm64-gnu": "0.0.9",
|
|
29
|
+
"@shined/doctor-linux-arm64-musl": "0.0.9"
|
|
30
30
|
}
|
|
31
31
|
}
|