@prisma/query-plan-executor 7.2.0-dev.3 → 7.2.0-integration-fix-enums-mapped-types-v7.1

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 +14 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -97773,7 +97773,7 @@ __export(index_exports, {
97773
97773
  module.exports = __toCommonJS(index_exports);
97774
97774
 
97775
97775
  // package.json
97776
- var version = "7.2.0-dev.3";
97776
+ var version = "7.2.0-integration-fix-enums-mapped-types-v7.1";
97777
97777
 
97778
97778
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
97779
97779
  function clampProp(e2, n2, t2, o2, r2) {
@@ -106216,6 +106216,8 @@ function getErrorCode(err) {
106216
106216
  return "P2002";
106217
106217
  case "ForeignKeyConstraintViolation":
106218
106218
  return "P2003";
106219
+ case "InvalidInputValue":
106220
+ return "P2007";
106219
106221
  case "UnsupportedNativeDataType":
106220
106222
  return "P2010";
106221
106223
  case "NullConstraintViolation":
@@ -106312,6 +106314,8 @@ function renderErrorMessage(err) {
106312
106314
  return `Error in external connector (id ${err.cause.id})`;
106313
106315
  case "TooManyConnections":
106314
106316
  return `Too many database connections opened: ${err.cause.cause}`;
106317
+ case "InvalidInputValue":
106318
+ return `Invalid input value: ${err.cause.message}`;
106315
106319
  case "sqlite":
106316
106320
  case "postgres":
106317
106321
  case "mysql":
@@ -106331,8 +106335,11 @@ function renderConstraint(constraint) {
106331
106335
  }
106332
106336
  return "(not available)";
106333
106337
  }
106334
- var DataMapperError = class extends Error {
106338
+ var DataMapperError = class extends UserFacingError {
106335
106339
  name = "DataMapperError";
106340
+ constructor(message, options) {
106341
+ super(message, "P2023", options);
106342
+ }
106336
106343
  };
106337
106344
  function applyDataMap(data, structure, enums) {
106338
106345
  switch (structure.type) {
@@ -111441,6 +111448,11 @@ function mapDriverError3(error44) {
111441
111448
  kind: "ValueOutOfRange",
111442
111449
  cause: error44.message
111443
111450
  };
111451
+ case "22P02":
111452
+ return {
111453
+ kind: "InvalidInputValue",
111454
+ message: error44.message
111455
+ };
111444
111456
  case "23505": {
111445
111457
  const fields = error44.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", ");
111446
111458
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "7.2.0-dev.3",
3
+ "version": "7.2.0-integration-fix-enums-mapped-types-v7.1",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,11 +20,11 @@
20
20
  "temporal-polyfill": "0.3.0",
21
21
  "vitest": "3.2.4",
22
22
  "zod": "4.1.3",
23
- "@prisma/adapter-pg": "7.2.0-dev.3",
24
- "@prisma/adapter-mariadb": "7.2.0-dev.3",
25
- "@prisma/adapter-mssql": "7.2.0-dev.3",
26
- "@prisma/client-engine-runtime": "7.2.0-dev.3",
27
- "@prisma/driver-adapter-utils": "7.2.0-dev.3"
23
+ "@prisma/adapter-mariadb": "7.2.0-integration-fix-enums-mapped-types-v7.1",
24
+ "@prisma/adapter-pg": "7.2.0-integration-fix-enums-mapped-types-v7.1",
25
+ "@prisma/adapter-mssql": "7.2.0-integration-fix-enums-mapped-types-v7.1",
26
+ "@prisma/driver-adapter-utils": "7.2.0-integration-fix-enums-mapped-types-v7.1",
27
+ "@prisma/client-engine-runtime": "7.2.0-integration-fix-enums-mapped-types-v7.1"
28
28
  },
29
29
  "files": [
30
30
  "dist"