@faasjs/knex 0.0.2-beta.324 → 0.0.2-beta.328

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
@@ -49,10 +49,10 @@ var Knex = class {
49
49
  this.name = Name;
50
50
  if (config) {
51
51
  this.name = config.name || this.type;
52
- this.config = config.config || Object.create(null);
52
+ this.config = config.config || /* @__PURE__ */ Object.create(null);
53
53
  } else {
54
54
  this.name = this.type;
55
- this.config = Object.create(null);
55
+ this.config = /* @__PURE__ */ Object.create(null);
56
56
  }
57
57
  this.logger = new import_logger.Logger(this.name);
58
58
  }
@@ -81,7 +81,7 @@ var Knex = class {
81
81
  if (typeof this.config[key] === "undefined")
82
82
  if (key.startsWith("connection_")) {
83
83
  if (!this.config.connection) {
84
- this.config.connection = Object.create(null);
84
+ this.config.connection = /* @__PURE__ */ Object.create(null);
85
85
  }
86
86
  this.config.connection[key.replace("connection_", "")] = value;
87
87
  } else
package/dist/index.mjs CHANGED
@@ -23,10 +23,10 @@ var Knex = class {
23
23
  this.name = Name;
24
24
  if (config) {
25
25
  this.name = config.name || this.type;
26
- this.config = config.config || Object.create(null);
26
+ this.config = config.config || /* @__PURE__ */ Object.create(null);
27
27
  } else {
28
28
  this.name = this.type;
29
- this.config = Object.create(null);
29
+ this.config = /* @__PURE__ */ Object.create(null);
30
30
  }
31
31
  this.logger = new Logger(this.name);
32
32
  }
@@ -55,7 +55,7 @@ var Knex = class {
55
55
  if (typeof this.config[key] === "undefined")
56
56
  if (key.startsWith("connection_")) {
57
57
  if (!this.config.connection) {
58
- this.config.connection = Object.create(null);
58
+ this.config.connection = /* @__PURE__ */ Object.create(null);
59
59
  }
60
60
  this.config.connection[key.replace("connection_", "")] = value;
61
61
  } else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/knex",
3
- "version": "0.0.2-beta.324",
3
+ "version": "0.0.2-beta.328",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,15 +16,16 @@
16
16
  },
17
17
  "funding": "https://github.com/sponsors/faasjs",
18
18
  "scripts": {
19
- "build": "rm -rf ./dist && tsup-node src/index.ts --format esm,cjs --dts"
19
+ "build": "tsup-node src/index.ts --format esm,cjs",
20
+ "build:types": "tsup-node src/index.ts --dts-only"
20
21
  },
21
22
  "files": [
22
23
  "dist"
23
24
  ],
24
25
  "peerDependencies": {
25
- "@faasjs/deep_merge": "^0.0.2-beta.324",
26
- "@faasjs/func": "^0.0.2-beta.324",
27
- "@faasjs/logger": "^0.0.2-beta.324",
26
+ "@faasjs/deep_merge": "^0.0.2-beta.328",
27
+ "@faasjs/func": "^0.0.2-beta.328",
28
+ "@faasjs/logger": "^0.0.2-beta.328",
28
29
  "knex": "*"
29
30
  },
30
31
  "devDependencies": {
@@ -40,6 +41,5 @@
40
41
  },
41
42
  "engines": {
42
43
  "npm": ">=8.0.0"
43
- },
44
- "gitHead": "4a9f699171ad7e20d922e68b74418d1ec5b7d016"
44
+ }
45
45
  }