applesauce-relay 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/relay.js +1 -0
- package/dist/types.d.ts +2 -0
- package/package.json +3 -3
package/dist/relay.js
CHANGED
|
@@ -265,6 +265,7 @@ export class Relay {
|
|
|
265
265
|
ready: this._ready$,
|
|
266
266
|
authRequiredForRead: this.authRequiredForRead$,
|
|
267
267
|
authRequiredForPublish: this.authRequiredForPublish$,
|
|
268
|
+
challenge: this.challenge$.asObservable(),
|
|
268
269
|
}).pipe(shareReplay(1));
|
|
269
270
|
// Update the notices state
|
|
270
271
|
const listenForNotice = this.socket.pipe(
|
package/dist/types.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export interface RelayStatus {
|
|
|
32
32
|
authRequiredForRead: boolean;
|
|
33
33
|
/** Whether authentication is required for publish operations (EVENT) */
|
|
34
34
|
authRequiredForPublish: boolean;
|
|
35
|
+
/** The authentication challenge string from the relay, or null if not yet received */
|
|
36
|
+
challenge: string | null;
|
|
35
37
|
}
|
|
36
38
|
export type MultiplexWebSocket<T = any> = Pick<WebSocketSubject<T>, "multiplex">;
|
|
37
39
|
/** Options for the publish method on the pool and relay */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applesauce-relay",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "nostr relay communication framework built on rxjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@noble/hashes": "^1.7.1",
|
|
60
|
-
"applesauce-core": "^5.
|
|
60
|
+
"applesauce-core": "^5.2.0",
|
|
61
61
|
"nanoid": "^5.0.9",
|
|
62
62
|
"nostr-tools": "~2.19",
|
|
63
63
|
"rxjs": "^7.8.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@hirez_io/observer-spy": "^2.2.0",
|
|
67
|
-
"applesauce-signers": "^5.
|
|
67
|
+
"applesauce-signers": "^5.2.0",
|
|
68
68
|
"rimraf": "^6.0.1",
|
|
69
69
|
"typescript": "^5.7.3",
|
|
70
70
|
"vitest": "^4.0.15",
|