portless-rs 0.1.2 → 0.1.3

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 +2 -3
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -5,10 +5,9 @@
5
5
  const https = require("https");
6
6
  const fs = require("fs");
7
7
  const path = require("path");
8
- const zlib = require("zlib");
9
8
  const { execSync } = require("child_process");
10
9
 
11
- const REPO = "lusons/portless-rs";
10
+ const REPO = "portless-rs/portless";
12
11
  const BIN_DIR = path.join(__dirname, "bin");
13
12
  const BIN_PATH = path.join(BIN_DIR, "portless");
14
13
 
@@ -62,7 +61,6 @@ async function main() {
62
61
  const target = getPlatformTarget();
63
62
  const version = getVersion();
64
63
  const archiveName = `portless-${target}.tar.gz`;
65
- const url = `https://github.com/${REPO}/releases/download/v${version}/${archiveName}`;
66
64
  const tmpArchive = path.join(BIN_DIR, archiveName);
67
65
 
68
66
  console.log(`Installing portless v${version} for ${target}...`);
@@ -72,6 +70,7 @@ async function main() {
72
70
  }
73
71
 
74
72
  try {
73
+ const url = `https://github.com/${REPO}/releases/download/v${version}/${archiveName}`;
75
74
  await download(url, tmpArchive);
76
75
  extractTarGz(tmpArchive, BIN_DIR);
77
76
  fs.unlinkSync(tmpArchive);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portless-rs",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Replace port numbers with stable .localhost URLs for local development",
5
5
  "license": "MIT",
6
6
  "repository": {