Upgrade applesauce packages to v7

Bump applesauce-core/common/loaders/relay/signers to major v7.

Adapt test fixtures to v7's stricter isEvent() (128-char hex signatures and string-only tag values) and to the batched EventStore timeline emissions.
This commit is contained in:
raucao committed 2026-11-17 00:30:55 +04:00
1 parent 99a6ba090c
commit 5e19042ab5
5 files changed
+189 -136

No files matched your search

+5 -5
View File
@@ -104,11 +104,11 @@
"dependencies": {
"@noble/hashes": "^2.3.0",
"@waysidemapping/pinhead": "^15.25.0",
"applesauce-common": "^6.2.0",
"applesauce-core": "^6.2.0",
"applesauce-loaders": "^6.2.0",
"applesauce-relay": "^6.2.1",
"applesauce-signers": "^6.2.2",
"applesauce-common": "^7.1.1",
"applesauce-core": "^7.1.3",
"applesauce-loaders": "^7.2.0",
"applesauce-relay": "^7.1.1",
"applesauce-signers": "^7.1.0",
"blurhash": "^2.0.5",
"ember-concurrency": "^5.2.0",
"ember-lifeline": "^7.1.0",
+157 -125
View File
@@ -18,20 +18,20 @@ importers:
specifier: ^15.25.0
version: 15.25.0
applesauce-common:
specifier: ^6.2.0
version: 6.2.0(supports-color@10.2.2)(typescript@5.9.3)
specifier: ^7.1.1
version: 7.1.1(nostr-wasm@0.1.0)(typescript@5.9.3)
applesauce-core:
specifier: ^6.2.0
version: 6.2.0(supports-color@10.2.2)(typescript@5.9.3)
specifier: ^7.1.3
version: 7.1.3(nostr-wasm@0.1.0)(typescript@5.9.3)
applesauce-loaders:
specifier: ^6.2.0
version: 6.2.0(supports-color@10.2.2)(typescript@5.9.3)
specifier: ^7.2.0
version: 7.2.0(nostr-wasm@0.1.0)(typescript@5.9.3)
applesauce-relay:
specifier: ^6.2.1
version: 6.2.1(supports-color@10.2.2)(typescript@5.9.3)
specifier: ^7.1.1
version: 7.1.1(nostr-wasm@0.1.0)(typescript@5.9.3)
applesauce-signers:
specifier: ^6.2.2
version: 6.2.2(@capacitor/core@7.6.2)(supports-color@10.2.2)(typescript@5.9.3)
specifier: ^7.1.0
version: 7.1.0(@capacitor/core@8.6.2)(nostr-wasm@0.1.0)(typescript@5.9.3)
blurhash:
specifier: ^2.0.5
version: 2.0.5
@@ -1382,8 +1382,8 @@ packages:
'@cacheable/utils@2.5.0':
resolution: {integrity: sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==}
'@capacitor/core@7.6.2':
resolution: {integrity: sha512-8HRKEUlYpCOeRec8bCHZwEA4o/E2q5dhHSd0v/Cr6+ume08fZY/gniF+ZCKF+6DO0T/nRaBeNRQn6Up+45J1mg==}
'@capacitor/core@8.6.2':
resolution: {integrity: sha512-UEb9crRuqEAe2Iu2eGOEuQ8rLQxpwg7ZZIpl17UJoytEpnV1e4oXXW0K7yYS2NsCOGmJjyLeKjNlgG7tkAoX8g==}
'@cnakazawa/watch@1.0.4':
resolution: {integrity: sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==}
@@ -1978,29 +1978,32 @@ packages:
'@emnapi/core': ^1.7.1 || ^2.0.0-alpha.3
'@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.3
'@noble/ciphers@0.5.3':
resolution: {integrity: sha512-B0+6IIHiqEs3BPMT0hcRmHvEj2QHOLu+uwt+tqDDeVd0oyVzh7BPrDcPjRnV1PV/5LaknXJJQvOuRGR0zQJz+w==}
'@noble/ciphers@2.1.1':
resolution: {integrity: sha512-bysYuiVfhxNJuldNXlFEitTVdNnYUc+XNJZd7Qm2a5j1vZHgY+fazadNFWFaMK/2vye0JVlxV3gHmC0WDfAOQw==}
engines: {node: '>= 20.19.0'}
'@noble/curves@1.1.0':
resolution: {integrity: sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==}
'@noble/curves@2.0.1':
resolution: {integrity: sha512-vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==}
engines: {node: '>= 20.19.0'}
'@noble/curves@1.2.0':
resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==}
'@noble/curves@2.4.0':
resolution: {integrity: sha512-P4/62zrgfH33CneE3Dn4WhJVA22YUU0eR51wKIan4NVRvwsA0YnPTwWGpNbpuacSujmSFLvyzpyuR30+fbq2Ew==}
engines: {node: '>= 20.19.0'}
'@noble/hashes@1.3.1':
resolution: {integrity: sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==}
engines: {node: '>= 16'}
'@noble/hashes@1.3.2':
resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==}
engines: {node: '>= 16'}
'@noble/hashes@2.0.1':
resolution: {integrity: sha512-XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==}
engines: {node: '>= 20.19.0'}
'@noble/hashes@2.3.0':
resolution: {integrity: sha512-oN+QwyX7VSHotibwubG3kpzbwKrfnyR6OOO+3Nk/53ADL7FmgHHz4TgrbaYKvvOw09u6QTx0oiH1cNCIOuN0CQ==}
engines: {node: '>= 20.19.0'}
'@noble/secp256k1@3.1.0':
resolution: {integrity: sha512-+F7iS7tUMaNGXcc9X3PjmjvuQnXEuSjCRNzVVA2xAcKXgCaP0dHYz4SFyt4FKNHef7sOP//xihowcySSS7PK9g==}
'@noble/hashes@2.4.0':
resolution: {integrity: sha512-X5XaVWZIBCT7HHZGm5I7ZQXDwLG+bGXuSrMQAW+7Zvl87h1kmc1ZB1VSRJcpUfoUrGQp4Fkoxm5kZ+Ms+aW+eA==}
engines: {node: '>= 20.19.0'}
'@noble/secp256k1@3.2.0':
resolution: {integrity: sha512-Z3ZAWOTxJ0EuTuZTi7Y69iK7GgrLHh8sgm45lVDhg/b3Nk1TpAiKhick2KkZisHuupeepSkyIydN/J459SdX1w==}
'@nodelib/fs.scandir@2.1.5':
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
@@ -2428,14 +2431,23 @@ packages:
'@scure/base@1.1.1':
resolution: {integrity: sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==}
'@scure/base@2.2.0':
resolution: {integrity: sha512-b8XEupJibegiXV+tDUseI8oLQc8ei3d/4Jkb2RpbHh3MfE054ov3uIz2dhFkB3FI8iwYkEh0gGCApkrYggkPNg==}
'@scure/base@2.0.0':
resolution: {integrity: sha512-3E1kpuZginKkek01ovG8krQ0Z44E3DHPjc5S2rjJw9lZn3KSQOs8S7wqikF/AH7iRanHypj85uGyxk0XAyC37w==}
'@scure/bip32@1.3.1':
resolution: {integrity: sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==}
'@scure/base@2.4.0':
resolution: {integrity: sha512-thZ1TuJwFwBblOhgsjDKvvGirBxNp+wSvY/DR6tJBJOTDhdAAcHJ8Vbr2eFnqaxeca4+t0i9KBf+uHYGWwZORg==}
'@scure/bip39@1.2.1':
resolution: {integrity: sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==}
'@scure/bip32@2.0.1':
resolution: {integrity: sha512-4Md1NI5BzoVP+bhyJaY3K6yMesEFzNS1sE/cP+9nuvE7p/b0kx9XbpDHHFl8dHtufcbdHRUUQdRqLIPHN/s7yA==}
'@scure/bip32@2.4.0':
resolution: {integrity: sha512-i3DS0CptAocyvqE4n3SUkpzeQK4vJMFwWLofTwRiiKo2aWojBOfyMCgfKw9HVpO6fSY5AK86sHS/Uzn8kK9Few==}
'@scure/bip39@2.0.1':
resolution: {integrity: sha512-PsxdFj/d2AcJcZDX1FXN3dDgitDDTmwf78rKZq1a6c1P1Nan1X/Sxc7667zU3U+AN60g7SxxP0YCVw2H/hBycg==}
'@scure/bip39@2.4.0':
resolution: {integrity: sha512-82dxFbZUYboyOf0AXiydsQrFQ5Q4h9mX+O2UkE91ROYmsc0BKMGZLwDmy96Jpa2+vrtoxomjUhy1RPIgH/r2nA==}
'@sec-ant/readable-stream@0.4.1':
resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==}
@@ -2639,20 +2651,20 @@ packages:
resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
engines: {node: '>= 8'}
applesauce-common@6.2.0:
resolution: {integrity: sha512-meXbDCdqA1LKy1tr04BW7wMfnBBkHetLv+wlXYjAj5iR4Sji5KMxLFdAjUe6cSvrxrk9LxFcP+0P9BcZQxjpaA==}
applesauce-common@7.1.1:
resolution: {integrity: sha512-aXiG0CL+mtFN0J+BFqA7RanDRk3pCBndQ7DItP+So1pubmlNpzrlxM2z1tAdkqgsYCSUn2+OPdFKEJBMuCl07w==}
applesauce-core@6.2.0:
resolution: {integrity: sha512-O6AlVyzqcuIhTOIuexm6UWmx7mRIa2D98gJP7K7vFGf90YdtvSH78AsKQWZXJ0Pk/K14at+9zkwfCkFr7ghgNw==}
applesauce-core@7.1.3:
resolution: {integrity: sha512-AiH74mwt9eN326x0v2tfopMzgMPJc9qSm5q5cHec1OlxdYjrdlFjgRgv19KDVqEi3wt3miFMKeA89VrjNxd/Rg==}
applesauce-loaders@6.2.0:
resolution: {integrity: sha512-isU2BuoVFhugv4WxdbUFrqm7mCNgsGrMU4BYcNqMm8qAVpVb3L7K3I1hlkIZWwOvNTkhoYO/u0utgwnkQj4Hrg==}
applesauce-loaders@7.2.0:
resolution: {integrity: sha512-9GTZfb9NWp0fkLhzRDjqCJ9OZnHAMuyHE1jMl76K3H3rsMLWuNr5e5z9eTIRqrOUOUSkHvXmYN3jUshaC75B7Q==}
applesauce-relay@6.2.1:
resolution: {integrity: sha512-YIUHEtL2Fl5FZjeKYe/IuwL3OnMUNP2j4ydSr3iZDeHEZSEda4d1PoChefiNhtjE/U/F5OBHEbAX1zCHRZoxpg==}
applesauce-relay@7.1.1:
resolution: {integrity: sha512-dIyMnC8bhdwkDfl9rFMvF/K9Xcol4JDmNBHT2KaYCUfsKD79WlhXcycSmxLAm4DgXF84dnsSx/XxiIktbSBReA==}
applesauce-signers@6.2.2:
resolution: {integrity: sha512-UIJCFIqSdA+rI5DE4SHrFmJf7CkkBbgALGdxgtvScFf1IaOvrT+ntR5D4fbuZREyPnrVuEIwuCTZ7b31WbQ7yQ==}
applesauce-signers@7.1.0:
resolution: {integrity: sha512-zBWCwIrlEN/h9VNNIj/FEP+eJS00avXxwxVVYYPPaE8arx5dIvEsTKsFTVwQgtS7+Wu0sbG2pI4twhDOz9a6hA==}
argparse@2.0.1:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
@@ -3019,6 +3031,11 @@ packages:
caniuse-lite@1.0.30001809:
resolution: {integrity: sha512-xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==}
capacitor-plugin-nostr-signer@0.2.0:
resolution: {integrity: sha512-zXOdpfiefHJ7AmGhcxCiZiyZ1AEPRbgig0d4/DREapKnkHwPAP7VFExlA9RvQw7BFiws5kMCAYFvBuX0EGF6Eg==}
peerDependencies:
'@capacitor/core': '>=8.0.0'
capture-exit@2.0.0:
resolution: {integrity: sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==}
engines: {node: 6.* || 8.* || >= 10.*}
@@ -3047,6 +3064,7 @@ packages:
charm@1.0.2:
resolution: {integrity: sha512-wqW3VdPnlSWT4eRiYX+hcs+C6ViBPUWk1qTCd+37qw9kEm/a5n2qcyQDMBWvSYKN/ctqZzeXNQaeBjOetJJUkw==}
deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
chokidar@5.0.0:
resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}
@@ -5077,9 +5095,9 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
nanoid@5.1.9:
resolution: {integrity: sha512-ZUvP7KeBLe3OZ1ypw6dI/TzYJuvHP77IM4Ry73waSQTLn8/g8rpdjfyVAh7t1/+FjBtG4lCP42MEbDxOsRpBMw==}
engines: {node: ^18 || >=20}
nanoid@6.0.2:
resolution: {integrity: sha512-hIvVOb9Qr1p/9CNNLOe0OlWvgx/ziTsVwKN/GDSsuArN2K0wDiafP3s0SWmsm7o2BdnyS8Z9Z64NFBUbn6ziBg==}
engines: {node: ^22 || ^24 || >=26}
hasBin: true
natural-compare@1.4.0:
@@ -5128,16 +5146,14 @@ packages:
nostr-idb@5.1.0:
resolution: {integrity: sha512-uJKLZPXVMlGg6etyK/RWuV3vTWMOjIo1qNhre59kHZHl0/oOcAUcj6Y/ZgutEA9++9fLcgbr4EJFqauuczAm1A==}
nostr-signer-capacitor-plugin@0.0.5:
resolution: {integrity: sha512-/EvqWz71HZ5cWmzvfXWTm48AWZtbeZDbOg3vLwXyXPjnIp1DR7Wurww/Mo41ORNu1DNPlqH20l7kIXKO6vR5og==}
peerDependencies:
'@capacitor/core': ^7.0.0
nostr-tools@2.19.4:
resolution: {integrity: sha512-qVLfoTpZegNYRJo5j+Oi6RPu0AwLP6jcvzcB3ySMnIT5DrAGNXfs5HNBspB/2HiGfH3GY+v6yXkTtcKSBQZwSg==}
nostr-tools@2.26.1:
resolution: {integrity: sha512-PMsQ80lMeLhb9t6GiCWG0YkwaOy0GiLZI7Ag1BalG0SqU9g/sqxwvBrnZZpnCEVK7WDcc6rVYV5GmPDeg+g8yA==}
peerDependencies:
nostr-wasm: 0.1.0
typescript: '>=5.0.0'
peerDependenciesMeta:
nostr-wasm:
optional: true
typescript:
optional: true
@@ -8215,7 +8231,7 @@ snapshots:
hashery: 1.5.1
keyv: 5.6.0
'@capacitor/core@7.6.2':
'@capacitor/core@8.6.2':
dependencies:
tslib: 2.8.1
optional: true
@@ -8866,23 +8882,23 @@ snapshots:
'@tybys/wasm-util': 0.10.3
optional: true
'@noble/ciphers@0.5.3': {}
'@noble/ciphers@2.1.1': {}
'@noble/curves@1.1.0':
'@noble/curves@2.0.1':
dependencies:
'@noble/hashes': 1.3.1
'@noble/hashes': 2.0.1
'@noble/curves@1.2.0':
'@noble/curves@2.4.0':
dependencies:
'@noble/hashes': 1.3.2
'@noble/hashes': 2.4.0
'@noble/hashes@1.3.1': {}
'@noble/hashes@1.3.2': {}
'@noble/hashes@2.0.1': {}
'@noble/hashes@2.3.0': {}
'@noble/secp256k1@3.1.0': {}
'@noble/hashes@2.4.0': {}
'@noble/secp256k1@3.2.0': {}
'@nodelib/fs.scandir@2.1.5':
dependencies:
@@ -9127,18 +9143,30 @@ snapshots:
'@scure/base@1.1.1': {}
'@scure/base@2.2.0': {}
'@scure/base@2.0.0': {}
'@scure/bip32@1.3.1':
dependencies:
'@noble/curves': 1.1.0
'@noble/hashes': 1.3.2
'@scure/base': 1.1.1
'@scure/base@2.4.0': {}
'@scure/bip39@1.2.1':
'@scure/bip32@2.0.1':
dependencies:
'@noble/hashes': 1.3.2
'@scure/base': 1.1.1
'@noble/curves': 2.0.1
'@noble/hashes': 2.0.1
'@scure/base': 2.0.0
'@scure/bip32@2.4.0':
dependencies:
'@noble/curves': 2.4.0
'@noble/hashes': 2.4.0
'@scure/base': 2.4.0
'@scure/bip39@2.0.1':
dependencies:
'@noble/hashes': 2.0.1
'@scure/base': 2.0.0
'@scure/bip39@2.4.0':
dependencies:
'@noble/hashes': 2.4.0
'@sec-ant/readable-stream@0.4.1': {}
@@ -9357,63 +9385,66 @@ snapshots:
normalize-path: 3.0.0
picomatch: 2.3.1
applesauce-common@6.2.0(supports-color@10.2.2)(typescript@5.9.3):
applesauce-common@7.1.1(nostr-wasm@0.1.0)(typescript@5.9.3):
dependencies:
'@scure/base': 2.2.0
applesauce-core: 6.2.0(supports-color@10.2.2)(typescript@5.9.3)
'@noble/hashes': 2.4.0
'@scure/base': 2.4.0
applesauce-core: 7.1.3(nostr-wasm@0.1.0)(typescript@5.9.3)
hash-sum: 2.0.0
light-bolt11-decoder: 3.2.0
nanoid: 5.1.9
nanoid: 6.0.2
rxjs: 7.8.2
transitivePeerDependencies:
- supports-color
- nostr-wasm
- typescript
applesauce-core@6.2.0(supports-color@10.2.2)(typescript@5.9.3):
applesauce-core@7.1.3(nostr-wasm@0.1.0)(typescript@5.9.3):
dependencies:
debug: 4.4.3(supports-color@10.2.2)
fast-deep-equal: 3.1.3
hash-sum: 2.0.0
nanoid: 5.1.9
nostr-tools: 2.19.4(typescript@5.9.3)
nanoid: 6.0.2
nostr-tools: 2.26.1(nostr-wasm@0.1.0)(typescript@5.9.3)
rxjs: 7.8.2
transitivePeerDependencies:
- supports-color
- nostr-wasm
- typescript
applesauce-loaders@6.2.0(supports-color@10.2.2)(typescript@5.9.3):
applesauce-loaders@7.2.0(nostr-wasm@0.1.0)(typescript@5.9.3):
dependencies:
applesauce-core: 6.2.0(supports-color@10.2.2)(typescript@5.9.3)
nanoid: 5.1.9
rxjs: 7.8.2
transitivePeerDependencies:
- supports-color
- typescript
applesauce-relay@6.2.1(supports-color@10.2.2)(typescript@5.9.3):
dependencies:
'@noble/hashes': 2.3.0
applesauce-core: 6.2.0(supports-color@10.2.2)(typescript@5.9.3)
nanoid: 5.1.9
nostr-tools: 2.19.4(typescript@5.9.3)
rxjs: 7.8.2
transitivePeerDependencies:
- supports-color
- typescript
applesauce-signers@6.2.2(@capacitor/core@7.6.2)(supports-color@10.2.2)(typescript@5.9.3):
dependencies:
'@noble/secp256k1': 3.1.0
'@scure/base': 2.2.0
applesauce-core: 6.2.0(supports-color@10.2.2)(typescript@5.9.3)
debug: 4.4.3(supports-color@10.2.2)
nanoid: 5.1.9
applesauce-core: 7.1.3(nostr-wasm@0.1.0)(typescript@5.9.3)
nanoid: 6.0.2
rxjs: 7.8.2
optionalDependencies:
nostr-signer-capacitor-plugin: 0.0.5(@capacitor/core@7.6.2)
applesauce-relay: 7.1.1(nostr-wasm@0.1.0)(typescript@5.9.3)
transitivePeerDependencies:
- nostr-wasm
- typescript
applesauce-relay@7.1.1(nostr-wasm@0.1.0)(typescript@5.9.3):
dependencies:
'@noble/hashes': 2.4.0
applesauce-core: 7.1.3(nostr-wasm@0.1.0)(typescript@5.9.3)
nanoid: 6.0.2
nostr-tools: 2.26.1(nostr-wasm@0.1.0)(typescript@5.9.3)
rxjs: 7.8.2
transitivePeerDependencies:
- nostr-wasm
- typescript
applesauce-signers@7.1.0(@capacitor/core@8.6.2)(nostr-wasm@0.1.0)(typescript@5.9.3):
dependencies:
'@noble/secp256k1': 3.2.0
'@scure/base': 2.4.0
'@scure/bip32': 2.4.0
'@scure/bip39': 2.4.0
applesauce-core: 7.1.3(nostr-wasm@0.1.0)(typescript@5.9.3)
nanoid: 6.0.2
rxjs: 7.8.2
optionalDependencies:
capacitor-plugin-nostr-signer: 0.2.0(@capacitor/core@8.6.2)
transitivePeerDependencies:
- '@capacitor/core'
- supports-color
- nostr-wasm
- typescript
argparse@2.0.1: {}
@@ -10006,6 +10037,11 @@ snapshots:
caniuse-lite@1.0.30001809: {}
capacitor-plugin-nostr-signer@0.2.0(@capacitor/core@8.6.2):
dependencies:
'@capacitor/core': 8.6.2
optional: true
capture-exit@2.0.0:
dependencies:
rsvp: 4.8.5
@@ -12277,7 +12313,7 @@ snapshots:
nanoid@3.3.17: {}
nanoid@5.1.9: {}
nanoid@6.0.2: {}
natural-compare@1.4.0: {}
@@ -12315,24 +12351,20 @@ snapshots:
transitivePeerDependencies:
- supports-color
nostr-signer-capacitor-plugin@0.0.5(@capacitor/core@7.6.2):
nostr-tools@2.26.1(nostr-wasm@0.1.0)(typescript@5.9.3):
dependencies:
'@capacitor/core': 7.6.2
optional: true
nostr-tools@2.19.4(typescript@5.9.3):
dependencies:
'@noble/ciphers': 0.5.3
'@noble/curves': 1.2.0
'@noble/hashes': 1.3.1
'@scure/base': 1.1.1
'@scure/bip32': 1.3.1
'@scure/bip39': 1.2.1
nostr-wasm: 0.1.0
'@noble/ciphers': 2.1.1
'@noble/curves': 2.0.1
'@noble/hashes': 2.0.1
'@scure/base': 2.0.0
'@scure/bip32': 2.0.1
'@scure/bip39': 2.0.1
optionalDependencies:
nostr-wasm: 0.1.0
typescript: 5.9.3
nostr-wasm@0.1.0: {}
nostr-wasm@0.1.0:
optional: true
npm-package-arg@13.0.2:
dependencies:
+6 -2
View File
@@ -31,6 +31,10 @@ const RECEIPT_ID_1 = '5'.repeat(64);
const RECEIPT_ID_2 = '6'.repeat(64);
const ZAP_REQ_ID = '7'.repeat(64);
// Structurally valid 128-char hex signature required by v7's `isEvent()` /
// `isValidZapRequest()`; the value is not actually verified (fakeVerifyEvent).
const SIGNATURE = 'f'.repeat(128);
const BOLT11_INVOICE =
'lnbc20u1p3y0x3hpp5743k2g0fsqqxj7n8qzuhns5gmkk4djeejk3wkp64ppevgekvc0jsdqcve5kzar2v9nr5gpqd4hkuetesp5ez2g297jduwc20t6lmqlsg3man0vf2jfd8ar9fh8fhn2g8yttfkqxqy9gcqcqzys9qrsgqrzjqtx3k77yrrav9hye7zar2rtqlfkytl094dsp0ms5majzth6gt7ca6uhdkxl983uywgqqqqlgqqqvx5qqjqrzjqd98kxkpyw0l9tyy8r8q57k7zpy9zjmh6sez752wj6gcumqnj3yxzhdsmg6qq56utgqqqqqqqqqqqeqqjq7jd56882gtxhrjm03c93aacyfy306m4fq0tskf83c0nmet8zc2lxyyg3saz8x6vwcp26xnrlagf9semau3qm2glysp7sv95693fphvsp54l567';
@@ -45,10 +49,10 @@ function makeZapReceiptEvent(opts = {}) {
content: opts.message || '',
id: ZAP_REQ_ID,
created_at: 10000,
sig: 'fake',
sig: SIGNATURE,
tags: [
['p', recipient],
['relays', ['wss://relay.example.com']],
['relays', 'wss://relay.example.com'],
],
});
+12
View File
@@ -789,6 +789,9 @@ module('Unit | Service | nostr-data | place photos', function (hooks) {
service._recordProvenance(photoId, 'wss://nostr.kosmos.org');
service.store.add(makePhotoEvent(pk, 'osm:node:800', { id: photoId }));
// v7 batches timeline emissions on a ~16ms window; wait for the flush.
await wait(50);
assert.strictEqual(service.placePhotos.length, 1, 'photo visible');
});
@@ -816,6 +819,7 @@ module('Unit | Service | nostr-data | place photos', function (hooks) {
await service.loadPhotosForPlace({ osmId: '800', osmType: 'node' });
service._recordProvenance(idA, 'wss://nostr.kosmos.org');
service.store.add(makePhotoEvent(pk, 'osm:node:800', { id: idA }));
await wait(50);
assert.strictEqual(service.placePhotos.length, 1, 'place 800 has photo');
await service.loadPhotosForPlace({ osmId: '801', osmType: 'node' });
@@ -828,6 +832,7 @@ module('Unit | Service | nostr-data | place photos', function (hooks) {
service._recordProvenance(idB, 'wss://nostr.kosmos.org');
service.store.add(makePhotoEvent(pk, 'osm:node:801', { id: idB }));
await wait(50);
assert.strictEqual(service.placePhotos.length, 1, 'new place has photo');
assert.strictEqual(service.placePhotos[0].id, idB);
});
@@ -840,6 +845,7 @@ module('Unit | Service | nostr-data | place photos', function (hooks) {
await service.loadPhotosForPlace({ osmId: '800', osmType: 'node' });
service._recordProvenance(idA, 'wss://nostr.kosmos.org');
service.store.add(makePhotoEvent(pk, 'osm:node:800', { id: idA }));
await wait(50);
assert.strictEqual(service.placePhotos.length, 1);
await service.loadPhotosForPlace(null);
@@ -866,6 +872,8 @@ module('Unit | Service | nostr-data | place photos', function (hooks) {
service.store.add(makePhotoEvent(pkA, 'osm:node:900', { id: trustedId }));
service.store.add(makePhotoEvent(pkB, 'osm:node:900', { id: untrustedId }));
await wait(50);
assert.deepEqual(
service.placePhotos.map((e) => e.id),
[trustedId],
@@ -887,6 +895,8 @@ module('Unit | Service | nostr-data | place photos', function (hooks) {
service.store.add(makePhotoEvent(pkA, 'osm:node:901', { id: trustedId }));
service.store.add(makePhotoEvent(pkB, 'osm:node:901', { id: untrustedId }));
await wait(50);
service.toggleShowUntrustedContent();
assert.strictEqual(service.placePhotos.length, 2, 'all photos shown');
assert.strictEqual(service.untrustedContentCount, 1, 'count unchanged');
@@ -904,6 +914,8 @@ module('Unit | Service | nostr-data | place photos', function (hooks) {
await service.loadPhotosForPlace({ osmId: '950', osmType: 'node' });
service.store.add(makePhotoEvent(myPubkey, 'osm:node:950', { id: ownId }));
await wait(50);
assert.strictEqual(
service.placePhotos.length,
1,
+9 -4
View File
@@ -22,6 +22,11 @@ const ZAP_REQ_ID_2 = '4'.repeat(64);
const PHOTO_XYZ_ID = '5'.repeat(64);
const OTHER_EVENT_ID = '6'.repeat(64);
// A structurally valid 128-char hex signature. v7's `isEvent()` requires this
// shape (and string-only tag values) before `isValidZapRequest` accepts the
// embedded zap request; the value is not actually verified (fakeVerifyEvent).
const SIGNATURE = 'f'.repeat(128);
const BOLT11_INVOICE =
'lnbc20u1p3y0x3hpp5743k2g0fsqqxj7n8qzuhns5gmkk4djeejk3wkp64ppevgekvc0jsdqcve5kzar2v9nr5gpqd4hkuetesp5ez2g297jduwc20t6lmqlsg3man0vf2jfd8ar9fh8fhn2g8yttfkqxqy9gcqcqzys9qrsgqrzjqtx3k77yrrav9hye7zar2rtqlfkytl094dsp0ms5majzth6gt7ca6uhdkxl983uywgqqqqlgqqqvx5qqjqrzjqd98kxkpyw0l9tyy8r8q57k7zpy9zjmh6sez752wj6gcumqnj3yxzhdsmg6qq56utgqqqqqqqqqqqeqqjq7jd56882gtxhrjm03c93aacyfy306m4fq0tskf83c0nmet8zc2lxyyg3saz8x6vwcp26xnrlagf9semau3qm2glysp7sv95693fphvsp54l567';
@@ -36,10 +41,10 @@ function makeZapReceiptEvent(opts = {}) {
content: opts.message || '',
id: ZAP_REQ_ID_1,
created_at: 10000,
sig: 'fake',
sig: SIGNATURE,
tags: [
['p', recipient],
['relays', ['wss://relay.example.com']],
['relays', 'wss://relay.example.com'],
],
});
@@ -135,10 +140,10 @@ module('Unit | Utility | activity', function () {
content: '',
id: ZAP_REQ_ID_2,
created_at: 10000,
sig: 'fake',
sig: SIGNATURE,
tags: [
['p', USER_PUBKEY],
['relays', ['wss://relay.example.com']],
['relays', 'wss://relay.example.com'],
],
});
const receipt = makeZapReceiptEvent({ description });