cabloy 5.1.90 → 5.1.92

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.1.92
4
+
5
+ ### Bug Fixes
6
+
7
+ - Preserve SSR route typing visibility.
8
+
9
+ ### Improvements
10
+
11
+ - Clarify side-effect import module names.
12
+ - Publish the latest package updates.
13
+
14
+ ## 5.1.91
15
+
16
+ ### Features
17
+
18
+ - Update core behavior to support the latest internal feature changes.
19
+
20
+ ### Improvements
21
+
22
+ - Refine utility helpers for better internal consistency.
23
+ - Improve static middleware handling.
24
+ - Enhance SSR metadata store internals.
25
+
3
26
  ## 5.1.90
4
27
 
5
28
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cabloy",
3
- "version": "5.1.90",
3
+ "version": "5.1.92",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "A Node.js fullstack framework",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona",
3
- "version": "5.1.63",
3
+ "version": "5.1.66",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "Vona is an intuitive, elegant and powerful Node.js framework for rapidly developing enterprise applications of any size",
6
6
  "keywords": [
@@ -474,8 +474,8 @@ importers:
474
474
  specifier: npm:@cabloy/zod@4.3.8
475
475
  version: '@cabloy/zod@4.3.8'
476
476
  zova:
477
- specifier: ^5.1.126
478
- version: 5.1.126(typescript@5.9.3)(vue@3.5.39(typescript@5.9.3))
477
+ specifier: ^5.1.129
478
+ version: 5.1.129(typescript@5.9.3)(vue@3.5.39(typescript@5.9.3))
479
479
  zova-jsx:
480
480
  specifier: ^1.1.74
481
481
  version: 1.1.74(typescript@5.9.3)
@@ -513,8 +513,8 @@ importers:
513
513
  specifier: ^5.1.32
514
514
  version: 5.1.32
515
515
  zova-module-a-ssr:
516
- specifier: ^5.1.26
517
- version: 5.1.26
516
+ specifier: ^5.1.29
517
+ version: 5.1.29
518
518
  zova-module-a-style:
519
519
  specifier: ^5.1.32
520
520
  version: 5.1.32
@@ -7598,6 +7598,9 @@ packages:
7598
7598
  zova-module-a-ssr@5.1.26:
7599
7599
  resolution: {integrity: sha512-NSW9Gmf2eM/2L6zKWeW3CU8rwO6d2ayh/XnBSmKK7nZwBtnsYp0J/xs1d4z8JrBOrzkQJaD1YSk7iPtwm8OqMQ==}
7600
7600
 
7601
+ zova-module-a-ssr@5.1.29:
7602
+ resolution: {integrity: sha512-wlxLSy+Wjh/UFEVqsKQ105bvXceXPdIDmJQPKF0hSwiNY1R8HUottADfXPwYOatzZAayZ4AU4vQIpG92F2GJiA==}
7603
+
7601
7604
  zova-module-a-ssrhmr@5.1.22:
7602
7605
  resolution: {integrity: sha512-K9D0DqCPuABvESyuAY8tQ7RukMpMEaMol0SV08ixVyed7Zd/b+Ugh49WEC2b5Y5iZCJliW9JJekvzS9Y0DilTA==}
7603
7606
 
@@ -7622,9 +7625,15 @@ packages:
7622
7625
  zova-suite-a-zova@5.1.125:
7623
7626
  resolution: {integrity: sha512-JE2gfchep6I9OTmQ43O36gbO8JtLfxiy4yCMMsifGvtfZDDuPRx6/KFtFKBIusB7Oohc6GBBGDfixANXdhGDZA==}
7624
7627
 
7628
+ zova-suite-a-zova@5.1.128:
7629
+ resolution: {integrity: sha512-+YRaC7QwS1/3upXrw7gPdpApgJjs1I1UUxeDl+3CHhiXHf/qYsLdPeUuQ98WKCiLIDD5jYyEYI5SU/Cs1gwjwA==}
7630
+
7625
7631
  zova@5.1.126:
7626
7632
  resolution: {integrity: sha512-MRuKzH7rUO7jxYRqTJrjkj9GtgX/liEVyT2cBFp+O+EraHD4EQuYKf88QJzzI6w4CbfPKfgFvOfhsYnzU96pjw==}
7627
7633
 
7634
+ zova@5.1.129:
7635
+ resolution: {integrity: sha512-cRLBx/UbXxhlwYBjLOeO9EI05HFk9rexU9T/KaN2fWrWeEV86cPM6aQmGuyuj/TvnAVEIvmcr+PGFPb6x6YMvQ==}
7636
+
7628
7637
  zwitch@1.0.5:
7629
7638
  resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==}
7630
7639
 
@@ -13201,6 +13210,11 @@ snapshots:
13201
13210
  devalue: 5.8.1
13202
13211
  ms: 2.1.3
13203
13212
 
13213
+ zova-module-a-ssr@5.1.29:
13214
+ dependencies:
13215
+ devalue: 5.8.1
13216
+ ms: 2.1.3
13217
+
13204
13218
  zova-module-a-ssrhmr@5.1.22:
13205
13219
  dependencies:
13206
13220
  '@cabloy/socket': link:packages-utils/socket
@@ -13281,6 +13295,40 @@ snapshots:
13281
13295
  - typescript
13282
13296
  - vue
13283
13297
 
13298
+ zova-suite-a-zova@5.1.128(typescript@5.9.3)(vue@3.5.39(typescript@5.9.3)):
13299
+ dependencies:
13300
+ zova-module-a-api: 5.1.21
13301
+ zova-module-a-app: 5.1.24
13302
+ zova-module-a-bean: 5.1.31
13303
+ zova-module-a-behavior: 5.1.25
13304
+ zova-module-a-behaviors: 5.1.21
13305
+ zova-module-a-boundary: 5.1.21
13306
+ zova-module-a-command: 5.1.33
13307
+ zova-module-a-fetch: 5.1.23
13308
+ zova-module-a-form: 5.1.43(vue@3.5.39(typescript@5.9.3))
13309
+ zova-module-a-icon: 5.1.26
13310
+ zova-module-a-interceptor: 5.1.29
13311
+ zova-module-a-logger: 5.1.26
13312
+ zova-module-a-meta: 5.1.21
13313
+ zova-module-a-model: 5.1.30(vue@3.5.39(typescript@5.9.3))
13314
+ zova-module-a-openapi: 5.1.41
13315
+ zova-module-a-router: 5.1.29
13316
+ zova-module-a-routerstack: 5.1.26
13317
+ zova-module-a-routertabs: 5.1.32
13318
+ zova-module-a-ssr: 5.1.29
13319
+ zova-module-a-ssrhmr: 5.1.22
13320
+ zova-module-a-ssrserver: 5.1.22
13321
+ zova-module-a-style: 5.1.32
13322
+ zova-module-a-table: 5.1.37(vue@3.5.39(typescript@5.9.3))
13323
+ zova-module-a-zod: 5.1.35
13324
+ zova-module-a-zova: 5.1.89(typescript@5.9.3)(vue@3.5.39(typescript@5.9.3))
13325
+ transitivePeerDependencies:
13326
+ - '@vue/composition-api'
13327
+ - debug
13328
+ - supports-color
13329
+ - typescript
13330
+ - vue
13331
+
13284
13332
  zova@5.1.126(typescript@5.9.3)(vue@3.5.39(typescript@5.9.3)):
13285
13333
  dependencies:
13286
13334
  zova-core: 5.1.74(patch_hash=0f4164c4d2bbb16d671beb5c26759dff37769be0709df941bc7b90b94261ac54)(typescript@5.9.3)
@@ -13292,6 +13340,17 @@ snapshots:
13292
13340
  - typescript
13293
13341
  - vue
13294
13342
 
13343
+ zova@5.1.129(typescript@5.9.3)(vue@3.5.39(typescript@5.9.3)):
13344
+ dependencies:
13345
+ zova-core: 5.1.74(patch_hash=0f4164c4d2bbb16d671beb5c26759dff37769be0709df941bc7b90b94261ac54)(typescript@5.9.3)
13346
+ zova-suite-a-zova: 5.1.128(typescript@5.9.3)(vue@3.5.39(typescript@5.9.3))
13347
+ transitivePeerDependencies:
13348
+ - '@vue/composition-api'
13349
+ - debug
13350
+ - supports-color
13351
+ - typescript
13352
+ - vue
13353
+
13295
13354
  zwitch@1.0.5: {}
13296
13355
 
13297
13356
  zwitch@2.0.4: {}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-static",
3
- "version": "5.1.11",
3
+ "version": "5.1.14",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "keywords": [
@@ -138,6 +138,7 @@ async function getFullPath(
138
138
  filename: string,
139
139
  options: IMiddlewareSystemOptionsStatic,
140
140
  ): Promise<string | true | undefined> {
141
+ filename = filename.replaceAll('\\', '/');
141
142
  if (process.env.META_MODE === 'dev') {
142
143
  ctx[SymbolStaticGetFullPathInner] = () => {
143
144
  return _getFullPathInner(ctx, dir, filename, options);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-suite-a-vona",
3
- "version": "5.1.56",
3
+ "version": "5.1.59",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "author": "",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-cli",
3
- "version": "1.2.94",
3
+ "version": "1.2.96",
4
4
  "gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
5
5
  "description": "zova cli",
6
6
  "keywords": [
@@ -44,7 +44,7 @@
44
44
  "@cabloy/process-helper": "^3.1.8",
45
45
  "fs-extra": "^11.3.5",
46
46
  "semver": "^7.6.2",
47
- "zova-cli-set-front": "^1.2.92"
47
+ "zova-cli-set-front": "^1.2.94"
48
48
  },
49
49
  "devDependencies": {
50
50
  "clean-package": "^2.2.0",
@@ -5,6 +5,9 @@ import type { IIconRecord } from 'zova-module-a-icon';
5
5
  import type { TypePagePathSchema } from 'zova-module-a-router';
6
6
  import type { CssBase } from 'zova-module-home-theme';
7
7
 
8
+ export type { IIconRecord } from 'zova-module-a-icon';
9
+ export type { IPagePathRecord } from 'zova-module-a-router';
10
+
8
11
  declare module 'zova-module-a-router' {
9
12
  export interface IPagePathRecord {
10
13
  '/': TypePagePathSchema<undefined, undefined>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-cli-set-front",
3
- "version": "1.2.92",
3
+ "version": "1.2.94",
4
4
  "gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
5
5
  "description": "zova cli-set-front",
6
6
  "keywords": [
@@ -53,6 +53,7 @@ interface IBinBuildRestContext {
53
53
  srcDir: string;
54
54
  outDir: string;
55
55
  bundleModules?: string[];
56
+ sideEffectImportModuleNames?: string[];
56
57
  }
57
58
 
58
59
  export class CliBinBuildRest extends BeanCliBase {
@@ -106,14 +107,20 @@ export class CliBinBuildRest extends BeanCliBase {
106
107
  // Modules
107
108
  const modules: string[] = [];
108
109
  const bundleModules: string[] = [];
110
+ const sideEffectImportModuleNames: string[] = [];
109
111
  for (const module of modulesMeta.modulesArray) {
110
- modules.push(`export * from '${module.info.fullName}';`);
112
+ const moduleName = module.info.fullName;
113
+ modules.push(`import '${moduleName}';`);
114
+ modules.push(`export * from '${moduleName}';`);
111
115
  const moduleRoot = module.root.replaceAll('\\', '/');
112
116
  if (moduleRoot.includes('/src/module/') || moduleRoot.includes('/src/suite/')) {
113
- bundleModules.push(module.info.fullName);
117
+ bundleModules.push(moduleName);
118
+ } else {
119
+ sideEffectImportModuleNames.push(moduleName);
114
120
  }
115
121
  }
116
122
  context.bundleModules = bundleModules;
123
+ context.sideEffectImportModuleNames = sideEffectImportModuleNames;
117
124
  argv.Modules = modules.join('\n');
118
125
  // Name/Version
119
126
  argv.Name = bundleName;
@@ -149,7 +156,12 @@ export class CliBinBuildRest extends BeanCliBase {
149
156
  await fse.writeFile(fileIndex, fileContent);
150
157
  }
151
158
 
152
- async _buildDts({ srcDir, outDir, bundleModules }: IBinBuildRestContext) {
159
+ async _buildDts({
160
+ srcDir,
161
+ outDir,
162
+ bundleModules,
163
+ sideEffectImportModuleNames,
164
+ }: IBinBuildRestContext) {
153
165
  // entry
154
166
  const entry = path.join(srcDir, 'index.ts');
155
167
  // build
@@ -176,6 +188,18 @@ export class CliBinBuildRest extends BeanCliBase {
176
188
  },
177
189
  // minify: true,
178
190
  });
191
+ await this._injectDtsImports(outDir, sideEffectImportModuleNames!);
192
+ }
193
+
194
+ async _injectDtsImports(outDir: string, sideEffectImportModuleNames: string[]) {
195
+ const fileIndex = path.join(outDir, 'index.d.mts');
196
+ let fileContent = (await fse.readFile(fileIndex)).toString();
197
+ const imports = sideEffectImportModuleNames
198
+ .filter(moduleName => !fileContent.includes(`import "${moduleName}";`))
199
+ .map(moduleName => `import "${moduleName}";`);
200
+ if (imports.length === 0) return;
201
+ fileContent = `${imports.join('\n')}\n${fileContent}`;
202
+ await fse.writeFile(fileIndex, fileContent);
179
203
  }
180
204
 
181
205
  async _build(buildContext: IBinBuildRestContext) {
@@ -224,7 +248,7 @@ async function _extractDeps(filePath: string): Promise<string[]> {
224
248
  const pos = content.indexOf('//#region');
225
249
  content = content.substring(0, pos);
226
250
  const packageNames = new Set();
227
- const re = /import\s+[\s\S]*?\s+from\s+['"]([^'"]+)['"]/g;
251
+ const re = /import\s+(?:[\s\S]*?\s+from\s+)?['"]([^'"]+)['"]/g;
228
252
 
229
253
  let match: any;
230
254
  while (true) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova",
3
- "version": "5.1.126",
3
+ "version": "5.1.129",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "A vue3 framework with ioc",
6
6
  "keywords": [
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "zova-core": "^5.1.74",
49
- "zova-suite-a-zova": "^5.1.125"
49
+ "zova-suite-a-zova": "^5.1.128"
50
50
  },
51
51
  "devDependencies": {
52
52
  "clean-package": "^2.2.0",
@@ -74,7 +74,7 @@ importers:
74
74
  version: 10.5.1(postcss@8.5.15)
75
75
  axios:
76
76
  specifier: ^1.16.1
77
- version: 1.18.1
77
+ version: 1.18.1(supports-color@10.2.2)
78
78
  compression:
79
79
  specifier: ^1.8.1
80
80
  version: 1.8.1
@@ -309,7 +309,7 @@ importers:
309
309
  devDependencies:
310
310
  '@cabloy/cli':
311
311
  specifier: ^3.1.27
312
- version: 3.1.27(vue@3.5.38(typescript@5.9.3))
312
+ version: 3.1.27(supports-color@10.2.2)(vue@3.5.38(typescript@5.9.3))
313
313
  '@cabloy/lint':
314
314
  specifier: ^5.1.27
315
315
  version: 5.1.30(@typescript-eslint/eslint-plugin@8.62.0(@typescript-eslint/parser@8.62.0(eslint@10.5.0(jiti@2.7.0))(typescript@5.9.3))(eslint@10.5.0(jiti@2.7.0))(typescript@5.9.3))(@typescript-eslint/rule-tester@8.62.0(eslint@10.5.0(jiti@2.7.0))(typescript@5.9.3))(@typescript-eslint/typescript-estree@8.62.0(typescript@5.9.3))(@typescript-eslint/utils@8.62.0(eslint@10.5.0(jiti@2.7.0))(typescript@5.9.3))(eslint@10.5.0(jiti@2.7.0))(oxfmt@0.45.0)(oxlint@1.71.0)(supports-color@10.2.2)(typescript@5.9.3)(vue-eslint-parser@10.4.1(eslint@10.5.0(jiti@2.7.0)))
@@ -384,7 +384,7 @@ importers:
384
384
  dependencies:
385
385
  '@cabloy/cli':
386
386
  specifier: ^3.1.27
387
- version: 3.1.27(vue@3.5.38(typescript@5.9.3))
387
+ version: 3.1.27(supports-color@10.2.2)(vue@3.5.38(typescript@5.9.3))
388
388
  '@cabloy/process-helper':
389
389
  specifier: ^3.1.8
390
390
  version: 3.1.8
@@ -395,7 +395,7 @@ importers:
395
395
  specifier: ^7.6.2
396
396
  version: 7.8.5
397
397
  zova-cli-set-front:
398
- specifier: ^1.2.92
398
+ specifier: ^1.2.93
399
399
  version: link:../cli-set-front
400
400
  devDependencies:
401
401
  clean-package:
@@ -418,7 +418,7 @@ importers:
418
418
  version: 7.29.7(@babel/core@7.29.7)
419
419
  '@cabloy/cli':
420
420
  specifier: ^3.1.27
421
- version: 3.1.27(vue@3.5.38(typescript@5.9.3))
421
+ version: 3.1.27(supports-color@10.2.2)(vue@3.5.38(typescript@5.9.3))
422
422
  '@cabloy/extend':
423
423
  specifier: ^3.2.8
424
424
  version: 3.2.8
@@ -816,7 +816,7 @@ importers:
816
816
  specifier: ^5.1.74
817
817
  version: link:../zova-core
818
818
  zova-suite-a-zova:
819
- specifier: ^5.1.125
819
+ specifier: ^5.1.128
820
820
  version: link:../../src/suite-vendor/a-zova
821
821
  devDependencies:
822
822
  clean-package:
@@ -983,7 +983,7 @@ importers:
983
983
  specifier: ^5.1.32
984
984
  version: link:modules/a-routertabs
985
985
  zova-module-a-ssr:
986
- specifier: ^5.1.26
986
+ specifier: ^5.1.29
987
987
  version: link:modules/a-ssr
988
988
  zova-module-a-ssrhmr:
989
989
  specifier: ^5.1.22
@@ -1075,7 +1075,7 @@ importers:
1075
1075
  dependencies:
1076
1076
  axios:
1077
1077
  specifier: ^1.16.1
1078
- version: 1.18.1
1078
+ version: 1.18.1(supports-color@10.2.2)
1079
1079
  devDependencies:
1080
1080
  clean-package:
1081
1081
  specifier: ^2.2.0
@@ -1345,7 +1345,7 @@ importers:
1345
1345
  devDependencies:
1346
1346
  '@cabloy/cli':
1347
1347
  specifier: ^3.1.27
1348
- version: 3.1.27(vue@3.5.38(typescript@5.9.3))
1348
+ version: 3.1.27(supports-color@10.2.2)(vue@3.5.38(typescript@5.9.3))
1349
1349
  '@types/luxon':
1350
1350
  specifier: ^3.7.1
1351
1351
  version: 3.7.2
@@ -8189,7 +8189,7 @@ snapshots:
8189
8189
 
8190
8190
  '@bufbuild/protobuf@2.12.1': {}
8191
8191
 
8192
- '@cabloy/cli@3.1.27(vue@3.5.38(typescript@5.9.3))':
8192
+ '@cabloy/cli@3.1.27(supports-color@10.2.2)(vue@3.5.38(typescript@5.9.3))':
8193
8193
  dependencies:
8194
8194
  '@babel/parser': 7.29.7
8195
8195
  '@cabloy/module-glob': 5.3.16
@@ -8198,7 +8198,7 @@ snapshots:
8198
8198
  '@cabloy/utils': 2.1.25
8199
8199
  '@cabloy/word-utils': link:packages-utils/word-utils
8200
8200
  '@npmcli/config': 10.11.0
8201
- '@zhennann/common-bin': 4.0.1
8201
+ '@zhennann/common-bin': 4.0.1(supports-color@10.2.2)
8202
8202
  '@zhennann/ejs': 3.0.1
8203
8203
  boxen: 4.2.0
8204
8204
  chalk: 3.0.0
@@ -10219,7 +10219,7 @@ snapshots:
10219
10219
 
10220
10220
  '@vue/shared@3.5.13': {}
10221
10221
 
10222
- '@zhennann/common-bin@4.0.1':
10222
+ '@zhennann/common-bin@4.0.1(supports-color@10.2.2)':
10223
10223
  dependencies:
10224
10224
  chalk: 4.1.2
10225
10225
  change-case: 4.1.2
@@ -10253,7 +10253,7 @@ snapshots:
10253
10253
 
10254
10254
  acorn@8.17.0: {}
10255
10255
 
10256
- agent-base@6.0.2:
10256
+ agent-base@6.0.2(supports-color@10.2.2):
10257
10257
  dependencies:
10258
10258
  debug: 4.4.3(supports-color@10.2.2)
10259
10259
  transitivePeerDependencies:
@@ -10365,11 +10365,11 @@ snapshots:
10365
10365
  dependencies:
10366
10366
  possible-typed-array-names: 1.1.0
10367
10367
 
10368
- axios@1.18.1:
10368
+ axios@1.18.1(supports-color@10.2.2):
10369
10369
  dependencies:
10370
10370
  follow-redirects: 1.16.0
10371
10371
  form-data: 4.0.6
10372
- https-proxy-agent: 5.0.1
10372
+ https-proxy-agent: 5.0.1(supports-color@10.2.2)
10373
10373
  proxy-from-env: 2.1.0
10374
10374
  transitivePeerDependencies:
10375
10375
  - debug
@@ -11785,9 +11785,9 @@ snapshots:
11785
11785
  statuses: 2.0.2
11786
11786
  toidentifier: 1.0.1
11787
11787
 
11788
- https-proxy-agent@5.0.1:
11788
+ https-proxy-agent@5.0.1(supports-color@10.2.2):
11789
11789
  dependencies:
11790
- agent-base: 6.0.2
11790
+ agent-base: 6.0.2(supports-color@10.2.2)
11791
11791
  debug: 4.4.3(supports-color@10.2.2)
11792
11792
  transitivePeerDependencies:
11793
11793
  - supports-color
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-module-a-ssr",
3
- "version": "5.1.26",
3
+ "version": "5.1.29",
4
4
  "gitHead": "09d901d17140a80ee0764211b441cda72fd94663",
5
5
  "description": "",
6
6
  "keywords": [
@@ -176,11 +176,12 @@ export class CtxSSRMetaStore extends BeanSimple {
176
176
  });`;
177
177
  const ssr_local_themename = this.sys.config.ssr.cookie
178
178
  ? ''
179
- : "window.ssr_local_themename=window.ssr_load_local('themename');";
179
+ : `window.ssr_local_themename=window.ssr_load_local('themename','${this.sys.env.STYLE_DEFAULT_THEME}');`;
180
180
  ctx.endingHeadTags += `<script id="ssr-prefers-color-schema-dark">
181
- window.ssr_load_local=function(key){
181
+ window.ssr_load_local=function(key,defaultValue){
182
182
  const __ssr_local=localStorage.getItem(key);
183
- return __ssr_local?JSON.parse(__ssr_local):undefined;
183
+ const value=__ssr_local?JSON.parse(__ssr_local):undefined;
184
+ return value??defaultValue;
184
185
  };
185
186
  ${ssr_local_themedark}
186
187
  ${ssr_local_themename}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-suite-a-zova",
3
- "version": "5.1.125",
3
+ "version": "5.1.128",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "zova",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "zova-module-a-router": "^5.1.29",
27
27
  "zova-module-a-routerstack": "^5.1.26",
28
28
  "zova-module-a-routertabs": "^5.1.32",
29
- "zova-module-a-ssr": "^5.1.26",
29
+ "zova-module-a-ssr": "^5.1.29",
30
30
  "zova-module-a-ssrhmr": "^5.1.22",
31
31
  "zova-module-a-ssrserver": "^5.1.22",
32
32
  "zova-module-a-style": "^5.1.32",