silgi 0.7.27 → 0.7.29

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,4 +1,4 @@
1
- const version = "0.7.27";
1
+ const version = "0.7.29";
2
2
  const packageJson = {
3
3
  version: version};
4
4
 
@@ -693,11 +693,18 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
693
693
  ` plugins: [${plugins.join(", ")}],`,
694
694
  _silgiConfigs.length > 0 ? ` ${_silgiConfigs.map((config) => typeof config === "string" ? config : typeof config === "object" ? Object.entries(config).map(([key, value]) => `${key}: ${value}`).join(",\n ") : "").join(",\n ")},` : "",
695
695
  " ...buildOptions,",
696
- " options: deepMerge({",
697
- ` present: '${silgi.options.preset}',`,
698
- " ...moduleOptions,",
699
- " ..._silgiOptions",
700
- " }),",
696
+ // ' options: deepMerge({',
697
+ // ` present: '${silgi.options.preset}',`,
698
+ // ' ...moduleOptions,',
699
+ // ' ..._silgiOptions',
700
+ // ' }),',
701
+ " options: deepMerge(",
702
+ " {",
703
+ ` present: '${silgi.options.preset}',`,
704
+ " },",
705
+ " moduleOptions,",
706
+ " _silgiOptions",
707
+ " ) as any,",
701
708
  " })",
702
709
  "",
703
710
  ...frameworkContext,
@@ -561,7 +561,7 @@ async function createSilgi(config) {
561
561
  plugins: config.plugins ?? [],
562
562
  framework: config.framework ?? void 0,
563
563
  storage: config.storage ?? void 0,
564
- options: config.options,
564
+ options: config.options ?? {},
565
565
  hooks,
566
566
  callHook: hooks.callHook,
567
567
  addHooks: hooks.addHooks,
@@ -570,7 +570,7 @@ async function createSilgi(config) {
570
570
  return hooks.callHook("ready", silgi);
571
571
  },
572
572
  close: () => hooks.callHook("close", silgi),
573
- logger: createConsola(defu(config.options.consolaOptions, {
573
+ logger: createConsola(defu(config.options?.consolaOptions ?? {}, {
574
574
  tag: "silgi"
575
575
  })).withTag("silgi"),
576
576
  captureError: config.captureError ?? (() => {
@@ -1,3 +1,3 @@
1
- const version = "0.7.27";
1
+ const version = "0.7.29";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "0.7.27";
1
+ const version = "0.7.29";
2
2
 
3
3
  export { version };
@@ -1 +1 @@
1
- export declare const deepMerge: import("@fastify/deepmerge").DeepMergeAllFn;
1
+ export declare const deepMerge: import("@fastify/deepmerge").DeepMergeFn;
@@ -1,2 +1,2 @@
1
1
  import { deepmerge } from "@fastify/deepmerge";
2
- export const deepMerge = deepmerge({ all: true });
2
+ export const deepMerge = deepmerge();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.7.27",
4
+ "version": "0.7.29",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {