@vizejs/native 0.276.0 → 0.278.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 +30 -1
- package/index.js +1 -0
- package/package.json +9 -9
- package/types/vite.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -136,6 +136,10 @@ export interface BatchTypeCheckResultNapi {
|
|
|
136
136
|
|
|
137
137
|
export declare function buildDesignTokenMap(categories: string): string;
|
|
138
138
|
|
|
139
|
+
export declare function buildInspectorGraph(
|
|
140
|
+
files: Array<InspectorSourceFileNapi>,
|
|
141
|
+
): InspectorGraphNapi;
|
|
142
|
+
|
|
139
143
|
/** Catalog entry for NAPI */
|
|
140
144
|
export interface CatalogEntryNapi {
|
|
141
145
|
title: string;
|
|
@@ -669,6 +673,31 @@ export interface MacroArtifactNapi {
|
|
|
669
673
|
end: number;
|
|
670
674
|
}
|
|
671
675
|
|
|
676
|
+
export interface InspectorGraphEdgeNapi {
|
|
677
|
+
from: string;
|
|
678
|
+
to: string;
|
|
679
|
+
kind: string;
|
|
680
|
+
specifier: string;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export interface InspectorGraphNapi {
|
|
684
|
+
nodes: Array<InspectorGraphNodeNapi>;
|
|
685
|
+
edges: Array<InspectorGraphEdgeNapi>;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
export interface InspectorGraphNodeNapi {
|
|
689
|
+
path: string;
|
|
690
|
+
kind: string;
|
|
691
|
+
isEntry: boolean;
|
|
692
|
+
sourceBytes: number;
|
|
693
|
+
sourceLines: number;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export interface InspectorSourceFileNapi {
|
|
697
|
+
path: string;
|
|
698
|
+
source: string;
|
|
699
|
+
}
|
|
700
|
+
|
|
672
701
|
export declare function normalizeViteCssModuleFilename(filename: string): string;
|
|
673
702
|
|
|
674
703
|
export declare function normalizeViteDevMiddlewareUrl(
|
|
@@ -1009,7 +1038,7 @@ export interface VitePluginRequestNapi {
|
|
|
1009
1038
|
path: string;
|
|
1010
1039
|
/** Query suffix including the leading `?`, or an empty string. */
|
|
1011
1040
|
querySuffix: string;
|
|
1012
|
-
/** Path normalized for macro virtual modules (`.vue.ts` -> `.vue`). */
|
|
1041
|
+
/** Path normalized for macro virtual modules (`.vue.ts[x]` -> `.vue`). */
|
|
1013
1042
|
normalizedVuePath: string;
|
|
1014
1043
|
/** For `\0...` virtual macro IDs, the real path without the virtual prefix. */
|
|
1015
1044
|
strippedVirtualPath?: string;
|
package/index.js
CHANGED
|
@@ -762,6 +762,7 @@ module.exports = nativeBinding;
|
|
|
762
762
|
module.exports.applyViteDefineReplacements = nativeBinding.applyViteDefineReplacements;
|
|
763
763
|
module.exports.artToCsf = nativeBinding.artToCsf;
|
|
764
764
|
module.exports.buildDesignTokenMap = nativeBinding.buildDesignTokenMap;
|
|
765
|
+
module.exports.buildInspectorGraph = nativeBinding.buildInspectorGraph;
|
|
765
766
|
module.exports.chunkVitePrecompileFiles = nativeBinding.chunkVitePrecompileFiles;
|
|
766
767
|
module.exports.classifyVitePluginRequest = nativeBinding.classifyVitePluginRequest;
|
|
767
768
|
module.exports.collectSfcTemplateAssetUrls = nativeBinding.collectSfcTemplateAssetUrls;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.278.0",
|
|
4
4
|
"description": "High-performance Vue.js compiler - Native bindings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"@napi-rs/cli": "3.6.2"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@vizejs/native-darwin-arm64": "0.
|
|
40
|
-
"@vizejs/native-darwin-x64": "0.
|
|
41
|
-
"@vizejs/native-linux-arm64-gnu": "0.
|
|
42
|
-
"@vizejs/native-linux-arm64-musl": "0.
|
|
43
|
-
"@vizejs/native-linux-x64-gnu": "0.
|
|
44
|
-
"@vizejs/native-linux-x64-musl": "0.
|
|
45
|
-
"@vizejs/native-win32-arm64-msvc": "0.
|
|
46
|
-
"@vizejs/native-win32-x64-msvc": "0.
|
|
39
|
+
"@vizejs/native-darwin-arm64": "0.278.0",
|
|
40
|
+
"@vizejs/native-darwin-x64": "0.278.0",
|
|
41
|
+
"@vizejs/native-linux-arm64-gnu": "0.278.0",
|
|
42
|
+
"@vizejs/native-linux-arm64-musl": "0.278.0",
|
|
43
|
+
"@vizejs/native-linux-x64-gnu": "0.278.0",
|
|
44
|
+
"@vizejs/native-linux-x64-musl": "0.278.0",
|
|
45
|
+
"@vizejs/native-win32-arm64-msvc": "0.278.0",
|
|
46
|
+
"@vizejs/native-win32-x64-msvc": "0.278.0"
|
|
47
47
|
},
|
|
48
48
|
"napi": {
|
|
49
49
|
"binaryName": "vize-vitrine",
|
package/types/vite.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface VitePluginRequestNapi {
|
|
|
38
38
|
path: string;
|
|
39
39
|
/** Query suffix including the leading `?`, or an empty string. */
|
|
40
40
|
querySuffix: string;
|
|
41
|
-
/** Path normalized for macro virtual modules (`.vue.ts` -> `.vue`). */
|
|
41
|
+
/** Path normalized for macro virtual modules (`.vue.ts[x]` -> `.vue`). */
|
|
42
42
|
normalizedVuePath: string;
|
|
43
43
|
/** For `\0...` virtual macro IDs, the real path without the virtual prefix. */
|
|
44
44
|
strippedVirtualPath?: string;
|