@snort/system
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -20,8 +20,9 @@ import { AuthHandler, RelaySettings, ConnectionStateSnapshot } from "./Connection"; | ||
export * from "./ProfileCache"; | ||
export * from "./Zaps"; | ||
export * from "./impl/nip4"; | ||
export * from "./impl/nip44"; | ||
export * from "./cache"; | ||
export * from "./cache/UserRelayCache"; | ||
export * from "./cache/UserCache"; | ||
export * from "./cache/RelayMetricCache"; | ||
export * from "./Cache"; | ||
export * from "./Cache/UserRelayCache"; | ||
export * from "./Cache/UserCache"; | ||
export * from "./Cache/RelayMetricCache"; | ||
export interface SystemInterface { | ||
@@ -28,0 +29,0 @@ /** |
@@ -36,8 +36,9 @@ "use strict"; | ||
__exportStar(require("./ProfileCache"), exports); | ||
__exportStar(require("./Zaps"), exports); | ||
__exportStar(require("./impl/nip4"), exports); | ||
__exportStar(require("./impl/nip44"), exports); | ||
__exportStar(require("./cache"), exports); | ||
__exportStar(require("./cache/UserRelayCache"), exports); | ||
__exportStar(require("./cache/UserCache"), exports); | ||
__exportStar(require("./cache/RelayMetricCache"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFNQSxnREFBOEI7QUFDOUIseUNBQW1EO0FBQTFDLHVIQUFBLE9BQU8sT0FBYTtBQUM3QiwwQ0FBd0I7QUFDeEIsMENBQXdCO0FBQ3hCLHlDQUF1QjtBQUN2Qiw4Q0FBNEI7QUFDNUIsNkNBQTJCO0FBQzNCLCtDQUE2QjtBQUM3QixtREFBaUM7QUFDakMsbURBQWlDO0FBQ2pDLG1EQUFpQztBQUNqQyxpREFBK0I7QUFDL0IsOENBQTRCO0FBQzVCLGlEQUErQjtBQUUvQiw4Q0FBNEI7QUFDNUIsK0NBQTZCO0FBRTdCLDBDQUF3QjtBQUN4Qix5REFBdUM7QUFDdkMsb0RBQWtDO0FBQ2xDLDJEQUF5QyJ9 | ||
__exportStar(require("./Cache"), exports); | ||
__exportStar(require("./Cache/UserRelayCache"), exports); | ||
__exportStar(require("./Cache/UserCache"), exports); | ||
__exportStar(require("./Cache/RelayMetricCache"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFNQSxnREFBOEI7QUFDOUIseUNBQW1EO0FBQTFDLHVIQUFBLE9BQU8sT0FBYTtBQUM3QiwwQ0FBd0I7QUFDeEIsMENBQXdCO0FBQ3hCLHlDQUF1QjtBQUN2Qiw4Q0FBNEI7QUFDNUIsNkNBQTJCO0FBQzNCLCtDQUE2QjtBQUM3QixtREFBaUM7QUFDakMsbURBQWlDO0FBQ2pDLG1EQUFpQztBQUNqQyxpREFBK0I7QUFDL0IsOENBQTRCO0FBQzVCLGlEQUErQjtBQUMvQix5Q0FBdUI7QUFFdkIsOENBQTRCO0FBQzVCLCtDQUE2QjtBQUU3QiwwQ0FBd0I7QUFDeEIseURBQXVDO0FBQ3ZDLG9EQUFrQztBQUNsQywyREFBeUMifQ== |
import { FeedCache } from "@snort/shared"; | ||
import { HexKey, SystemInterface, TaggedRawEvent } from "."; | ||
import { MetadataCache } from "./cache"; | ||
import { MetadataCache } from "./Cache"; | ||
export declare class ProfileLoaderService { | ||
@@ -5,0 +5,0 @@ #private; |
@@ -23,3 +23,3 @@ "use strict"; | ||
const Const_1 = require("./Const"); | ||
const cache_1 = require("./cache"); | ||
const Cache_1 = require("./Cache"); | ||
const MetadataRelays = [ | ||
@@ -73,3 +73,3 @@ "wss://purplepag.es" | ||
async onProfileEvent(e) { | ||
const profile = (0, cache_1.mapEventToProfile)(e); | ||
const profile = (0, Cache_1.mapEventToProfile)(e); | ||
if (profile) { | ||
@@ -76,0 +76,0 @@ await __classPrivateFieldGet(this, _ProfileLoaderService_cache, "f").update(profile); |
import { FeedCache } from "@snort/shared"; | ||
import { Connection } from "Connection"; | ||
import { RelayMetrics } from "cache"; | ||
import { RelayMetrics } from "Cache"; | ||
export declare class RelayMetricHandler { | ||
@@ -5,0 +5,0 @@ #private; |
{ | ||
"name": "@snort/system", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Snort nostr system package", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@snort/shared": "^1.0.1", | ||
"@snort/shared": "^1.0.2", | ||
"@noble/curves": "^1.0.0", | ||
@@ -31,0 +31,0 @@ "@scure/base": "^1.1.1", |
@@ -21,2 +21,3 @@ import { AuthHandler, RelaySettings, ConnectionStateSnapshot } from "./Connection"; | ||
export * from "./ProfileCache"; | ||
export * from "./Zaps"; | ||
@@ -26,6 +27,6 @@ export * from "./impl/nip4"; | ||
export * from "./cache"; | ||
export * from "./cache/UserRelayCache"; | ||
export * from "./cache/UserCache"; | ||
export * from "./cache/RelayMetricCache"; | ||
export * from "./Cache"; | ||
export * from "./Cache/UserRelayCache"; | ||
export * from "./Cache/UserCache"; | ||
export * from "./Cache/RelayMetricCache"; | ||
@@ -32,0 +33,0 @@ export interface SystemInterface { |
@@ -6,3 +6,3 @@ | ||
import { ProfileCacheExpire } from "./Const"; | ||
import { mapEventToProfile, MetadataCache } from "./cache"; | ||
import { mapEventToProfile, MetadataCache } from "./Cache"; | ||
@@ -9,0 +9,0 @@ const MetadataRelays = [ |
import { FeedCache } from "@snort/shared"; | ||
import { Connection } from "Connection"; | ||
import { RelayMetrics } from "cache"; | ||
import { RelayMetrics } from "Cache"; | ||
@@ -5,0 +5,0 @@ export class RelayMetricHandler { |
Sorry, the diff of this file is not supported yet
437590
138
7688
Updated@snort/shared@^1.0.2