portless-rs 0.1.0 → 0.1.2

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/install.js +6 -2
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -81,8 +81,12 @@ async function main() {
81
81
  // Clean up partial download
82
82
  if (fs.existsSync(tmpArchive)) fs.unlinkSync(tmpArchive);
83
83
  console.error(`\nFailed to install portless: ${err.message}`);
84
- console.error(`You can install manually via cargo: cargo install portless`);
85
- console.error(`Or download from: https://github.com/${REPO}/releases/tag/v${version}`);
84
+ if (err.message.includes("404")) {
85
+ console.error(`\nThe GitHub release v${version} may not exist or has no prebuilt binary for ${target}.`);
86
+ console.error(`Either wait for a new release or install from source:`);
87
+ }
88
+ console.error(` cargo install portless`);
89
+ console.error(`Or download from: https://github.com/${REPO}/releases`);
86
90
  process.exit(1);
87
91
  }
88
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portless-rs",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Replace port numbers with stable .localhost URLs for local development",
5
5
  "license": "MIT",
6
6
  "repository": {