abckit 0.0.49 → 0.0.51
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/module.mjs +14 -3
- package/package.json +1 -1
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addTypeTemplate, addServerScanDir, addRouteMiddleware, defineNuxtModule, createResolver } from '@nuxt/kit';
|
|
1
|
+
import { updateRuntimeConfig, addTypeTemplate, addServerScanDir, addRouteMiddleware, defineNuxtModule, createResolver } from '@nuxt/kit';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import { networkInterfaces } from 'node:os';
|
|
@@ -113,7 +113,7 @@ const NPM_TS_PATHS = {
|
|
|
113
113
|
"abckit/lib": ["./node_modules/abckit/runtime/utils"]
|
|
114
114
|
};
|
|
115
115
|
const H3_TYPE_TEMPLATE = `
|
|
116
|
-
declare module 'h3' {
|
|
116
|
+
declare module 'nitro/h3' {
|
|
117
117
|
interface H3EventContext {
|
|
118
118
|
auth: {
|
|
119
119
|
user: {
|
|
@@ -181,6 +181,13 @@ async function setupRuntimeConfig(nuxt, options, isSentryEnabled) {
|
|
|
181
181
|
redis: options.modules?.redis ?? false,
|
|
182
182
|
disk: options.modules?.disk ?? false
|
|
183
183
|
});
|
|
184
|
+
await updateRuntimeConfig({
|
|
185
|
+
modules: {
|
|
186
|
+
s3: options.modules?.s3 ?? false,
|
|
187
|
+
redis: options.modules?.redis ?? false,
|
|
188
|
+
disk: options.modules?.disk ?? false
|
|
189
|
+
}
|
|
190
|
+
});
|
|
184
191
|
nuxt.options.runtimeConfig.public = defu(nuxt.options.runtimeConfig.public, {
|
|
185
192
|
siteUrl: isMobileBuild ? mobileBaseURL : "http://localhost:3000",
|
|
186
193
|
isMobile: isMobileBuild,
|
|
@@ -461,7 +468,11 @@ const module$1 = defineNuxtModule({
|
|
|
461
468
|
defaults: {
|
|
462
469
|
modules: {
|
|
463
470
|
all: false,
|
|
464
|
-
sentry: false
|
|
471
|
+
sentry: false,
|
|
472
|
+
graphql: false,
|
|
473
|
+
s3: false,
|
|
474
|
+
redis: false,
|
|
475
|
+
disk: false
|
|
465
476
|
},
|
|
466
477
|
auth: {
|
|
467
478
|
baseURL: isMobileBuild ? mobileBaseURL : void 0,
|