silgi 0.14.2 → 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.
package/dist/_chunks/index.mjs
CHANGED
|
@@ -2008,9 +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
|
-
// Create an object with storage keys from the array
|
|
2013
|
-
...silgi.options.storages?.reduce((acc, key) => ({ ...acc, [key]: "" }), {}) || {}
|
|
2011
|
+
)
|
|
2014
2012
|
}
|
|
2015
2013
|
),
|
|
2016
2014
|
{
|
|
@@ -2021,9 +2019,22 @@ async function prepareSchema(silgi) {
|
|
|
2021
2019
|
indentation: 0
|
|
2022
2020
|
}
|
|
2023
2021
|
) : "",
|
|
2024
|
-
"
|
|
2025
|
-
|
|
2026
|
-
|
|
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
|
+
),
|
|
2027
2038
|
"",
|
|
2028
2039
|
`type ModuleHooksExtend = ${data.hooks?.length ? data.hooks.map(({ value }) => `${value}`).join(" & ") : "{}"}`,
|
|
2029
2040
|
"",
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED