pinomad 0.1.1 → 0.3.0

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.
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  restartService,
4
4
  serviceManager
5
- } from "./chunk-zx77w1nm.js";
5
+ } from "./chunk-t9y2wfk5.js";
6
6
  import {
7
7
  globalPrefixOf,
8
8
  packageDir,
9
9
  packagedVersion
10
- } from "./chunk-fpb6f9n5.js";
11
- import"./chunk-y73t2jmc.js";
12
- import"./chunk-wgn3cx5q.js";
10
+ } from "./chunk-3tf23vjq.js";
11
+ import"./chunk-bggesvnj.js";
12
+ import"./chunk-c155p0t0.js";
13
13
  import"./chunk-cjfmfyjb.js";
14
14
  import"./chunk-df32avw6.js";
15
15
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  connectRemoteDurable
3
- } from "./chunk-y73t2jmc.js";
4
- import"./chunk-wgn3cx5q.js";
3
+ } from "./chunk-bggesvnj.js";
4
+ import"./chunk-c155p0t0.js";
5
5
  import {
6
6
  hostAddress
7
7
  } from "./chunk-cjfmfyjb.js";
@@ -13,8 +13,14 @@ async function printPairing({ url, token }) {
13
13
  const remote = await connectRemoteDurable({ url, token, reconnectDelayMs: { min: 200, max: 2000 } });
14
14
  try {
15
15
  const { url: pairing, expiresAt } = await remote.controller.createPairing();
16
- console.log(renderUnicodeCompact(pairing));
17
- console.log(pairing);
16
+ if (new URL(pairing).hostname === "127.0.0.1") {
17
+ console.log(pairing);
18
+ console.log("This link only works on this machine — give it to the desktop app.");
19
+ console.log("To pair a phone, restart the host with --remote-port or --relay, then run pair again.");
20
+ } else {
21
+ console.log(renderUnicodeCompact(pairing));
22
+ console.log(pairing);
23
+ }
18
24
  console.log(`Expires at ${new Date(expiresAt).toLocaleTimeString()}`);
19
25
  } finally {
20
26
  remote.close();
@@ -2,10 +2,10 @@ import {
2
2
  commandHint,
3
3
  hostEntry,
4
4
  packagedVersion
5
- } from "./chunk-fpb6f9n5.js";
5
+ } from "./chunk-3tf23vjq.js";
6
6
  import {
7
7
  connectRemoteDurable
8
- } from "./chunk-y73t2jmc.js";
8
+ } from "./chunk-bggesvnj.js";
9
9
  import {
10
10
  DEFAULT_DATA_DIR,
11
11
  hostAddress