vona-core 5.1.16 → 5.1.20
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/LICENSE +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/core/config.d.ts +1 -0
- package/dist/lib/core/config.d.ts.map +1 -1
- package/dist/lib/utils/sqlite3.d.ts.map +1 -1
- package/package.json +20 -17
- package/src/index.ts +0 -0
- package/src/lib/bean/resource/error/errorClass.ts +0 -0
- package/src/lib/bean/resource/error/errorInternal.ts +0 -0
- package/src/lib/core/config.ts +7 -3
- package/src/lib/core/context.ts +0 -0
- package/src/lib/core/meta.ts +0 -0
- package/src/lib/locale/zh-cn.ts +0 -0
- package/src/lib/module/config.ts +0 -0
- package/src/lib/module/constant.ts +0 -0
- package/src/lib/module/errors.ts +0 -0
- package/src/lib/module/loader.ts +0 -0
- package/src/lib/module/locales.ts +0 -0
- package/src/lib/module/module.ts +0 -0
- package/src/lib/utils/sqlite3.ts +2 -2
- package/src/lib/utils/util.ts +0 -0
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -2521,7 +2521,7 @@ function getLoggerPathPhysicalRoot(app) {
|
|
|
2521
2521
|
if (mode === 'test' || mode === 'dev') {
|
|
2522
2522
|
loggerDir = path.join(app.projectPath, '.app/logs');
|
|
2523
2523
|
} else {
|
|
2524
|
-
loggerDir = path.join(
|
|
2524
|
+
loggerDir = path.join(getHomeVonaAppDir(app), 'logs');
|
|
2525
2525
|
}
|
|
2526
2526
|
fse.ensureDirSync(loggerDir);
|
|
2527
2527
|
return loggerDir;
|
|
@@ -2532,7 +2532,7 @@ function getPublicPathPhysicalRoot(app) {
|
|
|
2532
2532
|
if (mode === 'test' || mode === 'dev') {
|
|
2533
2533
|
publicDir = path.join(app.projectPath, '.app/public');
|
|
2534
2534
|
} else {
|
|
2535
|
-
publicDir = path.join(
|
|
2535
|
+
publicDir = path.join(getHomeVonaAppDir(app), 'public');
|
|
2536
2536
|
}
|
|
2537
2537
|
fse.ensureDirSync(publicDir);
|
|
2538
2538
|
return publicDir;
|
|
@@ -2543,11 +2543,14 @@ function getRuntimePathPhysicalRoot(app) {
|
|
|
2543
2543
|
if (mode === 'test' || mode === 'dev') {
|
|
2544
2544
|
runtimeDir = path.join(app.options.projectPath, '.app/runtime');
|
|
2545
2545
|
} else {
|
|
2546
|
-
runtimeDir = path.join(
|
|
2546
|
+
runtimeDir = path.join(getHomeVonaAppDir(app), 'runtime');
|
|
2547
2547
|
}
|
|
2548
2548
|
fse.ensureDirSync(runtimeDir);
|
|
2549
2549
|
return runtimeDir;
|
|
2550
2550
|
}
|
|
2551
|
+
function getHomeVonaAppDir(app) {
|
|
2552
|
+
return path.join(os.homedir(), '.vona', app.name);
|
|
2553
|
+
}
|
|
2551
2554
|
|
|
2552
2555
|
var enUs = {
|
|
2553
2556
|
...errorsInternal,
|
|
@@ -3313,7 +3316,7 @@ async function retry(options, fn) {
|
|
|
3313
3316
|
function getSqlite3DatabaseNameDefault(app) {
|
|
3314
3317
|
const mode = app.meta.env.META_MODE;
|
|
3315
3318
|
if (mode !== 'prod') return '';
|
|
3316
|
-
const dbPath = path.join(
|
|
3319
|
+
const dbPath = path.join(getHomeVonaAppDir(app), 'sqlite3');
|
|
3317
3320
|
fse.ensureDirSync(dbPath);
|
|
3318
3321
|
return path.join(dbPath, `${app.name}.db`);
|
|
3319
3322
|
}
|
|
@@ -3346,5 +3349,5 @@ function prepareNativeBinding(nativeBinding) {
|
|
|
3346
3349
|
|
|
3347
3350
|
zodExtendOpenApi();
|
|
3348
3351
|
|
|
3349
|
-
export { $Class, $localeScope, $makeLocaleMagic, $protocolKey, AppHmr, AppHmrDeps, AppLocale, AppLogger, AppMeta, AppMetadata, AppResource, AppUtil, BeanAopBase, BeanAopMethodBase, BeanBase, BeanBaseSimple, BeanContainer, BeanInfo, BeanScopeBase, BeanScopeContainer, BeanScopeError, BeanScopeErrorImpl, BeanScopeLocale, BeanScopeScene, BeanScopeUtil, BeanSimple, EnumAppEvent, ErrorClass, Global, LocaleModuleNameSeparator, PickClassInner, ProxyDisable, SymbolBeanContainerInstances, SymbolBeanFullName, SymbolBeanInstanceKey, SymbolBeanInstancePropsLazy, SymbolCacheAopChains, SymbolCacheAopChainsKey, SymbolDecoratorBeanFullName, SymbolDecoratorBeanInfo, SymbolDecoratorGlobal, SymbolDecoratorProxyDisable, SymbolDecoratorUse, SymbolDecoratorVirtual, SymbolHmrStateLoad, SymbolHmrStateSave, SymbolMappedClassMetadataKeys, SymbolModuleBelong, SymbolModuleName, Use, Virtual, VonaApplication, __prepareInjectSelectorInfo, appHmrDeps, appMetadata, appResource, beanFullNameFromOnionName, bootstrap, cast, closeApp, combineConfigDefault, combineFilePathSafe, compose, copyMetadataOfClasses, copyProperties, copyPropertiesOfClasses, copySqlite3NativeBinding, createApp, createAppMaster, createBeanDecorator, createGeneralApp, createHash, deepExtend, disposeInstance, errorsInternal, filterHeaders, formatLoggerAxiosError, formatLoggerConsole, formatLoggerCtx, formatLoggerDummy, formatLoggerErrors, formatLoggerFilter, functionNoop, getLoggerPathPhysicalRoot, getMappedClassMetadataKeys, getPublicPathPhysicalRoot, getRuntimePathPhysicalRoot, getSqlite3DatabaseNameDefault, getSqlite3NativeBinding, instanceDesp, isLocaleMagic, loadJSONFile, onionNameFromBeanFullName, pathToHref, polyfillDispose, prepareEnv, registerMappedClassMetadataKey, requireDynamic, retry, saveJSONFile, setMappedClassMetadataKeys, text, useApp, usePrepareArg, usePrepareArgs, uuidv4 };
|
|
3352
|
+
export { $Class, $localeScope, $makeLocaleMagic, $protocolKey, AppHmr, AppHmrDeps, AppLocale, AppLogger, AppMeta, AppMetadata, AppResource, AppUtil, BeanAopBase, BeanAopMethodBase, BeanBase, BeanBaseSimple, BeanContainer, BeanInfo, BeanScopeBase, BeanScopeContainer, BeanScopeError, BeanScopeErrorImpl, BeanScopeLocale, BeanScopeScene, BeanScopeUtil, BeanSimple, EnumAppEvent, ErrorClass, Global, LocaleModuleNameSeparator, PickClassInner, ProxyDisable, SymbolBeanContainerInstances, SymbolBeanFullName, SymbolBeanInstanceKey, SymbolBeanInstancePropsLazy, SymbolCacheAopChains, SymbolCacheAopChainsKey, SymbolDecoratorBeanFullName, SymbolDecoratorBeanInfo, SymbolDecoratorGlobal, SymbolDecoratorProxyDisable, SymbolDecoratorUse, SymbolDecoratorVirtual, SymbolHmrStateLoad, SymbolHmrStateSave, SymbolMappedClassMetadataKeys, SymbolModuleBelong, SymbolModuleName, Use, Virtual, VonaApplication, __prepareInjectSelectorInfo, appHmrDeps, appMetadata, appResource, beanFullNameFromOnionName, bootstrap, cast, closeApp, combineConfigDefault, combineFilePathSafe, compose, copyMetadataOfClasses, copyProperties, copyPropertiesOfClasses, copySqlite3NativeBinding, createApp, createAppMaster, createBeanDecorator, createGeneralApp, createHash, deepExtend, disposeInstance, errorsInternal, filterHeaders, formatLoggerAxiosError, formatLoggerConsole, formatLoggerCtx, formatLoggerDummy, formatLoggerErrors, formatLoggerFilter, functionNoop, getHomeVonaAppDir, getLoggerPathPhysicalRoot, getMappedClassMetadataKeys, getPublicPathPhysicalRoot, getRuntimePathPhysicalRoot, getSqlite3DatabaseNameDefault, getSqlite3NativeBinding, instanceDesp, isLocaleMagic, loadJSONFile, onionNameFromBeanFullName, pathToHref, polyfillDispose, prepareEnv, registerMappedClassMetadataKey, requireDynamic, retry, saveJSONFile, setMappedClassMetadataKeys, text, useApp, usePrepareArg, usePrepareArgs, uuidv4 };
|
|
3350
3353
|
//# sourceMappingURL=index.js.map
|