@prisma/config 6.6.0-integration-mcp.14 → 6.6.0

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.
Files changed (2) hide show
  1. package/dist/index.js +19 -16
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -250,6 +250,7 @@ function err(error) {
250
250
  }
251
251
  };
252
252
  }
253
+ var debug = Debug("driver-adapter-utils");
253
254
  var ErrorRegistryInternal = class {
254
255
  registeredErrors = [];
255
256
  consumeError(id) {
@@ -316,6 +317,7 @@ function wrapAsync(registry, fn) {
316
317
  try {
317
318
  return ok(await fn(...args2));
318
319
  } catch (error) {
320
+ debug("[error@wrapAsync]", error);
319
321
  if (isDriverAdapterError(error)) {
320
322
  return err(error.cause);
321
323
  }
@@ -329,6 +331,7 @@ function wrapSync(registry, fn) {
329
331
  try {
330
332
  return ok(fn(...args2));
331
333
  } catch (error) {
334
+ debug("[error@wrapSync]", error);
332
335
  if (isDriverAdapterError(error)) {
333
336
  return err(error.cause);
334
337
  }
@@ -22470,10 +22473,10 @@ function defaultConfig() {
22470
22473
  }
22471
22474
 
22472
22475
  // src/defineConfig.ts
22473
- var debug = Debug("prisma:config:defineConfig");
22476
+ var debug2 = Debug("prisma:config:defineConfig");
22474
22477
  function defineConfig(configInput) {
22475
22478
  const config2 = defaultConfig();
22476
- debug("[default]: %o", config2);
22479
+ debug2("[default]: %o", config2);
22477
22480
  defineSchemaConfig(config2, configInput);
22478
22481
  defineStudioConfig(config2, configInput);
22479
22482
  defineMigrateConfig(config2, configInput);
@@ -22484,7 +22487,7 @@ function defineSchemaConfig(config2, configInput) {
22484
22487
  return;
22485
22488
  }
22486
22489
  config2.schema = configInput.schema;
22487
- debug("[config.schema]: %o", config2.schema);
22490
+ debug2("[config.schema]: %o", config2.schema);
22488
22491
  }
22489
22492
  function defineStudioConfig(config2, configInput) {
22490
22493
  if (!configInput.studio) {
@@ -22494,11 +22497,11 @@ function defineStudioConfig(config2, configInput) {
22494
22497
  config2.studio = {
22495
22498
  adapter: async (env) => {
22496
22499
  const adapterFactory = await getAdapterFactory(env);
22497
- debug("[config.studio.adapter]: %o", adapterFactory.adapterName);
22500
+ debug2("[config.studio.adapter]: %o", adapterFactory.adapterName);
22498
22501
  return adapterFactory;
22499
22502
  }
22500
22503
  };
22501
- debug("[config.studio]: %o", config2.studio);
22504
+ debug2("[config.studio]: %o", config2.studio);
22502
22505
  }
22503
22506
  function defineMigrateConfig(config2, configInput) {
22504
22507
  if (!configInput.migrate) {
@@ -22508,15 +22511,15 @@ function defineMigrateConfig(config2, configInput) {
22508
22511
  config2.migrate = {
22509
22512
  adapter: async (env) => {
22510
22513
  const adapterFactory = await getAdapterFactory(env);
22511
- debug("[config.migrate.adapter]: %o", adapterFactory.adapterName);
22514
+ debug2("[config.migrate.adapter]: %o", adapterFactory.adapterName);
22512
22515
  return bindMigrationAwareSqlAdapterFactory(adapterFactory);
22513
22516
  }
22514
22517
  };
22515
- debug("[config.schema]: %o", config2.migrate);
22518
+ debug2("[config.schema]: %o", config2.migrate);
22516
22519
  }
22517
22520
 
22518
22521
  // src/PrismaConfig.ts
22519
- var debug2 = Debug("prisma:config:PrismaConfig");
22522
+ var debug3 = Debug("prisma:config:PrismaConfig");
22520
22523
  var sqlMigrationAwareDriverAdapterFactoryShape = () => Schema_exports.declare(
22521
22524
  (input) => {
22522
22525
  return input instanceof Function;
@@ -22602,9 +22605,9 @@ function brandPrismaConfigInternal(config2) {
22602
22605
  return config2;
22603
22606
  }
22604
22607
  function parsePrismaConfigInternalShape(input) {
22605
- debug2("Parsing PrismaConfigInternal: %o", input);
22608
+ debug3("Parsing PrismaConfigInternal: %o", input);
22606
22609
  if (typeof input === "object" && input !== null && input["__brand"] === PRISMA_CONFIG_INTERNAL_BRAND) {
22607
- debug2("Short-circuit: input is already a PrismaConfigInternal object");
22610
+ debug3("Short-circuit: input is already a PrismaConfigInternal object");
22608
22611
  return Either_exports.right(input);
22609
22612
  }
22610
22613
  return pipe(
@@ -22628,7 +22631,7 @@ function parseDefaultExport(defaultExport) {
22628
22631
  // If the given config conforms to the `PrismaConfig` shape, feed it to `defineConfig`.
22629
22632
  parsePrismaConfigShape(defaultExport),
22630
22633
  Either_exports.map((config2) => {
22631
- debug2("Parsed `PrismaConfig` shape: %o", config2);
22634
+ debug3("Parsed `PrismaConfig` shape: %o", config2);
22632
22635
  return defineConfig(config2);
22633
22636
  }),
22634
22637
  // Otherwise, try to parse it as a `PrismaConfigInternal` shape.
@@ -22652,7 +22655,7 @@ function defaultTestConfig() {
22652
22655
  var import_node_fs = __toESM(require("node:fs"));
22653
22656
  var import_node_path = __toESM(require("node:path"));
22654
22657
  var import_node_process = __toESM(require("node:process"));
22655
- var debug3 = Debug("prisma:config:loadConfigFromFile");
22658
+ var debug4 = Debug("prisma:config:loadConfigFromFile");
22656
22659
  async function loadConfigFromFile({
22657
22660
  configFile,
22658
22661
  configRoot = import_node_process.default.cwd()
@@ -22663,13 +22666,13 @@ async function loadConfigFromFile({
22663
22666
  if (configFile) {
22664
22667
  resolvedPath = import_node_path.default.resolve(configRoot, configFile);
22665
22668
  if (!import_node_fs.default.existsSync(resolvedPath)) {
22666
- debug3(`The given config file was not found at %s`, resolvedPath);
22669
+ debug4(`The given config file was not found at %s`, resolvedPath);
22667
22670
  return { resolvedPath, error: { _tag: "ConfigFileNotFound" } };
22668
22671
  }
22669
22672
  } else {
22670
22673
  resolvedPath = ["prisma.config.ts"].map((file) => import_node_path.default.resolve(configRoot, file)).find((file) => import_node_fs.default.existsSync(file)) ?? null;
22671
22674
  if (resolvedPath === null) {
22672
- debug3(`No config file found in the current working directory %s`, configRoot);
22675
+ debug4(`No config file found in the current working directory %s`, configRoot);
22673
22676
  return { resolvedPath, config: defaultConfig() };
22674
22677
  }
22675
22678
  }
@@ -22681,7 +22684,7 @@ async function loadConfigFromFile({
22681
22684
  error
22682
22685
  };
22683
22686
  }
22684
- debug3(`Config file loaded in %s`, getTime());
22687
+ debug4(`Config file loaded in %s`, getTime());
22685
22688
  let defaultExport;
22686
22689
  try {
22687
22690
  defaultExport = parseDefaultExport(required3["default"]);
@@ -22731,7 +22734,7 @@ async function requireTypeScriptFile(resolvedPath) {
22731
22734
  };
22732
22735
  } catch (e) {
22733
22736
  const error = e;
22734
- debug3("esbuild-register registration failed: %s", error.message);
22737
+ debug4("esbuild-register registration failed: %s", error.message);
22735
22738
  return {
22736
22739
  error: {
22737
22740
  _tag: "TypeScriptImportFailed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/config",
3
- "version": "6.6.0-integration-mcp.14",
3
+ "version": "6.6.0",
4
4
  "description": "Internal package used to define and read Prisma configuration files",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "esbuild-register": "3.6.0",
23
23
  "jest": "29.7.0",
24
24
  "jest-junit": "16.0.0",
25
- "@prisma/driver-adapter-utils": "6.6.0-integration-mcp.14",
26
- "@prisma/get-platform": "6.6.0-integration-mcp.14"
25
+ "@prisma/driver-adapter-utils": "6.6.0",
26
+ "@prisma/get-platform": "6.6.0"
27
27
  },
28
28
  "files": [
29
29
  "dist"