@prisma/param-graph-builder 7.3.0-integration-parameterization.13 → 7.3.0-integration-parameterization.15
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/build-param-graph.js +2 -2
- package/dist/build-param-graph.mjs +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,4 +6,4 @@ Builds a ParamGraph from DMMF (Data Model Metadata Format) at client generation
|
|
|
6
6
|
|
|
7
7
|
The ParamGraph is a compact data structure that enables schema-aware parameterization at runtime. It stores only parameterizable paths and uses a string table to de-duplicate field names.
|
|
8
8
|
|
|
9
|
-
This package is used by both `@prisma/client-generator-js` and `@prisma/client-generator-ts` to generate the parameterization schema that is embedded in the generated Prisma Client.
|
|
9
|
+
This package is used by both `@prisma/client-generator-js` and `@prisma/client-generator-ts` to generate the parameterization schema that is embedded in the generated Prisma Client.
|
|
@@ -161,10 +161,10 @@ function buildParamGraph(dmmf) {
|
|
|
161
161
|
for (const inputType of dmmf.schema.inputObjectTypes.model ?? []) {
|
|
162
162
|
inputTypeMap.set(getTypeName(inputType.name, "model"), inputType);
|
|
163
163
|
}
|
|
164
|
-
for (const outputType of dmmf.schema.outputObjectTypes.prisma) {
|
|
164
|
+
for (const outputType of dmmf.schema.outputObjectTypes.prisma ?? []) {
|
|
165
165
|
outputTypeMap.set(getTypeName(outputType.name, "prisma"), outputType);
|
|
166
166
|
}
|
|
167
|
-
for (const outputType of dmmf.schema.outputObjectTypes.model) {
|
|
167
|
+
for (const outputType of dmmf.schema.outputObjectTypes.model ?? []) {
|
|
168
168
|
outputTypeMap.set(getTypeName(outputType.name, "model"), outputType);
|
|
169
169
|
}
|
|
170
170
|
function buildInputNodeFromArgs(args) {
|
|
@@ -141,10 +141,10 @@ function buildParamGraph(dmmf) {
|
|
|
141
141
|
for (const inputType of dmmf.schema.inputObjectTypes.model ?? []) {
|
|
142
142
|
inputTypeMap.set(getTypeName(inputType.name, "model"), inputType);
|
|
143
143
|
}
|
|
144
|
-
for (const outputType of dmmf.schema.outputObjectTypes.prisma) {
|
|
144
|
+
for (const outputType of dmmf.schema.outputObjectTypes.prisma ?? []) {
|
|
145
145
|
outputTypeMap.set(getTypeName(outputType.name, "prisma"), outputType);
|
|
146
146
|
}
|
|
147
|
-
for (const outputType of dmmf.schema.outputObjectTypes.model) {
|
|
147
|
+
for (const outputType of dmmf.schema.outputObjectTypes.model ?? []) {
|
|
148
148
|
outputTypeMap.set(getTypeName(outputType.name, "model"), outputType);
|
|
149
149
|
}
|
|
150
150
|
function buildInputNodeFromArgs(args) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/param-graph-builder",
|
|
3
|
-
"version": "7.3.0-integration-parameterization.
|
|
3
|
+
"version": "7.3.0-integration-parameterization.15",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@prisma/dmmf": "7.3.0-integration-parameterization.
|
|
28
|
-
"@prisma/param-graph": "7.3.0-integration-parameterization.
|
|
27
|
+
"@prisma/dmmf": "7.3.0-integration-parameterization.15",
|
|
28
|
+
"@prisma/param-graph": "7.3.0-integration-parameterization.15"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist"
|