@prisma/query-plan-executor 7.11.0-dev.3 → 7.11.0-dev.4

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 +7 -4
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -72089,7 +72089,7 @@ __export(index_exports, {
72089
72089
  module.exports = __toCommonJS(index_exports);
72090
72090
 
72091
72091
  // package.json
72092
- var version = "7.11.0-dev.3";
72092
+ var version = "7.11.0-dev.4";
72093
72093
 
72094
72094
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
72095
72095
  function clampProp(e2, n2, t2, o2, r2) {
@@ -104360,13 +104360,16 @@ function normalize_timez(time3) {
104360
104360
  const pad2 = (n2) => String(n2).padStart(2, "0");
104361
104361
  return `${pad2(Math.floor(seconds / 3600))}:${pad2(Math.floor(seconds / 60) % 60)}:${pad2(seconds % 60)}${fraction}`;
104362
104362
  }
104363
+ var SUPPORTED_MONEY_FORMAT = /^(?:(-)[\p{L}\p{Sc}]+|[\p{L}\p{Sc}]+(-)?)(\d{1,3}(?:,\d{3})*)(\.(?!\d{3}$)\d+)?$/u;
104363
104364
  function normalize_money(money) {
104364
- if (!/^-?\$\d{1,3}(,\d{3})*\.\d{2}$/.test(money)) {
104365
+ const match2 = SUPPORTED_MONEY_FORMAT.exec(money);
104366
+ if (match2 === null) {
104365
104367
  throw new Error(
104366
- `Unsupported money format "${money}": only the default lc_monetary format, such as -$1,234.50, is supported`
104368
+ `Unsupported money format "${money}": expected a currency symbol directly followed by an amount with "," thousands separators and a "." decimal point, such as -\xA31,234.50`
104367
104369
  );
104368
104370
  }
104369
- return money.replace(/[^\d.-]/g, "");
104371
+ const [, signBeforeSymbol = "", signAfterSymbol = "", integer2, fraction = ""] = match2;
104372
+ return `${signBeforeSymbol}${signAfterSymbol}${integer2.replaceAll(",", "")}${fraction}`;
104370
104373
  }
104371
104374
  function normalize_xml(xml) {
104372
104375
  return xml;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "7.11.0-dev.3",
3
+ "version": "7.11.0-dev.4",
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",
@@ -19,11 +19,11 @@
19
19
  "hono": "^4.12.23",
20
20
  "temporal-polyfill": "0.3.0",
21
21
  "zod": "4.1.3",
22
- "@prisma/adapter-pg": "7.11.0-dev.3",
23
- "@prisma/client-engine-runtime": "7.11.0-dev.3",
24
- "@prisma/adapter-mariadb": "7.11.0-dev.3",
25
- "@prisma/adapter-mssql": "7.11.0-dev.3",
26
- "@prisma/driver-adapter-utils": "7.11.0-dev.3"
22
+ "@prisma/adapter-pg": "7.11.0-dev.4",
23
+ "@prisma/adapter-mariadb": "7.11.0-dev.4",
24
+ "@prisma/adapter-mssql": "7.11.0-dev.4",
25
+ "@prisma/driver-adapter-utils": "7.11.0-dev.4",
26
+ "@prisma/client-engine-runtime": "7.11.0-dev.4"
27
27
  },
28
28
  "files": [
29
29
  "dist"