@prisma/client-generator-js 6.8.0-dev.20 → 6.8.0-dev.21

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/index.js CHANGED
@@ -6644,6 +6644,20 @@ function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
6644
6644
  return `config.engineWasm = undefined`;
6645
6645
  }
6646
6646
 
6647
+ // src/utils/buildInlineDatasources.ts
6648
+ function buildInlineDatasources(datasources) {
6649
+ return datasources.reduce((acc, ds) => {
6650
+ return acc[ds.name] = buildInlineDatasource(ds), acc;
6651
+ }, {});
6652
+ }
6653
+ function buildInlineDatasource(ds) {
6654
+ if (ds.url.fromEnvVar) {
6655
+ return { url: { fromEnvVar: ds.url.fromEnvVar, value: null } };
6656
+ } else {
6657
+ return { url: { fromEnvVar: null, value: ds.url.value } };
6658
+ }
6659
+ }
6660
+
6647
6661
  // src/utils/buildNFTAnnotations.ts
6648
6662
  var import_get_platform = require("@prisma/get-platform");
6649
6663
  var import_internals5 = require("@prisma/internals");
@@ -7991,9 +8005,7 @@ var TSClient = class {
7991
8005
  activeProvider: this.options.activeProvider,
7992
8006
  postinstall: this.options.postinstall,
7993
8007
  ciName: import_ci_info.default.name ?? void 0,
7994
- inlineDatasources: datasources.reduce((acc, ds) => {
7995
- return acc[ds.name] = { url: ds.url }, acc;
7996
- }, {}),
8008
+ inlineDatasources: buildInlineDatasources(datasources),
7997
8009
  inlineSchema,
7998
8010
  inlineSchemaHash,
7999
8011
  copyEngine
@@ -9110,7 +9122,7 @@ var import_internals12 = require("@prisma/internals");
9110
9122
  var import_ts_pattern = require("ts-pattern");
9111
9123
 
9112
9124
  // package.json
9113
- var version = "6.8.0-dev.20";
9125
+ var version = "6.8.0-dev.21";
9114
9126
 
9115
9127
  // src/resolvePrismaClient.ts
9116
9128
  var import_promises2 = __toESM(require("node:fs/promises"));
package/dist/index.mjs CHANGED
@@ -6642,6 +6642,20 @@ function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
6642
6642
  return `config.engineWasm = undefined`;
6643
6643
  }
6644
6644
 
6645
+ // src/utils/buildInlineDatasources.ts
6646
+ function buildInlineDatasources(datasources) {
6647
+ return datasources.reduce((acc, ds) => {
6648
+ return acc[ds.name] = buildInlineDatasource(ds), acc;
6649
+ }, {});
6650
+ }
6651
+ function buildInlineDatasource(ds) {
6652
+ if (ds.url.fromEnvVar) {
6653
+ return { url: { fromEnvVar: ds.url.fromEnvVar, value: null } };
6654
+ } else {
6655
+ return { url: { fromEnvVar: null, value: ds.url.value } };
6656
+ }
6657
+ }
6658
+
6645
6659
  // src/utils/buildNFTAnnotations.ts
6646
6660
  import { getNodeAPIName } from "@prisma/get-platform";
6647
6661
  import { ClientEngineType, parseAWSNodejsRuntimeEnvVarVersion, pathToPosix as pathToPosix2 } from "@prisma/internals";
@@ -7989,9 +8003,7 @@ var TSClient = class {
7989
8003
  activeProvider: this.options.activeProvider,
7990
8004
  postinstall: this.options.postinstall,
7991
8005
  ciName: ciInfo.name ?? void 0,
7992
- inlineDatasources: datasources.reduce((acc, ds) => {
7993
- return acc[ds.name] = { url: ds.url }, acc;
7994
- }, {}),
8006
+ inlineDatasources: buildInlineDatasources(datasources),
7995
8007
  inlineSchema,
7996
8008
  inlineSchemaHash,
7997
8009
  copyEngine
@@ -9108,7 +9120,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
9108
9120
  import { match } from "ts-pattern";
9109
9121
 
9110
9122
  // package.json
9111
- var version = "6.8.0-dev.20";
9123
+ var version = "6.8.0-dev.21";
9112
9124
 
9113
9125
  // src/resolvePrismaClient.ts
9114
9126
  var import_execa = __toESM(require_execa());
@@ -0,0 +1,3 @@
1
+ import type { GetPrismaClientConfig } from '@prisma/client-common';
2
+ import { DataSource } from '@prisma/generator';
3
+ export declare function buildInlineDatasources(datasources: DataSource[]): GetPrismaClientConfig['inlineDatasources'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-js",
3
- "version": "6.8.0-dev.20",
3
+ "version": "6.8.0-dev.21",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,14 +33,14 @@
33
33
  "pkg-up": "3.1.0",
34
34
  "pluralize": "8.0.0",
35
35
  "ts-pattern": "5.6.2",
36
- "@prisma/client-common": "6.8.0-dev.20",
37
- "@prisma/debug": "6.8.0-dev.20",
38
- "@prisma/fetch-engine": "6.8.0-dev.20",
39
- "@prisma/dmmf": "6.8.0-dev.20",
40
- "@prisma/generator": "6.8.0-dev.20",
41
- "@prisma/get-platform": "6.8.0-dev.20",
42
- "@prisma/internals": "6.8.0-dev.20",
43
- "@prisma/ts-builders": "6.8.0-dev.20"
36
+ "@prisma/client-common": "6.8.0-dev.21",
37
+ "@prisma/debug": "6.8.0-dev.21",
38
+ "@prisma/dmmf": "6.8.0-dev.21",
39
+ "@prisma/get-platform": "6.8.0-dev.21",
40
+ "@prisma/generator": "6.8.0-dev.21",
41
+ "@prisma/fetch-engine": "6.8.0-dev.21",
42
+ "@prisma/internals": "6.8.0-dev.21",
43
+ "@prisma/ts-builders": "6.8.0-dev.21"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/pluralize": "0.0.33",