@prisma/adapter-mariadb 7.9.0 → 7.10.0-dev.2
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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -525,6 +525,9 @@ function rewriteConnectionString(url) {
|
|
|
525
525
|
if (url.protocol === "mysql:") {
|
|
526
526
|
url.protocol = "mariadb:";
|
|
527
527
|
}
|
|
528
|
+
if (url.hostname.startsWith("[") && url.hostname.endsWith("]")) {
|
|
529
|
+
url.hostname = encodeURIComponent(url.hostname.slice(1, -1));
|
|
530
|
+
}
|
|
528
531
|
return url;
|
|
529
532
|
}
|
|
530
533
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -489,6 +489,9 @@ function rewriteConnectionString(url) {
|
|
|
489
489
|
if (url.protocol === "mysql:") {
|
|
490
490
|
url.protocol = "mariadb:";
|
|
491
491
|
}
|
|
492
|
+
if (url.hostname.startsWith("[") && url.hostname.endsWith("]")) {
|
|
493
|
+
url.hostname = encodeURIComponent(url.hostname.slice(1, -1));
|
|
494
|
+
}
|
|
492
495
|
return url;
|
|
493
496
|
}
|
|
494
497
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-mariadb",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.10.0-dev.2",
|
|
4
4
|
"description": "Prisma's driver adapter for \"mariadb\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"mariadb": "3.4.5",
|
|
35
|
-
"@prisma/driver-adapter-utils": "7.
|
|
35
|
+
"@prisma/driver-adapter-utils": "7.10.0-dev.2"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "DEV=true tsx helpers/build.ts",
|