Skip to content

Commit

Permalink
fix: nip26 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
susumuota committed Apr 3, 2023
1 parent fcca5e1 commit f1fa684
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ cd nostrain
npm ci
npm run build # or npm run watch
npm run test
npm run format
```

## Source code
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nostrain",
"version": "0.9.2",
"version": "0.9.3",
"description": "Nostr client library with no strain.",
"author": "Susumu OTA",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/nip26.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { getPublicKey } from './keys';

type Parameters = {
pubkey: string; // the key to whom the delegation will be given
kind?: number;
until?: number; // delegation will only be valid until this date
since?: number; // delegation will be valid from this date on
kind: number | undefined;
until: number | undefined; // delegation will only be valid until this date
since: number | undefined; // delegation will be valid from this date on
};

type Delegation = {
Expand Down

0 comments on commit f1fa684

Please sign in to comment.