@prisma/orm-toolchain 8.0.0-rc.17-dev.30 → 8.0.0-rc.17-dev.32
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/dist/cli-telemetry.mjs +1 -1
- package/dist/cli.mjs +4 -4
- package/dist/cli__control-api.mjs +1 -1
- package/dist/cli__migration-cli.mjs +1 -1
- package/dist/config-loader.mjs +1 -1
- package/dist/{domain-type-generation-DFasK1Cx-DT41XFXn.mjs → domain-type-generation-JZ0y7jhU-4nb5K7Cr.mjs} +6 -3
- package/dist/domain-type-generation-JZ0y7jhU-4nb5K7Cr.mjs.map +1 -0
- package/dist/emitter.mjs +2 -2
- package/dist/emitter__domain-type-generation.mjs +1 -1
- package/dist/{exports-JFLSlPBW.mjs → exports-B6FLC_ks.mjs} +2 -2
- package/dist/{exports-JFLSlPBW.mjs.map → exports-B6FLC_ks.mjs.map} +1 -1
- package/dist/{exports-DaDckULH-JNQeM6Nn.mjs → exports-BRnrJIlW-Cl8suZC_.mjs} +15 -17
- package/dist/exports-BRnrJIlW-Cl8suZC_.mjs.map +1 -0
- package/dist/{exports-D997yN01.mjs → exports-CYrC0vtV.mjs} +9 -5
- package/dist/exports-CYrC0vtV.mjs.map +1 -0
- package/dist/{ref-BITTabCb-BMk154EL.mjs → ref-BITTabCb-BhCznHSz.mjs} +3 -3
- package/dist/{ref-BITTabCb-BMk154EL.mjs.map → ref-BITTabCb-BhCznHSz.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +3 -3
- package/package.json +12 -12
- package/dist/domain-type-generation-DFasK1Cx-DT41XFXn.mjs.map +0 -1
- package/dist/exports-D997yN01.mjs.map +0 -1
- package/dist/exports-DaDckULH-JNQeM6Nn.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as expandContractInputs, g as requireConfigSections, s as findNearestConfigPathForFile, u as loadConfig } from "./exports-
|
|
1
|
+
import { a as expandContractInputs, g as requireConfigSections, s as findNearestConfigPathForFile, u as loadConfig } from "./exports-B6FLC_ks.mjs";
|
|
2
2
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
3
3
|
import { CliStructuredError } from "@prisma/orm-framework/errors/control";
|
|
4
4
|
import { createControlStack } from "@prisma/orm-framework/components/control";
|
|
@@ -12,7 +12,7 @@ import { format, resolveFormatOptions } from "@prisma/orm-framework/psl-parser/f
|
|
|
12
12
|
import { EMPTY_DATA_TYPES, assembleAttributeSpecs, blockSpecContext, blockSpecFactoryOf, buildSymbolTable, createBinder, entityReference, findBlockDescriptor, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, matchesSelector, memberEntries, renameLegacyDirective, typeReferenceNode } from "@prisma/orm-framework/psl-parser";
|
|
13
13
|
import { CompletionItemKind, CompletionItemTag, ConnectionError, ConnectionErrors, DiagnosticSeverity, DidChangeWatchedFilesNotification, DocumentDiagnosticReportKind, FoldingRangeKind, InsertTextFormat, LSPErrorCodes, MarkupKind, ProposedFeatures, RegistrationRequest, ResponseError, SemanticTokenModifiers, SemanticTokenTypes, TextDocumentSyncKind, createConnection } from "vscode-languageserver";
|
|
14
14
|
import { TextDocument } from "vscode-languageserver-textdocument";
|
|
15
|
-
import { ArrayLiteralAst, AttributeArgAst, AttributeArgListAst, BooleanLiteralExprAst, CompositeTypeDeclarationAst, FieldAttributeAst, FieldDeclarationAst, FunctionCallAst, GenericBlockDeclarationAst, IdentifierAst, KeyValuePairAst, MixinDeclarationAst, ModelAttributeAst, ModelDeclarationAst, NamespaceDeclarationAst, NumberLiteralExprAst, ObjectLiteralExprAst, PathExprAst, PslSources, StringLiteralExprAst, SyntaxNode, SyntaxToken, TaggedLiteralExprAst, TypesBlockAst, any, isTrivia, nonTriviaSibling, parse, skipTriviaToken } from "@prisma/orm-framework/psl-parser/syntax";
|
|
15
|
+
import { ArrayLiteralAst, AttributeArgAst, AttributeArgListAst, BooleanLiteralExprAst, CompositeTypeDeclarationAst, FieldAttributeAst, FieldDeclarationAst, FunctionCallAst, GenericBlockDeclarationAst, IdentifierAst, KeyValuePairAst, MixinDeclarationAst, MixinInclusionAst, ModelAttributeAst, ModelDeclarationAst, NamespaceDeclarationAst, NumberLiteralExprAst, ObjectLiteralExprAst, PathExprAst, PslSources, StringLiteralExprAst, SyntaxNode, SyntaxToken, TaggedLiteralExprAst, TypesBlockAst, any, isTrivia, nonTriviaSibling, parse, skipTriviaToken } from "@prisma/orm-framework/psl-parser/syntax";
|
|
16
16
|
import { hasPslInterpreter } from "@prisma/orm-framework/psl-parser/interpret";
|
|
17
17
|
import { isAuthoringPslBlockDescriptor } from "@prisma/orm-framework/components/authoring";
|
|
18
18
|
import { ProposedFeatures as ProposedFeatures$1, StreamMessageReader, StreamMessageWriter, createConnection as createConnection$1, createProtocolConnection } from "vscode-languageserver/node";
|
|
@@ -1045,7 +1045,7 @@ function scopeCompletionItems(entries, binder, range, capabilities, selection) {
|
|
|
1045
1045
|
for (const [name, resolution] of entries) {
|
|
1046
1046
|
if (selection !== void 0) {
|
|
1047
1047
|
if (!offersEntity(resolution, selection)) continue;
|
|
1048
|
-
} else if (resolution.kind === "block") continue;
|
|
1048
|
+
} else if (resolution.kind === "block" || resolution.kind === "mixin") continue;
|
|
1049
1049
|
const item = {
|
|
1050
1050
|
label: name,
|
|
1051
1051
|
filterText: name,
|
|
@@ -1601,6 +1601,7 @@ function pslSymbolOf(resolution) {
|
|
|
1601
1601
|
case "block":
|
|
1602
1602
|
case "field":
|
|
1603
1603
|
case "namespace": return resolution.symbol;
|
|
1604
|
+
case "mixin":
|
|
1604
1605
|
case "contributedType":
|
|
1605
1606
|
case "contributedNamespace":
|
|
1606
1607
|
case "crossSpace":
|
|
@@ -2370,7 +2371,8 @@ function mapAttributeEdit(input) {
|
|
|
2370
2371
|
case "block": return blockTakesMap(symbol, input) ? blockMapEdit(symbol, input) : void 0;
|
|
2371
2372
|
case "compositeType":
|
|
2372
2373
|
case "namedType":
|
|
2373
|
-
case "namespace":
|
|
2374
|
+
case "namespace":
|
|
2375
|
+
case "mixin": return;
|
|
2374
2376
|
}
|
|
2375
2377
|
}
|
|
2376
2378
|
function renamedSymbol(input) {
|
|
@@ -2592,6 +2594,7 @@ function collectNamedTypeDeclaration(declaration, source, tokens) {
|
|
|
2592
2594
|
}
|
|
2593
2595
|
function collectGenericBlockMembers(members, source, tokens) {
|
|
2594
2596
|
for (const member of members) {
|
|
2597
|
+
if (member instanceof MixinInclusionAst) continue;
|
|
2595
2598
|
if ("key" in member) {
|
|
2596
2599
|
addIdentifier(member.key(), "property", tokens);
|
|
2597
2600
|
collectExpression(member.value(), source, tokens);
|
|
@@ -2602,6 +2605,7 @@ function collectGenericBlockMembers(members, source, tokens) {
|
|
|
2602
2605
|
}
|
|
2603
2606
|
function collectBlockMembers(members, source, tokens) {
|
|
2604
2607
|
for (const member of members) {
|
|
2608
|
+
if (member instanceof MixinInclusionAst) continue;
|
|
2605
2609
|
if (member instanceof FieldDeclarationAst) {
|
|
2606
2610
|
collectField(member, source, tokens);
|
|
2607
2611
|
continue;
|
|
@@ -3795,4 +3799,4 @@ function startServer(streams) {
|
|
|
3795
3799
|
//#endregion
|
|
3796
3800
|
export { startServer };
|
|
3797
3801
|
|
|
3798
|
-
//# sourceMappingURL=exports-
|
|
3802
|
+
//# sourceMappingURL=exports-CYrC0vtV.mjs.map
|