Skip to content

Commit

Permalink
Refresh npm package and readme. Update versions prior to release.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnspurlock-skymethod committed Mar 16, 2022
1 parent 2fbd9bc commit 74a4e8e
Show file tree
Hide file tree
Showing 6 changed files with 600 additions and 141 deletions.
8 changes: 4 additions & 4 deletions npm/threadcap/README.md
Expand Up @@ -106,7 +106,7 @@ You don't need this NPM package or to install anything, just remote-import `thre

`example.ts`
```ts
import { makeThreadcap, InMemoryCache, updateThreadcap, makeRateLimitedFetcher, Callbacks } from 'https://raw.githubusercontent.com/skymethod/minipub/v0.1.5/src/threadcap/threadcap.ts';
import { makeThreadcap, InMemoryCache, updateThreadcap, makeRateLimitedFetcher, Callbacks } from 'https://raw.githubusercontent.com/skymethod/minipub/v0.1.6/src/threadcap/threadcap.ts';

const userAgent = 'my-podcast-app/1.0';
const cache = new InMemoryCache();
Expand Down Expand Up @@ -141,9 +141,9 @@ with the same documentation:
// Create a new threadcap using the 'makeThreadcap' function.
// Update an existing threadcap using the 'updateThreadcap' function.
{
// ActivityPub id of the root object url.
// Use this to lookup the corresponding root Node in the 'nodes' property when starting to recurse down a reply tree.
"root": "https://example.social/users/alice/statuses/107939417586098696",
// One or more id urls of the root-level nodes.
// Use these to lookup the corresponding root node when starting to recurse down a reply tree.
"roots": [ "https://example.social/users/alice/statuses/107939417586098696" ],

// Comment data nodes captured so far, keyed by ActivityPub id.
// Each Node has information on any comment content or error found, and pointers to its direct replies or error found.
Expand Down

0 comments on commit 74a4e8e

Please sign in to comment.