chore: Update translations

This commit is contained in:
Martti Malmi
2024-01-04 08:50:58 +00:00
parent d31a03a565
commit 26146106d4
24 changed files with 111 additions and 6 deletions

View File

@ -10,7 +10,7 @@ import { NostrEvent, ReqCommand, ReqFilter, TaggedNostrEvent, u256 } from "./nos
import { RelayInfo } from "./relay-info";
import EventKind from "./event-kind";
import { seenEvents } from "./seen-events";
import {getHex64} from "./utils";
import { getHex64 } from "./utils";
/**
* Relay settings

View File

@ -1,3 +1,3 @@
import LRUSet from "@snort/shared/src/LRUSet";
export const seenEvents = new LRUSet<string>(2000);
export const seenEvents = new LRUSet<string>(2000);

View File

@ -84,8 +84,8 @@ export function parseIMeta(tags: Array<Array<string>>) {
}
export function getHex64(json: string, field: string): string {
let len = field.length + 3
let idx = json.indexOf(`"${field}":`) + len
let s = json.slice(idx).indexOf(`"`) + idx + 1
return json.slice(s, s + 64)
let len = field.length + 3;
let idx = json.indexOf(`"${field}":`) + len;
let s = json.slice(idx).indexOf(`"`) + idx + 1;
return json.slice(s, s + 64);
}