@oino-ts/db-bunsqlite 0.20.2 → 0.21.0

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.
@@ -166,7 +166,7 @@ class OINODbBunSqlite extends db_1.OINODb {
166
166
  result.setError(500, "Exception connecting to database: " + e.message, "OINODbBunSqlite.connect");
167
167
  common_1.OINOLog.exception("@oino-ts/db-bunsqlite", "OINODbBunSqlite", "connect", "exception in connect", { message: e.message, stack: e.stack });
168
168
  }
169
- common_1.OINOBenchmark.endMetric("OINODb", "connect");
169
+ common_1.OINOBenchmark.endMetric("OINODb", "connect", result.status != 500);
170
170
  return result;
171
171
  }
172
172
  /**
@@ -163,7 +163,7 @@ export class OINODbBunSqlite extends OINODb {
163
163
  result.setError(500, "Exception connecting to database: " + e.message, "OINODbBunSqlite.connect");
164
164
  OINOLog.exception("@oino-ts/db-bunsqlite", "OINODbBunSqlite", "connect", "exception in connect", { message: e.message, stack: e.stack });
165
165
  }
166
- OINOBenchmark.endMetric("OINODb", "connect");
166
+ OINOBenchmark.endMetric("OINODb", "connect", result.status != 500);
167
167
  return result;
168
168
  }
169
169
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oino-ts/db-bunsqlite",
3
- "version": "0.20.2",
3
+ "version": "0.21.0",
4
4
  "description": "OINO TS package for using Bun Sqlite databases.",
5
5
  "author": "Matias Kiviniemi (pragmatta)",
6
6
  "license": "MPL-2.0",
@@ -20,8 +20,8 @@
20
20
  "module": "./dist/esm/index.js",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "dependencies": {
23
- "@oino-ts/common": "^0.20.2",
24
- "@oino-ts/db": "^0.20.2"
23
+ "@oino-ts/common": "^0.21.0",
24
+ "@oino-ts/db": "^0.21.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/bun": "latest",
@@ -174,7 +174,7 @@ export class OINODbBunSqlite extends OINODb {
174
174
  result.setError(500, "Exception connecting to database: " + e.message, "OINODbBunSqlite.connect")
175
175
  OINOLog.exception("@oino-ts/db-bunsqlite", "OINODbBunSqlite", "connect", "exception in connect", {message:e.message, stack:e.stack})
176
176
  }
177
- OINOBenchmark.endMetric("OINODb", "connect")
177
+ OINOBenchmark.endMetric("OINODb", "connect", result.status != 500)
178
178
  return result
179
179
  }
180
180