@vizejs/native 0.441.0 → 0.443.0
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 +132 -0
- package/index.js +1 -0
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -1527,3 +1527,135 @@ export declare function wrapSfcScopedPreprocessorStyle(
|
|
|
1527
1527
|
scoped?: string | undefined | null,
|
|
1528
1528
|
lang?: string | undefined | null,
|
|
1529
1529
|
): string;
|
|
1530
|
+
|
|
1531
|
+
/** Original-path HTML execution and final native presentation. */
|
|
1532
|
+
export declare function lintOxlintHtml(options: OxlintHtmlOptions): OxlintHtmlOutcome;
|
|
1533
|
+
|
|
1534
|
+
export interface OxlintHtmlPresentation {
|
|
1535
|
+
/** The actual piped child's graphical theme: plain, unicode, or color. */
|
|
1536
|
+
graphicalTheme: string;
|
|
1537
|
+
links: boolean;
|
|
1538
|
+
width: number;
|
|
1539
|
+
stylishNoColor: boolean;
|
|
1540
|
+
/** Preserve the public wrapper's established cwd-relative Stylish heading. */
|
|
1541
|
+
stylishRelative?: boolean;
|
|
1542
|
+
/** Original cwd for relative human-readable names; process cwd is untouched. */
|
|
1543
|
+
cwd: string;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
export interface OxlintHtmlOptions {
|
|
1547
|
+
cwd: string;
|
|
1548
|
+
literalTarget: string;
|
|
1549
|
+
rootJson: string;
|
|
1550
|
+
/** Exact original caller snapshot, including every whitespace byte. */
|
|
1551
|
+
rootBytes: Array<number>;
|
|
1552
|
+
/** Exact supported host version: 1.78.0, 1.81.0, or 1.86.0. */
|
|
1553
|
+
hostProfile: string;
|
|
1554
|
+
noIgnore: boolean;
|
|
1555
|
+
cliIgnorePatterns: Array<string>;
|
|
1556
|
+
customIgnoreFilename: string;
|
|
1557
|
+
/** Explicit default, json, unix, or stylish. */
|
|
1558
|
+
format: string;
|
|
1559
|
+
presentation: OxlintHtmlPresentation;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
export interface OxlintHtmlOriginal {
|
|
1563
|
+
path: string;
|
|
1564
|
+
cwdRelative: string;
|
|
1565
|
+
origin: string;
|
|
1566
|
+
bytes: Array<number>;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
export interface OxlintHtmlSource {
|
|
1570
|
+
path: string;
|
|
1571
|
+
role: string;
|
|
1572
|
+
/** None records absent authority, rather than omitting the authority entry. */
|
|
1573
|
+
bytes?: Array<number>;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
export interface OxlintHtmlRule {
|
|
1577
|
+
name: string;
|
|
1578
|
+
severity?: string;
|
|
1579
|
+
active: boolean;
|
|
1580
|
+
authoredOptions: Array<unknown>;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
export interface OxlintHtmlSettings {
|
|
1584
|
+
locale: string;
|
|
1585
|
+
helpLevel: string;
|
|
1586
|
+
preset: string;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
export interface OxlintHtmlProjection {
|
|
1590
|
+
rules: Array<OxlintHtmlRule>;
|
|
1591
|
+
settings: OxlintHtmlSettings;
|
|
1592
|
+
denyWarnings: boolean;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
export interface OxlintHtmlLabel {
|
|
1596
|
+
message: string;
|
|
1597
|
+
start: number;
|
|
1598
|
+
end: number;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
export interface OxlintHtmlDiagnostic {
|
|
1602
|
+
ruleName: string;
|
|
1603
|
+
severity: string;
|
|
1604
|
+
message: string;
|
|
1605
|
+
start: number;
|
|
1606
|
+
end: number;
|
|
1607
|
+
help?: string;
|
|
1608
|
+
labels: Array<OxlintHtmlLabel>;
|
|
1609
|
+
/** The complete actual fix object, never applied by this operation. */
|
|
1610
|
+
fix?: unknown;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
export interface OxlintHtmlFile {
|
|
1614
|
+
path: string;
|
|
1615
|
+
filename: string;
|
|
1616
|
+
errorCount: number;
|
|
1617
|
+
warningCount: number;
|
|
1618
|
+
diagnostics: Array<OxlintHtmlDiagnostic>;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
export interface OxlintHtmlCompleted {
|
|
1622
|
+
hostProfile: string;
|
|
1623
|
+
cwd: string;
|
|
1624
|
+
literalTarget: string;
|
|
1625
|
+
target: string;
|
|
1626
|
+
/** VCS root, or the filesystem matcher root for the 1.81 no-VCS profile. */
|
|
1627
|
+
repository: string;
|
|
1628
|
+
rootJson: string;
|
|
1629
|
+
noIgnore: boolean;
|
|
1630
|
+
cliIgnorePatterns: Array<string>;
|
|
1631
|
+
customIgnoreFilename: string;
|
|
1632
|
+
rootDecision: string;
|
|
1633
|
+
originals: Array<OxlintHtmlOriginal>;
|
|
1634
|
+
sources: Array<OxlintHtmlSource>;
|
|
1635
|
+
projection: OxlintHtmlProjection;
|
|
1636
|
+
files: Array<OxlintHtmlFile>;
|
|
1637
|
+
executedFileCount: number;
|
|
1638
|
+
elapsedSeconds: number;
|
|
1639
|
+
errors: number;
|
|
1640
|
+
warnings: number;
|
|
1641
|
+
output: string;
|
|
1642
|
+
/** Actual native diagnostic fragments, without fabricated host report metadata. */
|
|
1643
|
+
jsonDiagnostics: string;
|
|
1644
|
+
format: string;
|
|
1645
|
+
presentation: OxlintHtmlPresentation;
|
|
1646
|
+
/** Always not-performed; the CLI must establish genuine host setup authority. */
|
|
1647
|
+
engineConfigValidation: string;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
export interface OxlintHtmlRefusal {
|
|
1651
|
+
kind: string;
|
|
1652
|
+
path: string;
|
|
1653
|
+
details: string;
|
|
1654
|
+
originalBytes?: Array<number>;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
export interface OxlintHtmlOutcome {
|
|
1658
|
+
/** Exactly one of completed/refused is present. */
|
|
1659
|
+
completed?: OxlintHtmlCompleted;
|
|
1660
|
+
refused?: OxlintHtmlRefusal;
|
|
1661
|
+
}
|
package/index.js
CHANGED
|
@@ -56,6 +56,7 @@ module.exports.isBuiltinViteDefine = nativeBinding.isBuiltinViteDefine;
|
|
|
56
56
|
module.exports.isSfcImportableAssetUrl = nativeBinding.isSfcImportableAssetUrl;
|
|
57
57
|
module.exports.isViteBareSpecifier = nativeBinding.isViteBareSpecifier;
|
|
58
58
|
module.exports.lint = nativeBinding.lint;
|
|
59
|
+
module.exports.lintOxlintHtml = nativeBinding.lintOxlintHtml;
|
|
59
60
|
module.exports.lintPatinaSfc = nativeBinding.lintPatinaSfc;
|
|
60
61
|
module.exports.lintWithPlugins = nativeBinding.lintWithPlugins;
|
|
61
62
|
module.exports.normalizeViteCssModuleFilename = nativeBinding.normalizeViteCssModuleFilename;
|
package/package.json
CHANGED
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@vizejs/native-darwin-arm64": "0.
|
|
51
|
-
"@vizejs/native-darwin-x64": "0.
|
|
52
|
-
"@vizejs/native-linux-arm64-gnu": "0.
|
|
53
|
-
"@vizejs/native-linux-arm64-musl": "0.
|
|
54
|
-
"@vizejs/native-linux-x64-gnu": "0.
|
|
55
|
-
"@vizejs/native-linux-x64-musl": "0.
|
|
56
|
-
"@vizejs/native-win32-arm64-msvc": "0.
|
|
57
|
-
"@vizejs/native-win32-x64-msvc": "0.
|
|
50
|
+
"@vizejs/native-darwin-arm64": "0.443.0",
|
|
51
|
+
"@vizejs/native-darwin-x64": "0.443.0",
|
|
52
|
+
"@vizejs/native-linux-arm64-gnu": "0.443.0",
|
|
53
|
+
"@vizejs/native-linux-arm64-musl": "0.443.0",
|
|
54
|
+
"@vizejs/native-linux-x64-gnu": "0.443.0",
|
|
55
|
+
"@vizejs/native-linux-x64-musl": "0.443.0",
|
|
56
|
+
"@vizejs/native-win32-arm64-msvc": "0.443.0",
|
|
57
|
+
"@vizejs/native-win32-x64-msvc": "0.443.0"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"url": "https://github.com/ubugeeei-prod/vize"
|
|
66
66
|
},
|
|
67
67
|
"types": "index.d.ts",
|
|
68
|
-
"version": "0.
|
|
68
|
+
"version": "0.443.0",
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "node ./scripts/build-local.mjs --release",
|
|
71
71
|
"build:ci": "napi build --platform --profile ci --manifest-path ../../crates/vize_vitrine/Cargo.toml -p vize_vitrine --features napi,legacy --output-dir . && node ./scripts/sync-entrypoint.mjs",
|