@prisma/client-engine-runtime 6.18.0-integration-next.7 → 6.18.0-integration-next.8

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 CHANGED
@@ -670,12 +670,12 @@ function mapValue(value, columnName, scalarType, enums) {
670
670
  }
671
671
  var TIME_TZ_PATTERN = /\d{2}:\d{2}:\d{2}(?:\.\d+)?(Z|[+-]\d{2}(:?\d{2})?)?$/;
672
672
  function normalizeDateTime(dt) {
673
- const matches = TIME_TZ_PATTERN.exec(dt);
674
- if (matches === null) {
675
- return `${dt}Z`;
673
+ const timeTzMatches = TIME_TZ_PATTERN.exec(dt);
674
+ if (timeTzMatches === null) {
675
+ return `${dt}T00:00:00Z`;
676
676
  }
677
677
  let dtWithTz = dt;
678
- const [timeTz, tz, tzMinuteOffset] = matches;
678
+ const [timeTz, tz, tzMinuteOffset] = timeTzMatches;
679
679
  if (tz !== void 0 && tz !== "Z" && tzMinuteOffset === void 0) {
680
680
  dtWithTz = `${dt}:00`;
681
681
  } else if (tz === void 0) {
@@ -684,6 +684,10 @@ function normalizeDateTime(dt) {
684
684
  if (timeTz.length === dt.length) {
685
685
  return `1970-01-01T${dtWithTz}`;
686
686
  }
687
+ const timeSeparatorIndex = timeTzMatches.index - 1;
688
+ if (dtWithTz[timeSeparatorIndex] === " ") {
689
+ dtWithTz = `${dtWithTz.slice(0, timeSeparatorIndex)}T${dtWithTz.slice(timeSeparatorIndex + 1)}`;
690
+ }
687
691
  return dtWithTz;
688
692
  }
689
693
 
package/dist/index.mjs CHANGED
@@ -620,12 +620,12 @@ function mapValue(value, columnName, scalarType, enums) {
620
620
  }
621
621
  var TIME_TZ_PATTERN = /\d{2}:\d{2}:\d{2}(?:\.\d+)?(Z|[+-]\d{2}(:?\d{2})?)?$/;
622
622
  function normalizeDateTime(dt) {
623
- const matches = TIME_TZ_PATTERN.exec(dt);
624
- if (matches === null) {
625
- return `${dt}Z`;
623
+ const timeTzMatches = TIME_TZ_PATTERN.exec(dt);
624
+ if (timeTzMatches === null) {
625
+ return `${dt}T00:00:00Z`;
626
626
  }
627
627
  let dtWithTz = dt;
628
- const [timeTz, tz, tzMinuteOffset] = matches;
628
+ const [timeTz, tz, tzMinuteOffset] = timeTzMatches;
629
629
  if (tz !== void 0 && tz !== "Z" && tzMinuteOffset === void 0) {
630
630
  dtWithTz = `${dt}:00`;
631
631
  } else if (tz === void 0) {
@@ -634,6 +634,10 @@ function normalizeDateTime(dt) {
634
634
  if (timeTz.length === dt.length) {
635
635
  return `1970-01-01T${dtWithTz}`;
636
636
  }
637
+ const timeSeparatorIndex = timeTzMatches.index - 1;
638
+ if (dtWithTz[timeSeparatorIndex] === " ") {
639
+ dtWithTz = `${dtWithTz.slice(0, timeSeparatorIndex)}T${dtWithTz.slice(timeSeparatorIndex + 1)}`;
640
+ }
637
641
  return dtWithTz;
638
642
  }
639
643
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-engine-runtime",
3
- "version": "6.18.0-integration-next.7",
3
+ "version": "6.18.0-integration-next.8",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,8 +31,8 @@
31
31
  "nanoid": "5.1.5",
32
32
  "ulid": "3.0.0",
33
33
  "uuid": "11.1.0",
34
- "@prisma/debug": "6.18.0-integration-next.7",
35
- "@prisma/driver-adapter-utils": "6.18.0-integration-next.7"
34
+ "@prisma/debug": "6.18.0-integration-next.8",
35
+ "@prisma/driver-adapter-utils": "6.18.0-integration-next.8"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/jest": "29.5.14",