silgi 0.28.3 → 0.28.4

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.3";
4
+ const version = "0.28.4";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -2348,13 +2348,14 @@ async function createSilgiCLI(config = {}, opts = {}) {
2348
2348
  async updateConfig(_config) {
2349
2349
  },
2350
2350
  routeRules: void 0,
2351
- adapter: void 0
2351
+ adapter: {}
2352
2352
  };
2353
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
+ const { tables, ...options2 } = value;
2355
2356
  silgi.adapter[key] = createAdapter(
2356
2357
  value.tables,
2357
- value.database
2358
+ options2
2358
2359
  );
2359
2360
  }
2360
2361
  }
@@ -814,7 +814,6 @@ interface SilgiCLIOptions extends PresetOptions {
814
814
  installPackages: Record<'dependencies' | 'devDependencies', Record<string, string>>;
815
815
  apiFul: ApifulConfig;
816
816
  database: Record<string, {
817
- adapter: Adapter<any, TablesSchema, any>;
818
817
  tables: (options: AdapterOptions) => TablesSchema;
819
818
  } & AdapterOptions>;
820
819
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.28.3",
4
+ "version": "0.28.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {