@semi-kit/utils 1.3.10 → 1.3.12

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.
@@ -0,0 +1,3 @@
1
+ import { Ref } from "vue";
2
+ declare const resolveValue: (data?: Ref<any> | (() => any)) => any;
3
+ export { resolveValue };
@@ -0,0 +1 @@
1
+ import{isFunction}from"es-toolkit/compat";const resolveValue=t=>isFunction(t)?t?.():t?.value;export{resolveValue};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semi-kit/utils",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "General-purpose tool function library",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,6 +24,7 @@
24
24
  "./extra": "./lib/extra.mjs",
25
25
  "./localstorage": "./lib/localstorage.mjs",
26
26
  "./number": "./lib/number.mjs",
27
+ "./resolve": "./lib/resolve.mjs",
27
28
  "./rules": "./lib/rules.mjs",
28
29
  "./package.json": "./package.json"
29
30
  },
@@ -45,7 +46,8 @@
45
46
  "@semi-kit/component": "workspace:*",
46
47
  "axios": "catalog:",
47
48
  "naive-ui": "catalog:",
48
- "es-toolkit": "catalog:"
49
+ "es-toolkit": "catalog:",
50
+ "vue": "catalog:"
49
51
  },
50
52
  "peerDependencies": {
51
53
  "@vueuse/core": "*",
@@ -54,9 +56,13 @@
54
56
  "axios": "*",
55
57
  "es-toolkit": "*",
56
58
  "@semi-kit/component": "*",
57
- "naive-ui": "*"
59
+ "naive-ui": "*",
60
+ "vue": "*"
58
61
  },
59
62
  "peerDependenciesMeta": {
63
+ "vue": {
64
+ "optional": true
65
+ },
60
66
  "@vueuse/core": {
61
67
  "optional": true
62
68
  },