Commit Graph

59 Commits

Author SHA1 Message Date
Alex Gleason
608bd6069c
Update README with docs link 2023-03-30 14:41:19 -05:00
Alex Gleason
6f59f9ce84
Make policies deno_doc friendly 2023-03-30 14:22:51 -05:00
Alex Gleason
37213aec65
antiDuplicationPolicy refactor opts 2023-03-29 23:53:07 -05:00
Alex Gleason
b32bfef342
More refactoring 2023-03-29 23:51:15 -05:00
Alex Gleason
48501f3c5f
Improve stupid code 2023-03-29 23:34:34 -05:00
Alex Gleason
566df31b4a Update README.md 2023-03-30 04:10:01 +00:00
Alex Gleason
efa60d9b48 Update README.md 2023-03-30 04:07:58 +00:00
Alex Gleason
225dec7627
io: print line before rethrowing error 2023-03-28 21:57:59 -05:00
Alex Gleason
c087e8fddd
filter: fix streaming of large events 2023-03-28 21:57:17 -05:00
Alex Gleason
ba482e5dfb Merge branch 'nip20' into 'develop'
Return proper NIP-20 responses

See merge request soapbox-pub/strfry-policies!5
2023-03-28 23:57:30 +00:00
Alex Gleason
dc721bcaa8
Return proper NIP-20 responses 2023-03-28 18:56:03 -05:00
Alex Gleason
382f52604d Merge branch 'filter-policy' into 'develop'
Add filterPolicy to block events that don't match the filter

See merge request soapbox-pub/strfry-policies!4
2023-03-28 23:41:54 +00:00
Alex Gleason
f309142acf
Add filterPolicy to block events that don't match the filter 2023-03-28 17:27:30 -05:00
Alex Gleason
734c8ffc0d
README: improve phrasing of intro 2023-03-28 16:28:22 -05:00
Alex Gleason
84b5d56cb6
filter: add a break statement 2023-03-28 16:26:33 -05:00
Alex Gleason
ae7d12ed30 Merge branch 'filter' into 'develop'
Add filter task to filter jsonl events by policy

See merge request soapbox-pub/strfry-policies!2
2023-03-28 21:20:40 +00:00
Alex Gleason
1a83ce44ac
Rearrange entrypoint.example.ts in a more sensible way 2023-03-28 16:16:47 -05:00
Alex Gleason
8dc9f73bfd
Add filter task to filter jsonl events by policy 2023-03-28 16:14:19 -05:00
Alex Gleason
420a086f1d
Make tests use in-memory db 2023-03-28 12:30:53 -05:00
Alex Gleason
2aa05dc194
Add regexPolicy, update other tests to use assertEquals 2023-03-26 17:02:59 -05:00
Alex Gleason
d38f5e06cf
Add keyword policy 2023-03-26 16:40:35 -05:00
Alex Gleason
31fd761278
Add pipeline test 2023-03-26 16:29:35 -05:00
Alex Gleason
c1852ddd56
Add test for rateLimitPolicy 2023-03-26 16:23:03 -05:00
Alex Gleason
a809da4249
Add test for antiDuplicationPolicy 2023-03-26 16:19:33 -05:00
Alex Gleason
b641b03726
Add test for noopPolicy 2023-03-26 16:03:16 -05:00
Alex Gleason
9ca50cbe82
Add test for hellthreadPolicy 2023-03-26 16:02:05 -05:00
Alex Gleason
254b0f1f11
Add whitelistPolicy 2023-03-26 15:58:52 -05:00
Alex Gleason
817519c132
pubkeyBanPolicy: support iterables 2023-03-26 15:43:48 -05:00
Alex Gleason
a8c55053b4
Add pubkeyBanPolicy, improve tests 2023-03-26 15:37:24 -05:00
Alex Gleason
184c013b2e
deno fmt 2023-03-25 12:00:11 -05:00
Alex Gleason
526005463c
README: fix import URLs again 2023-03-25 11:47:56 -05:00
Alex Gleason
b279e042e1
strfry can send multiple messages at once (!!) 2023-03-25 11:42:53 -05:00
Alex Gleason
8c8c969486
README: fix sample entrypoint import URLs 2023-03-25 11:25:57 -05:00
Alex Gleason
75a97095d7 Merge branch 'overhaul' into 'develop'
Overhaul

See merge request soapbox-pub/strfry-policies!1
2023-03-25 15:18:33 +00:00
Alex Gleason
8030fe641a
Add GitLab CI and a simple test 2023-03-25 10:15:06 -05:00
Alex Gleason
37ce2db089
Add a lot more detail to the README 2023-03-25 10:06:56 -05:00
Alex Gleason
c6c7b759e6
Type tweaks 2023-03-25 08:24:47 -05:00
Alex Gleason
2330349ad6
Fix types... Jesus 2023-03-24 22:33:12 -05:00
Alex Gleason
84ad093409
Improve example entrypoint 2023-03-24 20:51:30 -05:00
Alex Gleason
ae0242fc26
Make all policies accept opts, get rid of envvars 2023-03-24 20:48:55 -05:00
Alex Gleason
2f4ebfbda2
Export useful types in mod.ts 2023-03-24 20:27:07 -05:00
Alex Gleason
6e342b9667
Tweak types a little 2023-03-24 20:23:38 -05:00
Alex Gleason
5a6af74413
Add comments to types, deno fmt 2023-03-24 20:17:51 -05:00
Alex Gleason
f2f4dd7b8e
Allow non-tuple values 2023-03-24 20:06:03 -05:00
Alex Gleason
2d7d2da964
Make pipeline take tuples with opts 2023-03-24 19:56:23 -05:00
Alex Gleason
b5fe0c5e67
Add pipeline, scope out entrypoint.example.ts 2023-03-24 16:08:36 -05:00
Alex Gleason
8e41f41002
Add mod.ts 2023-03-24 14:42:12 -05:00
Alex Gleason
78fae38268
Rewrite all policies as policy modules 2023-03-24 14:36:11 -05:00
Alex Gleason
64413d572b
Add deps.ts 2023-03-24 13:23:02 -05:00
Alex Gleason
e3df8579a0
Move types into their own file, import them 2023-03-24 13:19:35 -05:00