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

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
@@ -4482,7 +4482,7 @@ var package_default = {
4482
4482
  "@prisma/dmmf": "workspace:*",
4483
4483
  "@prisma/driver-adapter-utils": "workspace:*",
4484
4484
  "@prisma/engines": "workspace:*",
4485
- "@prisma/engines-version": "6.8.0-19.58fa5f60a8b803a50ce32fa851fc9d96cf736711",
4485
+ "@prisma/engines-version": "6.8.0-26.b20bf51a50ac7029d4a91cda72a1f913c0319d3f",
4486
4486
  "@prisma/fetch-engine": "workspace:*",
4487
4487
  "@prisma/generator": "workspace:*",
4488
4488
  "@prisma/generator-helper": "workspace:*",
@@ -4492,8 +4492,8 @@ var package_default = {
4492
4492
  "@prisma/migrate": "workspace:*",
4493
4493
  "@prisma/mini-proxy": "0.9.5",
4494
4494
  "@prisma/pg-worker": "workspace:*",
4495
- "@prisma/query-compiler-wasm": "6.8.0-19.58fa5f60a8b803a50ce32fa851fc9d96cf736711",
4496
- "@prisma/query-engine-wasm": "6.8.0-19.58fa5f60a8b803a50ce32fa851fc9d96cf736711",
4495
+ "@prisma/query-compiler-wasm": "6.8.0-26.b20bf51a50ac7029d4a91cda72a1f913c0319d3f",
4496
+ "@prisma/query-engine-wasm": "6.8.0-26.b20bf51a50ac7029d4a91cda72a1f913c0319d3f",
4497
4497
  "@prisma/ts-builders": "workspace:*",
4498
4498
  "@snaplet/copycat": "6.0.0",
4499
4499
  "@swc-node/register": "1.10.9",
@@ -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.22";
9114
9126
 
9115
9127
  // src/resolvePrismaClient.ts
9116
9128
  var import_promises2 = __toESM(require("node:fs/promises"));
package/dist/index.mjs CHANGED
@@ -4477,7 +4477,7 @@ var package_default = {
4477
4477
  "@prisma/dmmf": "workspace:*",
4478
4478
  "@prisma/driver-adapter-utils": "workspace:*",
4479
4479
  "@prisma/engines": "workspace:*",
4480
- "@prisma/engines-version": "6.8.0-19.58fa5f60a8b803a50ce32fa851fc9d96cf736711",
4480
+ "@prisma/engines-version": "6.8.0-26.b20bf51a50ac7029d4a91cda72a1f913c0319d3f",
4481
4481
  "@prisma/fetch-engine": "workspace:*",
4482
4482
  "@prisma/generator": "workspace:*",
4483
4483
  "@prisma/generator-helper": "workspace:*",
@@ -4487,8 +4487,8 @@ var package_default = {
4487
4487
  "@prisma/migrate": "workspace:*",
4488
4488
  "@prisma/mini-proxy": "0.9.5",
4489
4489
  "@prisma/pg-worker": "workspace:*",
4490
- "@prisma/query-compiler-wasm": "6.8.0-19.58fa5f60a8b803a50ce32fa851fc9d96cf736711",
4491
- "@prisma/query-engine-wasm": "6.8.0-19.58fa5f60a8b803a50ce32fa851fc9d96cf736711",
4490
+ "@prisma/query-compiler-wasm": "6.8.0-26.b20bf51a50ac7029d4a91cda72a1f913c0319d3f",
4491
+ "@prisma/query-engine-wasm": "6.8.0-26.b20bf51a50ac7029d4a91cda72a1f913c0319d3f",
4492
4492
  "@prisma/ts-builders": "workspace:*",
4493
4493
  "@snaplet/copycat": "6.0.0",
4494
4494
  "@swc-node/register": "1.10.9",
@@ -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.22";
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.22",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
27
  "@antfu/ni": "0.21.12",
28
- "@prisma/engines-version": "6.8.0-19.58fa5f60a8b803a50ce32fa851fc9d96cf736711",
28
+ "@prisma/engines-version": "6.8.0-26.b20bf51a50ac7029d4a91cda72a1f913c0319d3f",
29
29
  "ci-info": "4.2.0",
30
30
  "env-paths": "2.2.1",
31
31
  "indent-string": "4.0.0",
@@ -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.22",
37
+ "@prisma/debug": "6.8.0-dev.22",
38
+ "@prisma/dmmf": "6.8.0-dev.22",
39
+ "@prisma/fetch-engine": "6.8.0-dev.22",
40
+ "@prisma/generator": "6.8.0-dev.22",
41
+ "@prisma/get-platform": "6.8.0-dev.22",
42
+ "@prisma/internals": "6.8.0-dev.22",
43
+ "@prisma/ts-builders": "6.8.0-dev.22"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/pluralize": "0.0.33",