@vixt/uni 0.7.4 → 0.8.0

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.mjs +3 -3
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -45,7 +45,7 @@ function patchNormalizeNodeModules() {
45
45
  const matched = `str = normalizePath(str).replace(NODE_MODULES_REGEX, 'node-modules');`;
46
46
  const replaced = `str = normalizePath(str).replace(NODE_MODULES_REGEX, 'node-modules').replace(/\\.\\.\\//g, '');`;
47
47
  const codePath = resolvePathSync("@dcloudio/uni-cli-shared/dist/utils.js");
48
- let code = fs.readFileSync(codePath, "utf8");
48
+ let code = fs.readFileSync(codePath, "utf-8");
49
49
  if (code.includes(matched)) {
50
50
  code = code.replace(matched, replaced);
51
51
  fs.writeFileSync(codePath, code);
@@ -150,8 +150,8 @@ function uniVueUseResolver() {
150
150
  let indexesJson;
151
151
  try {
152
152
  const corePath = resolveModule("@vueuse/core") || process.cwd();
153
- const path$1 = resolveModule("@vueuse/core/indexes.json") || resolveModule("@vueuse/metadata/index.json") || resolveModule("@vueuse/metadata/index.json", { paths: [corePath] });
154
- indexesJson = JSON.parse(readFileSync(path$1, "utf-8"));
153
+ const path = resolveModule("@vueuse/core/indexes.json") || resolveModule("@vueuse/metadata/index.json") || resolveModule("@vueuse/metadata/index.json", { paths: [corePath] });
154
+ indexesJson = JSON.parse(readFileSync(path, "utf-8"));
155
155
  } catch (error) {
156
156
  console.error(error);
157
157
  throw new Error("[auto-import] failed to load @vueuse/core, have you installed it?");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/uni",
3
3
  "type": "module",
4
- "version": "0.7.4",
4
+ "version": "0.8.0",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",
@@ -33,7 +33,7 @@
33
33
  "@uni-helper/vite-plugin-uni-layouts": "^0.1.11",
34
34
  "@uni-helper/vite-plugin-uni-pages": "^0.3.23",
35
35
  "unocss-applet": "^0.12.2",
36
- "@vixt/core": "0.7.4",
37
- "@vixt/vue": "0.7.4"
36
+ "@vixt/vue": "0.8.0",
37
+ "@vixt/core": "0.8.0"
38
38
  }
39
39
  }