zova-core 5.1.83 → 5.1.85

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-core",
3
- "version": "5.1.83",
4
- "gitHead": "f56eaba77347037643b625c8e6c5af408ff2d495",
3
+ "version": "5.1.85",
4
+ "gitHead": "75a09e6a22891e958802ee649ed454db38f90c16",
5
5
  "description": "A vue3 framework with ioc",
6
6
  "keywords": [
7
7
  "ioc",
@@ -44,8 +44,8 @@
44
44
  "@cabloy/compose": "^2.1.9",
45
45
  "@cabloy/extend": "^3.2.8",
46
46
  "@cabloy/json5": "^1.1.9",
47
- "@cabloy/localeutil": "^2.1.8",
48
- "@cabloy/logger": "^1.1.24",
47
+ "@cabloy/localeutil": "^2.1.9",
48
+ "@cabloy/logger": "^1.1.25",
49
49
  "@cabloy/module-info": "^2.0.3",
50
50
  "@cabloy/utils": "^2.1.27",
51
51
  "@cabloy/vue-compiler-sfc": "^3.5.14",
@@ -59,6 +59,7 @@
59
59
  "@cabloy/zod-openapi": "^1.1.10",
60
60
  "@cabloy/zod-query": "^2.1.13",
61
61
  "@types/js-cookie": "^3.0.6",
62
+ "@types/ms": "^2.1.0",
62
63
  "@vue/shared": "^3.5.32",
63
64
  "deep-equal": "^2.2.3",
64
65
  "ms": "^2.1.3",
@@ -1,5 +1,5 @@
1
1
  import type { ZovaConfigMeta } from '@cabloy/module-info';
2
- import type { StringValue } from 'ms';
2
+ import type ms from 'ms';
3
3
 
4
4
  import type {
5
5
  ILayoutRecord,
@@ -25,7 +25,7 @@ export function configDefault(env: ZovaConfigEnv): PowerPartial<ZovaConfig> {
25
25
  }
26
26
 
27
27
  export interface ZovaConfigSsrResponseCachePolicy {
28
- expires?: number | StringValue;
28
+ expires?: number | ms.StringValue;
29
29
  }
30
30
 
31
31
  export interface ZovaConfigSsrProfile {
@@ -43,7 +43,7 @@ export class AppResource {
43
43
  uses[options.prop] = options;
44
44
  if (process.env.DEV) {
45
45
  if (typeof options.prop === 'string' && !options.prop.startsWith('$$')) {
46
- console.error(`inject prop name should start with $$: ${options.prop}`);
46
+ throw new Error(`inject prop name should start with $$: ${options.prop}`);
47
47
  }
48
48
  }
49
49
  }
@@ -1,6 +1,7 @@
1
1
  import { extend } from '@cabloy/extend';
2
2
  import {
3
3
  combineApiPathControllerAndAction,
4
+ combineQueries,
4
5
  defaultPathSerializer,
5
6
  isEmptyObject,
6
7
  } from '@cabloy/utils';
@@ -98,6 +99,13 @@ export class SysUtil extends BeanSimple {
98
99
  // custom
99
100
  const optionsCustom: any = {
100
101
  params: options?.query,
102
+ paramsSerializer: {
103
+ serialize: params => {
104
+ const query = combineQueries(undefined, params);
105
+ const index = query.indexOf('?');
106
+ return index === -1 ? '' : query.substring(index + 1);
107
+ },
108
+ },
101
109
  query: undefined,
102
110
  };
103
111
  const interceptors = {};