paironce 0.1.0 → 0.1.1
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/dist/paironce.mjs +3 -3
- package/package.json +1 -1
package/dist/paironce.mjs
CHANGED
|
@@ -3959,7 +3959,7 @@ async function connect(identity, target2, ui, options = {}) {
|
|
|
3959
3959
|
session?.close();
|
|
3960
3960
|
reject(error instanceof Error ? error : new Error(String(error)));
|
|
3961
3961
|
};
|
|
3962
|
-
options.signal?.addEventListener("abort", () => fail(new Error(returning ? `${returning.name} did not connect. Open https://paironce.com there
|
|
3962
|
+
options.signal?.addEventListener("abort", () => fail(new Error(returning ? `${returning.name} did not connect. Open https://paironce.com there, tap Connect where it says "${identity.name} wants to reconnect", then try again.` : "Nobody connected in time. Try again.")), { once: true });
|
|
3963
3963
|
const callbacks = {
|
|
3964
3964
|
onStatus: (text) => {
|
|
3965
3965
|
if (text === "Transfer channel closed") {
|
|
@@ -4167,7 +4167,7 @@ async function sendPath(link, file, report = say) {
|
|
|
4167
4167
|
}
|
|
4168
4168
|
|
|
4169
4169
|
// src/version.ts
|
|
4170
|
-
var CLI_VERSION = "0.1.
|
|
4170
|
+
var CLI_VERSION = "0.1.1";
|
|
4171
4171
|
|
|
4172
4172
|
// src/mcp.ts
|
|
4173
4173
|
var log = (text) => process.stderr.write(`${text}
|
|
@@ -4321,7 +4321,7 @@ async function open(identity, name, folder) {
|
|
|
4321
4321
|
if (picked === "ambiguous") throw new Error(`Which device? Use --to with one of: ${devices.map((device) => `"${device.name}"`).join(", ")}`);
|
|
4322
4322
|
if (picked === "none" && name) throw new Error(`No paired device is called "${name}". Run "paironce devices" to see them.`);
|
|
4323
4323
|
const target2 = picked === "none" ? { kind: "host" } : { kind: "saved", device: picked };
|
|
4324
|
-
if (target2.kind === "saved") say(`Connecting to ${target2.device.name}\u2026 Open https://paironce.com there
|
|
4324
|
+
if (target2.kind === "saved") say(`Connecting to ${target2.device.name}\u2026 Open https://paironce.com there: it shows "${identity.name} wants to reconnect"; tap Connect.`);
|
|
4325
4325
|
const diskReceive = folder ? createDiskReceiver(folder) : void 0;
|
|
4326
4326
|
const link = await connect(identity, target2, terminalUi, { diskReceive, signal: AbortSignal.timeout(target2.kind === "saved" ? 18e4 : 6e5) });
|
|
4327
4327
|
say(`Connected to ${link.peer.name} (${link.path === "turn" ? "through the encrypted relay" : "direct"}).`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paironce",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Send files and text from a terminal to your phone or computer through PairOnce: paired once, end-to-end encrypted, direct between the devices.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|