@prisma/cli-init 0.0.0-dev.202510211522 → 0.0.0-dev.202510221016

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.
@@ -15,7 +15,7 @@ import {
15
15
  platformParameters,
16
16
  poll,
17
17
  printPpgInitOutput
18
- } from "./chunk-AZOXGRPQ.js";
18
+ } from "./chunk-RH7QVVHD.js";
19
19
  import "./chunk-YX4UTTNJ.js";
20
20
  export {
21
21
  __exports as Accelerate,
@@ -23,9 +23,9 @@ import {
23
23
  __toESM
24
24
  } from "./chunk-YX4UTTNJ.js";
25
25
 
26
- // ../../node_modules/.pnpm/@prisma+query-plan-executor@6.18.0-dev.17/node_modules/@prisma/query-plan-executor/dist/index.js
26
+ // ../../node_modules/.pnpm/@prisma+query-plan-executor@6.18.0/node_modules/@prisma/query-plan-executor/dist/index.js
27
27
  var require_dist = __commonJS({
28
- "../../node_modules/.pnpm/@prisma+query-plan-executor@6.18.0-dev.17/node_modules/@prisma/query-plan-executor/dist/index.js"(exports2, module2) {
28
+ "../../node_modules/.pnpm/@prisma+query-plan-executor@6.18.0/node_modules/@prisma/query-plan-executor/dist/index.js"(exports2, module2) {
29
29
  "use strict";
30
30
  var __create = Object.create;
31
31
  var __defProp = Object.defineProperty;
@@ -97445,7 +97445,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97445
97445
  withActiveLogger: () => withActiveLogger
97446
97446
  });
97447
97447
  module2.exports = __toCommonJS(index_exports);
97448
- var version4 = "6.18.0-dev.17";
97448
+ var version4 = "6.18.0";
97449
97449
  function clampProp(e2, n2, t2, o2, r2) {
97450
97450
  return clampEntity(n2, ((e3, n3) => {
97451
97451
  const t3 = e3[n3];
@@ -106073,12 +106073,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
106073
106073
  }
106074
106074
  var TIME_TZ_PATTERN = /\d{2}:\d{2}:\d{2}(?:\.\d+)?(Z|[+-]\d{2}(:?\d{2})?)?$/;
106075
106075
  function normalizeDateTime(dt2) {
106076
- const matches = TIME_TZ_PATTERN.exec(dt2);
106077
- if (matches === null) {
106078
- return `${dt2}Z`;
106076
+ const timeTzMatches = TIME_TZ_PATTERN.exec(dt2);
106077
+ if (timeTzMatches === null) {
106078
+ return `${dt2}T00:00:00Z`;
106079
106079
  }
106080
106080
  let dtWithTz = dt2;
106081
- const [timeTz, tz, tzMinuteOffset] = matches;
106081
+ const [timeTz, tz, tzMinuteOffset] = timeTzMatches;
106082
106082
  if (tz !== void 0 && tz !== "Z" && tzMinuteOffset === void 0) {
106083
106083
  dtWithTz = `${dt2}:00`;
106084
106084
  } else if (tz === void 0) {
@@ -106087,6 +106087,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
106087
106087
  if (timeTz.length === dt2.length) {
106088
106088
  return `1970-01-01T${dtWithTz}`;
106089
106089
  }
106090
+ const timeSeparatorIndex = timeTzMatches.index - 1;
106091
+ if (dtWithTz[timeSeparatorIndex] === " ") {
106092
+ dtWithTz = `${dtWithTz.slice(0, timeSeparatorIndex)}T${dtWithTz.slice(timeSeparatorIndex + 1)}`;
106093
+ }
106090
106094
  return dtWithTz;
106091
106095
  }
106092
106096
  function providerToOtelSystem(provider) {
@@ -109142,11 +109146,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
109142
109146
  function formatDateTime(date5) {
109143
109147
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
109144
109148
  const ms = date5.getUTCMilliseconds();
109145
- return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
109149
+ return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
109146
109150
  }
109147
109151
  function formatDate(date5) {
109148
109152
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
109149
- return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
109153
+ return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
109150
109154
  }
109151
109155
  function formatTime(date5) {
109152
109156
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
@@ -110040,11 +110044,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
110040
110044
  function formatDateTime2(date5) {
110041
110045
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
110042
110046
  const ms = date5.getUTCMilliseconds();
110043
- return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
110047
+ return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
110044
110048
  }
110045
110049
  function formatDate2(date5) {
110046
110050
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
110047
- return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
110051
+ return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
110048
110052
  }
110049
110053
  function formatTime2(date5) {
110050
110054
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
@@ -110633,10 +110637,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
110633
110637
  return date5;
110634
110638
  }
110635
110639
  function normalize_timestamp(time3) {
110636
- return (/* @__PURE__ */ new Date(`${time3}Z`)).toISOString().replace(/(\.000)?Z$/, "+00:00");
110640
+ return `${time3.replace(" ", "T")}+00:00`;
110637
110641
  }
110638
- function normalize_timestampz(time3) {
110639
- return new Date(time3.replace(/[+-]\d{2}(:\d{2})?$/, "Z")).toISOString().replace(/(\.000)?Z$/, "+00:00");
110642
+ function normalize_timestamptz(time3) {
110643
+ return time3.replace(" ", "T").replace(/[+-]\d{2}(:\d{2})?$/, "+00:00");
110640
110644
  }
110641
110645
  function normalize_time(time3) {
110642
110646
  return time3;
@@ -110679,8 +110683,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
110679
110683
  [ArrayColumnType.DATE_ARRAY]: normalize_array(normalize_date),
110680
110684
  [ScalarColumnType.TIMESTAMP]: normalize_timestamp,
110681
110685
  [ArrayColumnType.TIMESTAMP_ARRAY]: normalize_array(normalize_timestamp),
110682
- [ScalarColumnType.TIMESTAMPTZ]: normalize_timestampz,
110683
- [ArrayColumnType.TIMESTAMPTZ_ARRAY]: normalize_array(normalize_timestampz),
110686
+ [ScalarColumnType.TIMESTAMPTZ]: normalize_timestamptz,
110687
+ [ArrayColumnType.TIMESTAMPTZ_ARRAY]: normalize_array(normalize_timestamptz),
110684
110688
  [ScalarColumnType.MONEY]: normalize_money,
110685
110689
  [ArrayColumnType.MONEY_ARRAY]: normalize_array(normalize_money),
110686
110690
  [ScalarColumnType.JSON]: toJson,
@@ -123364,6 +123368,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
123364
123368
  return c2.json({ data });
123365
123369
  }).post("/transaction/start", zValidator("json", TransactionStartRequestBody), async (c2) => {
123366
123370
  const result = await app.startTransaction(c2.req.valid("json"), c2.get("resourceLimits"));
123371
+ c2.header("Prisma-Transaction-Id", result.id);
123367
123372
  return c2.json(result);
123368
123373
  }).post("/transaction/:txId/query", zValidator("json", QueryRequestBody), async (c2) => {
123369
123374
  const request3 = c2.req.valid("json");
@@ -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.202510211522";
347
+ var version = "0.0.0-dev.202510221016";
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-AZOXGRPQ.js";
31
+ } from "./chunk-RH7QVVHD.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-66DB7ND6.js"),
2648
+ import("./accelerate-YEFEYVGD.js"),
2649
2649
  import("./utility-W6LOZZIT.js")
2650
2650
  ]);
2651
2651
  const app = new Hono();
@@ -3433,7 +3433,7 @@ var Init = class _Init {
3433
3433
  let generatedSchema;
3434
3434
  let generatedName;
3435
3435
  if (isPpgCommand) {
3436
- const PlatformCommands = await import("./_-LO6HQL7V.js");
3436
+ const PlatformCommands = await import("./_-RGVRWXRN.js");
3437
3437
  const credentials = await credentialsFile.load();
3438
3438
  if (internals.isError(credentials))
3439
3439
  throw credentials;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli-init",
3
- "version": "0.0.0-dev.202510211522",
3
+ "version": "0.0.0-dev.202510221016",
4
4
  "description": "Init CLI for Prisma",
5
5
  "type": "module",
6
6
  "sideEffects": false,