@prisma/client-generator-js 6.16.0-dev.2 → 6.16.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 +11 -13
- package/dist/index.mjs +11 -13
- package/package.json +12 -13
package/dist/index.js
CHANGED
|
@@ -4243,8 +4243,8 @@ var bgCyan = init(46, 49);
|
|
|
4243
4243
|
var bgWhite = init(47, 49);
|
|
4244
4244
|
|
|
4245
4245
|
// src/generateClient.ts
|
|
4246
|
+
var import_package_up = require("package-up");
|
|
4246
4247
|
var import_path3 = __toESM(require("path"));
|
|
4247
|
-
var import_pkg_up = __toESM(require("pkg-up"));
|
|
4248
4248
|
|
|
4249
4249
|
// ../client/package.json
|
|
4250
4250
|
var package_default = {
|
|
@@ -4466,7 +4466,7 @@ var package_default = {
|
|
|
4466
4466
|
"@jest/create-cache-key-function": "29.7.0",
|
|
4467
4467
|
"@jest/globals": "29.7.0",
|
|
4468
4468
|
"@jest/test-sequencer": "29.7.0",
|
|
4469
|
-
"@libsql/client": "0.8.
|
|
4469
|
+
"@libsql/client": "0.8.1",
|
|
4470
4470
|
"@neondatabase/serverless": "0.10.2",
|
|
4471
4471
|
"@opentelemetry/api": "1.9.0",
|
|
4472
4472
|
"@opentelemetry/context-async-hooks": "2.0.0",
|
|
@@ -4492,7 +4492,7 @@ var package_default = {
|
|
|
4492
4492
|
"@prisma/dmmf": "workspace:*",
|
|
4493
4493
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
4494
4494
|
"@prisma/engines": "workspace:*",
|
|
4495
|
-
"@prisma/engines-version": "6.16.0-
|
|
4495
|
+
"@prisma/engines-version": "6.16.0-5.66f07015fb4a0f9195e6e97dca56186a2f4cad17",
|
|
4496
4496
|
"@prisma/fetch-engine": "workspace:*",
|
|
4497
4497
|
"@prisma/generator": "workspace:*",
|
|
4498
4498
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -4501,8 +4501,8 @@ var package_default = {
|
|
|
4501
4501
|
"@prisma/internals": "workspace:*",
|
|
4502
4502
|
"@prisma/migrate": "workspace:*",
|
|
4503
4503
|
"@prisma/mini-proxy": "0.9.5",
|
|
4504
|
-
"@prisma/query-compiler-wasm": "6.16.0-
|
|
4505
|
-
"@prisma/query-engine-wasm": "6.16.0-
|
|
4504
|
+
"@prisma/query-compiler-wasm": "6.16.0-5.66f07015fb4a0f9195e6e97dca56186a2f4cad17",
|
|
4505
|
+
"@prisma/query-engine-wasm": "6.16.0-5.66f07015fb4a0f9195e6e97dca56186a2f4cad17",
|
|
4506
4506
|
"@prisma/ts-builders": "workspace:*",
|
|
4507
4507
|
"@snaplet/copycat": "6.0.0",
|
|
4508
4508
|
"@swc-node/register": "1.10.9",
|
|
@@ -4520,7 +4520,6 @@ var package_default = {
|
|
|
4520
4520
|
benchmark: "2.1.4",
|
|
4521
4521
|
"cookie-es": "2.0.0",
|
|
4522
4522
|
"decimal.js": "10.5.0",
|
|
4523
|
-
esbuild: "0.25.5",
|
|
4524
4523
|
execa: "5.1.1",
|
|
4525
4524
|
"expect-type": "1.2.2",
|
|
4526
4525
|
"fs-extra": "11.3.0",
|
|
@@ -4535,7 +4534,7 @@ var package_default = {
|
|
|
4535
4534
|
"js-levenshtein": "1.1.6",
|
|
4536
4535
|
kleur: "4.1.5",
|
|
4537
4536
|
klona: "2.0.6",
|
|
4538
|
-
mariadb: "3.4.
|
|
4537
|
+
mariadb: "3.4.5",
|
|
4539
4538
|
memfs: "4.17.2",
|
|
4540
4539
|
mssql: "11.0.1",
|
|
4541
4540
|
"new-github-issue-url": "0.2.1",
|
|
@@ -4548,10 +4547,9 @@ var package_default = {
|
|
|
4548
4547
|
"source-map-support": "0.5.21",
|
|
4549
4548
|
"sql-template-tag": "5.2.1",
|
|
4550
4549
|
"stacktrace-parser": "0.1.11",
|
|
4551
|
-
"strip-ansi": "
|
|
4550
|
+
"strip-ansi": "7.1.0",
|
|
4552
4551
|
"strip-indent": "4.0.0",
|
|
4553
4552
|
tempy: "3.0.0",
|
|
4554
|
-
"ts-node": "10.9.2",
|
|
4555
4553
|
"ts-pattern": "5.6.2",
|
|
4556
4554
|
tsd: "0.31.2",
|
|
4557
4555
|
typescript: "5.4.5",
|
|
@@ -8541,7 +8539,7 @@ function buildTypedSql({
|
|
|
8541
8539
|
fileMap[`${query.name}.js`] = buildTypedQueryCjs(options);
|
|
8542
8540
|
fileMap[`${query.name}.${edgeRuntimeName}.js`] = buildTypedQueryCjs(edgeOptions);
|
|
8543
8541
|
fileMap[`${query.name}.mjs`] = buildTypedQueryEsm(options);
|
|
8544
|
-
fileMap[`${query.name}.
|
|
8542
|
+
fileMap[`${query.name}.${edgeRuntimeName}.mjs`] = buildTypedQueryEsm(edgeOptions);
|
|
8545
8543
|
}
|
|
8546
8544
|
fileMap["index.d.ts"] = buildIndexTs(queries, enums);
|
|
8547
8545
|
fileMap["index.js"] = buildIndexCjs(queries);
|
|
@@ -8799,7 +8797,7 @@ async function getDefaultOutdir(outputDir) {
|
|
|
8799
8797
|
if ((0, import_fs.existsSync)(import_path3.default.join(process.env.INIT_CWD, "package.json"))) {
|
|
8800
8798
|
return import_path3.default.join(process.env.INIT_CWD, "node_modules/.prisma/client");
|
|
8801
8799
|
}
|
|
8802
|
-
const packagePath = await (0,
|
|
8800
|
+
const packagePath = await (0, import_package_up.packageUp)({ cwd: process.env.INIT_CWD });
|
|
8803
8801
|
if (packagePath) {
|
|
8804
8802
|
return import_path3.default.join(import_path3.default.dirname(packagePath), "node_modules/.prisma/client");
|
|
8805
8803
|
}
|
|
@@ -9026,7 +9024,7 @@ async function getGenerationDirs({
|
|
|
9026
9024
|
if (isCustomOutput) {
|
|
9027
9025
|
await verifyOutputDirectory(userOutputDir, datamodel, schemaPath);
|
|
9028
9026
|
}
|
|
9029
|
-
const userPackageRoot = await (0,
|
|
9027
|
+
const userPackageRoot = await (0, import_package_up.packageUp)({ cwd: import_path3.default.dirname(userOutputDir) });
|
|
9030
9028
|
const userProjectRoot = userPackageRoot ? import_path3.default.dirname(userPackageRoot) : process.cwd();
|
|
9031
9029
|
return {
|
|
9032
9030
|
runtimeBase: userRuntimeImport,
|
|
@@ -9153,7 +9151,7 @@ var import_internals12 = require("@prisma/internals");
|
|
|
9153
9151
|
var import_ts_pattern = require("ts-pattern");
|
|
9154
9152
|
|
|
9155
9153
|
// package.json
|
|
9156
|
-
var version = "6.16.0-dev.
|
|
9154
|
+
var version = "6.16.0-dev.21";
|
|
9157
9155
|
|
|
9158
9156
|
// src/resolvePrismaClient.ts
|
|
9159
9157
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -4238,8 +4238,8 @@ var bgCyan = init(46, 49);
|
|
|
4238
4238
|
var bgWhite = init(47, 49);
|
|
4239
4239
|
|
|
4240
4240
|
// src/generateClient.ts
|
|
4241
|
+
import { packageUp } from "package-up";
|
|
4241
4242
|
import path3 from "path";
|
|
4242
|
-
import pkgUp from "pkg-up";
|
|
4243
4243
|
|
|
4244
4244
|
// ../client/package.json
|
|
4245
4245
|
var package_default = {
|
|
@@ -4461,7 +4461,7 @@ var package_default = {
|
|
|
4461
4461
|
"@jest/create-cache-key-function": "29.7.0",
|
|
4462
4462
|
"@jest/globals": "29.7.0",
|
|
4463
4463
|
"@jest/test-sequencer": "29.7.0",
|
|
4464
|
-
"@libsql/client": "0.8.
|
|
4464
|
+
"@libsql/client": "0.8.1",
|
|
4465
4465
|
"@neondatabase/serverless": "0.10.2",
|
|
4466
4466
|
"@opentelemetry/api": "1.9.0",
|
|
4467
4467
|
"@opentelemetry/context-async-hooks": "2.0.0",
|
|
@@ -4487,7 +4487,7 @@ var package_default = {
|
|
|
4487
4487
|
"@prisma/dmmf": "workspace:*",
|
|
4488
4488
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
4489
4489
|
"@prisma/engines": "workspace:*",
|
|
4490
|
-
"@prisma/engines-version": "6.16.0-
|
|
4490
|
+
"@prisma/engines-version": "6.16.0-5.66f07015fb4a0f9195e6e97dca56186a2f4cad17",
|
|
4491
4491
|
"@prisma/fetch-engine": "workspace:*",
|
|
4492
4492
|
"@prisma/generator": "workspace:*",
|
|
4493
4493
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -4496,8 +4496,8 @@ var package_default = {
|
|
|
4496
4496
|
"@prisma/internals": "workspace:*",
|
|
4497
4497
|
"@prisma/migrate": "workspace:*",
|
|
4498
4498
|
"@prisma/mini-proxy": "0.9.5",
|
|
4499
|
-
"@prisma/query-compiler-wasm": "6.16.0-
|
|
4500
|
-
"@prisma/query-engine-wasm": "6.16.0-
|
|
4499
|
+
"@prisma/query-compiler-wasm": "6.16.0-5.66f07015fb4a0f9195e6e97dca56186a2f4cad17",
|
|
4500
|
+
"@prisma/query-engine-wasm": "6.16.0-5.66f07015fb4a0f9195e6e97dca56186a2f4cad17",
|
|
4501
4501
|
"@prisma/ts-builders": "workspace:*",
|
|
4502
4502
|
"@snaplet/copycat": "6.0.0",
|
|
4503
4503
|
"@swc-node/register": "1.10.9",
|
|
@@ -4515,7 +4515,6 @@ var package_default = {
|
|
|
4515
4515
|
benchmark: "2.1.4",
|
|
4516
4516
|
"cookie-es": "2.0.0",
|
|
4517
4517
|
"decimal.js": "10.5.0",
|
|
4518
|
-
esbuild: "0.25.5",
|
|
4519
4518
|
execa: "5.1.1",
|
|
4520
4519
|
"expect-type": "1.2.2",
|
|
4521
4520
|
"fs-extra": "11.3.0",
|
|
@@ -4530,7 +4529,7 @@ var package_default = {
|
|
|
4530
4529
|
"js-levenshtein": "1.1.6",
|
|
4531
4530
|
kleur: "4.1.5",
|
|
4532
4531
|
klona: "2.0.6",
|
|
4533
|
-
mariadb: "3.4.
|
|
4532
|
+
mariadb: "3.4.5",
|
|
4534
4533
|
memfs: "4.17.2",
|
|
4535
4534
|
mssql: "11.0.1",
|
|
4536
4535
|
"new-github-issue-url": "0.2.1",
|
|
@@ -4543,10 +4542,9 @@ var package_default = {
|
|
|
4543
4542
|
"source-map-support": "0.5.21",
|
|
4544
4543
|
"sql-template-tag": "5.2.1",
|
|
4545
4544
|
"stacktrace-parser": "0.1.11",
|
|
4546
|
-
"strip-ansi": "
|
|
4545
|
+
"strip-ansi": "7.1.0",
|
|
4547
4546
|
"strip-indent": "4.0.0",
|
|
4548
4547
|
tempy: "3.0.0",
|
|
4549
|
-
"ts-node": "10.9.2",
|
|
4550
4548
|
"ts-pattern": "5.6.2",
|
|
4551
4549
|
tsd: "0.31.2",
|
|
4552
4550
|
typescript: "5.4.5",
|
|
@@ -8539,7 +8537,7 @@ function buildTypedSql({
|
|
|
8539
8537
|
fileMap[`${query.name}.js`] = buildTypedQueryCjs(options);
|
|
8540
8538
|
fileMap[`${query.name}.${edgeRuntimeName}.js`] = buildTypedQueryCjs(edgeOptions);
|
|
8541
8539
|
fileMap[`${query.name}.mjs`] = buildTypedQueryEsm(options);
|
|
8542
|
-
fileMap[`${query.name}.
|
|
8540
|
+
fileMap[`${query.name}.${edgeRuntimeName}.mjs`] = buildTypedQueryEsm(edgeOptions);
|
|
8543
8541
|
}
|
|
8544
8542
|
fileMap["index.d.ts"] = buildIndexTs(queries, enums);
|
|
8545
8543
|
fileMap["index.js"] = buildIndexCjs(queries);
|
|
@@ -8797,7 +8795,7 @@ async function getDefaultOutdir(outputDir) {
|
|
|
8797
8795
|
if (existsSync(path3.join(process.env.INIT_CWD, "package.json"))) {
|
|
8798
8796
|
return path3.join(process.env.INIT_CWD, "node_modules/.prisma/client");
|
|
8799
8797
|
}
|
|
8800
|
-
const packagePath = await
|
|
8798
|
+
const packagePath = await packageUp({ cwd: process.env.INIT_CWD });
|
|
8801
8799
|
if (packagePath) {
|
|
8802
8800
|
return path3.join(path3.dirname(packagePath), "node_modules/.prisma/client");
|
|
8803
8801
|
}
|
|
@@ -9024,7 +9022,7 @@ async function getGenerationDirs({
|
|
|
9024
9022
|
if (isCustomOutput) {
|
|
9025
9023
|
await verifyOutputDirectory(userOutputDir, datamodel, schemaPath);
|
|
9026
9024
|
}
|
|
9027
|
-
const userPackageRoot = await
|
|
9025
|
+
const userPackageRoot = await packageUp({ cwd: path3.dirname(userOutputDir) });
|
|
9028
9026
|
const userProjectRoot = userPackageRoot ? path3.dirname(userPackageRoot) : process.cwd();
|
|
9029
9027
|
return {
|
|
9030
9028
|
runtimeBase: userRuntimeImport,
|
|
@@ -9151,7 +9149,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
|
|
|
9151
9149
|
import { match } from "ts-pattern";
|
|
9152
9150
|
|
|
9153
9151
|
// package.json
|
|
9154
|
-
var version = "6.16.0-dev.
|
|
9152
|
+
var version = "6.16.0-dev.21";
|
|
9155
9153
|
|
|
9156
9154
|
// src/resolvePrismaClient.ts
|
|
9157
9155
|
var import_execa = __toESM(require_execa());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-js",
|
|
3
|
-
"version": "6.16.0-dev.
|
|
3
|
+
"version": "6.16.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",
|
|
@@ -25,27 +25,26 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antfu/ni": "0.21.12",
|
|
28
|
-
"@prisma/engines-version": "6.16.0-
|
|
28
|
+
"@prisma/engines-version": "6.16.0-5.66f07015fb4a0f9195e6e97dca56186a2f4cad17",
|
|
29
29
|
"ci-info": "4.2.0",
|
|
30
30
|
"env-paths": "2.2.1",
|
|
31
31
|
"indent-string": "4.0.0",
|
|
32
32
|
"klona": "2.0.6",
|
|
33
|
-
"
|
|
33
|
+
"package-up": "5.0.0",
|
|
34
34
|
"pluralize": "8.0.0",
|
|
35
35
|
"ts-pattern": "5.6.2",
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/fetch-engine": "6.16.0-dev.
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/
|
|
36
|
+
"@prisma/dmmf": "6.16.0-dev.21",
|
|
37
|
+
"@prisma/client-common": "6.16.0-dev.21",
|
|
38
|
+
"@prisma/fetch-engine": "6.16.0-dev.21",
|
|
39
|
+
"@prisma/debug": "6.16.0-dev.21",
|
|
40
|
+
"@prisma/generator": "6.16.0-dev.21",
|
|
41
|
+
"@prisma/get-platform": "6.16.0-dev.21",
|
|
42
|
+
"@prisma/ts-builders": "6.16.0-dev.21",
|
|
43
|
+
"@prisma/internals": "6.16.0-dev.21"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33",
|
|
47
|
-
"
|
|
48
|
-
"vitest": "3.0.9"
|
|
47
|
+
"vitest": "3.2.4"
|
|
49
48
|
},
|
|
50
49
|
"files": [
|
|
51
50
|
"dist"
|