@shined/doctor 0.0.1-snapshot.0 → 0.0.1-snapshot.10

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 +44 -1
  2. package/index.js +1 -0
  3. package/package.json +13 -12
package/index.d.ts CHANGED
@@ -1,7 +1,50 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
- export declare function innerLint(cwd: string, category: NaPiCategory): void
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): Promise<Array<Diagnostic>>
20
+
21
+ export declare function innerLint(globJsArgs: GlobJsArgs, category: NaPiCategory): Promise<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.0",
3
+ "version": "0.0.1-snapshot.10",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "napi": {
@@ -23,11 +23,12 @@
23
23
  "build:js": "napi build --platform --js index.js --dts index.d.ts",
24
24
  "build": "napi build --platform --release",
25
25
  "build:debug": "napi build --platform",
26
- "prepublishOnly": "napi prepublish -t npm",
27
- "universal": "napi universal"
26
+ "prepublishOnly": "napi prepublish -t npm --gh-release-id $RELEASE_ID",
27
+ "universal": "napi universal",
28
+ "demo": "napi prepublish -h"
28
29
  },
29
30
  "repository": {
30
- "url": "https://github.com/sheinsight/doctor-engine"
31
+ "url": "git+https://github.com/sheinsight/doctor-engine.git"
31
32
  },
32
33
  "publishConfig": {
33
34
  "access": "public",
@@ -42,13 +43,13 @@
42
43
  "@napi-rs/cli": "^3.0.0-alpha.75"
43
44
  },
44
45
  "optionalDependencies": {
45
- "@shined/doctor-darwin-x64": "0.0.1-snapshot.0",
46
- "@shined/doctor-darwin-arm64": "0.0.1-snapshot.0",
47
- "@shined/doctor-win32-x64-msvc": "0.0.1-snapshot.0",
48
- "@shined/doctor-win32-arm64-msvc": "0.0.1-snapshot.0",
49
- "@shined/doctor-linux-x64-gnu": "0.0.1-snapshot.0",
50
- "@shined/doctor-linux-x64-musl": "0.0.1-snapshot.0",
51
- "@shined/doctor-linux-arm64-gnu": "0.0.1-snapshot.0",
52
- "@shined/doctor-linux-arm64-musl": "0.0.1-snapshot.0"
46
+ "@shined/doctor-darwin-x64": "0.0.1-snapshot.10",
47
+ "@shined/doctor-darwin-arm64": "0.0.1-snapshot.10",
48
+ "@shined/doctor-win32-x64-msvc": "0.0.1-snapshot.10",
49
+ "@shined/doctor-win32-arm64-msvc": "0.0.1-snapshot.10",
50
+ "@shined/doctor-linux-x64-gnu": "0.0.1-snapshot.10",
51
+ "@shined/doctor-linux-x64-musl": "0.0.1-snapshot.10",
52
+ "@shined/doctor-linux-arm64-gnu": "0.0.1-snapshot.10",
53
+ "@shined/doctor-linux-arm64-musl": "0.0.1-snapshot.10"
53
54
  }
54
55
  }