@dongmingzhixiu/vuexir 0.4.8 → 0.4.10

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/gen-ios.js +3 -2
  2. package/package.json +3 -3
package/dist/gen-ios.js CHANGED
@@ -726,7 +726,8 @@ function runTabs(appDir, opts = {}) {
726
726
  });
727
727
  for (const w of genWarnings)
728
728
  console.log(`[gen-ios] 生成提示(${tab.id},tab 页): ${w}`);
729
- writeFileSync(join(srcDir, `${pageId}View.swift`), swift);
729
+ // R134:安全网——内部状态名绝不能被当成字符串字面量渲染
730
+ writeFileSync(join(srcDir, `${pageId}View.swift`), swift.replace(/Text\("(_vrn[EAC][0-9]+)"\)/g, 'Text($1)'));
730
731
  // R118:页面脚本 bundle(computed/store 别名/局部函数)必须排在 utils 之后、runtime 之前
731
732
  const pageBundle = bundlePageScript(tab.file, findProjectRoot(appDir));
732
733
  if (pageBundle)
@@ -789,7 +790,7 @@ function runTabs(appDir, opts = {}) {
789
790
  });
790
791
  for (const w of genWarnings)
791
792
  console.log(`[gen-ios] 生成提示(${d.id},push 页): ${w}`);
792
- writeFileSync(join(srcDir, viewFile), swift);
793
+ writeFileSync(join(srcDir, viewFile), swift.replace(/Text\("(_vrn[EAC][0-9]+)"\)/g, 'Text($1)'));
793
794
  writeFileSync(join(srcDir, `runtime_${pageId}Detail.js`), utilsBundle.code + '\n' + (r.runtime ?? ''));
794
795
  pageFiles.push(viewFile);
795
796
  pageRuntimes.push({ id: `${pageId}Detail`, src: r.runtime ?? '' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dongmingzhixiu/vuexir",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "description": "vrn 命令行:build ios|android、preview、doctor",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -21,8 +21,8 @@
21
21
  "LICENSE"
22
22
  ],
23
23
  "dependencies": {
24
- "@dongmingzhixiu/vuexir-compiler": "^0.4.8",
25
- "@dongmingzhixiu/vuexir-templates": "^0.4.8"
24
+ "@dongmingzhixiu/vuexir-compiler": "^0.4.10",
25
+ "@dongmingzhixiu/vuexir-templates": "^0.4.10"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=18"