silgi 0.28.0 → 0.28.1

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,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.28.0";
4
+ const version = "0.28.1";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -2350,7 +2350,7 @@ async function createSilgiCLI(config = {}, opts = {}) {
2350
2350
  routeRules: void 0,
2351
2351
  adapter: void 0
2352
2352
  };
2353
- if (Object.keys(silgi.options.database).length) {
2353
+ if (silgi.options.database && Object.keys(silgi.options.database)?.length > 0) {
2354
2354
  for (const [key, value] of Object.entries(silgi.options.database)) {
2355
2355
  silgi.adapter[key] = createAdapter(
2356
2356
  value.tables,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.28.0",
4
+ "version": "0.28.1",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {