To your point https://git.vaughnnugent.com/cgit/vnuge/plugin...

ChipTuner
npub1qdjn8j4gwgmkj3k5un775nq6q3q7mguv5tvajstmkdsqdja2havq03fqm7
hex
31d4adf12f56a114ad54d9d45b5888f615c66a81da7a2ae8dcdbd0f4fc91b3e6nevent
nevent1qqsrr49d7yh4dgg5442dn4zmtzy0v9wxd2qa5732arwdh585ljgm8esprpmhxue69uhhyetvv9ujuem4d36kwatvw5hx6mm9qgsqxefne258ydmfgm2wfl02fsdqgs0d5wx29kweg9amxcqxew4t7kqjyfu7sKind-1 (TextNote)
↳ 回复 事件不存在
00000f1fc4efd9e4e802a8b8173155f8bb9d153fbc9d1dd9bb0ec1a2d238ddbf...
To your point https://git.vaughnnugent.com/cgit/vnuge/plugins-essentials.git/tree/lib/vnlib.browser/src/default/session/index.ts#n289
Usually I would gate this functionality behind a branch to avoid reassigning a variable. It's very rare for me to use a mutable variable except in a very controlled scope. In some parts of this library I've wrapped with getters and setters.
原始 JSON
{
"kind": 1,
"id": "31d4adf12f56a114ad54d9d45b5888f615c66a81da7a2ae8dcdbd0f4fc91b3e6",
"pubkey": "036533caa872376946d4e4fdea4c1a0441eda38ca2d9d9417bb36006cbaabf58",
"created_at": 1773337728,
"tags": [
[
"e",
"870a287751bc568df91f30ddac1c5eed9c823cf88434a724d763f2f50dd898d0",
"",
"root"
],
[
"e",
"00000f1fc4efd9e4e802a8b8173155f8bb9d153fbc9d1dd9bb0ec1a2d238ddbf",
"nostr-idb://cache-relay",
"reply",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
],
[
"p",
"036533caa872376946d4e4fdea4c1a0441eda38ca2d9d9417bb36006cbaabf58"
],
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
]
],
"content": "To your point https://git.vaughnnugent.com/cgit/vnuge/plugins-essentials.git/tree/lib/vnlib.browser/src/default/session/index.ts#n289\n\nUsually I would gate this functionality behind a branch to avoid reassigning a variable. It's very rare for me to use a mutable variable except in a very controlled scope. In some parts of this library I've wrapped with getters and setters. ",
"sig": "5e8fa9836cdf82c61f896f90d89dbfbe7ea7e9d05ab746a9b1e9a0203a6387ff38eaab3a0a8c707b9a6038efe7f6753c37e0223f393f8b5bfd5976683d9b5469"
}