@prisma/cli-init 0.0.0-dev.202506241959 → 0.0.0-dev.202506242223

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-5MZMLVSL.js";
18
+ } from "./chunk-QFX3PJLU.js";
19
19
  import "./chunk-YX4UTTNJ.js";
20
20
  export {
21
21
  __exports as Accelerate,
@@ -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.202506241959";
347
+ var version = "0.0.0-dev.202506242223";
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-5MZMLVSL.js";
31
+ } from "./chunk-QFX3PJLU.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
@@ -2643,7 +2643,8 @@ function getStartHTTPServerResult(port, server) {
2643
2643
  }
2644
2644
  async function getApp(port, dbServer, serverState) {
2645
2645
  const { debug } = serverState;
2646
- const [{ Hono }, { accelerateRoute }, { utilityRoute }] = await Promise.all([
2646
+ const [{ cors }, { Hono }, { accelerateRoute }, { utilityRoute }] = await Promise.all([
2647
+ import("hono/cors"),
2647
2648
  import("hono/tiny"),
2648
2649
  import("./accelerate-TY7QIZCU.js"),
2649
2650
  import("./utility-W6LOZZIT.js")
@@ -2660,6 +2661,7 @@ async function getApp(port, dbServer, serverState) {
2660
2661
  logger((...args) => console.log("[Accelerate]", ...args))
2661
2662
  );
2662
2663
  }
2664
+ app.use("*", cors());
2663
2665
  app.use("*", async (ctx, next) => {
2664
2666
  ctx.set("db", dbServer);
2665
2667
  ctx.set("debug", Boolean(debug));
@@ -3406,7 +3408,7 @@ var Init = class _Init {
3406
3408
  let generatedSchema;
3407
3409
  let generatedName;
3408
3410
  if (isPpgCommand) {
3409
- const PlatformCommands = await import("./_-RALQ2VO7.js");
3411
+ const PlatformCommands = await import("./_-GD3HFA5M.js");
3410
3412
  const credentials = await credentialsFile.load();
3411
3413
  if (internals.isError(credentials))
3412
3414
  throw credentials;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli-init",
3
- "version": "0.0.0-dev.202506241959",
3
+ "version": "0.0.0-dev.202506242223",
4
4
  "description": "Init CLI for Prisma",
5
5
  "type": "module",
6
6
  "sideEffects": false,