shinjuku-shield 0.3.246 → 0.3.247
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/README.md +3 -3
- package/manifest.json +34 -34
- package/package.json +4 -4
- package/shinjuku-seller.mjs +34 -23
- package/shinjuku-wallet.mjs +1393 -873
- package/tor/darwin-arm64/tor/libevent-2.1.7.dylib +0 -0
- package/tor/darwin-arm64/tor/tor +0 -0
- package/tor/darwin-x64/tor/libevent-2.1.7.dylib +0 -0
- package/tor/darwin-x64/tor/tor +0 -0
- package/tor/linux-x64/tor/libcrypto.so.3 +0 -0
- package/tor/linux-x64/tor/libevent-2.1.so.7 +0 -0
- package/tor/linux-x64/tor/libssl.so.3 +0 -0
- package/tor/linux-x64/tor/tor +0 -0
- package/tor/win32-x64/tor/tor.exe +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ web services and AI answers from your private balance, so the payment does
|
|
|
8
8
|
not show who paid. It works inside your AI app (Claude, Cursor, Codex) and in
|
|
9
9
|
a terminal. Only you hold the keys: they never leave your computer.
|
|
10
10
|
|
|
11
|
-
This is version 0.3.
|
|
11
|
+
This is version 0.3.247. The command is `shinjuku`.
|
|
12
12
|
|
|
13
13
|
## Set up
|
|
14
14
|
|
|
@@ -112,7 +112,7 @@ Add it yourself. The name of the wallet in your app is `shinjuku`.
|
|
|
112
112
|
Claude Code:
|
|
113
113
|
|
|
114
114
|
```sh
|
|
115
|
-
claude mcp add --scope user shinjuku -- npx -y --prefer-offline --no-audit --no-fund shinjuku-shield@0.3.
|
|
115
|
+
claude mcp add --scope user shinjuku -- npx -y --prefer-offline --no-audit --no-fund shinjuku-shield@0.3.247 mcp
|
|
116
116
|
```
|
|
117
117
|
|
|
118
118
|
`--prefer-offline` runs the copy of the wallet that npm saved. If npm has not saved it yet, that start asks
|
|
@@ -131,7 +131,7 @@ with the Releases table in
|
|
|
131
131
|
Versions are published from GitHub Actions with npm provenance.
|
|
132
132
|
|
|
133
133
|
`shinjuku-shield` is the package that holds the wallet. `shinjuku-shielded`
|
|
134
|
-
0.3.
|
|
134
|
+
0.3.247, its older name, runs this package at the same version, so wallets
|
|
135
135
|
installed under that name keep updating. New installs use `shinjuku`.
|
|
136
136
|
|
|
137
137
|
The full guide is
|
package/manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "carbon-shielded-wallet/bundle-manifest/v1",
|
|
3
3
|
"file": "shinjuku-wallet.mjs",
|
|
4
|
-
"sha256": "
|
|
5
|
-
"bytes":
|
|
6
|
-
"sourceCommit": "
|
|
4
|
+
"sha256": "9407457d616737f1d77347d18f9a23090e46d3a48ff11cf2665fe70af4a68af1",
|
|
5
|
+
"bytes": 10789161,
|
|
6
|
+
"sourceCommit": "e81fa3617d457350adf37bae0a63067178c50623",
|
|
7
7
|
"sourceDirty": false,
|
|
8
8
|
"installRecordMatchesLockfile": true,
|
|
9
9
|
"releaseRule": "valid only when two fresh npm ci --ignore-scripts builds on different OSes give the same sha256; installRecordMatchesLockfile true means every entry npm installed equals its package-lock.json entry and every entry not marked optional, devOptional included, is installed: an optional entry (a package for another platform) may be absent",
|
|
@@ -1075,8 +1075,8 @@
|
|
|
1075
1075
|
],
|
|
1076
1076
|
"seller": {
|
|
1077
1077
|
"file": "shinjuku-seller.mjs",
|
|
1078
|
-
"sha256": "
|
|
1079
|
-
"bytes":
|
|
1078
|
+
"sha256": "fdef5653709c126836dcdef646e66d8ad3df09d48e16c21f4a04bff695afc587",
|
|
1079
|
+
"bytes": 4244869,
|
|
1080
1080
|
"entry": "wallet/src/seller/exact/index.mjs",
|
|
1081
1081
|
"external": [
|
|
1082
1082
|
"@x402/core/http",
|
|
@@ -1969,85 +1969,85 @@
|
|
|
1969
1969
|
]
|
|
1970
1970
|
},
|
|
1971
1971
|
"tor": {
|
|
1972
|
-
"version": "
|
|
1972
|
+
"version": "16.0.1",
|
|
1973
1973
|
"platforms": {
|
|
1974
1974
|
"win32-x64": {
|
|
1975
1975
|
"archive": {
|
|
1976
|
-
"name": "tor-expert-bundle-windows-x86_64-
|
|
1977
|
-
"url": "https://archive.torproject.org/tor-package-archive/torbrowser/
|
|
1978
|
-
"sha256": "
|
|
1976
|
+
"name": "tor-expert-bundle-windows-x86_64-16.0.1.tar.gz",
|
|
1977
|
+
"url": "https://archive.torproject.org/tor-package-archive/torbrowser/16.0.1/tor-expert-bundle-windows-x86_64-16.0.1.tar.gz",
|
|
1978
|
+
"sha256": "9eed3c3ff1fe43df034ce360196c9ec95472560d77ff55614d0cd5120edea27b"
|
|
1979
1979
|
},
|
|
1980
1980
|
"files": [
|
|
1981
1981
|
{
|
|
1982
1982
|
"path": "tor/tor.exe",
|
|
1983
|
-
"sha256": "
|
|
1984
|
-
"bytes":
|
|
1983
|
+
"sha256": "da22856f95ee24f8ace4ad1ab04acbd818fd6c3042bc3cf8f1d7cc3fa3edcb2b",
|
|
1984
|
+
"bytes": 10248704
|
|
1985
1985
|
}
|
|
1986
1986
|
]
|
|
1987
1987
|
},
|
|
1988
1988
|
"darwin-arm64": {
|
|
1989
1989
|
"archive": {
|
|
1990
|
-
"name": "tor-expert-bundle-macos-aarch64-
|
|
1991
|
-
"url": "https://archive.torproject.org/tor-package-archive/torbrowser/
|
|
1992
|
-
"sha256": "
|
|
1990
|
+
"name": "tor-expert-bundle-macos-aarch64-16.0.1.tar.gz",
|
|
1991
|
+
"url": "https://archive.torproject.org/tor-package-archive/torbrowser/16.0.1/tor-expert-bundle-macos-aarch64-16.0.1.tar.gz",
|
|
1992
|
+
"sha256": "0b7d022017c31e3f972d06465bcd7ac50feb66ac825547419a934914fe4bb156"
|
|
1993
1993
|
},
|
|
1994
1994
|
"files": [
|
|
1995
1995
|
{
|
|
1996
1996
|
"path": "tor/tor",
|
|
1997
|
-
"sha256": "
|
|
1998
|
-
"bytes":
|
|
1997
|
+
"sha256": "1a910d08cc88e23d5823554272dc1722c6275e322230455ea4dddf9c99e4de7a",
|
|
1998
|
+
"bytes": 8680880
|
|
1999
1999
|
},
|
|
2000
2000
|
{
|
|
2001
2001
|
"path": "tor/libevent-2.1.7.dylib",
|
|
2002
|
-
"sha256": "
|
|
2003
|
-
"bytes":
|
|
2002
|
+
"sha256": "d51339ae695865b911c56c6d4da9a4084a74c9484c856c4fa5c22440ba82e0b9",
|
|
2003
|
+
"bytes": 397832
|
|
2004
2004
|
}
|
|
2005
2005
|
]
|
|
2006
2006
|
},
|
|
2007
2007
|
"darwin-x64": {
|
|
2008
2008
|
"archive": {
|
|
2009
|
-
"name": "tor-expert-bundle-macos-x86_64-
|
|
2010
|
-
"url": "https://archive.torproject.org/tor-package-archive/torbrowser/
|
|
2011
|
-
"sha256": "
|
|
2009
|
+
"name": "tor-expert-bundle-macos-x86_64-16.0.1.tar.gz",
|
|
2010
|
+
"url": "https://archive.torproject.org/tor-package-archive/torbrowser/16.0.1/tor-expert-bundle-macos-x86_64-16.0.1.tar.gz",
|
|
2011
|
+
"sha256": "15464d99adc3bb4de1308260d79878336b04a1ac1aeff83e10f192de7d235946"
|
|
2012
2012
|
},
|
|
2013
2013
|
"files": [
|
|
2014
2014
|
{
|
|
2015
2015
|
"path": "tor/tor",
|
|
2016
|
-
"sha256": "
|
|
2017
|
-
"bytes":
|
|
2016
|
+
"sha256": "41ac55a641569ddb94fbd42059799bcf4c00291b6cd8a607aed53e5eaa5ba016",
|
|
2017
|
+
"bytes": 8879048
|
|
2018
2018
|
},
|
|
2019
2019
|
{
|
|
2020
2020
|
"path": "tor/libevent-2.1.7.dylib",
|
|
2021
|
-
"sha256": "
|
|
2022
|
-
"bytes":
|
|
2021
|
+
"sha256": "25646a77c3f71f62f7cc3756320e6f7c3cc48174d5763b11ba03148daaae81e9",
|
|
2022
|
+
"bytes": 366112
|
|
2023
2023
|
}
|
|
2024
2024
|
]
|
|
2025
2025
|
},
|
|
2026
2026
|
"linux-x64": {
|
|
2027
2027
|
"archive": {
|
|
2028
|
-
"name": "tor-expert-bundle-linux-x86_64-
|
|
2029
|
-
"url": "https://archive.torproject.org/tor-package-archive/torbrowser/
|
|
2030
|
-
"sha256": "
|
|
2028
|
+
"name": "tor-expert-bundle-linux-x86_64-16.0.1.tar.gz",
|
|
2029
|
+
"url": "https://archive.torproject.org/tor-package-archive/torbrowser/16.0.1/tor-expert-bundle-linux-x86_64-16.0.1.tar.gz",
|
|
2030
|
+
"sha256": "7039cb16060ab22e669852e55774d894b55f25ea8bd0ab7194d3478429a58725"
|
|
2031
2031
|
},
|
|
2032
2032
|
"files": [
|
|
2033
2033
|
{
|
|
2034
2034
|
"path": "tor/tor",
|
|
2035
|
-
"sha256": "
|
|
2036
|
-
"bytes":
|
|
2035
|
+
"sha256": "0769509fb10e5b916d91f824fdb7575ae142f5afe134b16e9ea174074a327ccf",
|
|
2036
|
+
"bytes": 3618712
|
|
2037
2037
|
},
|
|
2038
2038
|
{
|
|
2039
2039
|
"path": "tor/libevent-2.1.so.7",
|
|
2040
|
-
"sha256": "
|
|
2040
|
+
"sha256": "d252ad9c63de5ac276bdcf73f466ecf6ce0b390f33c3d241b6a32ea4e2f59ef6",
|
|
2041
2041
|
"bytes": 346424
|
|
2042
2042
|
},
|
|
2043
2043
|
{
|
|
2044
2044
|
"path": "tor/libssl.so.3",
|
|
2045
|
-
"sha256": "
|
|
2045
|
+
"sha256": "cb31eaf171a10f660137b6c3d1ff552c2e89fdedd20e8523a7bf30cc06727457",
|
|
2046
2046
|
"bytes": 1056448
|
|
2047
2047
|
},
|
|
2048
2048
|
{
|
|
2049
2049
|
"path": "tor/libcrypto.so.3",
|
|
2050
|
-
"sha256": "
|
|
2050
|
+
"sha256": "e2c0901c520c07cdaab4af3507bf20f6c80273571764b4dc9b3b0b4a75621052",
|
|
2051
2051
|
"bytes": 5493040
|
|
2052
2052
|
}
|
|
2053
2053
|
]
|
|
@@ -2080,5 +2080,5 @@
|
|
|
2080
2080
|
}
|
|
2081
2081
|
]
|
|
2082
2082
|
},
|
|
2083
|
-
"publishedAt": "2026-11-
|
|
2083
|
+
"publishedAt": "2026-11-19T11:38:15.682Z"
|
|
2084
2084
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinjuku-shield",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.247",
|
|
4
4
|
"mcpName": "io.github.ShinjukuStaition/shinjuku-shield",
|
|
5
5
|
"description": "Shinjuku Shield, private x402 payments on Solana: the self-custody wallet CLI and its MCP server. Shield, pay, and unshield USDC from any MCP agent, under caps you set.",
|
|
6
|
-
"shinjukuRelease": "
|
|
7
|
-
"shinjukuSha256": "
|
|
6
|
+
"shinjukuRelease": "9407457d",
|
|
7
|
+
"shinjukuSha256": "9407457d616737f1d77347d18f9a23090e46d3a48ff11cf2665fe70af4a68af1",
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
9
9
|
"author": "Shinjuku Shield",
|
|
10
10
|
"homepage": "https://github.com/ShinjukuStaition/shinjuku-shield#readme",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"tor/"
|
|
49
49
|
],
|
|
50
50
|
"engines": {
|
|
51
|
-
"node": "^22.
|
|
51
|
+
"node": "^22.23.4 || ^24.22.1 || >=26.12.1"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public",
|
package/shinjuku-seller.mjs
CHANGED
|
@@ -39705,49 +39705,45 @@ var init_proxy = __esm({
|
|
|
39705
39705
|
tunnelSockets = /* @__PURE__ */ new Set();
|
|
39706
39706
|
registerRunSockets(() => tunnelSockets);
|
|
39707
39707
|
TOR_MIN_VERSION = Object.freeze([0, 4, 9, 13]);
|
|
39708
|
-
TOR_EXPERT_BUNDLE = "
|
|
39709
|
-
TOR_EXPERT_BUNDLE_SHA256 = "
|
|
39708
|
+
TOR_EXPERT_BUNDLE = "16.0.1";
|
|
39709
|
+
TOR_EXPERT_BUNDLE_SHA256 = "9eed3c3ff1fe43df034ce360196c9ec95472560d77ff55614d0cd5120edea27b";
|
|
39710
39710
|
TOR_ARCHIVE = `https://archive.torproject.org/tor-package-archive/torbrowser/${TOR_EXPERT_BUNDLE}/`;
|
|
39711
39711
|
TOR_EXPERT_BUNDLE_URL = `${TOR_ARCHIVE}tor-expert-bundle-windows-x86_64-${TOR_EXPERT_BUNDLE}.tar.gz`;
|
|
39712
39712
|
TOR_EXPERT_BUNDLES = Object.freeze({
|
|
39713
|
-
"win32-x64": Object.freeze({ url: TOR_EXPERT_BUNDLE_URL, sha256: TOR_EXPERT_BUNDLE_SHA256, mb:
|
|
39713
|
+
"win32-x64": Object.freeze({ url: TOR_EXPERT_BUNDLE_URL, sha256: TOR_EXPERT_BUNDLE_SHA256, mb: 24 }),
|
|
39714
39714
|
"darwin-arm64": Object.freeze({
|
|
39715
39715
|
url: `${TOR_ARCHIVE}tor-expert-bundle-macos-aarch64-${TOR_EXPERT_BUNDLE}.tar.gz`,
|
|
39716
|
-
sha256: "
|
|
39716
|
+
sha256: "0b7d022017c31e3f972d06465bcd7ac50feb66ac825547419a934914fe4bb156",
|
|
39717
39717
|
mb: 19
|
|
39718
39718
|
}),
|
|
39719
39719
|
"darwin-x64": Object.freeze({
|
|
39720
39720
|
url: `${TOR_ARCHIVE}tor-expert-bundle-macos-x86_64-${TOR_EXPERT_BUNDLE}.tar.gz`,
|
|
39721
|
-
sha256: "
|
|
39722
|
-
mb:
|
|
39721
|
+
sha256: "15464d99adc3bb4de1308260d79878336b04a1ac1aeff83e10f192de7d235946",
|
|
39722
|
+
mb: 20
|
|
39723
39723
|
}),
|
|
39724
|
-
// Linux x64 (2026-11-08, Lotus task 91): the line of the same sha256sums-signed-build.txt of 15.0.25; its .asc checked
|
|
39725
|
-
// good again in WSL with gpg and the key EF6E 286D DA85 EA2A 4BA7 DE68 4E2C 6E87 9329 8290 from keys.openpgp.org
|
|
39726
|
-
// (signing subkey 022D A248 432D 2A0E 0F54 E65E 316C 1FAC D62D 07D9, signed 2026-10-12); its Windows and macOS lines equal
|
|
39727
|
-
// the pins above; the downloaded archive (32,448,097 bytes) has this sha256. No Linux arm64 bundle is published.
|
|
39728
39724
|
"linux-x64": Object.freeze({
|
|
39729
39725
|
url: `${TOR_ARCHIVE}tor-expert-bundle-linux-x86_64-${TOR_EXPERT_BUNDLE}.tar.gz`,
|
|
39730
|
-
sha256: "
|
|
39731
|
-
mb:
|
|
39726
|
+
sha256: "7039cb16060ab22e669852e55774d894b55f25ea8bd0ab7194d3478429a58725",
|
|
39727
|
+
mb: 34
|
|
39732
39728
|
})
|
|
39733
39729
|
});
|
|
39734
39730
|
TOR_PACKAGED = Object.freeze({
|
|
39735
39731
|
"win32-x64": Object.freeze({ archive: "windows-x86_64", files: Object.freeze([
|
|
39736
|
-
Object.freeze({ path: "tor/tor.exe", sha256: "
|
|
39732
|
+
Object.freeze({ path: "tor/tor.exe", sha256: "da22856f95ee24f8ace4ad1ab04acbd818fd6c3042bc3cf8f1d7cc3fa3edcb2b", bytes: 10248704 })
|
|
39737
39733
|
]) }),
|
|
39738
39734
|
"darwin-arm64": Object.freeze({ archive: "macos-aarch64", files: Object.freeze([
|
|
39739
|
-
Object.freeze({ path: "tor/tor", sha256: "
|
|
39740
|
-
Object.freeze({ path: "tor/libevent-2.1.7.dylib", sha256: "
|
|
39735
|
+
Object.freeze({ path: "tor/tor", sha256: "1a910d08cc88e23d5823554272dc1722c6275e322230455ea4dddf9c99e4de7a", bytes: 8680880 }),
|
|
39736
|
+
Object.freeze({ path: "tor/libevent-2.1.7.dylib", sha256: "d51339ae695865b911c56c6d4da9a4084a74c9484c856c4fa5c22440ba82e0b9", bytes: 397832 })
|
|
39741
39737
|
]) }),
|
|
39742
39738
|
"darwin-x64": Object.freeze({ archive: "macos-x86_64", files: Object.freeze([
|
|
39743
|
-
Object.freeze({ path: "tor/tor", sha256: "
|
|
39744
|
-
Object.freeze({ path: "tor/libevent-2.1.7.dylib", sha256: "
|
|
39739
|
+
Object.freeze({ path: "tor/tor", sha256: "41ac55a641569ddb94fbd42059799bcf4c00291b6cd8a607aed53e5eaa5ba016", bytes: 8879048 }),
|
|
39740
|
+
Object.freeze({ path: "tor/libevent-2.1.7.dylib", sha256: "25646a77c3f71f62f7cc3756320e6f7c3cc48174d5763b11ba03148daaae81e9", bytes: 366112 })
|
|
39745
39741
|
]) }),
|
|
39746
39742
|
"linux-x64": Object.freeze({ archive: "linux-x86_64", files: Object.freeze([
|
|
39747
|
-
Object.freeze({ path: "tor/tor", sha256: "
|
|
39748
|
-
Object.freeze({ path: "tor/libevent-2.1.so.7", sha256: "
|
|
39749
|
-
Object.freeze({ path: "tor/libssl.so.3", sha256: "
|
|
39750
|
-
Object.freeze({ path: "tor/libcrypto.so.3", sha256: "
|
|
39743
|
+
Object.freeze({ path: "tor/tor", sha256: "0769509fb10e5b916d91f824fdb7575ae142f5afe134b16e9ea174074a327ccf", bytes: 3618712 }),
|
|
39744
|
+
Object.freeze({ path: "tor/libevent-2.1.so.7", sha256: "d252ad9c63de5ac276bdcf73f466ecf6ce0b390f33c3d241b6a32ea4e2f59ef6", bytes: 346424 }),
|
|
39745
|
+
Object.freeze({ path: "tor/libssl.so.3", sha256: "cb31eaf171a10f660137b6c3d1ff552c2e89fdedd20e8523a7bf30cc06727457", bytes: 1056448 }),
|
|
39746
|
+
Object.freeze({ path: "tor/libcrypto.so.3", sha256: "e2c0901c520c07cdaab4af3507bf20f6c80273571764b4dc9b3b0b4a75621052", bytes: 5493040 })
|
|
39751
39747
|
]) })
|
|
39752
39748
|
});
|
|
39753
39749
|
TOR_PACKAGED_DOCS = Object.freeze([
|
|
@@ -46434,6 +46430,7 @@ var init_errorCodes = __esm({
|
|
|
46434
46430
|
"payme_id_exists",
|
|
46435
46431
|
"payme_amount_invalid",
|
|
46436
46432
|
"payme_note_invalid",
|
|
46433
|
+
"payme_private_invalid",
|
|
46437
46434
|
"payme_not_found",
|
|
46438
46435
|
"payme_close_refused",
|
|
46439
46436
|
"payme_key_probe_exhausted",
|
|
@@ -46548,6 +46545,9 @@ var init_errorCodes = __esm({
|
|
|
46548
46545
|
"mcp_tool_disabled",
|
|
46549
46546
|
"mcp_unshield_to_not_allowed",
|
|
46550
46547
|
"mcp_unshield_to_invalid",
|
|
46548
|
+
// A pay-me link as the send address (2026-11-19): no private address in it, or another token.
|
|
46549
|
+
"mcp_unshield_link_not_private",
|
|
46550
|
+
"mcp_unshield_link_other_token",
|
|
46551
46551
|
"mcp_unshield_recipient_unread",
|
|
46552
46552
|
"mcp_unshield_recipient_refused",
|
|
46553
46553
|
"mcp_unshield_send_open",
|
|
@@ -81581,6 +81581,17 @@ function ownTunnelPort(home, tunnel) {
|
|
|
81581
81581
|
if (recordedOwnPorts(home)?.includes(port)) return port;
|
|
81582
81582
|
return loggedTunnelPorts(home).has(port) ? port : void 0;
|
|
81583
81583
|
}
|
|
81584
|
+
function olderBundle(state2) {
|
|
81585
|
+
if (!state2) return false;
|
|
81586
|
+
const parts = (text2) => String(text2 ?? "").split(".").map((part) => Number.parseInt(part, 10) || 0);
|
|
81587
|
+
const running = parts(state2.version);
|
|
81588
|
+
const pinned = parts(TOR_EXPERT_BUNDLE);
|
|
81589
|
+
if (typeof state2.version !== "string") return true;
|
|
81590
|
+
for (let i = 0; i < Math.max(running.length, pinned.length); i += 1) {
|
|
81591
|
+
if ((running[i] ?? 0) !== (pinned[i] ?? 0)) return (running[i] ?? 0) < (pinned[i] ?? 0);
|
|
81592
|
+
}
|
|
81593
|
+
return false;
|
|
81594
|
+
}
|
|
81584
81595
|
async function ensureWalletTor(proxy, { env = process.env, platform = process.platform, explicit = false, say = () => {
|
|
81585
81596
|
} } = {}) {
|
|
81586
81597
|
if (!ownTorPlatform(platform)) return proxy;
|
|
@@ -81597,7 +81608,7 @@ async function ensureWalletTor(proxy, { env = process.env, platform = process.pl
|
|
|
81597
81608
|
const timeLeft = () => deadline - Date.now();
|
|
81598
81609
|
try {
|
|
81599
81610
|
const known = managedTorState(home);
|
|
81600
|
-
const ready = await ownTorReady(home, known, { wait: false });
|
|
81611
|
+
const ready = !olderBundle(known) && await ownTorReady(home, known, { wait: false });
|
|
81601
81612
|
if (ready && await processLockFree(lockName(home)) && pidAlive3(known.pid)) {
|
|
81602
81613
|
recordOwnPort(home, known.port);
|
|
81603
81614
|
await recordTunnel(home, ready, deadline);
|
|
@@ -81608,7 +81619,7 @@ async function ensureWalletTor(proxy, { env = process.env, platform = process.pl
|
|
|
81608
81619
|
const state2 = managedTorState(home);
|
|
81609
81620
|
let again;
|
|
81610
81621
|
try {
|
|
81611
|
-
again = await ownTorReady(home, state2, { deadline });
|
|
81622
|
+
again = olderBundle(state2) ? void 0 : await ownTorReady(home, state2, { deadline });
|
|
81612
81623
|
} catch (error) {
|
|
81613
81624
|
await stopOwnTor(home, state2);
|
|
81614
81625
|
if (!(error?.stalled === true && timeLeft() >= RESTART_MIN_MS)) throw error;
|