prisma 6.17.0-dev.6 → 6.17.0-dev.8
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/build/index.js +10 -10
- package/package.json +14 -14
- package/prisma-client/generator-build/index.js +32 -30
- package/prisma-client/package.json +1 -1
- package/prisma-client/runtime/binary.js +4 -4
- package/prisma-client/runtime/binary.js.map +2 -2
- package/prisma-client/runtime/binary.mjs +3 -3
- package/prisma-client/runtime/binary.mjs.map +2 -2
- package/prisma-client/runtime/client.js +3 -3
- package/prisma-client/runtime/client.js.map +2 -2
- package/prisma-client/runtime/client.mjs +3 -3
- package/prisma-client/runtime/client.mjs.map +2 -2
- package/prisma-client/runtime/edge-esm.js +3 -3
- package/prisma-client/runtime/edge-esm.js.map +4 -4
- package/prisma-client/runtime/edge.js +3 -3
- package/prisma-client/runtime/edge.js.map +4 -4
- package/prisma-client/runtime/library.js +25 -25
- package/prisma-client/runtime/library.js.map +2 -2
- package/prisma-client/runtime/library.mjs +24 -24
- package/prisma-client/runtime/library.mjs.map +2 -2
- package/prisma-client/runtime/react-native.js +3 -3
- package/prisma-client/runtime/react-native.js.map +4 -4
- package/prisma-client/scripts/default-index.js +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "6.17.0-dev.
|
|
2
|
+
"version": "6.17.0-dev.8",
|
|
3
3
|
"name": "prisma",
|
|
4
4
|
"description": "Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",
|
|
5
5
|
"keywords": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"node": ">=18.18"
|
|
43
43
|
},
|
|
44
44
|
"prisma": {
|
|
45
|
-
"prismaCommit": "
|
|
45
|
+
"prismaCommit": "92cfcf9a3056224fabf0a80768caf6f0bfbd0e79"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
48
48
|
"README.md",
|
|
@@ -138,20 +138,20 @@
|
|
|
138
138
|
"typescript": "5.4.5",
|
|
139
139
|
"xdg-app-paths": "8.3.0",
|
|
140
140
|
"zod": "3.24.2",
|
|
141
|
-
"@prisma/
|
|
142
|
-
"@prisma/
|
|
143
|
-
"@prisma/
|
|
144
|
-
"@prisma/
|
|
145
|
-
"@prisma/
|
|
146
|
-
"@prisma/
|
|
147
|
-
"@prisma/
|
|
148
|
-
"@prisma/
|
|
149
|
-
"@prisma/
|
|
150
|
-
"@prisma/migrate": "6.17.0-dev.
|
|
141
|
+
"@prisma/client": "6.17.0-dev.8",
|
|
142
|
+
"@prisma/adapter-libsql": "6.17.0-dev.8",
|
|
143
|
+
"@prisma/client-generator-registry": "6.17.0-dev.8",
|
|
144
|
+
"@prisma/debug": "6.17.0-dev.8",
|
|
145
|
+
"@prisma/fetch-engine": "6.17.0-dev.8",
|
|
146
|
+
"@prisma/dmmf": "6.17.0-dev.8",
|
|
147
|
+
"@prisma/get-platform": "6.17.0-dev.8",
|
|
148
|
+
"@prisma/internals": "6.17.0-dev.8",
|
|
149
|
+
"@prisma/generator": "6.17.0-dev.8",
|
|
150
|
+
"@prisma/migrate": "6.17.0-dev.8"
|
|
151
151
|
},
|
|
152
152
|
"dependencies": {
|
|
153
|
-
"@prisma/config": "6.17.0-dev.
|
|
154
|
-
"@prisma/engines": "6.17.0-dev.
|
|
153
|
+
"@prisma/config": "6.17.0-dev.8",
|
|
154
|
+
"@prisma/engines": "6.17.0-dev.8"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
157
|
"typescript": ">=5.1.0"
|
|
@@ -7186,6 +7186,10 @@ function execaCommand(command, options2) {
|
|
|
7186
7186
|
return execa(file2, args, options2);
|
|
7187
7187
|
}
|
|
7188
7188
|
|
|
7189
|
+
// ../fetch-engine/src/utils.ts
|
|
7190
|
+
var import_node_fs3 = __toESM(require("node:fs"));
|
|
7191
|
+
var import_node_os4 = __toESM(require("node:os"));
|
|
7192
|
+
|
|
7189
7193
|
// ../../node_modules/.pnpm/find-cache-dir@5.0.0/node_modules/find-cache-dir/index.js
|
|
7190
7194
|
var import_node_process5 = __toESM(require("node:process"), 1);
|
|
7191
7195
|
var import_common_path_prefix = __toESM(require_common_path_prefix(), 1);
|
|
@@ -7197,22 +7201,20 @@ var findUpStop = Symbol("findUpStop");
|
|
|
7197
7201
|
var { env, cwd } = import_node_process5.default;
|
|
7198
7202
|
|
|
7199
7203
|
// ../fetch-engine/src/utils.ts
|
|
7200
|
-
var import_fs = __toESM(require("fs"));
|
|
7201
|
-
var import_os = __toESM(require("os"));
|
|
7202
7204
|
var debug = src_default("prisma:fetch-engine:cache-dir");
|
|
7203
7205
|
async function overwriteFile(sourcePath, targetPath) {
|
|
7204
|
-
if (
|
|
7206
|
+
if (import_node_os4.default.platform() === "darwin") {
|
|
7205
7207
|
await removeFileIfExists(targetPath);
|
|
7206
|
-
await
|
|
7208
|
+
await import_node_fs3.default.promises.copyFile(sourcePath, targetPath);
|
|
7207
7209
|
} else {
|
|
7208
7210
|
const tempPath = `${targetPath}.tmp${process.pid}`;
|
|
7209
|
-
await
|
|
7210
|
-
await
|
|
7211
|
+
await import_node_fs3.default.promises.copyFile(sourcePath, tempPath);
|
|
7212
|
+
await import_node_fs3.default.promises.rename(tempPath, targetPath);
|
|
7211
7213
|
}
|
|
7212
7214
|
}
|
|
7213
7215
|
async function removeFileIfExists(filePath) {
|
|
7214
7216
|
try {
|
|
7215
|
-
await
|
|
7217
|
+
await import_node_fs3.default.promises.unlink(filePath);
|
|
7216
7218
|
} catch (e2) {
|
|
7217
7219
|
if (e2.code !== "ENOENT") {
|
|
7218
7220
|
throw e2;
|
|
@@ -7525,7 +7527,7 @@ function setClassName(classObject, name) {
|
|
|
7525
7527
|
// ../client-generator-js/src/generateClient.ts
|
|
7526
7528
|
var import_crypto2 = require("crypto");
|
|
7527
7529
|
var import_env_paths = __toESM(require_env_paths());
|
|
7528
|
-
var
|
|
7530
|
+
var import_fs = require("fs");
|
|
7529
7531
|
var import_promises3 = __toESM(require("fs/promises"));
|
|
7530
7532
|
var import_fs_extra = __toESM(require_lib());
|
|
7531
7533
|
|
|
@@ -7574,7 +7576,7 @@ var import_path6 = __toESM(require("path"));
|
|
|
7574
7576
|
// package.json
|
|
7575
7577
|
var package_default = {
|
|
7576
7578
|
name: "@prisma/client",
|
|
7577
|
-
version: "6.17.0-dev.
|
|
7579
|
+
version: "6.17.0-dev.8",
|
|
7578
7580
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
7579
7581
|
keywords: [
|
|
7580
7582
|
"ORM",
|
|
@@ -13338,7 +13340,7 @@ async function getDefaultOutdir(outputDir) {
|
|
|
13338
13340
|
return import_path6.default.join(outputDir, "../../.prisma/client");
|
|
13339
13341
|
}
|
|
13340
13342
|
if (process.env.INIT_CWD && process.env.npm_lifecycle_event === "postinstall" && !process.env.PWD?.includes(".pnpm")) {
|
|
13341
|
-
if ((0,
|
|
13343
|
+
if ((0, import_fs.existsSync)(import_path6.default.join(process.env.INIT_CWD, "package.json"))) {
|
|
13342
13344
|
return import_path6.default.join(process.env.INIT_CWD, "node_modules/.prisma/client");
|
|
13343
13345
|
}
|
|
13344
13346
|
const packagePath = await packageUp({ cwd: process.env.INIT_CWD });
|
|
@@ -13690,27 +13692,27 @@ var import_node_path6 = __toESM(require("node:path"));
|
|
|
13690
13692
|
var import_engines_version = __toESM(require_engines_version());
|
|
13691
13693
|
|
|
13692
13694
|
// ../client-generator-js/package.json
|
|
13693
|
-
var version = "6.17.0-dev.
|
|
13695
|
+
var version = "6.17.0-dev.8";
|
|
13694
13696
|
|
|
13695
13697
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
13696
13698
|
var import_promises6 = __toESM(require("node:fs/promises"));
|
|
13697
13699
|
var import_node_path5 = __toESM(require("node:path"));
|
|
13698
13700
|
|
|
13699
13701
|
// ../../node_modules/.pnpm/@antfu+ni@0.21.12/node_modules/@antfu/ni/dist/shared/ni.f699cf8a.mjs
|
|
13700
|
-
var
|
|
13702
|
+
var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
13701
13703
|
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
13702
13704
|
var import_node_process8 = __toESM(require("node:process"), 1);
|
|
13703
13705
|
var import_node_buffer3 = require("node:buffer");
|
|
13704
13706
|
var import_node_child_process4 = __toESM(require("node:child_process"), 1);
|
|
13705
13707
|
var import_child_process = __toESM(require("child_process"), 1);
|
|
13706
13708
|
var import_path7 = __toESM(require("path"), 1);
|
|
13707
|
-
var
|
|
13709
|
+
var import_fs2 = __toESM(require("fs"), 1);
|
|
13708
13710
|
var import_node_url3 = __toESM(require("node:url"), 1);
|
|
13709
|
-
var
|
|
13711
|
+
var import_node_os5 = __toESM(require("node:os"), 1);
|
|
13710
13712
|
var import_promises4 = require("node:timers/promises");
|
|
13711
13713
|
var import_stream3 = __toESM(require("stream"), 1);
|
|
13712
13714
|
var import_node_util2 = require("node:util");
|
|
13713
|
-
var
|
|
13715
|
+
var import_os = __toESM(require("os"), 1);
|
|
13714
13716
|
var import_tty = __toESM(require("tty"), 1);
|
|
13715
13717
|
var import_readline = __toESM(require("readline"), 1);
|
|
13716
13718
|
var import_events = __toESM(require("events"), 1);
|
|
@@ -13824,7 +13826,7 @@ function requireWindows() {
|
|
|
13824
13826
|
hasRequiredWindows = 1;
|
|
13825
13827
|
windows = isexe2;
|
|
13826
13828
|
isexe2.sync = sync2;
|
|
13827
|
-
var fs5 =
|
|
13829
|
+
var fs5 = import_fs2.default;
|
|
13828
13830
|
function checkPathExt2(path14, options2) {
|
|
13829
13831
|
var pathext = options2.pathExt !== void 0 ? options2.pathExt : process.env.PATHEXT;
|
|
13830
13832
|
if (!pathext) {
|
|
@@ -13865,7 +13867,7 @@ function requireMode() {
|
|
|
13865
13867
|
hasRequiredMode = 1;
|
|
13866
13868
|
mode = isexe2;
|
|
13867
13869
|
isexe2.sync = sync2;
|
|
13868
|
-
var fs5 =
|
|
13870
|
+
var fs5 = import_fs2.default;
|
|
13869
13871
|
function isexe2(path14, options2, cb) {
|
|
13870
13872
|
fs5.stat(path14, function(er, stat) {
|
|
13871
13873
|
cb(er, er ? false : checkStat2(stat, options2));
|
|
@@ -14110,7 +14112,7 @@ var shebangCommand$1 = (string = "") => {
|
|
|
14110
14112
|
}
|
|
14111
14113
|
return argument ? `${binary} ${argument}` : binary;
|
|
14112
14114
|
};
|
|
14113
|
-
var fs3 =
|
|
14115
|
+
var fs3 = import_fs2.default;
|
|
14114
14116
|
var shebangCommand = shebangCommand$1;
|
|
14115
14117
|
function readShebang$1(command) {
|
|
14116
14118
|
const size = 150;
|
|
@@ -14661,7 +14663,7 @@ var normalizeSignal2 = ({
|
|
|
14661
14663
|
}) => {
|
|
14662
14664
|
const {
|
|
14663
14665
|
signals: { [name]: constantSignal }
|
|
14664
|
-
} =
|
|
14666
|
+
} = import_node_os5.constants;
|
|
14665
14667
|
const supported = constantSignal !== void 0;
|
|
14666
14668
|
const number2 = supported ? constantSignal : defaultNumber;
|
|
14667
14669
|
return { name, number: number2, description, supported, action: action2, forced, standard };
|
|
@@ -14708,7 +14710,7 @@ var getSignalByNumber2 = (number2, signals3) => {
|
|
|
14708
14710
|
};
|
|
14709
14711
|
};
|
|
14710
14712
|
var findSignalByNumber2 = (number2, signals3) => {
|
|
14711
|
-
const signal = signals3.find(({ name }) =>
|
|
14713
|
+
const signal = signals3.find(({ name }) => import_node_os5.constants.signals[name] === number2);
|
|
14712
14714
|
if (signal !== void 0) {
|
|
14713
14715
|
return signal;
|
|
14714
14716
|
}
|
|
@@ -15072,7 +15074,7 @@ var setKillTimeout2 = (kill, signal, options2, killResult) => {
|
|
|
15072
15074
|
}
|
|
15073
15075
|
};
|
|
15074
15076
|
var shouldForceKill2 = (signal, { forceKillAfterTimeout }, killResult) => isSigterm2(signal) && forceKillAfterTimeout !== false && killResult;
|
|
15075
|
-
var isSigterm2 = (signal) => signal ===
|
|
15077
|
+
var isSigterm2 = (signal) => signal === import_node_os5.default.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
15076
15078
|
var getForceKillAfterTimeout2 = ({ forceKillAfterTimeout = true }) => {
|
|
15077
15079
|
if (forceKillAfterTimeout === true) {
|
|
15078
15080
|
return DEFAULT_FORCE_KILL_TIMEOUT2;
|
|
@@ -15132,7 +15134,7 @@ function isWritableStream2(stream2) {
|
|
|
15132
15134
|
var isExecaChildProcess2 = (target) => target instanceof import_node_child_process4.ChildProcess && typeof target.then === "function";
|
|
15133
15135
|
var pipeToTarget2 = (spawned, streamName, target) => {
|
|
15134
15136
|
if (typeof target === "string") {
|
|
15135
|
-
spawned[streamName].pipe((0,
|
|
15137
|
+
spawned[streamName].pipe((0, import_node_fs4.createWriteStream)(target));
|
|
15136
15138
|
return spawned;
|
|
15137
15139
|
}
|
|
15138
15140
|
if (isWritableStream2(target)) {
|
|
@@ -15375,7 +15377,7 @@ var getInput2 = ({ input, inputFile }) => {
|
|
|
15375
15377
|
return input;
|
|
15376
15378
|
}
|
|
15377
15379
|
validateInputOptions2(input);
|
|
15378
|
-
return (0,
|
|
15380
|
+
return (0, import_node_fs4.createReadStream)(inputFile);
|
|
15379
15381
|
};
|
|
15380
15382
|
var handleInput2 = (spawned, options2) => {
|
|
15381
15383
|
const input = getInput2(options2);
|
|
@@ -15786,7 +15788,7 @@ async function locatePath2(paths2, {
|
|
|
15786
15788
|
} = {}) {
|
|
15787
15789
|
checkType(type);
|
|
15788
15790
|
cwd2 = toPath$1(cwd2);
|
|
15789
|
-
const statFunction = allowSymlinks ?
|
|
15791
|
+
const statFunction = allowSymlinks ? import_node_fs4.promises.stat : import_node_fs4.promises.lstat;
|
|
15790
15792
|
return pLocate2(paths2, async (path_) => {
|
|
15791
15793
|
try {
|
|
15792
15794
|
const stat = await statFunction(import_node_path4.default.resolve(cwd2, path_));
|
|
@@ -15959,7 +15961,7 @@ var hasFlag$2 = (flag, argv = process.argv) => {
|
|
|
15959
15961
|
const terminatorPosition = argv.indexOf("--");
|
|
15960
15962
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
15961
15963
|
};
|
|
15962
|
-
var os3 =
|
|
15964
|
+
var os3 = import_os.default;
|
|
15963
15965
|
var tty = import_tty.default;
|
|
15964
15966
|
var hasFlag$1 = hasFlag$2;
|
|
15965
15967
|
var { env: env2 } = process;
|
|
@@ -18224,7 +18226,7 @@ var cjs = {};
|
|
|
18224
18226
|
var posix$1 = {};
|
|
18225
18227
|
Object.defineProperty(posix$1, "__esModule", { value: true });
|
|
18226
18228
|
posix$1.sync = posix$1.isexe = void 0;
|
|
18227
|
-
var fs_1$1 =
|
|
18229
|
+
var fs_1$1 = import_fs2.default;
|
|
18228
18230
|
var promises_1$1 = import_promises5.default;
|
|
18229
18231
|
var isexe$2 = async (path14, options2 = {}) => {
|
|
18230
18232
|
const { ignoreErrors = false } = options2;
|
|
@@ -18271,7 +18273,7 @@ var checkMode = (stat, options2) => {
|
|
|
18271
18273
|
var win32 = {};
|
|
18272
18274
|
Object.defineProperty(win32, "__esModule", { value: true });
|
|
18273
18275
|
win32.sync = win32.isexe = void 0;
|
|
18274
|
-
var fs_1 =
|
|
18276
|
+
var fs_1 = import_fs2.default;
|
|
18275
18277
|
var promises_1 = import_promises5.default;
|
|
18276
18278
|
var isexe$1 = async (path14, options2 = {}) => {
|
|
18277
18279
|
const { ignoreErrors = false } = options2;
|
|
@@ -18441,7 +18443,7 @@ var whichSync = (cmd, opt = {}) => {
|
|
|
18441
18443
|
var lib = which;
|
|
18442
18444
|
which.sync = whichSync;
|
|
18443
18445
|
var which$1 = /* @__PURE__ */ getDefaultExportFromCjs(lib);
|
|
18444
|
-
var CLI_TEMP_DIR = (0, import_node_path4.join)(
|
|
18446
|
+
var CLI_TEMP_DIR = (0, import_node_path4.join)(import_node_os5.default.tmpdir(), "antfu-ni");
|
|
18445
18447
|
function cmdExists(cmd) {
|
|
18446
18448
|
return which$1.sync(cmd, { nothrow: true }) !== null;
|
|
18447
18449
|
}
|
|
@@ -18454,9 +18456,9 @@ async function detect({ autoInstall, programmatic, cwd: cwd2 } = {}) {
|
|
|
18454
18456
|
packageJsonPath = import_node_path4.default.resolve(lockPath, "../package.json");
|
|
18455
18457
|
else
|
|
18456
18458
|
packageJsonPath = await findUp3("package.json", { cwd: cwd2 });
|
|
18457
|
-
if (packageJsonPath &&
|
|
18459
|
+
if (packageJsonPath && import_node_fs4.default.existsSync(packageJsonPath)) {
|
|
18458
18460
|
try {
|
|
18459
|
-
const pkg = JSON.parse(
|
|
18461
|
+
const pkg = JSON.parse(import_node_fs4.default.readFileSync(packageJsonPath, "utf8"));
|
|
18460
18462
|
if (typeof pkg.packageManager === "string") {
|
|
18461
18463
|
const [name, ver] = pkg.packageManager.replace(/^\^/, "").split("@");
|
|
18462
18464
|
version2 = ver;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "6.17.0-dev.
|
|
3
|
+
"version": "6.17.0-dev.8",
|
|
4
4
|
"description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ORM",
|