silgi 0.14.1 → 0.14.3

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.14.1";
1
+ const version = "0.14.3";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -2008,8 +2008,7 @@ async function prepareSchema(silgi) {
2008
2008
  Object.entries(silgi.options.runtimeConfig).filter(
2009
2009
  ([key]) => !["app", "nitro", "nuxt"].includes(key)
2010
2010
  )
2011
- ),
2012
- ...silgi.options.storages
2011
+ )
2013
2012
  }
2014
2013
  ),
2015
2014
  {
@@ -2020,9 +2019,22 @@ async function prepareSchema(silgi) {
2020
2019
  indentation: 0
2021
2020
  }
2022
2021
  ) : "",
2023
- "interface SilgiStorageBaseExtends {",
2024
- ...(data.storeBase || []).map((value) => ` ${value}: ''`),
2025
- "}",
2022
+ "",
2023
+ generateTypes(
2024
+ await resolveSchema(
2025
+ {
2026
+ ...data.storeBase?.reduce((acc, key) => ({ ...acc, [key]: "" }), {}) || {},
2027
+ ...silgi.options.storages?.reduce((acc, key) => ({ ...acc, [key]: "" }), {}) || {}
2028
+ }
2029
+ ),
2030
+ {
2031
+ interfaceName: "SilgiStorageBaseExtends",
2032
+ addExport: false,
2033
+ addDefaults: false,
2034
+ allowExtraKeys: false,
2035
+ indentation: 0
2036
+ }
2037
+ ),
2026
2038
  "",
2027
2039
  `type ModuleHooksExtend = ${data.hooks?.length ? data.hooks.map(({ value }) => `${value}`).join(" & ") : "{}"}`,
2028
2040
  "",
@@ -1,4 +1,4 @@
1
- const version = "0.14.1";
1
+ const version = "0.14.3";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.14.1";
1
+ const version = "0.14.3";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.14.1",
4
+ "version": "0.14.3",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {