@jskit-ai/database-runtime-postgres 0.1.15 → 0.1.17

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.
@@ -1,7 +1,8 @@
1
1
  export default Object.freeze({
2
2
  packageVersion: 1,
3
3
  packageId: "@jskit-ai/database-runtime-postgres",
4
- version: "0.1.15",
4
+ version: "0.1.17",
5
+ kind: "runtime",
5
6
  options: {
6
7
  "db-host": {
7
8
  required: false,
@@ -90,7 +91,7 @@ export default Object.freeze({
90
91
  mutations: {
91
92
  dependencies: {
92
93
  runtime: {
93
- "@jskit-ai/database-runtime": "0.1.16",
94
+ "@jskit-ai/database-runtime": "0.1.18",
94
95
  "pg": "^8.13.1"
95
96
  },
96
97
  dev: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/database-runtime-postgres",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
@@ -12,6 +12,6 @@
12
12
  "./shared/dialect": "./src/shared/dialect.js"
13
13
  },
14
14
  "dependencies": {
15
- "@jskit-ai/database-runtime": "0.1.16"
15
+ "@jskit-ai/database-runtime": "0.1.18"
16
16
  }
17
17
  }
@@ -1,20 +1,18 @@
1
1
  import * as postgresDialect from "../../shared/index.js";
2
2
 
3
- const DATABASE_DRIVER_POSTGRES_TOKEN = "runtime.database.driver.postgres";
4
-
5
3
  const POSTGRES_DATABASE_DRIVER_API = Object.freeze({
6
4
  ...postgresDialect
7
5
  });
8
6
 
9
7
  class DatabaseRuntimePostgresServiceProvider {
10
- static id = DATABASE_DRIVER_POSTGRES_TOKEN;
8
+ static id = "runtime.database.driver.postgres";
11
9
 
12
10
  register(app) {
13
11
  if (!app || typeof app.singleton !== "function") {
14
12
  throw new Error("DatabaseRuntimePostgresServiceProvider requires application singleton().");
15
13
  }
16
14
 
17
- app.singleton(DATABASE_DRIVER_POSTGRES_TOKEN, () => POSTGRES_DATABASE_DRIVER_API);
15
+ app.singleton("runtime.database.driver.postgres", () => POSTGRES_DATABASE_DRIVER_API);
18
16
  }
19
17
 
20
18
  boot() {}