anymous 1.6.6 → 1.6.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.
package/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  // analyzers can resolve the module; consumers should use the "anymous" bin.
5
5
  module.exports = {
6
6
  name: "anymous",
7
- version: "1.6.6",
7
+ version: "1.6.7",
8
8
  description: "AI-powered reverse engineering platform",
9
9
  bin: "bin/anymous.mjs",
10
10
  };
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "scripts": {
9
9
  "postinstall": "node ./postinstall.mjs"
10
10
  },
11
- "version": "1.6.6",
11
+ "version": "1.6.7",
12
12
  "description": "AI-powered reverse engineering platform",
13
13
  "license": "MIT",
14
14
  "homepage": "https://github.com/anymousdark/anymous",
@@ -26,6 +26,6 @@
26
26
  "x64"
27
27
  ],
28
28
  "optionalDependencies": {
29
- "anymous-windows-x64": "1.6.6"
29
+ "anymous-windows-x64": "1.6.7"
30
30
  }
31
31
  }
package/postinstall.mjs CHANGED
@@ -127,10 +127,12 @@ function installPackage(name) {
127
127
  const version = packageJson.optionalDependencies?.[name]
128
128
  if (!version) return
129
129
 
130
+ // On Windows, bare "npm" is not an executable (npm.cmd is).
131
+ const npmBin = process.platform === "win32" ? "npm.cmd" : "npm"
130
132
  const temp = fs.mkdtempSync(path.join(os.tmpdir(), "anymous-install-"))
131
133
  try {
132
134
  const result = childProcess.spawnSync(
133
- "npm",
135
+ npmBin,
134
136
  ["install", "--ignore-scripts", "--no-save", "--loglevel=error", "--prefix", temp, `${name}@${version}`],
135
137
  { stdio: "inherit", windowsHide: true },
136
138
  )