@prisma/orm-toolchain 8.0.0-rc.17-dev.14 → 8.0.0-rc.17-dev.16
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.mjs
CHANGED
|
@@ -6944,7 +6944,7 @@ const lspCommand = defineServerCommand({
|
|
|
6944
6944
|
} },
|
|
6945
6945
|
handler: async (args, io) => {
|
|
6946
6946
|
const exitCode = await withoutClientProcessIdInArgv(async () => {
|
|
6947
|
-
const { startServer } = await import("./exports-
|
|
6947
|
+
const { startServer } = await import("./exports-CLrz8wIC.mjs");
|
|
6948
6948
|
return startServer({
|
|
6949
6949
|
stdin: io.stdin,
|
|
6950
6950
|
stdout: io.stdout,
|
|
@@ -2378,8 +2378,8 @@ function renamedSymbol(input) {
|
|
|
2378
2378
|
return resolved === void 0 ? void 0 : pslSymbolOf(resolved.resolution);
|
|
2379
2379
|
}
|
|
2380
2380
|
function modelTakesMap(model, source) {
|
|
2381
|
-
if (hasAttribute(model.
|
|
2382
|
-
if (hasAttribute(model.
|
|
2381
|
+
if (hasAttribute(model.attributes, "map")) return false;
|
|
2382
|
+
if (hasAttribute(model.attributes, "base")) return false;
|
|
2383
2383
|
return attributeSpecResolver({
|
|
2384
2384
|
ownerKind: "model",
|
|
2385
2385
|
model: model.node
|
|
@@ -2389,7 +2389,7 @@ function fieldTakesMap(field, source) {
|
|
|
2389
2389
|
const owner = field.node.syntax.parent;
|
|
2390
2390
|
const model = owner === void 0 ? void 0 : ModelDeclarationAst.cast(owner);
|
|
2391
2391
|
if (model === void 0) return false;
|
|
2392
|
-
if (hasAttribute(field.
|
|
2392
|
+
if (hasAttribute(field.attributes, "map")) return false;
|
|
2393
2393
|
const type = typeReferenceNode(field);
|
|
2394
2394
|
const typeKind = type === void 0 ? void 0 : source.binder.symbolForNode(type)?.kind;
|
|
2395
2395
|
if (typeKind === "model" || typeKind === "crossSpace") return false;
|
|
@@ -2400,12 +2400,11 @@ function fieldTakesMap(field, source) {
|
|
|
2400
2400
|
}, source)("map") !== void 0;
|
|
2401
2401
|
}
|
|
2402
2402
|
function blockTakesMap(block, source) {
|
|
2403
|
-
if (hasAttribute(block.
|
|
2403
|
+
if (hasAttribute(block.attributes, "map")) return false;
|
|
2404
2404
|
return findBlockDescriptor(source.pslBlockDescriptors, block.keyword)?.nameIsStorageName === true;
|
|
2405
2405
|
}
|
|
2406
2406
|
function hasAttribute(attributes, name) {
|
|
2407
|
-
|
|
2408
|
-
return false;
|
|
2407
|
+
return attributes.some((attribute) => attribute.node.name()?.isSimpleName(name) === true);
|
|
2409
2408
|
}
|
|
2410
2409
|
function fieldMapEdit(field, input) {
|
|
2411
2410
|
const sourceFile = sourceFileOf(field.node, input);
|
|
@@ -3789,4 +3788,4 @@ function startServer(streams) {
|
|
|
3789
3788
|
//#endregion
|
|
3790
3789
|
export { startServer };
|
|
3791
3790
|
|
|
3792
|
-
//# sourceMappingURL=exports-
|
|
3791
|
+
//# sourceMappingURL=exports-CLrz8wIC.mjs.map
|