@prisma/query-plan-executor 7.11.0-dev.2 → 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.
- package/dist/index.js +8 -32
- 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.
|
|
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
|
-
|
|
104365
|
+
const match2 = SUPPORTED_MONEY_FORMAT.exec(money);
|
|
104366
|
+
if (match2 === null) {
|
|
104365
104367
|
throw new Error(
|
|
104366
|
-
`Unsupported money format "${money}":
|
|
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
|
-
|
|
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;
|
|
@@ -104891,12 +104894,7 @@ var PrismaPgAdapterFactory = class {
|
|
|
104891
104894
|
config;
|
|
104892
104895
|
externalPool;
|
|
104893
104896
|
async connect() {
|
|
104894
|
-
const client2 = this.externalPool ?? new esm_default.Pool(
|
|
104895
|
-
if (this.externalPool !== null && this.options?.schema !== void 0) {
|
|
104896
|
-
debug6(
|
|
104897
|
-
`The search path is not set on externally provided pools, schema "${this.options.schema}" is only used for generated queries. Set the search path on the pool itself if raw queries need it.`
|
|
104898
|
-
);
|
|
104899
|
-
}
|
|
104897
|
+
const client2 = this.externalPool ?? new esm_default.Pool(this.config);
|
|
104900
104898
|
const onIdleClientError = (err) => {
|
|
104901
104899
|
debug6(`Error from idle pool client: ${err.message} %O`, err);
|
|
104902
104900
|
this.options?.onPoolError?.(err);
|
|
@@ -104926,28 +104924,6 @@ var PrismaPgAdapterFactory = class {
|
|
|
104926
104924
|
});
|
|
104927
104925
|
}
|
|
104928
104926
|
};
|
|
104929
|
-
function withSearchPath(config3, schema) {
|
|
104930
|
-
if (schema === void 0 || setsSearchPath(config3.options)) {
|
|
104931
|
-
return config3;
|
|
104932
|
-
}
|
|
104933
|
-
const searchPath = `-c search_path=${escapeOptionValue(quoteIdentifierIfNeeded(schema))},public`;
|
|
104934
|
-
return {
|
|
104935
|
-
...config3,
|
|
104936
|
-
options: config3.options ? `${config3.options} ${searchPath}` : searchPath
|
|
104937
|
-
};
|
|
104938
|
-
}
|
|
104939
|
-
function setsSearchPath(options) {
|
|
104940
|
-
return options !== void 0 && /(?:^|\s)(?:-c\s*|--)search[_-]path=/i.test(options);
|
|
104941
|
-
}
|
|
104942
|
-
function quoteIdentifierIfNeeded(name22) {
|
|
104943
|
-
if (/^[a-z_][a-z0-9_$]*$/.test(name22)) {
|
|
104944
|
-
return name22;
|
|
104945
|
-
}
|
|
104946
|
-
return `"${name22.replaceAll('"', '""')}"`;
|
|
104947
|
-
}
|
|
104948
|
-
function escapeOptionValue(value) {
|
|
104949
|
-
return value.replace(/[\\\s]/g, (char) => `\\${char}`);
|
|
104950
|
-
}
|
|
104951
104927
|
|
|
104952
104928
|
// src/logic/adapter.ts
|
|
104953
104929
|
function createAdapter(url2, supportedFactories = defaultFactories) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.11.0-dev.
|
|
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.
|
|
23
|
-
"@prisma/adapter-
|
|
24
|
-
"@prisma/
|
|
25
|
-
"@prisma/adapter-
|
|
26
|
-
"@prisma/
|
|
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"
|