@prisma/cli-init 0.0.0-dev.202510101331 → 0.0.0-dev.202510101424
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.
|
@@ -101966,7 +101966,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
101966
101966
|
const obj = parse(cookie);
|
|
101967
101967
|
return obj;
|
|
101968
101968
|
};
|
|
101969
|
-
var
|
|
101969
|
+
var HTTPException2 = class extends Error {
|
|
101970
101970
|
res;
|
|
101971
101971
|
status;
|
|
101972
101972
|
constructor(status = 500, options) {
|
|
@@ -102011,7 +102011,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
102011
102011
|
value = await c2.req.json();
|
|
102012
102012
|
} catch {
|
|
102013
102013
|
const message = "Malformed JSON in request body";
|
|
102014
|
-
throw new
|
|
102014
|
+
throw new HTTPException2(400, { message });
|
|
102015
102015
|
}
|
|
102016
102016
|
break;
|
|
102017
102017
|
case "form": {
|
|
@@ -102029,7 +102029,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
102029
102029
|
} catch (e2) {
|
|
102030
102030
|
let message = "Malformed FormData request.";
|
|
102031
102031
|
message += e2 instanceof Error ? ` ${e2.message}` : ` ${String(e2)}`;
|
|
102032
|
-
throw new
|
|
102032
|
+
throw new HTTPException2(400, { message });
|
|
102033
102033
|
}
|
|
102034
102034
|
}
|
|
102035
102035
|
const form = {};
|
|
@@ -108456,14 +108456,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
108456
108456
|
function isPromiseLike(value) {
|
|
108457
108457
|
return value != null && typeof value["then"] === "function";
|
|
108458
108458
|
}
|
|
108459
|
-
var
|
|
108459
|
+
var version4 = "6.18.0-dev.12";
|
|
108460
108460
|
function extractErrorFromUnknown(value) {
|
|
108461
108461
|
if (value instanceof Error) {
|
|
108462
108462
|
return value;
|
|
108463
108463
|
}
|
|
108464
108464
|
return String(value);
|
|
108465
108465
|
}
|
|
108466
|
-
var tracer = trace.getTracer("query-plan-executor",
|
|
108466
|
+
var tracer = trace.getTracer("query-plan-executor", version4);
|
|
108467
108467
|
function runInActiveSpan(nameOrOptions, fn2) {
|
|
108468
108468
|
const options = normalizeSpanOptions(nameOrOptions);
|
|
108469
108469
|
return tracer.startActiveSpan(options.name, options, async (span) => {
|
|
@@ -110817,7 +110817,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
110817
110817
|
error("Failed to parse client telemetry header", {
|
|
110818
110818
|
error: extractErrorFromUnknown(error44)
|
|
110819
110819
|
});
|
|
110820
|
-
throw new
|
|
110820
|
+
throw new HTTPException2(400, { message: "Malformed X-Capture-Telemetry header" });
|
|
110821
110821
|
}
|
|
110822
110822
|
}
|
|
110823
110823
|
async function tryGetJsonResponse(c2) {
|
|
@@ -110874,7 +110874,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
110874
110874
|
name: name6,
|
|
110875
110875
|
error: extractErrorFromUnknown(error44)
|
|
110876
110876
|
});
|
|
110877
|
-
throw new
|
|
110877
|
+
throw new HTTPException2(400, { message: `Malformed ${name6} header` });
|
|
110878
110878
|
}
|
|
110879
110879
|
}
|
|
110880
110880
|
function parseSizeFromHeaders(ctx, name6) {
|
|
@@ -110889,7 +110889,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
110889
110889
|
name: name6,
|
|
110890
110890
|
error: extractErrorFromUnknown(error44)
|
|
110891
110891
|
});
|
|
110892
|
-
throw new
|
|
110892
|
+
throw new HTTPException2(400, { message: `Malformed ${name6} header` });
|
|
110893
110893
|
}
|
|
110894
110894
|
}
|
|
110895
110895
|
function parseResourceLimitsFromHeadersWithDefaults(ctx, options) {
|
|
@@ -111392,7 +111392,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
111392
111392
|
toJSONSchema: () => toJSONSchema,
|
|
111393
111393
|
treeifyError: () => treeifyError,
|
|
111394
111394
|
util: () => util_exports,
|
|
111395
|
-
version: () =>
|
|
111395
|
+
version: () => version42
|
|
111396
111396
|
});
|
|
111397
111397
|
var NEVER = Object.freeze({
|
|
111398
111398
|
status: "aborted"
|
|
@@ -113038,7 +113038,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
113038
113038
|
return new F2(...args, lines.join("\n"));
|
|
113039
113039
|
}
|
|
113040
113040
|
};
|
|
113041
|
-
var
|
|
113041
|
+
var version42 = {
|
|
113042
113042
|
major: 4,
|
|
113043
113043
|
minor: 1,
|
|
113044
113044
|
patch: 3
|
|
@@ -113048,7 +113048,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
113048
113048
|
inst ?? (inst = {});
|
|
113049
113049
|
inst._zod.def = def;
|
|
113050
113050
|
inst._zod.bag = inst._zod.bag || {};
|
|
113051
|
-
inst._zod.version =
|
|
113051
|
+
inst._zod.version = version42;
|
|
113052
113052
|
const checks = [...inst._zod.def.checks ?? []];
|
|
113053
113053
|
if (inst._zod.traits.has("$ZodCheck")) {
|
|
113054
113054
|
checks.unshift(inst);
|
|
@@ -122846,7 +122846,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
122846
122846
|
});
|
|
122847
122847
|
}
|
|
122848
122848
|
function getErrorResponse(error44, ctx) {
|
|
122849
|
-
if (error44 instanceof
|
|
122849
|
+
if (error44 instanceof HTTPException2) {
|
|
122850
122850
|
return error44.getResponse();
|
|
122851
122851
|
} else if (error44 instanceof ResourceLimitError) {
|
|
122852
122852
|
return ctx.json({ error: error44.message }, 422);
|
|
@@ -136071,6 +136071,7 @@ var require_dist2 = __commonJS({
|
|
|
136071
136071
|
});
|
|
136072
136072
|
|
|
136073
136073
|
// ../../dev/server/src/accelerate.ts
|
|
136074
|
+
import { HTTPException } from "hono/http-exception";
|
|
136074
136075
|
import { Hono } from "hono/tiny";
|
|
136075
136076
|
import { validator } from "hono/validator";
|
|
136076
136077
|
|
|
@@ -136088,8 +136089,9 @@ async function assertInvalidateInput(ctx) {
|
|
|
136088
136089
|
|
|
136089
136090
|
// ../../dev/server/src/qpe.ts
|
|
136090
136091
|
var import_query_plan_executor = __toESM(require_dist(), 1);
|
|
136092
|
+
var import_query_plan_executor2 = __toESM(require_dist(), 1);
|
|
136091
136093
|
var server;
|
|
136092
|
-
async function
|
|
136094
|
+
async function getQueryPlanExecutorServer(ctx) {
|
|
136093
136095
|
if (server === void 0) {
|
|
136094
136096
|
server = await import_query_plan_executor.Server.create({
|
|
136095
136097
|
databaseUrl: ctx.get("db").connectionString,
|
|
@@ -137959,7 +137961,13 @@ var QUERY_COMPILER_PATHS = [
|
|
|
137959
137961
|
];
|
|
137960
137962
|
for (const [queryCompilerPath, method] of QUERY_COMPILER_PATHS) {
|
|
137961
137963
|
accelerateRoute.on(method, queryCompilerPath, validator("header", apiKeyValidator), async (ctx) => {
|
|
137962
|
-
const
|
|
137964
|
+
const clientVersion = ctx.req.header("prisma-engine-hash");
|
|
137965
|
+
if (clientVersion !== "0.0.0" && clientVersion !== import_query_plan_executor2.version) {
|
|
137966
|
+
throw new HTTPException(400, {
|
|
137967
|
+
message: `Using an HTTP connection string is not supported with Prisma Client version ${clientVersion} by this version of \`prisma dev\`. Please either use a direct TCP connection string or upgrade your client to version ${import_query_plan_executor2.version}.`
|
|
137968
|
+
});
|
|
137969
|
+
}
|
|
137970
|
+
const queryPlanExecutorServer = await getQueryPlanExecutorServer(ctx);
|
|
137963
137971
|
return await queryPlanExecutorServer.fetch(ctx.req.raw);
|
|
137964
137972
|
});
|
|
137965
137973
|
}
|
|
@@ -344,7 +344,7 @@ import internals5 from "@prisma/internals";
|
|
|
344
344
|
import * as Checkpoint from "checkpoint-client";
|
|
345
345
|
|
|
346
346
|
// package.json
|
|
347
|
-
var version = "0.0.0-dev.
|
|
347
|
+
var version = "0.0.0-dev.202510101424";
|
|
348
348
|
|
|
349
349
|
// src/platform/_lib/userAgent.ts
|
|
350
350
|
var debug = Debug("prisma:cli:platform:_lib:userAgent");
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
printPpgInitOutput,
|
|
29
29
|
requestOrThrow,
|
|
30
30
|
successMessage
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AHBJP5IF.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
@@ -2645,7 +2645,7 @@ async function getApp(port, dbServer, serverState) {
|
|
|
2645
2645
|
const { debug } = serverState;
|
|
2646
2646
|
const [{ Hono }, { accelerateRoute }, { utilityRoute }] = await Promise.all([
|
|
2647
2647
|
import("hono/tiny"),
|
|
2648
|
-
import("./accelerate-
|
|
2648
|
+
import("./accelerate-XUW55CZU.js"),
|
|
2649
2649
|
import("./utility-W6LOZZIT.js")
|
|
2650
2650
|
]);
|
|
2651
2651
|
const app = new Hono();
|
|
@@ -3408,7 +3408,7 @@ var Init = class _Init {
|
|
|
3408
3408
|
let generatedSchema;
|
|
3409
3409
|
let generatedName;
|
|
3410
3410
|
if (isPpgCommand) {
|
|
3411
|
-
const PlatformCommands = await import("./_-
|
|
3411
|
+
const PlatformCommands = await import("./_-VS5UYW7G.js");
|
|
3412
3412
|
const credentials = await credentialsFile.load();
|
|
3413
3413
|
if (internals.isError(credentials))
|
|
3414
3414
|
throw credentials;
|