bleetube on Nostr: Test strfry-policies without using `deno task filter` ```sh head -n1 /tmp/test.jsonl ...
Test strfry-policies without using `deno task filter`
```sh
head -n1 /tmp/test.jsonl | \
jq -c '{
type: "new",
event: .,
receivedAt: (now),
sourceType: "IP4",
sourceInfo: "127.0.0.1"
}' | doas -u strfry ./complex-entrypoint.ts
```
Published at
2024-11-11 20:05:07Event JSON
{
"id": "969ff22e6e30b69e52953d0210a66a1c60971a2f5a77df09f72e45aac2754dc6",
"pubkey": "69a0a0910b49a1dbfbc4e4f10df22b5806af5403a228267638f2e908c968228d",
"created_at": 1731355507,
"kind": 1,
"tags": [
[
"r",
"test.jsonl"
],
[
"r",
"complex-entrypoint.ts"
]
],
"content": "Test strfry-policies without using `deno task filter`\n\n```sh\nhead -n1 /tmp/test.jsonl | \\\njq -c '{\n type: \"new\",\n event: .,\n receivedAt: (now),\n sourceType: \"IP4\",\n sourceInfo: \"127.0.0.1\"\n}' | doas -u strfry ./complex-entrypoint.ts\n```\n",
"sig": "13368d6b51da696b91b83d8dcdef3001e65525c1eeba54b4c28e3bbf23faf2b021eb6d826bef27be63c2af69b1beb29cfa33f84a549b50d54a3ffb60b141a178"
}