@teamkeel/functions-runtime 0.396.8-next.1 → 0.396.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/package.json +1 -1
- package/src/database.js +1 -2
package/package.json
CHANGED
package/src/database.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const { Kysely, PostgresDialect, CamelCasePlugin } = require("kysely");
|
|
2
2
|
const neonserverless = require("@neondatabase/serverless");
|
|
3
|
-
const types = require("@neondatabase/serverless");
|
|
4
3
|
const { AsyncLocalStorage } = require("async_hooks");
|
|
5
4
|
const { AuditContextPlugin } = require("./auditing");
|
|
6
5
|
const pg = require("pg");
|
|
@@ -172,7 +171,7 @@ function getDialect() {
|
|
|
172
171
|
case "neon":
|
|
173
172
|
// Adding a custom type parser for numeric fields: see https://kysely.dev/docs/recipes/data-types#configuring-runtime-javascript-types
|
|
174
173
|
// 1700 = type for NUMERIC
|
|
175
|
-
types.setTypeParser(1700, function (val) {
|
|
174
|
+
neonserverless.types.setTypeParser(1700, function (val) {
|
|
176
175
|
return parseFloat(val);
|
|
177
176
|
});
|
|
178
177
|
|