Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f53d39ae69 | ||
|
|
aa61efcc10 |
No files matched your search
@@ -2,13 +2,6 @@
|
|||||||
|
|
||||||
## Ideas
|
## Ideas
|
||||||
|
|
||||||
- Unstick a wrong salt: while a tracker share or search runs, the salt is locked, and a receiver
|
|
||||||
told "Check the code and the salt" can't change it for up to 6 minutes. The receiver doesn't need
|
|
||||||
the lock: like the code field, the salt could stay editable and count from the next Receive
|
|
||||||
(`saltLocked` only for `side === 'send'`). The sender does, the code shown must match the salt
|
|
||||||
shown: a Stop button next to the valid code would end the share, unlock the salt and also let a
|
|
||||||
share be withdrawn early. Changing the salt itself shouldn't end a share, a stray click would.
|
|
||||||
|
|
||||||
- Resume interrupted transfers: the receiver already reports how much the download manager has
|
- Resume interrupted transfers: the receiver already reports how much the download manager has
|
||||||
read (`{ read }`), which is where a new connection could continue. The browser can't append to a
|
read (`{ read }`), which is where a new connection could continue. The browser can't append to a
|
||||||
finished or failed download though, so a resume would have to start a new one.
|
finished or failed download though, so a resume would have to start a new one.
|
||||||
|
|||||||
+4
-1
@@ -1,10 +1,13 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
||||||
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
||||||
"files": { "includes": ["**", "!**/node_modules", "!**/dist", "!**/test-results", "!**/*.svg"] },
|
"files": {
|
||||||
|
"includes": ["**", "!**/node_modules", "!**/dist", "!**/test-results", "!**/*.svg", "!**/pnpm-lock.yaml"]
|
||||||
|
},
|
||||||
"formatter": { "indentStyle": "space", "lineWidth": 120 },
|
"formatter": { "indentStyle": "space", "lineWidth": 120 },
|
||||||
"javascript": { "formatter": { "quoteStyle": "single" } },
|
"javascript": { "formatter": { "quoteStyle": "single" } },
|
||||||
"css": { "formatter": { "quoteStyle": "single" } },
|
"css": { "formatter": { "quoteStyle": "single" } },
|
||||||
|
"yaml": { "formatter": { "quoteStyle": "single" } },
|
||||||
"html": {
|
"html": {
|
||||||
"experimentalFullSupportEnabled": true,
|
"experimentalFullSupportEnabled": true,
|
||||||
"formatter": { "enabled": true, "selfCloseVoidElements": "always" }
|
"formatter": { "enabled": true, "selfCloseVoidElements": "always" }
|
||||||
|
|||||||
+16
-11
@@ -1180,7 +1180,7 @@ for (const name of Object.keys(BROWSERS)) {
|
|||||||
|
|
||||||
// The info_hash tells which salt a share took: the window its code ends with, or that and the own
|
// The info_hash tells which salt a share took: the window its code ends with, or that and the own
|
||||||
// salt, trimmed and NFC. A code made late in a window still lasts 6 minutes. The salt stays as it is
|
// salt, trimmed and NFC. A code made late in a window still lasts 6 minutes. The salt stays as it is
|
||||||
// while a share or search runs.
|
// while a share runs, a search lets it be fixed for the next Receive.
|
||||||
test(`salt: ${name} a share takes the clock's salt or the own one, which stays while it runs`, async () => {
|
test(`salt: ${name} a share takes the clock's salt or the own one, which stays while it runs`, async () => {
|
||||||
const sender = await open(name);
|
const sender = await open(name);
|
||||||
const hashes: string[] = [];
|
const hashes: string[] = [];
|
||||||
@@ -1267,12 +1267,16 @@ for (const name of Object.keys(BROWSERS)) {
|
|||||||
await sender.fill('#receive-code', 'abcdefghijk');
|
await sender.fill('#receive-code', 'abcdefghijk');
|
||||||
await sender.click('#receive');
|
await sender.click('#receive');
|
||||||
await expect.poll(() => hashes).toContain(swarm('abcdefghijk', generated));
|
await expect.poll(() => hashes).toContain(swarm('abcdefghijk', generated));
|
||||||
await locked(true);
|
await locked(false);
|
||||||
|
await sender.fill('#salt', 'fixed');
|
||||||
|
await sender.click('#receive');
|
||||||
|
await expect.poll(() => hashes).toContain(swarm('abcdefghijk', 'fixed'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Until the transfer is over, on both sides.
|
// On the sender until the transfer is over. The receiver's search is over once connected, so its
|
||||||
test(`salt: ${name} stays while the peers are connected`, async () => {
|
// salt can always change.
|
||||||
|
test(`salt: ${name} stays on the sender while the peers are connected`, async () => {
|
||||||
const tracker = await ownTracker();
|
const tracker = await ownTracker();
|
||||||
const [sender, receiver] = await Promise.all([open(name), open(name)]);
|
const [sender, receiver] = await Promise.all([open(name), open(name)]);
|
||||||
for (const page of [sender, receiver]) {
|
for (const page of [sender, receiver]) {
|
||||||
@@ -1282,9 +1286,9 @@ for (const name of Object.keys(BROWSERS)) {
|
|||||||
await page.check('#own-salt');
|
await page.check('#own-salt');
|
||||||
await page.fill('#salt', 'salt');
|
await page.fill('#salt', 'salt');
|
||||||
}
|
}
|
||||||
const locked = (disabled: boolean) =>
|
const locked = (pages: Page[], disabled: boolean) =>
|
||||||
Promise.all(
|
Promise.all(
|
||||||
[sender, receiver].flatMap((page) =>
|
pages.flatMap((page) =>
|
||||||
['#own-salt', '#salt', '#generate-salt'].map((id) =>
|
['#own-salt', '#salt', '#generate-salt'].map((id) =>
|
||||||
expect(page.locator(id)).toBeEnabled({ enabled: !disabled }),
|
expect(page.locator(id)).toBeEnabled({ enabled: !disabled }),
|
||||||
),
|
),
|
||||||
@@ -1295,14 +1299,15 @@ for (const name of Object.keys(BROWSERS)) {
|
|||||||
await connect('tracker', sender, receiver, await payload(randomBytes(1000)));
|
await connect('tracker', sender, receiver, await payload(randomBytes(1000)));
|
||||||
await expect(sender.locator('#send-status')).toHaveText('Waiting for the receiver to download');
|
await expect(sender.locator('#send-status')).toHaveText('Waiting for the receiver to download');
|
||||||
await expect(receiver.locator('#receive-status')).toHaveText('Click Download to save the file');
|
await expect(receiver.locator('#receive-status')).toHaveText('Click Download to save the file');
|
||||||
await locked(true);
|
await locked([sender], true);
|
||||||
|
await locked([receiver], false);
|
||||||
|
|
||||||
const started = downloadStarts(receiver);
|
const started = downloadStarts(receiver);
|
||||||
await receiver.click('#download');
|
await receiver.click('#download');
|
||||||
await started;
|
await started;
|
||||||
await expect(sender.locator('#send-status')).toHaveText('Delivered');
|
await expect(sender.locator('#send-status')).toHaveText('Delivered');
|
||||||
await expect(receiver.locator('#receive-status')).toHaveText('Download complete');
|
await expect(receiver.locator('#receive-status')).toHaveText('Download complete');
|
||||||
await locked(false);
|
await locked([sender, receiver], false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1618,7 +1623,7 @@ function middleman() {
|
|||||||
channel.addEventListener('open', () => flush(side));
|
channel.addEventListener('open', () => flush(side));
|
||||||
flush(side);
|
flush(side);
|
||||||
};
|
};
|
||||||
const describe = async (pc: RTCPeerConnection) => {
|
const localSdp = async (pc: RTCPeerConnection) => {
|
||||||
await pc.setLocalDescription();
|
await pc.setLocalDescription();
|
||||||
while (pc.iceGatheringState !== 'complete') {
|
while (pc.iceGatheringState !== 'complete') {
|
||||||
await new Promise((resolve) => pc.addEventListener('icegatheringstatechange', resolve, { once: true }));
|
await new Promise((resolve) => pc.addEventListener('icegatheringstatechange', resolve, { once: true }));
|
||||||
@@ -1632,12 +1637,12 @@ function middleman() {
|
|||||||
const pc = new RTCPeerConnection();
|
const pc = new RTCPeerConnection();
|
||||||
pc.ondatachannel = ({ channel }) => attach('receiver', channel, 'sender');
|
pc.ondatachannel = ({ channel }) => attach('receiver', channel, 'sender');
|
||||||
await pc.setRemoteDescription({ type: 'offer', sdp });
|
await pc.setRemoteDescription({ type: 'offer', sdp });
|
||||||
return describe(pc);
|
return localSdp(pc);
|
||||||
},
|
},
|
||||||
offer(reflect) {
|
offer(reflect) {
|
||||||
toSender = new RTCPeerConnection();
|
toSender = new RTCPeerConnection();
|
||||||
attach('sender', toSender.createDataChannel('file'), reflect ? 'sender' : 'receiver');
|
attach('sender', toSender.createDataChannel('file'), reflect ? 'sender' : 'receiver');
|
||||||
return describe(toSender);
|
return localSdp(toSender);
|
||||||
},
|
},
|
||||||
accept: (sdp) => toSender.setRemoteDescription({ type: 'answer', sdp }),
|
accept: (sdp) => toSender.setRemoteDescription({ type: 'answer', sdp }),
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-2
@@ -19,7 +19,7 @@
|
|||||||
"vue": "^3.5.44"
|
"vue": "^3.5.44"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.5.15",
|
"@biomejs/biome": "2.6.3",
|
||||||
"@playwright/test": "^1.64.1",
|
"@playwright/test": "^1.64.1",
|
||||||
"@types/node": "^26.6.5",
|
"@types/node": "^26.6.5",
|
||||||
"@vitejs/plugin-vue": "^6.0.10",
|
"@vitejs/plugin-vue": "^6.0.10",
|
||||||
@@ -31,5 +31,5 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=26.12.1"
|
"node": ">=26.12.1"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@12.14.0"
|
"packageManager": "pnpm@12.16.1"
|
||||||
}
|
}
|
||||||
Generated
+119
-99
@@ -7,153 +7,153 @@ importers:
|
|||||||
configDependencies: {}
|
configDependencies: {}
|
||||||
packageManagerDependencies:
|
packageManagerDependencies:
|
||||||
pnpm:
|
pnpm:
|
||||||
specifier: 12.14.0
|
specifier: 12.16.1
|
||||||
version: 12.14.0
|
version: 12.16.1
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
'@pnpm/exe.android-arm64@12.14.0':
|
'@pnpm/exe.android-arm64@12.16.1':
|
||||||
resolution: {integrity: sha512-+iSh7x21C3A2hqc+Z0ZmbKTcn6YNlzrXM142PsnQH/dLj0DYxFzoBvc6XAnL/yfQ5nnH2ebBiRj/zVxr61fZbQ==}
|
resolution: {integrity: sha512-PKf78Ew+i0CBYf0Xc+eMcqQiqyBT+u8XCVg1F5roc98/6wWfdYlWhrUMmEBiKWaJ3JqHxrtt8l1NwZ7qfJt2/Q==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [android]
|
os: [android]
|
||||||
|
|
||||||
'@pnpm/exe.android-x64@12.14.0':
|
'@pnpm/exe.android-x64@12.16.1':
|
||||||
resolution: {integrity: sha512-qT+0LqEr2wBVaxcG2T8cX/R8SSRz2Rvpp8nRR4fh8tnGUZRch87gFmsHUAoSQh7w6j1h0qTjrA384j4xi8frvw==}
|
resolution: {integrity: sha512-xdu7gMbB98pdvhwMeA6612Of515FDlRUtfA/1f7nWPZfPLnEdSRBO2u+1N0XBtQ/ennhPH/lrxB1gC6gnR/cdg==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [android]
|
os: [android]
|
||||||
|
|
||||||
'@pnpm/exe.darwin-arm64@12.14.0':
|
'@pnpm/exe.darwin-arm64@12.16.1':
|
||||||
resolution: {integrity: sha512-tnrdUB8ecJoehuKKqi1YHCBVl61xtJ9XVGcx5EviC6fWO4DeGI8GtXrjvJxDBM3nuVjJeWistgsUp/N142x4sw==}
|
resolution: {integrity: sha512-pVbmIIbhixiLvADLu1WA3TaW8FZy/D72R1De27WbbFx8/2mxvnsTyFVm4fO9kjpjMY7RzJd48CiQ96p8fO3ebQ==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@pnpm/exe.darwin-x64@12.14.0':
|
'@pnpm/exe.darwin-x64@12.16.1':
|
||||||
resolution: {integrity: sha512-vlBfGkruqQRsEHTW43cPwpYd7QlbIJ//cvpAdb3bVXkI8SgTPoXhCnc05m+ZNiPrrEkBsX/t7KHw9aXpkzPm3Q==}
|
resolution: {integrity: sha512-xZvQBFqcZjO7vFKTK3XsJpqY6lnBL9EWSLCzVUPq3kZ94+D96gwJCa76xxGNK8Cj32f4eeM91Qg+yNRR4sRpDw==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@pnpm/exe.freebsd-x64@12.14.0':
|
'@pnpm/exe.freebsd-x64@12.16.1':
|
||||||
resolution: {integrity: sha512-Qg5rxBrGYl6Tfso+EyygPf84fY1Fzy55E/0or+iuYKtnf0vc0MlHJfVIlT7pBukMRntQHRik7hUi0Z4s7AlJsw==}
|
resolution: {integrity: sha512-zTtunfi9mBhRXiXEJYfwiJj0tk7MgTSfqDSRh+Az9FZ9THazVIiQiVNS8jpcsftDOqu7LKNffQdjmgwHDThfUg==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [freebsd]
|
os: [freebsd]
|
||||||
|
|
||||||
'@pnpm/exe.linux-arm64-musl@12.14.0':
|
'@pnpm/exe.linux-arm64-musl@12.16.1':
|
||||||
resolution: {integrity: sha512-DRIe4yQkXBGA/PhVJdzlbnllxBdAtnMMvTVLLcGpsK5FvJz9kxD2Hyxtn68ovmNkVX06f6p45cQwfm3wx2jn1A==}
|
resolution: {integrity: sha512-BJ3mOmcmQgcUo92Ee/WfEOt1pRiv3y2MMAkhEiYHd85UiPpHTfFhv+SpCbALmfExzXk3UlaRtMYwHlkQymc4VA==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [musl]
|
libc: [musl]
|
||||||
|
|
||||||
'@pnpm/exe.linux-arm64@12.14.0':
|
'@pnpm/exe.linux-arm64@12.16.1':
|
||||||
resolution: {integrity: sha512-7joGShZ44Nk3WpNU+60JoOPjCXlgxhJAq11S2UiVtwCUDgTer1yTPPfxGW8pxaD6046actYLIYDbZNlubHWs0A==}
|
resolution: {integrity: sha512-JaRd5gNxwdNGBBkrZFt8bknrK4YmHVJBW0JMhUQ0fJ0dEYp6C2GT9ExaCqOO8EwYEyqM+jpKgJIK+8WFaJy3ew==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [glibc]
|
libc: [glibc]
|
||||||
|
|
||||||
'@pnpm/exe.linux-ppc64@12.14.0':
|
'@pnpm/exe.linux-ppc64@12.16.1':
|
||||||
resolution: {integrity: sha512-gSoryn7ySdXd//gjgf3MvvA8ZerJayaSbuMZMtAWq4vb2/wlVEgpl0Kvqt54y58TRj533Qjq2txKgnxd4JyoAQ==}
|
resolution: {integrity: sha512-FnSV0Jv40S1cMv7vFNWwvu0X567Lec4L4HCRead3CFcD6zQDNbGw81s8N5bcKPahtPD9ApVuhsbmFCx4rw6RMw==}
|
||||||
cpu: [ppc64]
|
cpu: [ppc64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [glibc]
|
libc: [glibc]
|
||||||
|
|
||||||
'@pnpm/exe.linux-riscv64@12.14.0':
|
'@pnpm/exe.linux-riscv64@12.16.1':
|
||||||
resolution: {integrity: sha512-EMjew1H9WqQ7pL+tYqCPwiuB+0PeCiJRV7fyWeuFw0wwYUajFBjcaPO3IGAVu9sdmJDU+e+HYv/Zey6aKae0Vw==}
|
resolution: {integrity: sha512-C1Sww4FN5IttD4atRRhAKmQtSGWVp04ZAKNxO8pfu2bkRPwOW+7v+2DH1Xs1W+kZYYpO86BYDvUcadefF+AgaQ==}
|
||||||
cpu: [riscv64]
|
cpu: [riscv64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [glibc]
|
libc: [glibc]
|
||||||
|
|
||||||
'@pnpm/exe.linux-s390x@12.14.0':
|
'@pnpm/exe.linux-s390x@12.16.1':
|
||||||
resolution: {integrity: sha512-shYOj/SFoXD35fHe0pWr2JofwSXulC0BnEIXLj2QokDi0EF//AfKsui35yKIkTEl+s2VJybc3PO4iJNhKIj5Qw==}
|
resolution: {integrity: sha512-kn2fautsTcxIMODoovQVqZyfpDRdNgGkoeVqNdrKqbeBBvrEl+fXLkmZiq5xDht1LMr4sYiCNcsMfNMT6JPFmg==}
|
||||||
cpu: [s390x]
|
cpu: [s390x]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [glibc]
|
libc: [glibc]
|
||||||
|
|
||||||
'@pnpm/exe.linux-x64-musl@12.14.0':
|
'@pnpm/exe.linux-x64-musl@12.16.1':
|
||||||
resolution: {integrity: sha512-btZiZ2Ot0llKK1ndSfA5i3IRX7/S0VrmzseNH/BJ4c+Cady+S81H6vvU1zByggHMyqQhC8OgxO5PiIY7D9bH0Q==}
|
resolution: {integrity: sha512-PM6ccHCOe/O9SsTflTJTYWfwogJZa6EmUvpnwZgiPguJBddh20wDQKgxUPXf48rDsPm9vMsIij0uHswwwbXL8g==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [musl]
|
libc: [musl]
|
||||||
|
|
||||||
'@pnpm/exe.linux-x64@12.14.0':
|
'@pnpm/exe.linux-x64@12.16.1':
|
||||||
resolution: {integrity: sha512-F6K8e/jWxiuEYJaQtRRUG9ynBSTEHa+t7Lf86MKuOO5UA7WVVMbi+oB8nY6iKW++ncWS2yG6T9faXZGxqNsfoQ==}
|
resolution: {integrity: sha512-RK//8ZLcXGW8A2k8bQOXZDBN1Qu92zN4dYnG1bzj1zoQ1fkZ6jNzZ1AvXtsfGVma795CJtvoaF5bLXf4l/FIUw==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [glibc]
|
libc: [glibc]
|
||||||
|
|
||||||
'@pnpm/exe.win32-arm64@12.14.0':
|
'@pnpm/exe.win32-arm64@12.16.1':
|
||||||
resolution: {integrity: sha512-DOjlkVB6TtTKeAAe0hNZXn5S7YqESmo1Z6SGbR4BZNQ4isRg31XVHjX2RFTbY8gnZq68IwzyLmPqlEjMmYxofg==}
|
resolution: {integrity: sha512-Ox3kNNVxtGw6pK7SVejmeOUgHhUTZgAM7NQQ6cU7frPw3ix9+j7d2MGbRg3fyEFAaKWq8ZAZLTQGcDyLnAu+qA==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@pnpm/exe.win32-x64@12.14.0':
|
'@pnpm/exe.win32-x64@12.16.1':
|
||||||
resolution: {integrity: sha512-/LSX6mew/sLf08XqcjemuklNKf1K/Ftpgj4//hK/HKzI2dKbmxDB27a/2OaQ5a0O3/3OFzlssXDziZsi+yVBwQ==}
|
resolution: {integrity: sha512-k+FhRJ0ttphFoFIVB1Sk4v76YJAulafmA/Ly57cysesUhhIzVlApeOShUz0jXubKx317TThlEfpQrukldnqORA==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
pnpm@12.14.0:
|
pnpm@12.16.1:
|
||||||
resolution: {integrity: sha512-wYum2HmT09Fky16JSPMrLAbuhUSH4GzY2GeBNC+z5btGNDZwNHEehoArqpw3vqkGzhkprQjXCITJfYAd8TOJpg==}
|
resolution: {integrity: sha512-CR0d7nknV1Zhsl2rPCrjHK/BxU1rce1qZgDPDByxBDSkR+rhQBXxsj4ua+3u1535SpMuIWTSgyKA3OP7MvZW0Q==}
|
||||||
engines: {node: '>=18.*'}
|
engines: {node: '>=18'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
|
|
||||||
'@pnpm/exe.android-arm64@12.14.0':
|
'@pnpm/exe.android-arm64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.android-x64@12.14.0':
|
'@pnpm/exe.android-x64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.darwin-arm64@12.14.0':
|
'@pnpm/exe.darwin-arm64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.darwin-x64@12.14.0':
|
'@pnpm/exe.darwin-x64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.freebsd-x64@12.14.0':
|
'@pnpm/exe.freebsd-x64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.linux-arm64-musl@12.14.0':
|
'@pnpm/exe.linux-arm64-musl@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.linux-arm64@12.14.0':
|
'@pnpm/exe.linux-arm64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.linux-ppc64@12.14.0':
|
'@pnpm/exe.linux-ppc64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.linux-riscv64@12.14.0':
|
'@pnpm/exe.linux-riscv64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.linux-s390x@12.14.0':
|
'@pnpm/exe.linux-s390x@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.linux-x64-musl@12.14.0':
|
'@pnpm/exe.linux-x64-musl@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.linux-x64@12.14.0':
|
'@pnpm/exe.linux-x64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.win32-arm64@12.14.0':
|
'@pnpm/exe.win32-arm64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@pnpm/exe.win32-x64@12.14.0':
|
'@pnpm/exe.win32-x64@12.16.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
pnpm@12.14.0:
|
pnpm@12.16.1:
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@pnpm/exe.android-arm64': 12.14.0
|
'@pnpm/exe.android-arm64': 12.16.1
|
||||||
'@pnpm/exe.android-x64': 12.14.0
|
'@pnpm/exe.android-x64': 12.16.1
|
||||||
'@pnpm/exe.darwin-arm64': 12.14.0
|
'@pnpm/exe.darwin-arm64': 12.16.1
|
||||||
'@pnpm/exe.darwin-x64': 12.14.0
|
'@pnpm/exe.darwin-x64': 12.16.1
|
||||||
'@pnpm/exe.freebsd-x64': 12.14.0
|
'@pnpm/exe.freebsd-x64': 12.16.1
|
||||||
'@pnpm/exe.linux-arm64': 12.14.0
|
'@pnpm/exe.linux-arm64': 12.16.1
|
||||||
'@pnpm/exe.linux-arm64-musl': 12.14.0
|
'@pnpm/exe.linux-arm64-musl': 12.16.1
|
||||||
'@pnpm/exe.linux-ppc64': 12.14.0
|
'@pnpm/exe.linux-ppc64': 12.16.1
|
||||||
'@pnpm/exe.linux-riscv64': 12.14.0
|
'@pnpm/exe.linux-riscv64': 12.16.1
|
||||||
'@pnpm/exe.linux-s390x': 12.14.0
|
'@pnpm/exe.linux-s390x': 12.16.1
|
||||||
'@pnpm/exe.linux-x64': 12.14.0
|
'@pnpm/exe.linux-x64': 12.16.1
|
||||||
'@pnpm/exe.linux-x64-musl': 12.14.0
|
'@pnpm/exe.linux-x64-musl': 12.16.1
|
||||||
'@pnpm/exe.win32-arm64': 12.14.0
|
'@pnpm/exe.win32-arm64': 12.16.1
|
||||||
'@pnpm/exe.win32-x64': 12.14.0
|
'@pnpm/exe.win32-x64': 12.16.1
|
||||||
|
|
||||||
---
|
---
|
||||||
lockfileVersion: '9.0'
|
lockfileVersion: '9.0'
|
||||||
@@ -171,8 +171,8 @@ importers:
|
|||||||
version: 3.5.44(typescript@6.0.3)
|
version: 3.5.44(typescript@6.0.3)
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@biomejs/biome':
|
'@biomejs/biome':
|
||||||
specifier: 2.5.15
|
specifier: 2.6.3
|
||||||
version: 2.5.15
|
version: 2.6.3
|
||||||
'@playwright/test':
|
'@playwright/test':
|
||||||
specifier: ^1.64.1
|
specifier: ^1.64.1
|
||||||
version: 1.64.1
|
version: 1.64.1
|
||||||
@@ -214,59 +214,71 @@ packages:
|
|||||||
resolution: {integrity: sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==}
|
resolution: {integrity: sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
|
|
||||||
'@biomejs/biome@2.5.15':
|
'@biomejs/biome@2.6.3':
|
||||||
resolution: {integrity: sha512-WZTW4slm/pdkh92K6t/3aEN++44JD1PQ7squ7RCMLI1flHGl43DVOIGXvCjHiZgBMO1V4uYxoFNtqrIA4qGuIQ==}
|
resolution: {integrity: sha512-va/0xPku7wnfzv+D8Zpdm5uKiGJWiV8neqoEPnRjvNQQwhl4tVXS4fETs4H0CCB2rGeqJ4cu9y4iOZOnOYKAUA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
'@biomejs/cli-darwin-arm64@2.5.15':
|
'@biomejs/cli-android-arm64@2.6.3':
|
||||||
resolution: {integrity: sha512-BZVzFhJ/mUvTLMYbc9x6el0o2Uv5zP7bACYyhFb6fSc1giroXm7PL0a5KqMJ9F+/BnkYRjagD/ROSDVOZ6eapg==}
|
resolution: {integrity: sha512-5JD7QQDEHxdeEb4sftEHG+lsuUyu8Cob/hVLqRELbgGlFl68Rldv/PPi2k4dRjERZ/EItJ3O6Xmv8lqsEtUBiw==}
|
||||||
|
engines: {node: '>=14.21.3'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [android]
|
||||||
|
|
||||||
|
'@biomejs/cli-android-x64@2.6.3':
|
||||||
|
resolution: {integrity: sha512-70WOGKCgpT+Uqg6LFdTLqefV54/DypdZg+LnBQDO6AWvkgXO+9xhVClajQyDsIHYjnXMtI1pRO5sP+zMXlS/bw==}
|
||||||
|
engines: {node: '>=14.21.3'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [android]
|
||||||
|
|
||||||
|
'@biomejs/cli-darwin-arm64@2.6.3':
|
||||||
|
resolution: {integrity: sha512-ezf+XEKeyJ2yYlBhrzyEEHLvfRYrhtNKc6maLzR/WcAcBccb4RVDeFxsymjBve2LO0bpIMRUAiS90D4bUBRT0A==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@biomejs/cli-darwin-x64@2.5.15':
|
'@biomejs/cli-darwin-x64@2.6.3':
|
||||||
resolution: {integrity: sha512-V5Kw63V+fVGNFhFrizDxMbGXAzZCh8kYzJpy3GI6gTapWDg7bZK9oYC9CbVgQSEdTnupz0U5Efz8Ev+5vdBBXw==}
|
resolution: {integrity: sha512-Lg2tFdg4elJo+7i707PpLMs6N1hATVt4kqDo6MD/q/VnPs8rsKReKXsz1TA5GNdfRVAQNJ5GRiyK2EwNptK+MA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64-musl@2.5.15':
|
'@biomejs/cli-linux-arm64-musl@2.6.3':
|
||||||
resolution: {integrity: sha512-tGzZUTcJCV7tj5Adh/Gn6nR4MycqA3iohq2LEcrarAgRBkU0h0OKd2UzCRkOsOYOuUGaUJb4YmqRqyy2feGGSw==}
|
resolution: {integrity: sha512-dYU70A89OFHzakQPE9VOPbE60JNcQt4mtxvUGQl+EgTkGtqCFxLD2RUn1SbiMu8Mu5xFscS1bfYDpoasaUrqNA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [musl]
|
libc: [musl]
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64@2.5.15':
|
'@biomejs/cli-linux-arm64@2.6.3':
|
||||||
resolution: {integrity: sha512-XaG7P7eeSLYETD3K9grfB0mQmpLQZjygdbsxekWBJAg4am79fGAtRpfRyNnTvXB2fZFNnJZG3nXm7HBat0+VUw==}
|
resolution: {integrity: sha512-8Stcvq98n1gs9VyLKuaWrnsd8kbXE2nKDAHtuLHGSYdGyNWN5JIIm5a28xdnmgdKzKHmiDgYyATetkEv7+zGow==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [glibc]
|
libc: [glibc]
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64-musl@2.5.15':
|
'@biomejs/cli-linux-x64-musl@2.6.3':
|
||||||
resolution: {integrity: sha512-IlxUcyxilVGPsE008x13pWdkTbU3nQpP2i9b5UrbOYj6goBkKsRX1XB7yJLcV+O1H9LBchIIm4adOaVLZBX0ZQ==}
|
resolution: {integrity: sha512-j6eFjUcWSphmgVTbrobEMA0wdbfNHKrGi8hRsFkc17jeS1n7nHwFACxp6jWqe9sxQqyFAeyOgt2/1bOGVcbATA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [musl]
|
libc: [musl]
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64@2.5.15':
|
'@biomejs/cli-linux-x64@2.6.3':
|
||||||
resolution: {integrity: sha512-xE4iEW/3LqlYj9GFgGrFsFSH51dEEpUbYWBfeOv0q87WkUDxK2o/HhreSb7qMJqck70RVM6Lg96hgedcAYcOkA==}
|
resolution: {integrity: sha512-CShmx0bO6BngywT3minv8K1xsQX1ig1vsBqYTLnmDY3mBiDYHlaLRIsdHoM1pEU9dV3BN5a0uiH0IGDtYh9TWA==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
libc: [glibc]
|
libc: [glibc]
|
||||||
|
|
||||||
'@biomejs/cli-win32-arm64@2.5.15':
|
'@biomejs/cli-win32-arm64@2.6.3':
|
||||||
resolution: {integrity: sha512-2kPKzhNlm8C+Ru3GcO0Me2ODkCBLrVOUNuyi84RJyWDVKAA4+Kjj3jMjL938lF6BRfvltC4vB2nPY9SvN51Ovg==}
|
resolution: {integrity: sha512-00SthDxBPwNiT7IL/mOneif6fiEU1PXK875zhr+InpeZjovY1mF5tCuDhXo1Hh0GYyiKHKzLbItzn58SAyLhJQ==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@biomejs/cli-win32-x64@2.5.15':
|
'@biomejs/cli-win32-x64@2.6.3':
|
||||||
resolution: {integrity: sha512-yAzh4UqEImV6Hcy0zjUqNfJAsUhoD64FBQCdTG8Md/Z2wQeVP/ZmJ3XRYAs1g8J9fjTFyl2fCtc5FB5til47+g==}
|
resolution: {integrity: sha512-GhtOPphBWlnCepqpNk/w5eGN5oGRCzL20EbAkL1XCIpyboeVC9R642noyT43l8LSenGS4qz9IL8sKPfwY37V/Q==}
|
||||||
engines: {node: '>=14.21.3'}
|
engines: {node: '>=14.21.3'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
@@ -683,39 +695,47 @@ snapshots:
|
|||||||
'@babel/helper-string-parser': 7.29.11
|
'@babel/helper-string-parser': 7.29.11
|
||||||
'@babel/helper-validator-identifier': 7.29.7
|
'@babel/helper-validator-identifier': 7.29.7
|
||||||
|
|
||||||
'@biomejs/biome@2.5.15':
|
'@biomejs/biome@2.6.3':
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@biomejs/cli-darwin-arm64': 2.5.15
|
'@biomejs/cli-android-arm64': 2.6.3
|
||||||
'@biomejs/cli-darwin-x64': 2.5.15
|
'@biomejs/cli-android-x64': 2.6.3
|
||||||
'@biomejs/cli-linux-arm64': 2.5.15
|
'@biomejs/cli-darwin-arm64': 2.6.3
|
||||||
'@biomejs/cli-linux-arm64-musl': 2.5.15
|
'@biomejs/cli-darwin-x64': 2.6.3
|
||||||
'@biomejs/cli-linux-x64': 2.5.15
|
'@biomejs/cli-linux-arm64': 2.6.3
|
||||||
'@biomejs/cli-linux-x64-musl': 2.5.15
|
'@biomejs/cli-linux-arm64-musl': 2.6.3
|
||||||
'@biomejs/cli-win32-arm64': 2.5.15
|
'@biomejs/cli-linux-x64': 2.6.3
|
||||||
'@biomejs/cli-win32-x64': 2.5.15
|
'@biomejs/cli-linux-x64-musl': 2.6.3
|
||||||
|
'@biomejs/cli-win32-arm64': 2.6.3
|
||||||
|
'@biomejs/cli-win32-x64': 2.6.3
|
||||||
|
|
||||||
'@biomejs/cli-darwin-arm64@2.5.15':
|
'@biomejs/cli-android-arm64@2.6.3':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-darwin-x64@2.5.15':
|
'@biomejs/cli-android-x64@2.6.3':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64-musl@2.5.15':
|
'@biomejs/cli-darwin-arm64@2.6.3':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-linux-arm64@2.5.15':
|
'@biomejs/cli-darwin-x64@2.6.3':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64-musl@2.5.15':
|
'@biomejs/cli-linux-arm64-musl@2.6.3':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-linux-x64@2.5.15':
|
'@biomejs/cli-linux-arm64@2.6.3':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-win32-arm64@2.5.15':
|
'@biomejs/cli-linux-x64-musl@2.6.3':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@biomejs/cli-win32-x64@2.5.15':
|
'@biomejs/cli-linux-x64@2.6.3':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@biomejs/cli-win32-arm64@2.6.3':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@biomejs/cli-win32-x64@2.6.3':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@jridgewell/sourcemap-codec@1.6.0': {}
|
'@jridgewell/sourcemap-codec@1.6.0': {}
|
||||||
|
|||||||
+6
-3
@@ -277,9 +277,12 @@ function onReceive() {
|
|||||||
attempt(signal, receiveViaTracker(receiveCode.value, receiveEvents, signal, salt()));
|
attempt(signal, receiveViaTracker(receiveCode.value, receiveEvents, signal, salt()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// The salt stays as it is while a tracker share or search runs: it found or waits in the swarm of the
|
// The salt stays as it is while a tracker share runs: it waits in the swarm of the salt it started
|
||||||
// salt it started with, another one shown would be the wrong one to give the receiver.
|
// with, another one shown would be the wrong one to give the receiver. A search only takes the salt
|
||||||
const saltLocked = computed(() => viaTracker.value && !['error', 'done', 'stopped'].includes(phase.value!));
|
// on Receive, so a wrong one can be fixed and searched with again.
|
||||||
|
const saltLocked = computed(
|
||||||
|
() => viaTracker.value && side.value === 'send' && !['error', 'done', 'stopped'].includes(phase.value!),
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in new issue
Block a user