@prisma/client-common 7.10.0-dev.43 → 7.10.0-dev.44

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.
@@ -8,6 +8,7 @@ export type RuntimeDataModel = {
8
8
  };
9
9
  export type PrunedRuntimeModel = {
10
10
  readonly dbName: RuntimeModel['dbName'];
11
+ readonly schema: RuntimeModel['schema'];
11
12
  readonly fields: Pick<RuntimeModel['fields'][number], 'name' | 'kind' | 'type' | 'relationName' | 'dbName'>[];
12
13
  };
13
14
  export type PrunedRuntimeDataModel = {
@@ -32,7 +32,7 @@ function dmmfToRuntimeDataModel(dmmfDataModel) {
32
32
  function pruneRuntimeDataModel({ models }) {
33
33
  const prunedModels = {};
34
34
  for (const modelName of Object.keys(models)) {
35
- prunedModels[modelName] = { fields: [], dbName: models[modelName].dbName };
35
+ prunedModels[modelName] = { fields: [], dbName: models[modelName].dbName, schema: models[modelName].schema };
36
36
  for (const { name, kind, type, relationName, dbName } of models[modelName].fields) {
37
37
  prunedModels[modelName].fields.push({ name, kind, type, relationName, dbName });
38
38
  }
@@ -8,7 +8,7 @@ function dmmfToRuntimeDataModel(dmmfDataModel) {
8
8
  function pruneRuntimeDataModel({ models }) {
9
9
  const prunedModels = {};
10
10
  for (const modelName of Object.keys(models)) {
11
- prunedModels[modelName] = { fields: [], dbName: models[modelName].dbName };
11
+ prunedModels[modelName] = { fields: [], dbName: models[modelName].dbName, schema: models[modelName].schema };
12
12
  for (const { name, kind, type, relationName, dbName } of models[modelName].fields) {
13
13
  prunedModels[modelName].fields.push({ name, kind, type, relationName, dbName });
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-common",
3
- "version": "7.10.0-dev.43",
3
+ "version": "7.10.0-dev.44",
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,12 +24,12 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@prisma/client-engine-runtime": "7.10.0-dev.43",
28
- "@prisma/dmmf": "7.10.0-dev.43",
29
- "@prisma/driver-adapter-utils": "7.10.0-dev.43",
30
- "@prisma/internals": "7.10.0-dev.43",
31
- "@prisma/generator": "7.10.0-dev.43",
32
- "@prisma/param-graph": "7.10.0-dev.43"
27
+ "@prisma/client-engine-runtime": "7.10.0-dev.44",
28
+ "@prisma/dmmf": "7.10.0-dev.44",
29
+ "@prisma/driver-adapter-utils": "7.10.0-dev.44",
30
+ "@prisma/internals": "7.10.0-dev.44",
31
+ "@prisma/generator": "7.10.0-dev.44",
32
+ "@prisma/param-graph": "7.10.0-dev.44"
33
33
  },
34
34
  "files": [
35
35
  "dist"