@prisma/adapter-planetscale 6.16.0-dev.3 → 6.16.0-dev.30

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
@@ -152,17 +152,17 @@ function mapArg(arg, argType) {
152
152
  }
153
153
  function formatDateTime(date) {
154
154
  const pad = (n, z = 2) => String(n).padStart(z, "0");
155
- const ms = date.getMilliseconds();
156
- return date.getFullYear() + "-" + pad(date.getMonth() + 1) + "-" + pad(date.getDate()) + " " + pad(date.getHours()) + ":" + pad(date.getMinutes()) + ":" + pad(date.getSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
155
+ const ms = date.getUTCMilliseconds();
156
+ 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") : "");
157
157
  }
158
158
  function formatDate(date) {
159
159
  const pad = (n, z = 2) => String(n).padStart(z, "0");
160
- return date.getFullYear() + "-" + pad(date.getMonth() + 1) + "-" + pad(date.getDate());
160
+ return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
161
161
  }
162
162
  function formatTime(date) {
163
163
  const pad = (n, z = 2) => String(n).padStart(z, "0");
164
- const ms = date.getMilliseconds();
165
- return pad(date.getHours()) + ":" + pad(date.getMinutes()) + ":" + pad(date.getSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
164
+ const ms = date.getUTCMilliseconds();
165
+ return pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
166
166
  }
167
167
 
168
168
  // src/deferred.ts
package/dist/index.mjs CHANGED
@@ -116,17 +116,17 @@ function mapArg(arg, argType) {
116
116
  }
117
117
  function formatDateTime(date) {
118
118
  const pad = (n, z = 2) => String(n).padStart(z, "0");
119
- const ms = date.getMilliseconds();
120
- return date.getFullYear() + "-" + pad(date.getMonth() + 1) + "-" + pad(date.getDate()) + " " + pad(date.getHours()) + ":" + pad(date.getMinutes()) + ":" + pad(date.getSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
119
+ const ms = date.getUTCMilliseconds();
120
+ 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") : "");
121
121
  }
122
122
  function formatDate(date) {
123
123
  const pad = (n, z = 2) => String(n).padStart(z, "0");
124
- return date.getFullYear() + "-" + pad(date.getMonth() + 1) + "-" + pad(date.getDate());
124
+ return date.getUTCFullYear() + "-" + pad(date.getUTCMonth() + 1) + "-" + pad(date.getUTCDate());
125
125
  }
126
126
  function formatTime(date) {
127
127
  const pad = (n, z = 2) => String(n).padStart(z, "0");
128
- const ms = date.getMilliseconds();
129
- return pad(date.getHours()) + ":" + pad(date.getMinutes()) + ":" + pad(date.getSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
128
+ const ms = date.getUTCMilliseconds();
129
+ return pad(date.getUTCHours()) + ":" + pad(date.getUTCMinutes()) + ":" + pad(date.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
130
130
  }
131
131
 
132
132
  // src/deferred.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-planetscale",
3
- "version": "6.16.0-dev.3",
3
+ "version": "6.16.0-dev.30",
4
4
  "description": "Prisma's driver adapter for \"@planetscale/database\"",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,18 +33,14 @@
33
33
  "dependencies": {
34
34
  "async-mutex": "0.5.0",
35
35
  "@planetscale/database": "^1.15.0",
36
- "@prisma/driver-adapter-utils": "6.16.0-dev.3"
36
+ "@prisma/driver-adapter-utils": "6.16.0-dev.30"
37
37
  },
38
38
  "devDependencies": {
39
- "@swc/core": "1.11.5",
40
- "@swc/jest": "0.2.37",
41
- "jest": "29.7.0",
42
- "jest-junit": "16.0.0",
43
39
  "undici": "7.4.0"
44
40
  },
45
41
  "scripts": {
46
42
  "dev": "DEV=true tsx helpers/build.ts",
47
43
  "build": "tsx helpers/build.ts",
48
- "test": "jest"
44
+ "test": "vitest run"
49
45
  }
50
46
  }