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

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-RH7QVVHD.js";
18
+ } from "./chunk-KTBTQGWX.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/node_modules/@prisma/query-plan-executor/dist/index.js
26
+ // ../../node_modules/.pnpm/@prisma+query-plan-executor@6.18.0-dev.17/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/node_modules/@prisma/query-plan-executor/dist/index.js"(exports2, module2) {
28
+ "../../node_modules/.pnpm/@prisma+query-plan-executor@6.18.0-dev.17/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";
97448
+ var version4 = "6.18.0-dev.17";
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 timeTzMatches = TIME_TZ_PATTERN.exec(dt2);
106077
- if (timeTzMatches === null) {
106078
- return `${dt2}T00:00:00Z`;
106076
+ const matches = TIME_TZ_PATTERN.exec(dt2);
106077
+ if (matches === null) {
106078
+ return `${dt2}Z`;
106079
106079
  }
106080
106080
  let dtWithTz = dt2;
106081
- const [timeTz, tz, tzMinuteOffset] = timeTzMatches;
106081
+ const [timeTz, tz, tzMinuteOffset] = matches;
106082
106082
  if (tz !== void 0 && tz !== "Z" && tzMinuteOffset === void 0) {
106083
106083
  dtWithTz = `${dt2}:00`;
106084
106084
  } else if (tz === void 0) {
@@ -106087,10 +106087,6 @@ 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
- }
106094
106090
  return dtWithTz;
106095
106091
  }
106096
106092
  function providerToOtelSystem(provider) {
@@ -109146,11 +109142,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
109146
109142
  function formatDateTime(date5) {
109147
109143
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
109148
109144
  const ms = date5.getUTCMilliseconds();
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") : "");
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") : "");
109150
109146
  }
109151
109147
  function formatDate(date5) {
109152
109148
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
109153
- return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
109149
+ return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
109154
109150
  }
109155
109151
  function formatTime(date5) {
109156
109152
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
@@ -110044,11 +110040,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
110044
110040
  function formatDateTime2(date5) {
110045
110041
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
110046
110042
  const ms = date5.getUTCMilliseconds();
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") : "");
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") : "");
110048
110044
  }
110049
110045
  function formatDate2(date5) {
110050
110046
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
110051
- return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
110047
+ return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
110052
110048
  }
110053
110049
  function formatTime2(date5) {
110054
110050
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
@@ -110637,10 +110633,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
110637
110633
  return date5;
110638
110634
  }
110639
110635
  function normalize_timestamp(time3) {
110640
- return `${time3.replace(" ", "T")}+00:00`;
110636
+ return (/* @__PURE__ */ new Date(`${time3}Z`)).toISOString().replace(/(\.000)?Z$/, "+00:00");
110641
110637
  }
110642
- function normalize_timestamptz(time3) {
110643
- return time3.replace(" ", "T").replace(/[+-]\d{2}(:\d{2})?$/, "+00:00");
110638
+ function normalize_timestampz(time3) {
110639
+ return new Date(time3.replace(/[+-]\d{2}(:\d{2})?$/, "Z")).toISOString().replace(/(\.000)?Z$/, "+00:00");
110644
110640
  }
110645
110641
  function normalize_time(time3) {
110646
110642
  return time3;
@@ -110683,8 +110679,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
110683
110679
  [ArrayColumnType.DATE_ARRAY]: normalize_array(normalize_date),
110684
110680
  [ScalarColumnType.TIMESTAMP]: normalize_timestamp,
110685
110681
  [ArrayColumnType.TIMESTAMP_ARRAY]: normalize_array(normalize_timestamp),
110686
- [ScalarColumnType.TIMESTAMPTZ]: normalize_timestamptz,
110687
- [ArrayColumnType.TIMESTAMPTZ_ARRAY]: normalize_array(normalize_timestamptz),
110682
+ [ScalarColumnType.TIMESTAMPTZ]: normalize_timestampz,
110683
+ [ArrayColumnType.TIMESTAMPTZ_ARRAY]: normalize_array(normalize_timestampz),
110688
110684
  [ScalarColumnType.MONEY]: normalize_money,
110689
110685
  [ArrayColumnType.MONEY_ARRAY]: normalize_array(normalize_money),
110690
110686
  [ScalarColumnType.JSON]: toJson,
@@ -123368,7 +123364,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
123368
123364
  return c2.json({ data });
123369
123365
  }).post("/transaction/start", zValidator("json", TransactionStartRequestBody), async (c2) => {
123370
123366
  const result = await app.startTransaction(c2.req.valid("json"), c2.get("resourceLimits"));
123371
- c2.header("Prisma-Transaction-Id", result.id);
123372
123367
  return c2.json(result);
123373
123368
  }).post("/transaction/:txId/query", zValidator("json", QueryRequestBody), async (c2) => {
123374
123369
  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.202510221016";
347
+ var version = "0.0.0-dev.202510221019";
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-RH7QVVHD.js";
31
+ } from "./chunk-KTBTQGWX.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-YEFEYVGD.js"),
2648
+ import("./accelerate-66DB7ND6.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("./_-RGVRWXRN.js");
3436
+ const PlatformCommands = await import("./_-DU3FVTS3.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.202510221016",
3
+ "version": "0.0.0-dev.202510221019",
4
4
  "description": "Init CLI for Prisma",
5
5
  "type": "module",
6
6
  "sideEffects": false,