Skip to content

Commit

Permalink
define InMemoryAccountContext_V2 as a separate class (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlowaterNostr authored Nov 3, 2024
1 parent 51f9484 commit 46d7b4a
Show file tree
Hide file tree
Showing 15 changed files with 556 additions and 590 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Test

on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
push:
branches: ["main"]
pull_request:
branches: ["*"]

permissions:
contents: read
contents: read

jobs:
test:
timeout-minutes: 1
runs-on: ubuntu-latest
test:
timeout-minutes: 1
runs-on: ubuntu-latest

steps:
- name: Setup repo
uses: actions/checkout@v3
steps:
- name: Setup repo
uses: actions/checkout@v3

- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: 1.44.0
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: 2.0.4

- name: Verify formatting & other checks
run: make check
- name: Verify formatting & other checks
run: make check

- name: Run tests
run: make test
- name: Run tests
run: make test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ nodejs/index.mjs
test.ts
# SQLite files
*.db
.vscode
4 changes: 0 additions & 4 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion _helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function parseJSON<T extends {}>(content: string): T | SyntaxError {
export const RFC3339 = "yyyy-MM-ddTHH:mm:ss.SSSZ";

export class RESTRequestFailed extends Error {
constructor(public readonly res: Response, public readonly message: string) {
constructor(public readonly res: Response, public override readonly message: string) {
super(`Failed to request rest api, ${res.status}:${res.statusText}`);
this.name = RESTRequestFailed.name;
}
Expand Down
8 changes: 6 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "@blowater/nostr-sdk",
"version": "0.1.5",
"exports": "./nostr.ts",
"version": "0.1.6",
"exports": {
".": "./nostr.ts",
"./key": "./key.ts",
"./v2": "./v2.ts"
},
"fmt": {
"indentWidth": 4,
"lineWidth": 110,
Expand Down
Loading

0 comments on commit 46d7b4a

Please sign in to comment.