@shined/doctor 0.0.1-snapshot.1 → 0.0.1-snapshot.2
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 +44 -1
- package/index.js +1 -0
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -1,7 +1,50 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export
|
|
3
|
+
export interface Diagnostic {
|
|
4
|
+
fileName: string
|
|
5
|
+
help: string
|
|
6
|
+
url: string
|
|
7
|
+
severity: string
|
|
8
|
+
code: string
|
|
9
|
+
message: string
|
|
10
|
+
labels: Array<LabeledLoc>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface GlobJsArgs {
|
|
14
|
+
pattern?: string
|
|
15
|
+
ignore?: Array<string>
|
|
16
|
+
cwd: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare function innerDebugLint(oxlintConfig: string, globJsArgs: GlobJsArgs): Array<Diagnostic>
|
|
20
|
+
|
|
21
|
+
export declare function innerLint(globJsArgs: GlobJsArgs, category: NaPiCategory): Array<Diagnostic>
|
|
22
|
+
|
|
23
|
+
export interface LabeledLoc {
|
|
24
|
+
span: Span
|
|
25
|
+
loc: Location
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface Location {
|
|
29
|
+
start: Position
|
|
30
|
+
end: Position
|
|
31
|
+
}
|
|
4
32
|
|
|
5
33
|
export declare const enum NaPiCategory {
|
|
6
34
|
V20250601Inner = 0
|
|
7
35
|
}
|
|
36
|
+
|
|
37
|
+
export interface Position {
|
|
38
|
+
line: number
|
|
39
|
+
col: number
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface Response {
|
|
43
|
+
rc: string
|
|
44
|
+
map: Record<string, number>
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface Span {
|
|
48
|
+
start: number
|
|
49
|
+
end: number
|
|
50
|
+
}
|
package/index.js
CHANGED
|
@@ -370,5 +370,6 @@ if (!nativeBinding) {
|
|
|
370
370
|
throw new Error(`Failed to load native binding`)
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
+
module.exports.innerDebugLint = nativeBinding.innerDebugLint
|
|
373
374
|
module.exports.innerLint = nativeBinding.innerLint
|
|
374
375
|
module.exports.NaPiCategory = nativeBinding.NaPiCategory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shined/doctor",
|
|
3
|
-
"version": "0.0.1-snapshot.
|
|
3
|
+
"version": "0.0.1-snapshot.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"napi": {
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@napi-rs/cli": "^3.0.0-alpha.75"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@shined/doctor-darwin-x64": "0.0.1-snapshot.
|
|
46
|
-
"@shined/doctor-darwin-arm64": "0.0.1-snapshot.
|
|
47
|
-
"@shined/doctor-win32-x64-msvc": "0.0.1-snapshot.
|
|
48
|
-
"@shined/doctor-win32-arm64-msvc": "0.0.1-snapshot.
|
|
49
|
-
"@shined/doctor-linux-x64-gnu": "0.0.1-snapshot.
|
|
50
|
-
"@shined/doctor-linux-x64-musl": "0.0.1-snapshot.
|
|
51
|
-
"@shined/doctor-linux-arm64-gnu": "0.0.1-snapshot.
|
|
52
|
-
"@shined/doctor-linux-arm64-musl": "0.0.1-snapshot.
|
|
45
|
+
"@shined/doctor-darwin-x64": "0.0.1-snapshot.2",
|
|
46
|
+
"@shined/doctor-darwin-arm64": "0.0.1-snapshot.2",
|
|
47
|
+
"@shined/doctor-win32-x64-msvc": "0.0.1-snapshot.2",
|
|
48
|
+
"@shined/doctor-win32-arm64-msvc": "0.0.1-snapshot.2",
|
|
49
|
+
"@shined/doctor-linux-x64-gnu": "0.0.1-snapshot.2",
|
|
50
|
+
"@shined/doctor-linux-x64-musl": "0.0.1-snapshot.2",
|
|
51
|
+
"@shined/doctor-linux-arm64-gnu": "0.0.1-snapshot.2",
|
|
52
|
+
"@shined/doctor-linux-arm64-musl": "0.0.1-snapshot.2"
|
|
53
53
|
}
|
|
54
54
|
}
|