@corsa-bind/napi 1.14.0 → 1.14.1
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/README.md +1 -1
- package/dist/index.d.mts +71 -16
- package/dist/index.mjs +51 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +83 -1
- package/index.d.ts +64 -20
- package/index.js +59 -55
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -59,5 +59,5 @@ vp test run --config ./vite.config.ts src/bindings/nodejs/corsa_node/ts/**/*.tes
|
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
Repository-level executable examples live under [`examples/`](../../examples/README.md),
|
|
62
|
-
including mock-client, virtual-document,
|
|
62
|
+
including mock-client, virtual-document, and
|
|
63
63
|
real-Corsa snapshot samples.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiClientOptions, ApiMode, CapabilitiesResponse, CheckerBatchRequest, CheckerBatchResponse, ConfigResponse, DiagnosticsCapabilities, DocumentIdentifier, EditorCapabilities, FileChangeSummary, FileChanges, FileDiagnosticsResponse, InitializeResponse, LspCapabilities, NativeLintDiagnostic, NativeLintFix, NativeLintNode, NativeLintRange, NativeLintRuleMeta, NativeLintSuggestion, NativeNodeMetadataDepth, NativeRuleBridgeRequirements, OverlayCapabilities, OverlayChanges, OverlayUpdate, ProjectDiagnosticsResponse, ProjectResponse, RuntimeCapabilities, SnapshotDiagnosticsResponse, SymbolResponse, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, VirtualChange, VirtualDocumentState } from "./types.mjs";
|
|
1
|
+
import { ApiClientOptions, ApiMode, CapabilitiesResponse, CheckerBatchRequest, CheckerBatchResponse, ConfigResponse, ContentMapperDefinition, ContentMapping, DiagnosticDirectivePolicy, DiagnosticsCapabilities, DocumentIdentifier, EditorCapabilities, EncodedSourceFile, FileChangeSummary, FileChanges, FileDiagnosticsResponse, InitializeResponse, LspCapabilities, MappedDiagnosticDirective, MappedPosition, MappedRange, NativeLintDiagnostic, NativeLintFix, NativeLintNode, NativeLintRange, NativeLintRuleMeta, NativeLintSuggestion, NativeNodeMetadataDepth, NativeRuleBridgeRequirements, OverlayCapabilities, OverlayChanges, OverlayUpdate, ProjectDiagnosticsResponse, ProjectResponse, RuntimeCapabilities, SnapshotDiagnosticsResponse, SpanMapFidelity, SpanMapKind, SpanMapSegment, SymbolResponse, TextRange, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, VirtualChange, VirtualDocumentState } from "./types.mjs";
|
|
2
2
|
import { AsyncCheckerBatchCapableClient, CheckerBatchCapableClient, batchCheckerRequests, batchCheckerRequestsAsync } from "./checker_batch.mjs";
|
|
3
3
|
import { CheckerBatchQuery, CheckerBatchResult, CheckerBatchScope, ResolvedCheckerBatchItem } from "./orchestrator_types.mjs";
|
|
4
4
|
//#region index.d.ts
|
|
@@ -16,6 +16,8 @@ interface CorsaApiClient {
|
|
|
16
16
|
updateSnapshotAsync(params?: UpdateSnapshotParams): Promise<UpdateSnapshotResponse>;
|
|
17
17
|
getSourceFile(snapshot: string, project: string, file: string): Uint8Array | null;
|
|
18
18
|
getSourceFileAsync(snapshot: string, project: string, file: string): Promise<Uint8Array | null>;
|
|
19
|
+
getEncodedSourceFile(snapshot: string, project: string, file: string): EncodedSourceFile | null;
|
|
20
|
+
getEncodedSourceFileAsync(snapshot: string, project: string, file: string): Promise<EncodedSourceFile | null>;
|
|
19
21
|
getStringType(snapshot: string, project: string): TypeResponse;
|
|
20
22
|
getStringTypeAsync(snapshot: string, project: string): Promise<TypeResponse>;
|
|
21
23
|
getTypeAtPosition(snapshot: string, project: string, file: string, position: number): TypeResponse | null;
|
|
@@ -61,19 +63,6 @@ interface CorsaApiClient {
|
|
|
61
63
|
close(): void;
|
|
62
64
|
closeAsync(): Promise<void>;
|
|
63
65
|
}
|
|
64
|
-
type CorsaDistributedOrchestratorConstructor = {
|
|
65
|
-
new (nodeIds: string[]): CorsaDistributedOrchestrator;
|
|
66
|
-
};
|
|
67
|
-
interface CorsaDistributedOrchestrator {
|
|
68
|
-
campaign(nodeId: string): number;
|
|
69
|
-
leaderId(): string | null;
|
|
70
|
-
state<T>(): T | null;
|
|
71
|
-
nodeState<T>(nodeId: string): T | null;
|
|
72
|
-
document(nodeId: string, uri: string): VirtualDocumentState | null;
|
|
73
|
-
openVirtualDocument(document: VirtualDocumentState): VirtualDocumentState;
|
|
74
|
-
changeVirtualDocument(uri: string, changes: VirtualChange[]): VirtualDocumentState;
|
|
75
|
-
closeVirtualDocument(uri: string): void;
|
|
76
|
-
}
|
|
77
66
|
type CorsaVirtualDocumentConstructor = {
|
|
78
67
|
untitled(path: string, languageId: string, text: string): CorsaVirtualDocument;
|
|
79
68
|
inMemory(authority: string, path: string, languageId: string, text: string): CorsaVirtualDocument;
|
|
@@ -88,8 +77,74 @@ interface CorsaVirtualDocument {
|
|
|
88
77
|
applyChanges(changes: VirtualChange[]): unknown[];
|
|
89
78
|
}
|
|
90
79
|
declare const CorsaApiClient: CorsaApiClientConstructor;
|
|
91
|
-
declare const CorsaDistributedOrchestrator: CorsaDistributedOrchestratorConstructor;
|
|
92
80
|
declare const CorsaVirtualDocument: CorsaVirtualDocumentConstructor;
|
|
81
|
+
/**
|
|
82
|
+
* Bidirectional mapping between a mapper's virtual text and the original file.
|
|
83
|
+
*
|
|
84
|
+
* Every query takes an optional `feature` bitmask (see {@link SpanMap}); when it
|
|
85
|
+
* is omitted, all features are considered.
|
|
86
|
+
*/
|
|
87
|
+
interface CorsaSpanMap {
|
|
88
|
+
readonly segments: SpanMapSegment[];
|
|
89
|
+
readonly segmentCount: number;
|
|
90
|
+
virtualToOriginalPosition(position: number, feature?: number): MappedPosition;
|
|
91
|
+
virtualToOriginalSpan(pos: number, end: number, feature?: number): MappedRange;
|
|
92
|
+
originalToVirtualPositions(position: number, feature?: number): MappedPosition[];
|
|
93
|
+
originalToVirtualSpans(pos: number, end: number, feature?: number): MappedRange[];
|
|
94
|
+
}
|
|
95
|
+
type CorsaSpanMapConstructor = {
|
|
96
|
+
fromSegments(segments: readonly SpanMapSegment[]): CorsaSpanMap;
|
|
97
|
+
};
|
|
98
|
+
declare const CorsaSpanMap: CorsaSpanMapConstructor;
|
|
99
|
+
/** Decodes the source-file fields of a `getSourceFile` payload. */
|
|
100
|
+
declare const decodeSourceFile: (payload: Uint8Array) => EncodedSourceFile;
|
|
101
|
+
/** Reports whether a `getSourceFile` payload came out of a content mapper. */
|
|
102
|
+
declare const isContentMappedSourceFile: (payload: Uint8Array) => boolean;
|
|
103
|
+
/** Builds the span map of a payload, or `null` when the file is not mapped. */
|
|
104
|
+
declare const spanMapForSourceFile: (payload: Uint8Array) => CorsaSpanMap | null;
|
|
105
|
+
/** Reads the content mappers a parsed `tsconfig` declares. */
|
|
106
|
+
declare const contentMappersFromConfig: (config: unknown) => ContentMapperDefinition[];
|
|
107
|
+
/**
|
|
108
|
+
* Numeric enums mirrored from upstream `spanMapKind`, `spanMapFidelity`, and
|
|
109
|
+
* `spanMapFeature`.
|
|
110
|
+
*/
|
|
111
|
+
declare const SpanMap: Readonly<{
|
|
112
|
+
readonly Kind: Readonly<{
|
|
113
|
+
Verbatim: 0;
|
|
114
|
+
Atom: 1;
|
|
115
|
+
Alias: 2;
|
|
116
|
+
}>;
|
|
117
|
+
readonly Fidelity: Readonly<{
|
|
118
|
+
Exact: 0;
|
|
119
|
+
Atom: 1;
|
|
120
|
+
Approximate: 2;
|
|
121
|
+
None: 3;
|
|
122
|
+
}>;
|
|
123
|
+
readonly Feature: Readonly<{
|
|
124
|
+
Hover: number;
|
|
125
|
+
SignatureHelp: number;
|
|
126
|
+
Completion: number;
|
|
127
|
+
Definition: number;
|
|
128
|
+
TypeDefinition: number;
|
|
129
|
+
Implementation: number;
|
|
130
|
+
References: number;
|
|
131
|
+
DocumentHighlights: number;
|
|
132
|
+
Rename: number;
|
|
133
|
+
CallHierarchy: number;
|
|
134
|
+
CodeActions: number;
|
|
135
|
+
Formatting: number;
|
|
136
|
+
InlayHints: number;
|
|
137
|
+
SemanticTokens: number;
|
|
138
|
+
FoldingRanges: number;
|
|
139
|
+
SelectionRanges: number;
|
|
140
|
+
LinkedEditing: number;
|
|
141
|
+
AutoInsert: number;
|
|
142
|
+
DocumentSymbols: number;
|
|
143
|
+
CodeLens: number;
|
|
144
|
+
None: 0;
|
|
145
|
+
All: number;
|
|
146
|
+
}>;
|
|
147
|
+
}>;
|
|
93
148
|
declare const version: () => string;
|
|
94
149
|
declare const spawnCorsaApiClientAsync: (options: ApiClientOptions) => Promise<CorsaApiClient>;
|
|
95
150
|
declare const isUnsafeAssignment: (input: UnsafeTypeFlowInput) => boolean;
|
|
@@ -133,5 +188,5 @@ declare const Utils: Readonly<{
|
|
|
133
188
|
isErrorLikeTypeTexts: (typeTexts: readonly string[], propertyNames?: readonly string[]) => boolean;
|
|
134
189
|
}>;
|
|
135
190
|
//#endregion
|
|
136
|
-
export { type ApiClientOptions, type ApiMode, type AsyncCheckerBatchCapableClient, type CapabilitiesResponse, type CheckerBatchCapableClient, type CheckerBatchQuery, type CheckerBatchRequest, type CheckerBatchResponse, type CheckerBatchResult, type CheckerBatchScope, type ConfigResponse, CorsaApiClient,
|
|
191
|
+
export { type ApiClientOptions, type ApiMode, type AsyncCheckerBatchCapableClient, type CapabilitiesResponse, type CheckerBatchCapableClient, type CheckerBatchQuery, type CheckerBatchRequest, type CheckerBatchResponse, type CheckerBatchResult, type CheckerBatchScope, type ConfigResponse, type ContentMapperDefinition, type ContentMapping, CorsaApiClient, CorsaSpanMap, CorsaVirtualDocument, type DiagnosticDirectivePolicy, type DiagnosticsCapabilities, type DocumentIdentifier, type EditorCapabilities, type EncodedSourceFile, type FileChangeSummary, type FileChanges, type FileDiagnosticsResponse, type InitializeResponse, type LspCapabilities, type MappedDiagnosticDirective, type MappedPosition, type MappedRange, type NativeLintDiagnostic, type NativeLintFix, type NativeLintNode, type NativeLintRange, type NativeLintRuleMeta, type NativeLintSuggestion, type NativeNodeMetadataDepth, type NativeRuleBridgeRequirements, type OverlayCapabilities, type OverlayChanges, type OverlayUpdate, type ProjectDiagnosticsResponse, type ProjectResponse, type ResolvedCheckerBatchItem, type RuntimeCapabilities, type SnapshotDiagnosticsResponse, SpanMap, type SpanMapFidelity, type SpanMapKind, type SpanMapSegment, type SymbolResponse, type TextRange, type TypeResponse, type TypeTextKind, type UnsafeTypeFlowInput, type UpdateSnapshotParams, type UpdateSnapshotResponse, Utils, type VirtualChange, type VirtualDocumentState, batchCheckerRequests, batchCheckerRequestsAsync, classifyTypeText, contentMappersFromConfig, decodeSourceFile, binding as default, isAnyLikeTypeTexts, isArrayLikeTypeTexts, isBigIntLikeTypeTexts, isContentMappedSourceFile, isErrorLikeTypeTexts, isNumberLikeTypeTexts, isPromiseLikeTypeTexts, isStringArrayLikeTypeTexts, isStringLikeTypeTexts, isUnknownLikeTypeTexts, isUnsafeAssignment, isUnsafeReturn, nativeLintRuleMetas, resolveCheckerBatch, resolveCheckerBatchAsync, runNativeLintRule, spanMapForSourceFile, spawnCorsaApiClientAsync, splitTopLevelTypeText, splitTypeText, version };
|
|
137
192
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -4,8 +4,57 @@ import * as nativeModule from "../index.js";
|
|
|
4
4
|
//#region index.ts
|
|
5
5
|
const binding = "default" in nativeModule ? nativeModule.default : nativeModule;
|
|
6
6
|
const CorsaApiClient = binding.CorsaApiClient;
|
|
7
|
-
const CorsaDistributedOrchestrator = binding.CorsaDistributedOrchestrator;
|
|
8
7
|
const CorsaVirtualDocument = binding.CorsaVirtualDocument;
|
|
8
|
+
const CorsaSpanMap = binding.CorsaSpanMap;
|
|
9
|
+
/** Decodes the source-file fields of a `getSourceFile` payload. */
|
|
10
|
+
const decodeSourceFile = binding.decodeSourceFile;
|
|
11
|
+
/** Reports whether a `getSourceFile` payload came out of a content mapper. */
|
|
12
|
+
const isContentMappedSourceFile = binding.isContentMappedSourceFile;
|
|
13
|
+
/** Builds the span map of a payload, or `null` when the file is not mapped. */
|
|
14
|
+
const spanMapForSourceFile = binding.spanMapForSourceFile;
|
|
15
|
+
/** Reads the content mappers a parsed `tsconfig` declares. */
|
|
16
|
+
const contentMappersFromConfig = binding.contentMappersFromConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Numeric enums mirrored from upstream `spanMapKind`, `spanMapFidelity`, and
|
|
19
|
+
* `spanMapFeature`.
|
|
20
|
+
*/
|
|
21
|
+
const SpanMap = Object.freeze({
|
|
22
|
+
Kind: Object.freeze({
|
|
23
|
+
Verbatim: 0,
|
|
24
|
+
Atom: 1,
|
|
25
|
+
Alias: 2
|
|
26
|
+
}),
|
|
27
|
+
Fidelity: Object.freeze({
|
|
28
|
+
Exact: 0,
|
|
29
|
+
Atom: 1,
|
|
30
|
+
Approximate: 2,
|
|
31
|
+
None: 3
|
|
32
|
+
}),
|
|
33
|
+
Feature: Object.freeze({
|
|
34
|
+
Hover: 1,
|
|
35
|
+
SignatureHelp: 2,
|
|
36
|
+
Completion: 4,
|
|
37
|
+
Definition: 8,
|
|
38
|
+
TypeDefinition: 16,
|
|
39
|
+
Implementation: 32,
|
|
40
|
+
References: 64,
|
|
41
|
+
DocumentHighlights: 128,
|
|
42
|
+
Rename: 256,
|
|
43
|
+
CallHierarchy: 512,
|
|
44
|
+
CodeActions: 1024,
|
|
45
|
+
Formatting: 2048,
|
|
46
|
+
InlayHints: 4096,
|
|
47
|
+
SemanticTokens: 8192,
|
|
48
|
+
FoldingRanges: 16384,
|
|
49
|
+
SelectionRanges: 32768,
|
|
50
|
+
LinkedEditing: 65536,
|
|
51
|
+
AutoInsert: 1 << 17,
|
|
52
|
+
DocumentSymbols: 1 << 18,
|
|
53
|
+
CodeLens: 1 << 19,
|
|
54
|
+
None: 0,
|
|
55
|
+
All: (1 << 20) - 1
|
|
56
|
+
})
|
|
57
|
+
});
|
|
9
58
|
const version = binding.version;
|
|
10
59
|
const spawnCorsaApiClientAsync = binding.spawnCorsaApiClientAsync;
|
|
11
60
|
const isUnsafeAssignment = binding.isUnsafeAssignment;
|
|
@@ -61,6 +110,6 @@ function warnRootCheckerBatchResolver() {
|
|
|
61
110
|
console.warn("@corsa-bind/napi: resolveCheckerBatch is a compatibility shim; import from @corsa-bind/napi/orchestrator for new code.");
|
|
62
111
|
}
|
|
63
112
|
//#endregion
|
|
64
|
-
export { CorsaApiClient,
|
|
113
|
+
export { CorsaApiClient, CorsaSpanMap, CorsaVirtualDocument, SpanMap, Utils, batchCheckerRequests, batchCheckerRequestsAsync, classifyTypeText, contentMappersFromConfig, decodeSourceFile, binding as default, isAnyLikeTypeTexts, isArrayLikeTypeTexts, isBigIntLikeTypeTexts, isContentMappedSourceFile, isErrorLikeTypeTexts, isNumberLikeTypeTexts, isPromiseLikeTypeTexts, isStringArrayLikeTypeTexts, isStringLikeTypeTexts, isUnknownLikeTypeTexts, isUnsafeAssignment, isUnsafeReturn, nativeLintRuleMetas, resolveCheckerBatch, resolveCheckerBatchAsync, runNativeLintRule, spanMapForSourceFile, spawnCorsaApiClientAsync, splitTopLevelTypeText, splitTypeText, version };
|
|
65
114
|
|
|
66
115
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["resolveCheckerBatchFromOrchestrator","resolveCheckerBatchAsyncFromOrchestrator"],"sources":["../ts/index.ts"],"sourcesContent":["import * as nativeModule from \"../index.js\";\n\nimport {\n resolveCheckerBatch as resolveCheckerBatchFromOrchestrator,\n resolveCheckerBatchAsync as resolveCheckerBatchAsyncFromOrchestrator,\n} from \"./orchestrator\";\nimport type { AsyncCheckerBatchCapableClient, CheckerBatchCapableClient } from \"./checker_batch\";\nimport type {\n CheckerBatchQuery,\n CheckerBatchScope,\n ResolvedCheckerBatchItem,\n} from \"./orchestrator_types\";\nimport type {\n ApiClientOptions,\n ConfigResponse,\n InitializeResponse,\n NativeLintDiagnostic,\n NativeLintNode,\n NativeLintRuleMeta,\n SymbolResponse,\n TypeResponse,\n TypeTextKind,\n UnsafeTypeFlowInput,\n UpdateSnapshotParams,\n UpdateSnapshotResponse,\n VirtualChange,\n VirtualDocumentState,\n} from \"./types\";\n\nconst binding = (\n \"default\" in nativeModule ? nativeModule.default : nativeModule\n) as typeof import(\"../index.js\");\n\ntype CorsaApiClientConstructor = {\n spawn(options: ApiClientOptions): CorsaApiClient;\n spawnAsync(options: ApiClientOptions): Promise<CorsaApiClient>;\n};\n\nexport interface CorsaApiClient {\n initialize(): InitializeResponse;\n initializeAsync(): Promise<InitializeResponse>;\n parseConfigFile(file: string): ConfigResponse;\n parseConfigFileAsync(file: string): Promise<ConfigResponse>;\n updateSnapshot(params?: UpdateSnapshotParams): UpdateSnapshotResponse;\n updateSnapshotAsync(params?: UpdateSnapshotParams): Promise<UpdateSnapshotResponse>;\n getSourceFile(snapshot: string, project: string, file: string): Uint8Array | null;\n getSourceFileAsync(snapshot: string, project: string, file: string): Promise<Uint8Array | null>;\n getStringType(snapshot: string, project: string): TypeResponse;\n getStringTypeAsync(snapshot: string, project: string): Promise<TypeResponse>;\n getTypeAtPosition(\n snapshot: string,\n project: string,\n file: string,\n position: number,\n ): TypeResponse | null;\n getTypeAtPositionAsync(\n snapshot: string,\n project: string,\n file: string,\n position: number,\n ): Promise<TypeResponse | null>;\n getTypesAtPositions(\n snapshot: string,\n project: string,\n file: string,\n positions: number[],\n ): Array<TypeResponse | null>;\n getTypesAtPositionsAsync(\n snapshot: string,\n project: string,\n file: string,\n positions: number[],\n ): Promise<Array<TypeResponse | null>>;\n getTypeAtSourceRange(\n snapshot: string,\n project: string,\n file: string,\n start: number,\n end: number,\n sourceText: string,\n kind?: string,\n ): TypeResponse | null;\n getTypeAtSourceRangeAsync(\n snapshot: string,\n project: string,\n file: string,\n start: number,\n end: number,\n sourceText: string,\n kind?: string,\n ): Promise<TypeResponse | null>;\n getSymbolAtPosition(\n snapshot: string,\n project: string,\n file: string,\n position: number,\n ): SymbolResponse | null;\n getSymbolAtPositionAsync(\n snapshot: string,\n project: string,\n file: string,\n position: number,\n ): Promise<SymbolResponse | null>;\n getSymbolsAtPositions(\n snapshot: string,\n project: string,\n file: string,\n positions: number[],\n ): Array<SymbolResponse | null>;\n getSymbolsAtPositionsAsync(\n snapshot: string,\n project: string,\n file: string,\n positions: number[],\n ): Promise<Array<SymbolResponse | null>>;\n getAliasedSymbol(snapshot: string, project: string, symbol: string): SymbolResponse | null;\n getAliasedSymbolAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<SymbolResponse | null>;\n getImmediateAliasedSymbol(\n snapshot: string,\n project: string,\n symbol: string,\n ): SymbolResponse | null;\n getImmediateAliasedSymbolAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<SymbolResponse | null>;\n getExportsOfModule(snapshot: string, project: string, symbol: string): SymbolResponse[];\n getExportsOfModuleAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<SymbolResponse[]>;\n getSymbolOfType(snapshot: string, typeHandle: string, project?: string): SymbolResponse | null;\n getSymbolOfTypeAsync(\n snapshot: string,\n typeHandle: string,\n project?: string,\n ): Promise<SymbolResponse | null>;\n getTypeArguments(\n snapshot: string,\n project: string,\n typeHandle: string,\n objectFlags?: number,\n ): TypeResponse[];\n getTypeArgumentsAtSourceRange(\n snapshot: string,\n project: string,\n typeHandle: string,\n objectFlags: number | undefined | null,\n file: string,\n start: number,\n end: number,\n sourceText: string,\n ): TypeResponse[];\n getTypeArgumentsAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n objectFlags?: number,\n ): Promise<TypeResponse[]>;\n getTypeArgumentsAtSourceRangeAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n objectFlags: number | undefined | null,\n file: string,\n start: number,\n end: number,\n sourceText: string,\n ): Promise<TypeResponse[]>;\n getPropertyOfType(\n snapshot: string,\n project: string,\n typeHandle: string,\n name: string,\n ): SymbolResponse | null;\n getPropertyOfTypeAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n name: string,\n ): Promise<SymbolResponse | null>;\n isTypeAssignableTo(snapshot: string, project: string, source: string, target: string): boolean;\n isTypeAssignableToAsync(\n snapshot: string,\n project: string,\n source: string,\n target: string,\n ): Promise<boolean>;\n getConstraintOfType(snapshot: string, project: string, typeHandle: string): TypeResponse | null;\n getConstraintOfTypeAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n ): Promise<TypeResponse | null>;\n getTypeOfSymbol(snapshot: string, project: string, symbol: string): TypeResponse | null;\n getTypeOfSymbolAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<TypeResponse | null>;\n getDeclaredTypeOfSymbol(snapshot: string, project: string, symbol: string): TypeResponse | null;\n getDeclaredTypeOfSymbolAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<TypeResponse | null>;\n typeToString(\n snapshot: string,\n project: string,\n typeHandle: string,\n location?: string,\n flags?: number,\n ): string;\n typeToStringAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n location?: string,\n flags?: number,\n ): Promise<string>;\n callJson<T>(method: string, params?: unknown): T;\n callJsonAsync<T>(method: string, params?: unknown): Promise<T>;\n callBinary(method: string, params?: unknown): Uint8Array | null;\n callBinaryAsync(method: string, params?: unknown): Promise<Uint8Array | null>;\n releaseHandle(handle: string): void;\n releaseHandleAsync(handle: string): Promise<void>;\n close(): void;\n closeAsync(): Promise<void>;\n}\n\ntype CorsaDistributedOrchestratorConstructor = {\n new (nodeIds: string[]): CorsaDistributedOrchestrator;\n};\n\nexport interface CorsaDistributedOrchestrator {\n campaign(nodeId: string): number;\n leaderId(): string | null;\n state<T>(): T | null;\n nodeState<T>(nodeId: string): T | null;\n document(nodeId: string, uri: string): VirtualDocumentState | null;\n openVirtualDocument(document: VirtualDocumentState): VirtualDocumentState;\n changeVirtualDocument(uri: string, changes: VirtualChange[]): VirtualDocumentState;\n closeVirtualDocument(uri: string): void;\n}\n\ntype CorsaVirtualDocumentConstructor = {\n untitled(path: string, languageId: string, text: string): CorsaVirtualDocument;\n inMemory(authority: string, path: string, languageId: string, text: string): CorsaVirtualDocument;\n};\n\nexport interface CorsaVirtualDocument {\n readonly uri: string;\n readonly languageId: string;\n readonly version: number;\n readonly text: string;\n state(): VirtualDocumentState;\n replace(text: string): void;\n applyChanges(changes: VirtualChange[]): unknown[];\n}\n\nexport const CorsaApiClient = binding.CorsaApiClient as unknown as CorsaApiClientConstructor;\nexport const CorsaDistributedOrchestrator =\n binding.CorsaDistributedOrchestrator as unknown as CorsaDistributedOrchestratorConstructor;\nexport const CorsaVirtualDocument =\n binding.CorsaVirtualDocument as unknown as CorsaVirtualDocumentConstructor;\n\nexport const version = binding.version as () => string;\nexport const spawnCorsaApiClientAsync = binding.spawnCorsaApiClientAsync as (\n options: ApiClientOptions,\n) => Promise<CorsaApiClient>;\nexport const isUnsafeAssignment = binding.isUnsafeAssignment as (\n input: UnsafeTypeFlowInput,\n) => boolean;\nexport const isUnsafeReturn = binding.isUnsafeReturn as (input: UnsafeTypeFlowInput) => boolean;\nexport const runNativeLintRule = binding.runNativeLintRule as (\n ruleName: string,\n node: NativeLintNode,\n) => NativeLintDiagnostic[];\nexport const nativeLintRuleMetas = binding.nativeLintRuleMetas as () => NativeLintRuleMeta[];\nexport const classifyTypeText = binding.classifyTypeText as (text?: string) => TypeTextKind;\nexport const splitTopLevelTypeText = binding.splitTopLevelTypeText as (\n text: string,\n delimiter: string,\n) => string[];\nexport const splitTypeText = binding.splitTypeText as (text: string) => string[];\nexport const isStringLikeTypeTexts = binding.isStringLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isNumberLikeTypeTexts = binding.isNumberLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isBigIntLikeTypeTexts = binding.isBigIntLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isAnyLikeTypeTexts = binding.isAnyLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isUnknownLikeTypeTexts = binding.isUnknownLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isArrayLikeTypeTexts = binding.isArrayLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isStringArrayLikeTypeTexts = binding.isStringArrayLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isPromiseLikeTypeTexts = binding.isPromiseLikeTypeTexts as (\n typeTexts: readonly string[],\n propertyNames?: readonly string[],\n) => boolean;\nexport const isErrorLikeTypeTexts = binding.isErrorLikeTypeTexts as (\n typeTexts: readonly string[],\n propertyNames?: readonly string[],\n) => boolean;\n\nlet rootCheckerBatchResolverWarningShown = false;\n\n/**\n * @deprecated Import from `@corsa-bind/napi/orchestrator` instead. The root\n * export remains as a compatibility shim and warns once at runtime.\n */\nexport function resolveCheckerBatch(\n client: CheckerBatchCapableClient,\n scope: CheckerBatchScope,\n queries: readonly CheckerBatchQuery[],\n): ResolvedCheckerBatchItem[] {\n warnRootCheckerBatchResolver();\n return resolveCheckerBatchFromOrchestrator(client, scope, queries);\n}\n\n/**\n * @deprecated Import from `@corsa-bind/napi/orchestrator` instead. The root\n * export remains as a compatibility shim and warns once at runtime.\n */\nexport async function resolveCheckerBatchAsync(\n client: AsyncCheckerBatchCapableClient,\n scope: CheckerBatchScope,\n queries: readonly CheckerBatchQuery[],\n): Promise<ResolvedCheckerBatchItem[]> {\n warnRootCheckerBatchResolver();\n return resolveCheckerBatchAsyncFromOrchestrator(client, scope, queries);\n}\n\nexport const Utils = Object.freeze({\n classifyTypeText,\n splitTopLevelTypeText,\n splitTypeText,\n isStringLikeTypeTexts,\n isNumberLikeTypeTexts,\n isBigIntLikeTypeTexts,\n isAnyLikeTypeTexts,\n isUnknownLikeTypeTexts,\n isArrayLikeTypeTexts,\n isStringArrayLikeTypeTexts,\n isPromiseLikeTypeTexts,\n isErrorLikeTypeTexts,\n});\n\nexport default binding;\nexport { batchCheckerRequests, batchCheckerRequestsAsync } from \"./checker_batch\";\nexport type { AsyncCheckerBatchCapableClient, CheckerBatchCapableClient } from \"./checker_batch\";\nexport type {\n CheckerBatchQuery,\n CheckerBatchResult,\n CheckerBatchScope,\n ResolvedCheckerBatchItem,\n} from \"./orchestrator_types\";\nexport type * from \"./types\";\n\nfunction warnRootCheckerBatchResolver(): void {\n if (rootCheckerBatchResolverWarningShown) {\n return;\n }\n rootCheckerBatchResolverWarningShown = true;\n console.warn(\n \"@corsa-bind/napi: resolveCheckerBatch is a compatibility shim; import from @corsa-bind/napi/orchestrator for new code.\",\n );\n}\n"],"mappings":";;;;AA6BA,MAAM,UACJ,aAAa,eAAe,aAAa,UAAU;AA4OrD,MAAa,iBAAiB,QAAQ;AACtC,MAAa,+BACX,QAAQ;AACV,MAAa,uBACX,QAAQ;AAEV,MAAa,UAAU,QAAQ;AAC/B,MAAa,2BAA2B,QAAQ;AAGhD,MAAa,qBAAqB,QAAQ;AAG1C,MAAa,iBAAiB,QAAQ;AACtC,MAAa,oBAAoB,QAAQ;AAIzC,MAAa,sBAAsB,QAAQ;AAC3C,MAAa,mBAAmB,QAAQ;AACxC,MAAa,wBAAwB,QAAQ;AAI7C,MAAa,gBAAgB,QAAQ;AACrC,MAAa,wBAAwB,QAAQ;AAG7C,MAAa,wBAAwB,QAAQ;AAG7C,MAAa,wBAAwB,QAAQ;AAG7C,MAAa,qBAAqB,QAAQ;AAG1C,MAAa,yBAAyB,QAAQ;AAG9C,MAAa,uBAAuB,QAAQ;AAG5C,MAAa,6BAA6B,QAAQ;AAGlD,MAAa,yBAAyB,QAAQ;AAI9C,MAAa,uBAAuB,QAAQ;AAK5C,IAAI,uCAAuC;;;;;AAM3C,SAAgB,oBACd,QACA,OACA,SAC4B;CAC5B,6BAA6B;CAC7B,OAAOA,sBAAoC,QAAQ,OAAO,OAAO;AACnE;;;;;AAMA,eAAsB,yBACpB,QACA,OACA,SACqC;CACrC,6BAA6B;CAC7B,OAAOC,2BAAyC,QAAQ,OAAO,OAAO;AACxE;AAEA,MAAa,QAAQ,OAAO,OAAO;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAaD,SAAS,+BAAqC;CAC5C,IAAI,sCACF;CAEF,uCAAuC;CACvC,QAAQ,KACN,wHACF;AACF"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["resolveCheckerBatchFromOrchestrator","resolveCheckerBatchAsyncFromOrchestrator"],"sources":["../ts/index.ts"],"sourcesContent":["import * as nativeModule from \"../index.js\";\n\nimport {\n resolveCheckerBatch as resolveCheckerBatchFromOrchestrator,\n resolveCheckerBatchAsync as resolveCheckerBatchAsyncFromOrchestrator,\n} from \"./orchestrator\";\nimport type { AsyncCheckerBatchCapableClient, CheckerBatchCapableClient } from \"./checker_batch\";\nimport type {\n CheckerBatchQuery,\n CheckerBatchScope,\n ResolvedCheckerBatchItem,\n} from \"./orchestrator_types\";\nimport type {\n ApiClientOptions,\n ConfigResponse,\n ContentMapperDefinition,\n EncodedSourceFile,\n InitializeResponse,\n MappedPosition,\n MappedRange,\n SpanMapSegment,\n NativeLintDiagnostic,\n NativeLintNode,\n NativeLintRuleMeta,\n SymbolResponse,\n TypeResponse,\n TypeTextKind,\n UnsafeTypeFlowInput,\n UpdateSnapshotParams,\n UpdateSnapshotResponse,\n VirtualChange,\n VirtualDocumentState,\n} from \"./types\";\n\nconst binding = (\n \"default\" in nativeModule ? nativeModule.default : nativeModule\n) as typeof import(\"../index.js\");\n\ntype CorsaApiClientConstructor = {\n spawn(options: ApiClientOptions): CorsaApiClient;\n spawnAsync(options: ApiClientOptions): Promise<CorsaApiClient>;\n};\n\nexport interface CorsaApiClient {\n initialize(): InitializeResponse;\n initializeAsync(): Promise<InitializeResponse>;\n parseConfigFile(file: string): ConfigResponse;\n parseConfigFileAsync(file: string): Promise<ConfigResponse>;\n updateSnapshot(params?: UpdateSnapshotParams): UpdateSnapshotResponse;\n updateSnapshotAsync(params?: UpdateSnapshotParams): Promise<UpdateSnapshotResponse>;\n getSourceFile(snapshot: string, project: string, file: string): Uint8Array | null;\n getSourceFileAsync(snapshot: string, project: string, file: string): Promise<Uint8Array | null>;\n getEncodedSourceFile(snapshot: string, project: string, file: string): EncodedSourceFile | null;\n getEncodedSourceFileAsync(\n snapshot: string,\n project: string,\n file: string,\n ): Promise<EncodedSourceFile | null>;\n getStringType(snapshot: string, project: string): TypeResponse;\n getStringTypeAsync(snapshot: string, project: string): Promise<TypeResponse>;\n getTypeAtPosition(\n snapshot: string,\n project: string,\n file: string,\n position: number,\n ): TypeResponse | null;\n getTypeAtPositionAsync(\n snapshot: string,\n project: string,\n file: string,\n position: number,\n ): Promise<TypeResponse | null>;\n getTypesAtPositions(\n snapshot: string,\n project: string,\n file: string,\n positions: number[],\n ): Array<TypeResponse | null>;\n getTypesAtPositionsAsync(\n snapshot: string,\n project: string,\n file: string,\n positions: number[],\n ): Promise<Array<TypeResponse | null>>;\n getTypeAtSourceRange(\n snapshot: string,\n project: string,\n file: string,\n start: number,\n end: number,\n sourceText: string,\n kind?: string,\n ): TypeResponse | null;\n getTypeAtSourceRangeAsync(\n snapshot: string,\n project: string,\n file: string,\n start: number,\n end: number,\n sourceText: string,\n kind?: string,\n ): Promise<TypeResponse | null>;\n getSymbolAtPosition(\n snapshot: string,\n project: string,\n file: string,\n position: number,\n ): SymbolResponse | null;\n getSymbolAtPositionAsync(\n snapshot: string,\n project: string,\n file: string,\n position: number,\n ): Promise<SymbolResponse | null>;\n getSymbolsAtPositions(\n snapshot: string,\n project: string,\n file: string,\n positions: number[],\n ): Array<SymbolResponse | null>;\n getSymbolsAtPositionsAsync(\n snapshot: string,\n project: string,\n file: string,\n positions: number[],\n ): Promise<Array<SymbolResponse | null>>;\n getAliasedSymbol(snapshot: string, project: string, symbol: string): SymbolResponse | null;\n getAliasedSymbolAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<SymbolResponse | null>;\n getImmediateAliasedSymbol(\n snapshot: string,\n project: string,\n symbol: string,\n ): SymbolResponse | null;\n getImmediateAliasedSymbolAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<SymbolResponse | null>;\n getExportsOfModule(snapshot: string, project: string, symbol: string): SymbolResponse[];\n getExportsOfModuleAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<SymbolResponse[]>;\n getSymbolOfType(snapshot: string, typeHandle: string, project?: string): SymbolResponse | null;\n getSymbolOfTypeAsync(\n snapshot: string,\n typeHandle: string,\n project?: string,\n ): Promise<SymbolResponse | null>;\n getTypeArguments(\n snapshot: string,\n project: string,\n typeHandle: string,\n objectFlags?: number,\n ): TypeResponse[];\n getTypeArgumentsAtSourceRange(\n snapshot: string,\n project: string,\n typeHandle: string,\n objectFlags: number | undefined | null,\n file: string,\n start: number,\n end: number,\n sourceText: string,\n ): TypeResponse[];\n getTypeArgumentsAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n objectFlags?: number,\n ): Promise<TypeResponse[]>;\n getTypeArgumentsAtSourceRangeAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n objectFlags: number | undefined | null,\n file: string,\n start: number,\n end: number,\n sourceText: string,\n ): Promise<TypeResponse[]>;\n getPropertyOfType(\n snapshot: string,\n project: string,\n typeHandle: string,\n name: string,\n ): SymbolResponse | null;\n getPropertyOfTypeAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n name: string,\n ): Promise<SymbolResponse | null>;\n isTypeAssignableTo(snapshot: string, project: string, source: string, target: string): boolean;\n isTypeAssignableToAsync(\n snapshot: string,\n project: string,\n source: string,\n target: string,\n ): Promise<boolean>;\n getConstraintOfType(snapshot: string, project: string, typeHandle: string): TypeResponse | null;\n getConstraintOfTypeAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n ): Promise<TypeResponse | null>;\n getTypeOfSymbol(snapshot: string, project: string, symbol: string): TypeResponse | null;\n getTypeOfSymbolAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<TypeResponse | null>;\n getDeclaredTypeOfSymbol(snapshot: string, project: string, symbol: string): TypeResponse | null;\n getDeclaredTypeOfSymbolAsync(\n snapshot: string,\n project: string,\n symbol: string,\n ): Promise<TypeResponse | null>;\n typeToString(\n snapshot: string,\n project: string,\n typeHandle: string,\n location?: string,\n flags?: number,\n ): string;\n typeToStringAsync(\n snapshot: string,\n project: string,\n typeHandle: string,\n location?: string,\n flags?: number,\n ): Promise<string>;\n callJson<T>(method: string, params?: unknown): T;\n callJsonAsync<T>(method: string, params?: unknown): Promise<T>;\n callBinary(method: string, params?: unknown): Uint8Array | null;\n callBinaryAsync(method: string, params?: unknown): Promise<Uint8Array | null>;\n releaseHandle(handle: string): void;\n releaseHandleAsync(handle: string): Promise<void>;\n close(): void;\n closeAsync(): Promise<void>;\n}\n\ntype CorsaVirtualDocumentConstructor = {\n untitled(path: string, languageId: string, text: string): CorsaVirtualDocument;\n inMemory(authority: string, path: string, languageId: string, text: string): CorsaVirtualDocument;\n};\n\nexport interface CorsaVirtualDocument {\n readonly uri: string;\n readonly languageId: string;\n readonly version: number;\n readonly text: string;\n state(): VirtualDocumentState;\n replace(text: string): void;\n applyChanges(changes: VirtualChange[]): unknown[];\n}\n\nexport const CorsaApiClient = binding.CorsaApiClient as unknown as CorsaApiClientConstructor;\nexport const CorsaVirtualDocument =\n binding.CorsaVirtualDocument as unknown as CorsaVirtualDocumentConstructor;\n\n/**\n * Bidirectional mapping between a mapper's virtual text and the original file.\n *\n * Every query takes an optional `feature` bitmask (see {@link SpanMap}); when it\n * is omitted, all features are considered.\n */\nexport interface CorsaSpanMap {\n readonly segments: SpanMapSegment[];\n readonly segmentCount: number;\n virtualToOriginalPosition(position: number, feature?: number): MappedPosition;\n virtualToOriginalSpan(pos: number, end: number, feature?: number): MappedRange;\n originalToVirtualPositions(position: number, feature?: number): MappedPosition[];\n originalToVirtualSpans(pos: number, end: number, feature?: number): MappedRange[];\n}\n\ntype CorsaSpanMapConstructor = {\n fromSegments(segments: readonly SpanMapSegment[]): CorsaSpanMap;\n};\n\nexport const CorsaSpanMap = binding.CorsaSpanMap as unknown as CorsaSpanMapConstructor;\n\n/** Decodes the source-file fields of a `getSourceFile` payload. */\nexport const decodeSourceFile = binding.decodeSourceFile as (\n payload: Uint8Array,\n) => EncodedSourceFile;\n\n/** Reports whether a `getSourceFile` payload came out of a content mapper. */\nexport const isContentMappedSourceFile = binding.isContentMappedSourceFile as (\n payload: Uint8Array,\n) => boolean;\n\n/** Builds the span map of a payload, or `null` when the file is not mapped. */\nexport const spanMapForSourceFile = binding.spanMapForSourceFile as (\n payload: Uint8Array,\n) => CorsaSpanMap | null;\n\n/** Reads the content mappers a parsed `tsconfig` declares. */\nexport const contentMappersFromConfig = binding.contentMappersFromConfig as (\n config: unknown,\n) => ContentMapperDefinition[];\n\n/**\n * Numeric enums mirrored from upstream `spanMapKind`, `spanMapFidelity`, and\n * `spanMapFeature`.\n */\nexport const SpanMap = Object.freeze({\n Kind: Object.freeze({ Verbatim: 0, Atom: 1, Alias: 2 }),\n Fidelity: Object.freeze({ Exact: 0, Atom: 1, Approximate: 2, None: 3 }),\n Feature: Object.freeze({\n Hover: 1 << 0,\n SignatureHelp: 1 << 1,\n Completion: 1 << 2,\n Definition: 1 << 3,\n TypeDefinition: 1 << 4,\n Implementation: 1 << 5,\n References: 1 << 6,\n DocumentHighlights: 1 << 7,\n Rename: 1 << 8,\n CallHierarchy: 1 << 9,\n CodeActions: 1 << 10,\n Formatting: 1 << 11,\n InlayHints: 1 << 12,\n SemanticTokens: 1 << 13,\n FoldingRanges: 1 << 14,\n SelectionRanges: 1 << 15,\n LinkedEditing: 1 << 16,\n AutoInsert: 1 << 17,\n DocumentSymbols: 1 << 18,\n CodeLens: 1 << 19,\n None: 0,\n All: (1 << 20) - 1,\n }),\n} as const);\n\nexport const version = binding.version as () => string;\nexport const spawnCorsaApiClientAsync = binding.spawnCorsaApiClientAsync as (\n options: ApiClientOptions,\n) => Promise<CorsaApiClient>;\nexport const isUnsafeAssignment = binding.isUnsafeAssignment as (\n input: UnsafeTypeFlowInput,\n) => boolean;\nexport const isUnsafeReturn = binding.isUnsafeReturn as (input: UnsafeTypeFlowInput) => boolean;\nexport const runNativeLintRule = binding.runNativeLintRule as (\n ruleName: string,\n node: NativeLintNode,\n) => NativeLintDiagnostic[];\nexport const nativeLintRuleMetas = binding.nativeLintRuleMetas as () => NativeLintRuleMeta[];\nexport const classifyTypeText = binding.classifyTypeText as (text?: string) => TypeTextKind;\nexport const splitTopLevelTypeText = binding.splitTopLevelTypeText as (\n text: string,\n delimiter: string,\n) => string[];\nexport const splitTypeText = binding.splitTypeText as (text: string) => string[];\nexport const isStringLikeTypeTexts = binding.isStringLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isNumberLikeTypeTexts = binding.isNumberLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isBigIntLikeTypeTexts = binding.isBigIntLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isAnyLikeTypeTexts = binding.isAnyLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isUnknownLikeTypeTexts = binding.isUnknownLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isArrayLikeTypeTexts = binding.isArrayLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isStringArrayLikeTypeTexts = binding.isStringArrayLikeTypeTexts as (\n typeTexts: readonly string[],\n) => boolean;\nexport const isPromiseLikeTypeTexts = binding.isPromiseLikeTypeTexts as (\n typeTexts: readonly string[],\n propertyNames?: readonly string[],\n) => boolean;\nexport const isErrorLikeTypeTexts = binding.isErrorLikeTypeTexts as (\n typeTexts: readonly string[],\n propertyNames?: readonly string[],\n) => boolean;\n\nlet rootCheckerBatchResolverWarningShown = false;\n\n/**\n * @deprecated Import from `@corsa-bind/napi/orchestrator` instead. The root\n * export remains as a compatibility shim and warns once at runtime.\n */\nexport function resolveCheckerBatch(\n client: CheckerBatchCapableClient,\n scope: CheckerBatchScope,\n queries: readonly CheckerBatchQuery[],\n): ResolvedCheckerBatchItem[] {\n warnRootCheckerBatchResolver();\n return resolveCheckerBatchFromOrchestrator(client, scope, queries);\n}\n\n/**\n * @deprecated Import from `@corsa-bind/napi/orchestrator` instead. The root\n * export remains as a compatibility shim and warns once at runtime.\n */\nexport async function resolveCheckerBatchAsync(\n client: AsyncCheckerBatchCapableClient,\n scope: CheckerBatchScope,\n queries: readonly CheckerBatchQuery[],\n): Promise<ResolvedCheckerBatchItem[]> {\n warnRootCheckerBatchResolver();\n return resolveCheckerBatchAsyncFromOrchestrator(client, scope, queries);\n}\n\nexport const Utils = Object.freeze({\n classifyTypeText,\n splitTopLevelTypeText,\n splitTypeText,\n isStringLikeTypeTexts,\n isNumberLikeTypeTexts,\n isBigIntLikeTypeTexts,\n isAnyLikeTypeTexts,\n isUnknownLikeTypeTexts,\n isArrayLikeTypeTexts,\n isStringArrayLikeTypeTexts,\n isPromiseLikeTypeTexts,\n isErrorLikeTypeTexts,\n});\n\nexport default binding;\nexport { batchCheckerRequests, batchCheckerRequestsAsync } from \"./checker_batch\";\nexport type { AsyncCheckerBatchCapableClient, CheckerBatchCapableClient } from \"./checker_batch\";\nexport type {\n CheckerBatchQuery,\n CheckerBatchResult,\n CheckerBatchScope,\n ResolvedCheckerBatchItem,\n} from \"./orchestrator_types\";\nexport type * from \"./types\";\n\nfunction warnRootCheckerBatchResolver(): void {\n if (rootCheckerBatchResolverWarningShown) {\n return;\n }\n rootCheckerBatchResolverWarningShown = true;\n console.warn(\n \"@corsa-bind/napi: resolveCheckerBatch is a compatibility shim; import from @corsa-bind/napi/orchestrator for new code.\",\n );\n}\n"],"mappings":";;;;AAkCA,MAAM,UACJ,aAAa,eAAe,aAAa,UAAU;AAmOrD,MAAa,iBAAiB,QAAQ;AACtC,MAAa,uBACX,QAAQ;AAqBV,MAAa,eAAe,QAAQ;;AAGpC,MAAa,mBAAmB,QAAQ;;AAKxC,MAAa,4BAA4B,QAAQ;;AAKjD,MAAa,uBAAuB,QAAQ;;AAK5C,MAAa,2BAA2B,QAAQ;;;;;AAQhD,MAAa,UAAU,OAAO,OAAO;CACnC,MAAM,OAAO,OAAO;EAAE,UAAU;EAAG,MAAM;EAAG,OAAO;CAAE,CAAC;CACtD,UAAU,OAAO,OAAO;EAAE,OAAO;EAAG,MAAM;EAAG,aAAa;EAAG,MAAM;CAAE,CAAC;CACtE,SAAS,OAAO,OAAO;EACrB,OAAO;EACP,eAAe;EACf,YAAY;EACZ,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,YAAY;EACZ,oBAAoB;EACpB,QAAQ;EACR,eAAe;EACf,aAAa;EACb,YAAY;EACZ,YAAY;EACZ,gBAAgB;EAChB,eAAe;EACf,iBAAiB;EACjB,eAAe;EACf,YAAY,KAAK;EACjB,iBAAiB,KAAK;EACtB,UAAU,KAAK;EACf,MAAM;EACN,MAAM,KAAK,MAAM;CACnB,CAAC;AACH,CAAU;AAEV,MAAa,UAAU,QAAQ;AAC/B,MAAa,2BAA2B,QAAQ;AAGhD,MAAa,qBAAqB,QAAQ;AAG1C,MAAa,iBAAiB,QAAQ;AACtC,MAAa,oBAAoB,QAAQ;AAIzC,MAAa,sBAAsB,QAAQ;AAC3C,MAAa,mBAAmB,QAAQ;AACxC,MAAa,wBAAwB,QAAQ;AAI7C,MAAa,gBAAgB,QAAQ;AACrC,MAAa,wBAAwB,QAAQ;AAG7C,MAAa,wBAAwB,QAAQ;AAG7C,MAAa,wBAAwB,QAAQ;AAG7C,MAAa,qBAAqB,QAAQ;AAG1C,MAAa,yBAAyB,QAAQ;AAG9C,MAAa,uBAAuB,QAAQ;AAG5C,MAAa,6BAA6B,QAAQ;AAGlD,MAAa,yBAAyB,QAAQ;AAI9C,MAAa,uBAAuB,QAAQ;AAK5C,IAAI,uCAAuC;;;;;AAM3C,SAAgB,oBACd,QACA,OACA,SAC4B;CAC5B,6BAA6B;CAC7B,OAAOA,sBAAoC,QAAQ,OAAO,OAAO;AACnE;;;;;AAMA,eAAsB,yBACpB,QACA,OACA,SACqC;CACrC,6BAA6B;CAC7B,OAAOC,2BAAyC,QAAQ,OAAO,OAAO;AACxE;AAEA,MAAa,QAAQ,OAAO,OAAO;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAaD,SAAS,+BAAqC;CAC5C,IAAI,sCACF;CAEF,uCAAuC;CACvC,QAAQ,KACN,wHACF;AACF"}
|
package/dist/types.d.mts
CHANGED
|
@@ -18,6 +18,88 @@ interface InitializeResponse {
|
|
|
18
18
|
interface ConfigResponse {
|
|
19
19
|
options: unknown;
|
|
20
20
|
fileNames: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Raw `tsconfig` object as Corsa read it, when the runtime reports one.
|
|
23
|
+
* Top-level settings that are not compiler options — `contentMappers` among
|
|
24
|
+
* them — only exist here.
|
|
25
|
+
*/
|
|
26
|
+
raw?: unknown;
|
|
27
|
+
}
|
|
28
|
+
/** A content mapper as declared in a `tsconfig.json` `contentMappers` entry. */
|
|
29
|
+
interface ContentMapperDefinition {
|
|
30
|
+
/** npm package that implements the mapper. */
|
|
31
|
+
package: string;
|
|
32
|
+
/** Otherwise unsupported file extensions the mapper registers. */
|
|
33
|
+
extensions: string[];
|
|
34
|
+
/** Mapper-specific options forwarded verbatim to the mapper process. */
|
|
35
|
+
options?: unknown;
|
|
36
|
+
}
|
|
37
|
+
/** `0` verbatim, `1` atom, `2` alias. */
|
|
38
|
+
type SpanMapKind = 0 | 1 | 2;
|
|
39
|
+
/** `0` exact, `1` atom, `2` approximate, `3` none. */
|
|
40
|
+
type SpanMapFidelity = 0 | 1 | 2 | 3;
|
|
41
|
+
/** `0` ignore, `1` expect. */
|
|
42
|
+
type DiagnosticDirectivePolicy = 0 | 1;
|
|
43
|
+
/** Half-open range of UTF-16 code unit offsets. */
|
|
44
|
+
interface TextRange {
|
|
45
|
+
pos: number;
|
|
46
|
+
end: number;
|
|
47
|
+
}
|
|
48
|
+
/** One half-open virtual range mapped onto one half-open original range. */
|
|
49
|
+
interface SpanMapSegment {
|
|
50
|
+
virtualStart: number;
|
|
51
|
+
virtualEnd: number;
|
|
52
|
+
originalStart: number;
|
|
53
|
+
originalEnd: number;
|
|
54
|
+
kind: SpanMapKind;
|
|
55
|
+
/** `SpanMap.Feature` bitmask; every feature when the mapper set no limit. */
|
|
56
|
+
features: number;
|
|
57
|
+
}
|
|
58
|
+
/** One projection of a position, with how faithful it is. */
|
|
59
|
+
interface MappedPosition {
|
|
60
|
+
position: number;
|
|
61
|
+
fidelity: SpanMapFidelity;
|
|
62
|
+
}
|
|
63
|
+
/** One projection of a range, with how faithful it is. */
|
|
64
|
+
interface MappedRange {
|
|
65
|
+
range: TextRange;
|
|
66
|
+
fidelity: SpanMapFidelity;
|
|
67
|
+
}
|
|
68
|
+
/** A directive controlling TypeScript diagnostics inside a mapped range. */
|
|
69
|
+
interface MappedDiagnosticDirective {
|
|
70
|
+
originalRange: TextRange;
|
|
71
|
+
virtualRange: TextRange;
|
|
72
|
+
policy: DiagnosticDirectivePolicy;
|
|
73
|
+
unusedCode: number;
|
|
74
|
+
}
|
|
75
|
+
/** Content mapper state attached to one source file. */
|
|
76
|
+
interface ContentMapping {
|
|
77
|
+
/** `name@version` identity of the mapper that produced the file. */
|
|
78
|
+
contentMapper: string;
|
|
79
|
+
/** Filename whose extension decided how the virtual text was parsed. */
|
|
80
|
+
virtualFileName: string;
|
|
81
|
+
/** Mapping between virtual and original positions, in UTF-16 code units. */
|
|
82
|
+
spanMap: SpanMapSegment[];
|
|
83
|
+
/** Directives that control diagnostics inside mapped ranges. */
|
|
84
|
+
diagnosticDirectives: MappedDiagnosticDirective[];
|
|
85
|
+
/** Compiler-assigned filenames of supplemental outputs for this file. */
|
|
86
|
+
supplementalSourceFileNames: string[];
|
|
87
|
+
/** Canonical file this output supplements, when it is a supplemental one. */
|
|
88
|
+
canonicalSourceFileName?: string;
|
|
89
|
+
}
|
|
90
|
+
/** Source-file fields decoded from a `getSourceFile` payload. */
|
|
91
|
+
interface EncodedSourceFile {
|
|
92
|
+
protocolVersion: number;
|
|
93
|
+
fileName: string;
|
|
94
|
+
path: string;
|
|
95
|
+
/** Text the checker parsed. For a mapped file this is the virtual text. */
|
|
96
|
+
text: string;
|
|
97
|
+
/** Text on disk. Equal to `text` for files no mapper touched. */
|
|
98
|
+
originalText: string;
|
|
99
|
+
languageVariant: number;
|
|
100
|
+
scriptKind: number;
|
|
101
|
+
/** Present only when a content mapper produced this file. */
|
|
102
|
+
contentMapping?: ContentMapping;
|
|
21
103
|
}
|
|
22
104
|
interface ProjectResponse {
|
|
23
105
|
id: string;
|
|
@@ -206,5 +288,5 @@ interface VirtualDocumentState {
|
|
|
206
288
|
text: string;
|
|
207
289
|
}
|
|
208
290
|
//#endregion
|
|
209
|
-
export { ApiClientOptions, ApiMode, CapabilitiesResponse, CheckerBatchRequest, CheckerBatchResponse, ConfigResponse, DiagnosticsCapabilities, DocumentIdentifier, EditorCapabilities, FileChangeSummary, FileChanges, FileDiagnosticsResponse, InitializeResponse, LspCapabilities, NativeLintDiagnostic, NativeLintFix, NativeLintNode, NativeLintRange, NativeLintRuleMeta, NativeLintSuggestion, NativeNodeMetadataDepth, NativeRuleBridgeRequirements, OverlayCapabilities, OverlayChanges, OverlayUpdate, ProjectDiagnosticsResponse, ProjectResponse, RuntimeCapabilities, SnapshotDiagnosticsResponse, SymbolResponse, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, VirtualChange, VirtualDocumentState };
|
|
291
|
+
export { ApiClientOptions, ApiMode, CapabilitiesResponse, CheckerBatchRequest, CheckerBatchResponse, ConfigResponse, ContentMapperDefinition, ContentMapping, DiagnosticDirectivePolicy, DiagnosticsCapabilities, DocumentIdentifier, EditorCapabilities, EncodedSourceFile, FileChangeSummary, FileChanges, FileDiagnosticsResponse, InitializeResponse, LspCapabilities, MappedDiagnosticDirective, MappedPosition, MappedRange, NativeLintDiagnostic, NativeLintFix, NativeLintNode, NativeLintRange, NativeLintRuleMeta, NativeLintSuggestion, NativeNodeMetadataDepth, NativeRuleBridgeRequirements, OverlayCapabilities, OverlayChanges, OverlayUpdate, ProjectDiagnosticsResponse, ProjectResponse, RuntimeCapabilities, SnapshotDiagnosticsResponse, SpanMapFidelity, SpanMapKind, SpanMapSegment, SymbolResponse, TextRange, TypeResponse, TypeTextKind, UnsafeTypeFlowInput, UpdateSnapshotParams, UpdateSnapshotResponse, VirtualChange, VirtualDocumentState };
|
|
210
292
|
//# sourceMappingURL=types.d.mts.map
|
package/index.d.ts
CHANGED
|
@@ -20,6 +20,16 @@ export declare class CorsaApiClient {
|
|
|
20
20
|
updateSnapshotAsync(params?: any | undefined | null): Promise<unknown>
|
|
21
21
|
/** Fetches a source file through the binary endpoint. */
|
|
22
22
|
getSourceFile(snapshot: string, project: string, file: string): Uint8Array | null
|
|
23
|
+
/**
|
|
24
|
+
* Fetches a source file and decodes its source-file level fields.
|
|
25
|
+
*
|
|
26
|
+
* Returns `null` when the project does not contain the file. Content
|
|
27
|
+
* mapped files carry a `contentMapping` block with the mapper identity and
|
|
28
|
+
* the span map between the virtual TypeScript and the authored file.
|
|
29
|
+
*/
|
|
30
|
+
getEncodedSourceFile(snapshot: string, project: string, file: string): any
|
|
31
|
+
/** Decodes a source file on a libuv worker thread. */
|
|
32
|
+
getEncodedSourceFileAsync(snapshot: string, project: string, file: string): Promise<unknown>
|
|
23
33
|
/** Fetches a source file on a libuv worker thread. */
|
|
24
34
|
getSourceFileAsync(snapshot: string, project: string, file: string): Promise<Uint8Array | null>
|
|
25
35
|
/** Resolves the intrinsic string type for a project. */
|
|
@@ -99,26 +109,28 @@ export declare class CorsaApiClient {
|
|
|
99
109
|
closeAsync(): Promise<void>
|
|
100
110
|
}
|
|
101
111
|
|
|
102
|
-
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Bidirectional mapping between a mapper's virtual text and the original file.
|
|
114
|
+
*
|
|
115
|
+
* Every query takes an optional `feature` bitmask (see `SpanMapFeature`); when
|
|
116
|
+
* omitted, all features are considered, which matches a segment that declared
|
|
117
|
+
* no restriction.
|
|
118
|
+
*/
|
|
119
|
+
export declare class CorsaSpanMap {
|
|
120
|
+
/** Builds a span map from raw segments, as reported by `decodeSourceFile`. */
|
|
121
|
+
static fromSegments(segments: any): CorsaSpanMap
|
|
122
|
+
/** The segments, ordered by virtual start. */
|
|
123
|
+
get segments(): any
|
|
124
|
+
/** Number of segments in the map. */
|
|
125
|
+
get segmentCount(): number
|
|
126
|
+
/** Maps a position in the virtual text back to the original file. */
|
|
127
|
+
virtualToOriginalPosition(position: number, feature?: number | undefined | null): any
|
|
128
|
+
/** Maps a range in the virtual text back to the original file. */
|
|
129
|
+
virtualToOriginalSpan(pos: number, end: number, feature?: number | undefined | null): any
|
|
130
|
+
/** Returns every projection of an original position into the virtual text. */
|
|
131
|
+
originalToVirtualPositions(position: number, feature?: number | undefined | null): any
|
|
132
|
+
/** Returns every projection of an original range into the virtual text. */
|
|
133
|
+
originalToVirtualSpans(pos: number, end: number, feature?: number | undefined | null): any
|
|
122
134
|
}
|
|
123
135
|
|
|
124
136
|
/** Mutable virtual document mirrored through the LSP overlay layer. */
|
|
@@ -145,12 +157,36 @@ export declare class CorsaVirtualDocument {
|
|
|
145
157
|
|
|
146
158
|
export declare function classifyTypeText(text?: string | undefined | null): string
|
|
147
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Reads the content mappers a parsed `tsconfig` declares.
|
|
162
|
+
*
|
|
163
|
+
* Accepts either a `parseConfigFile` response or the raw `tsconfig` object,
|
|
164
|
+
* and returns an empty array when neither declares any.
|
|
165
|
+
*/
|
|
166
|
+
export declare function contentMappersFromConfig(config: any): any
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Decodes the source-file fields of a `getSourceFile` payload.
|
|
170
|
+
*
|
|
171
|
+
* Throws when the payload is not an encoded source file, or when it was
|
|
172
|
+
* produced by a binary protocol version this addon does not decode.
|
|
173
|
+
*/
|
|
174
|
+
export declare function decodeSourceFile(payload: Uint8Array): any
|
|
175
|
+
|
|
148
176
|
export declare function isAnyLikeTypeTexts(typeTexts: Array<string>): boolean
|
|
149
177
|
|
|
150
178
|
export declare function isArrayLikeTypeTexts(typeTexts: Array<string>): boolean
|
|
151
179
|
|
|
152
180
|
export declare function isBigIntLikeTypeTexts(typeTexts: Array<string>): boolean
|
|
153
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Reports whether a `getSourceFile` payload came out of a content mapper.
|
|
184
|
+
*
|
|
185
|
+
* Cheaper than decoding when a caller only needs to branch on it, and never
|
|
186
|
+
* throws: an undecodable payload is simply not content mapped.
|
|
187
|
+
*/
|
|
188
|
+
export declare function isContentMappedSourceFile(payload: Uint8Array): boolean
|
|
189
|
+
|
|
154
190
|
export declare function isErrorLikeTypeTexts(typeTexts: Array<string>, propertyNames?: Array<string> | undefined | null): boolean
|
|
155
191
|
|
|
156
192
|
export declare function isNumberLikeTypeTexts(typeTexts: Array<string>): boolean
|
|
@@ -171,6 +207,14 @@ export declare function nativeLintRuleMetas(): any
|
|
|
171
207
|
|
|
172
208
|
export declare function runNativeLintRule(ruleName: string, node: any): any
|
|
173
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Builds the span map of a `getSourceFile` payload.
|
|
212
|
+
*
|
|
213
|
+
* Returns `null` when the file did not go through a content mapper, and throws
|
|
214
|
+
* when the payload is not a source file this addon can decode.
|
|
215
|
+
*/
|
|
216
|
+
export declare function spanMapForSourceFile(payload: Uint8Array): CorsaSpanMap | null
|
|
217
|
+
|
|
174
218
|
/** Spawns a new client on a libuv worker thread. */
|
|
175
219
|
export declare function spawnCorsaApiClientAsync(options: any): Promise<CorsaApiClient>
|
|
176
220
|
|
package/index.js
CHANGED
|
@@ -77,8 +77,8 @@ function requireNative() {
|
|
|
77
77
|
try {
|
|
78
78
|
const binding = require('@corsa-bind/napi-android-arm64')
|
|
79
79
|
const bindingPackageVersion = require('@corsa-bind/napi-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '1.14.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
80
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
81
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -93,8 +93,8 @@ function requireNative() {
|
|
|
93
93
|
try {
|
|
94
94
|
const binding = require('@corsa-bind/napi-android-arm-eabi')
|
|
95
95
|
const bindingPackageVersion = require('@corsa-bind/napi-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '1.14.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
96
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
97
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -114,8 +114,8 @@ function requireNative() {
|
|
|
114
114
|
try {
|
|
115
115
|
const binding = require('@corsa-bind/napi-win32-x64-gnu')
|
|
116
116
|
const bindingPackageVersion = require('@corsa-bind/napi-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '1.14.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
117
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
118
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -130,8 +130,8 @@ function requireNative() {
|
|
|
130
130
|
try {
|
|
131
131
|
const binding = require('@corsa-bind/napi-win32-x64-msvc')
|
|
132
132
|
const bindingPackageVersion = require('@corsa-bind/napi-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '1.14.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
133
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
134
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -147,8 +147,8 @@ function requireNative() {
|
|
|
147
147
|
try {
|
|
148
148
|
const binding = require('@corsa-bind/napi-win32-ia32-msvc')
|
|
149
149
|
const bindingPackageVersion = require('@corsa-bind/napi-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '1.14.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
150
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
151
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -163,8 +163,8 @@ function requireNative() {
|
|
|
163
163
|
try {
|
|
164
164
|
const binding = require('@corsa-bind/napi-win32-arm64-msvc')
|
|
165
165
|
const bindingPackageVersion = require('@corsa-bind/napi-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '1.14.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
166
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
167
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -182,8 +182,8 @@ function requireNative() {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = require('@corsa-bind/napi-darwin-universal')
|
|
184
184
|
const bindingPackageVersion = require('@corsa-bind/napi-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '1.14.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
185
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
186
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -198,8 +198,8 @@ function requireNative() {
|
|
|
198
198
|
try {
|
|
199
199
|
const binding = require('@corsa-bind/napi-darwin-x64')
|
|
200
200
|
const bindingPackageVersion = require('@corsa-bind/napi-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '1.14.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
201
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
202
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -214,8 +214,8 @@ function requireNative() {
|
|
|
214
214
|
try {
|
|
215
215
|
const binding = require('@corsa-bind/napi-darwin-arm64')
|
|
216
216
|
const bindingPackageVersion = require('@corsa-bind/napi-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '1.14.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
217
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
218
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -234,8 +234,8 @@ function requireNative() {
|
|
|
234
234
|
try {
|
|
235
235
|
const binding = require('@corsa-bind/napi-freebsd-x64')
|
|
236
236
|
const bindingPackageVersion = require('@corsa-bind/napi-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '1.14.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
237
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
238
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -250,8 +250,8 @@ function requireNative() {
|
|
|
250
250
|
try {
|
|
251
251
|
const binding = require('@corsa-bind/napi-freebsd-arm64')
|
|
252
252
|
const bindingPackageVersion = require('@corsa-bind/napi-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '1.14.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
253
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
254
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -271,8 +271,8 @@ function requireNative() {
|
|
|
271
271
|
try {
|
|
272
272
|
const binding = require('@corsa-bind/napi-linux-x64-musl')
|
|
273
273
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '1.14.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
274
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
275
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -287,8 +287,8 @@ function requireNative() {
|
|
|
287
287
|
try {
|
|
288
288
|
const binding = require('@corsa-bind/napi-linux-x64-gnu')
|
|
289
289
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '1.14.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
290
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
291
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -305,8 +305,8 @@ function requireNative() {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = require('@corsa-bind/napi-linux-arm64-musl')
|
|
307
307
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '1.14.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
308
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
309
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -321,8 +321,8 @@ function requireNative() {
|
|
|
321
321
|
try {
|
|
322
322
|
const binding = require('@corsa-bind/napi-linux-arm64-gnu')
|
|
323
323
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '1.14.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
324
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
325
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -339,8 +339,8 @@ function requireNative() {
|
|
|
339
339
|
try {
|
|
340
340
|
const binding = require('@corsa-bind/napi-linux-arm-musleabihf')
|
|
341
341
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '1.14.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
342
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
343
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -355,8 +355,8 @@ function requireNative() {
|
|
|
355
355
|
try {
|
|
356
356
|
const binding = require('@corsa-bind/napi-linux-arm-gnueabihf')
|
|
357
357
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '1.14.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
358
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
359
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -373,8 +373,8 @@ function requireNative() {
|
|
|
373
373
|
try {
|
|
374
374
|
const binding = require('@corsa-bind/napi-linux-loong64-musl')
|
|
375
375
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '1.14.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
376
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
377
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -389,8 +389,8 @@ function requireNative() {
|
|
|
389
389
|
try {
|
|
390
390
|
const binding = require('@corsa-bind/napi-linux-loong64-gnu')
|
|
391
391
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '1.14.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
392
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
393
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -407,8 +407,8 @@ function requireNative() {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = require('@corsa-bind/napi-linux-riscv64-musl')
|
|
409
409
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '1.14.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
410
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
411
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -423,8 +423,8 @@ function requireNative() {
|
|
|
423
423
|
try {
|
|
424
424
|
const binding = require('@corsa-bind/napi-linux-riscv64-gnu')
|
|
425
425
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '1.14.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
426
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
427
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -440,8 +440,8 @@ function requireNative() {
|
|
|
440
440
|
try {
|
|
441
441
|
const binding = require('@corsa-bind/napi-linux-ppc64-gnu')
|
|
442
442
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '1.14.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
443
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
444
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -456,8 +456,8 @@ function requireNative() {
|
|
|
456
456
|
try {
|
|
457
457
|
const binding = require('@corsa-bind/napi-linux-s390x-gnu')
|
|
458
458
|
const bindingPackageVersion = require('@corsa-bind/napi-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '1.14.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
459
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
460
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -476,8 +476,8 @@ function requireNative() {
|
|
|
476
476
|
try {
|
|
477
477
|
const binding = require('@corsa-bind/napi-openharmony-arm64')
|
|
478
478
|
const bindingPackageVersion = require('@corsa-bind/napi-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '1.14.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
479
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -492,8 +492,8 @@ function requireNative() {
|
|
|
492
492
|
try {
|
|
493
493
|
const binding = require('@corsa-bind/napi-openharmony-x64')
|
|
494
494
|
const bindingPackageVersion = require('@corsa-bind/napi-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '1.14.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
495
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -508,8 +508,8 @@ function requireNative() {
|
|
|
508
508
|
try {
|
|
509
509
|
const binding = require('@corsa-bind/napi-openharmony-arm')
|
|
510
510
|
const bindingPackageVersion = require('@corsa-bind/napi-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '1.14.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 1.14.
|
|
511
|
+
if (bindingPackageVersion !== '1.14.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
|
+
throw new Error(`Native binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -648,8 +648,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
648
648
|
if (!candidateFailed) {
|
|
649
649
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
650
650
|
const bindingPackageVersion = require('@corsa-bind/napi-wasm32-wasi/package.json').version
|
|
651
|
-
if (bindingPackageVersion !== '1.14.
|
|
652
|
-
throw new Error(`WASI binding package version mismatch, expected 1.14.
|
|
651
|
+
if (bindingPackageVersion !== '1.14.1') {
|
|
652
|
+
throw new Error(`WASI binding package version mismatch, expected 1.14.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
wasiBinding = require('@corsa-bind/napi-wasm32-wasi')
|
|
@@ -701,12 +701,15 @@ if (!nativeBinding) {
|
|
|
701
701
|
|
|
702
702
|
module.exports = nativeBinding
|
|
703
703
|
module.exports.CorsaApiClient = nativeBinding.CorsaApiClient
|
|
704
|
-
module.exports.
|
|
704
|
+
module.exports.CorsaSpanMap = nativeBinding.CorsaSpanMap
|
|
705
705
|
module.exports.CorsaVirtualDocument = nativeBinding.CorsaVirtualDocument
|
|
706
706
|
module.exports.classifyTypeText = nativeBinding.classifyTypeText
|
|
707
|
+
module.exports.contentMappersFromConfig = nativeBinding.contentMappersFromConfig
|
|
708
|
+
module.exports.decodeSourceFile = nativeBinding.decodeSourceFile
|
|
707
709
|
module.exports.isAnyLikeTypeTexts = nativeBinding.isAnyLikeTypeTexts
|
|
708
710
|
module.exports.isArrayLikeTypeTexts = nativeBinding.isArrayLikeTypeTexts
|
|
709
711
|
module.exports.isBigIntLikeTypeTexts = nativeBinding.isBigIntLikeTypeTexts
|
|
712
|
+
module.exports.isContentMappedSourceFile = nativeBinding.isContentMappedSourceFile
|
|
710
713
|
module.exports.isErrorLikeTypeTexts = nativeBinding.isErrorLikeTypeTexts
|
|
711
714
|
module.exports.isNumberLikeTypeTexts = nativeBinding.isNumberLikeTypeTexts
|
|
712
715
|
module.exports.isPromiseLikeTypeTexts = nativeBinding.isPromiseLikeTypeTexts
|
|
@@ -717,6 +720,7 @@ module.exports.isUnsafeAssignment = nativeBinding.isUnsafeAssignment
|
|
|
717
720
|
module.exports.isUnsafeReturn = nativeBinding.isUnsafeReturn
|
|
718
721
|
module.exports.nativeLintRuleMetas = nativeBinding.nativeLintRuleMetas
|
|
719
722
|
module.exports.runNativeLintRule = nativeBinding.runNativeLintRule
|
|
723
|
+
module.exports.spanMapForSourceFile = nativeBinding.spanMapForSourceFile
|
|
720
724
|
module.exports.spawnCorsaApiClientAsync = nativeBinding.spawnCorsaApiClientAsync
|
|
721
725
|
module.exports.splitTopLevelTypeText = nativeBinding.splitTopLevelTypeText
|
|
722
726
|
module.exports.splitTypeText = nativeBinding.splitTypeText
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corsa-bind/napi",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "Native JS runtime bindings for Corsa stdio workflows",
|
|
5
5
|
"homepage": "https://github.com/ubugeeei-prod/corsa-bind/tree/main/src/bindings/nodejs/corsa_node",
|
|
6
6
|
"bugs": {
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"node": ">=22"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@corsa-bind/napi-win32-x64-msvc": "1.14.
|
|
62
|
-
"@corsa-bind/napi-darwin-x64": "1.14.
|
|
63
|
-
"@corsa-bind/napi-linux-x64-gnu": "1.14.
|
|
64
|
-
"@corsa-bind/napi-darwin-arm64": "1.14.
|
|
65
|
-
"@corsa-bind/napi-win32-arm64-msvc": "1.14.
|
|
66
|
-
"@corsa-bind/napi-linux-x64-musl": "1.14.
|
|
67
|
-
"@corsa-bind/napi-linux-arm64-gnu": "1.14.
|
|
68
|
-
"@corsa-bind/napi-linux-arm64-musl": "1.14.
|
|
61
|
+
"@corsa-bind/napi-win32-x64-msvc": "1.14.1",
|
|
62
|
+
"@corsa-bind/napi-darwin-x64": "1.14.1",
|
|
63
|
+
"@corsa-bind/napi-linux-x64-gnu": "1.14.1",
|
|
64
|
+
"@corsa-bind/napi-darwin-arm64": "1.14.1",
|
|
65
|
+
"@corsa-bind/napi-win32-arm64-msvc": "1.14.1",
|
|
66
|
+
"@corsa-bind/napi-linux-x64-musl": "1.14.1",
|
|
67
|
+
"@corsa-bind/napi-linux-arm64-gnu": "1.14.1",
|
|
68
|
+
"@corsa-bind/napi-linux-arm64-musl": "1.14.1"
|
|
69
69
|
}
|
|
70
70
|
}
|