@faasjs/knex 0.0.3-beta.78 → 0.0.3-beta.79

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
@@ -103,6 +103,8 @@ var Knex = class {
103
103
  acquireTimeoutMillis: 5e3,
104
104
  idleTimeoutMillis: 3e4
105
105
  }, this.config.pool);
106
+ if (typeof this.config.connection === "string" && !this.config.connection.includes("json=true"))
107
+ this.config.connection = this.config.connection + "?json=true";
106
108
  }
107
109
  this.adapter = (0, import_knex.default)(this.config);
108
110
  if (this.config.client === "pg") {
package/dist/index.mjs CHANGED
@@ -79,6 +79,8 @@ var Knex = class {
79
79
  acquireTimeoutMillis: 5e3,
80
80
  idleTimeoutMillis: 3e4
81
81
  }, this.config.pool);
82
+ if (typeof this.config.connection === "string" && !this.config.connection.includes("json=true"))
83
+ this.config.connection = this.config.connection + "?json=true";
82
84
  }
83
85
  this.adapter = knex(this.config);
84
86
  if (this.config.client === "pg") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/knex",
3
- "version": "0.0.3-beta.78",
3
+ "version": "0.0.3-beta.79",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,9 +21,9 @@
21
21
  "dist"
22
22
  ],
23
23
  "dependencies": {
24
- "@faasjs/deep_merge": "^0.0.3-beta.78",
25
- "@faasjs/func": "^0.0.3-beta.78",
26
- "@faasjs/logger": "^0.0.3-beta.78",
24
+ "@faasjs/deep_merge": "^0.0.3-beta.79",
25
+ "@faasjs/func": "^0.0.3-beta.79",
26
+ "@faasjs/logger": "^0.0.3-beta.79",
27
27
  "knex": "*"
28
28
  },
29
29
  "devDependencies": {