@prisma/adapter-mssql 6.18.0-dev.17 → 6.18.0-dev.19

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
@@ -433,11 +433,11 @@ function mapRow(row, columns) {
433
433
  function formatDateTime(date) {
434
434
  const pad = (n, z = 2) => String(n).padStart(z, "0");
435
435
  const ms = date.getUTCMilliseconds();
436
- return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate()) + " " + pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
436
+ return pad(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate()) + " " + pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
437
437
  }
438
438
  function formatDate(date) {
439
439
  const pad = (n, z = 2) => String(n).padStart(z, "0");
440
- return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
440
+ return pad(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
441
441
  }
442
442
  function formatTime(date) {
443
443
  const pad = (n, z = 2) => String(n).padStart(z, "0");
package/dist/index.mjs CHANGED
@@ -403,11 +403,11 @@ function mapRow(row, columns) {
403
403
  function formatDateTime(date) {
404
404
  const pad = (n, z = 2) => String(n).padStart(z, "0");
405
405
  const ms = date.getUTCMilliseconds();
406
- return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate()) + " " + pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
406
+ return pad(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate()) + " " + pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
407
407
  }
408
408
  function formatDate(date) {
409
409
  const pad = (n, z = 2) => String(n).padStart(z, "0");
410
- return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
410
+ return pad(date.getUTCFullYear(), 4) + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
411
411
  }
412
412
  function formatTime(date) {
413
413
  const pad = (n, z = 2) => String(n).padStart(z, "0");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-mssql",
3
- "version": "6.18.0-dev.17",
3
+ "version": "6.18.0-dev.19",
4
4
  "description": "Prisma's driver adapter for \"mssql\"",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "mssql": "^11.0.1",
35
35
  "async-mutex": "0.5.0",
36
- "@prisma/driver-adapter-utils": "6.18.0-dev.17"
36
+ "@prisma/driver-adapter-utils": "6.18.0-dev.19"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/mssql": "9.1.8"