@portlens/cli 1.0.9 → 1.0.11

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/index.js +6 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,4 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as _createRequire } from 'module';
3
+ import { fileURLToPath as _fileURLToPath } from 'url';
4
+ const require = _createRequire(import.meta.url);
5
+ const __filename = _fileURLToPath(import.meta.url);
6
+ const __dirname = _fileURLToPath(new URL('.', import.meta.url));
2
7
  var __create = Object.create;
3
8
  var __defProp = Object.defineProperty;
4
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -73837,7 +73842,7 @@ program.argument("<port>", "Local port to tunnel", (v2) => {
73837
73842
  let reconnectInfo;
73838
73843
  let boxVisible = false;
73839
73844
  let refreshTimer = null;
73840
- let shareUrl = `${VIEWER_BASE}/${agent.token}`;
73845
+ let shareUrl = `${VIEWER_BASE}/v/${agent.token}`;
73841
73846
  function boxOpts() {
73842
73847
  return { shareUrl, localPort: port, expiresAt, status: currentStatus, rtt: currentRtt, reconnectInfo };
73843
73848
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portlens/cli",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Share your local server with anyone, instantly.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,7 +13,7 @@
13
13
  "access": "public"
14
14
  },
15
15
  "scripts": {
16
- "build": "esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js",
16
+ "build": "esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --banner:js=\"#!/usr/bin/env node\nimport { createRequire as _createRequire } from 'module';\nimport { fileURLToPath as _fileURLToPath } from 'url';\nconst require = _createRequire(import.meta.url);\nconst __filename = _fileURLToPath(import.meta.url);\nconst __dirname = _fileURLToPath(new URL('.', import.meta.url));\"",
17
17
  "dev": "tsc --watch",
18
18
  "prepublishOnly": "npm run build"
19
19
  },