x-essential-lib 0.10.6 → 0.10.7

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +4 -10
package/dist/index.js CHANGED
@@ -113,7 +113,7 @@ async function waitMs(ms) {
113
113
  async function waitUtil(conditionFunc, timeout, interval) {
114
114
  const timestamp = Date.now();
115
115
  return new Promise((resolve) => {
116
- const check = async () => {
116
+ const check = () => {
117
117
  if (conditionFunc()) resolve(true);
118
118
  else if (timeout && Date.now() - timestamp > timeout) resolve(false);
119
119
  else setTimeout(check, interval ?? 30);
@@ -728,8 +728,8 @@ function useMicroApp(dark, locale, permissionObjects, permissionChecksum, lastAp
728
728
  provideLastAppPath(lastAppPath);
729
729
  provideViews(views);
730
730
  const theme = useTheme();
731
- watchEffect(() => {
732
- theme.change(finalDark.value ? "dark" : "light");
731
+ watchEffect(async () => {
732
+ await theme.change(finalDark.value ? "dark" : "light");
733
733
  });
734
734
  const handleBack = () => {
735
735
  if (!isEmpty(views)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -41,8 +41,8 @@
41
41
  "typescript": "^6.0.3",
42
42
  "vite": "^8.0.16",
43
43
  "x-config-lib": "^0.1.5",
44
- "x-config-oxfmt": "^0.1.3",
45
- "x-config-oxlint": "^0.1.2"
44
+ "x-config-oxfmt": "^0.1.4",
45
+ "x-config-oxlint": "^0.1.4"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "axios": "^1.18.0",
@@ -52,13 +52,7 @@
52
52
  "vuetify": "^4.1.2"
53
53
  },
54
54
  "lint-staged": {
55
+ "*.{js,jsx,ts,tsx,vue}": "oxlint",
55
56
  "*": "oxfmt --no-error-on-unmatched-pattern"
56
- },
57
- "inlinedDependencies": {
58
- "@vueuse/core": "14.3.0",
59
- "@vueuse/shared": "14.3.0",
60
- "js-cookie": "3.0.8",
61
- "lodash-es": "4.18.1",
62
- "mitt": "3.0.1"
63
57
  }
64
58
  }