renview 0.0.6 → 0.0.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/package.json +6 -6
  2. package/postinstall.mjs +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renview",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "帮助人类降低认知负担的代码审核工具",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -19,11 +19,11 @@
19
19
  "x64"
20
20
  ],
21
21
  "optionalDependencies": {
22
- "renview-darwin-arm64": "0.0.6",
23
- "renview-darwin-x64": "0.0.6",
24
- "renview-linux-x64": "0.0.6",
25
- "renview-linux-arm64": "0.0.6",
26
- "renview-windows-x64": "0.0.6"
22
+ "renview-darwin-arm64": "0.0.7",
23
+ "renview-darwin-x64": "0.0.7",
24
+ "renview-linux-x64": "0.0.7",
25
+ "renview-linux-arm64": "0.0.7",
26
+ "renview-windows-x64": "0.0.7"
27
27
  },
28
28
  "repository": {
29
29
  "type": "git",
package/postinstall.mjs CHANGED
@@ -82,7 +82,8 @@ async function fromRegistry() {
82
82
  // win10+ 自带 bsdtar,macOS/Linux 必有 tar
83
83
  execFileSync("tar", ["-xzf", tgz, "-C", tmp], { stdio: "ignore" });
84
84
  const extracted = path.join(tmp, "package", "bin", binName);
85
- if (!fs.existsSync(extracted)) fail(`tarball of ${platformPkg}@${version} has no bin/${binName}`);
85
+ if (!fs.existsSync(extracted))
86
+ fail(`tarball of ${platformPkg}@${version} has no bin/${binName}`);
86
87
  linkBinary(extracted);
87
88
  } finally {
88
89
  fs.rmSync(tmp, { recursive: true, force: true });
@@ -93,7 +94,9 @@ const local = fromOptionalDependency();
93
94
  if (local) {
94
95
  linkBinary(local);
95
96
  } else {
96
- console.warn(`renview: optional dependency ${platformPkg} not installed, downloading from registry…`);
97
+ console.warn(
98
+ `renview: optional dependency ${platformPkg} not installed, downloading from registry…`,
99
+ );
97
100
  try {
98
101
  await fromRegistry();
99
102
  } catch (e) {