@leancodepl/hook-pipe-client 9.6.5 → 9.7.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/README.md CHANGED
@@ -31,8 +31,8 @@ import { mkPipeClient } from "@leancodepl/hook-pipe-client"
31
31
  import { createPipe } from "@leancodepl/pipe"
32
32
 
33
33
  const pipe = createPipe({
34
- url: "wss://api.example.com/pipe",
35
- getAccessToken: () => localStorage.getItem("token"),
34
+ url: "wss://api.example.com/pipe",
35
+ getAccessToken: () => localStorage.getItem("token"),
36
36
  })
37
37
 
38
38
  const pipeClient = mkPipeClient({ pipe })
package/index.cjs.js CHANGED
@@ -6,14 +6,14 @@ var rxjs = require('rxjs');
6
6
 
7
7
  /**
8
8
  * Creates React hooks for real-time data subscriptions using "@leancodepl/pipe".
9
- *
9
+ *
10
10
  * @param pipe - Pipe instance from "@leancodepl/pipe"
11
11
  * @returns Object containing `createTopic` method for creating typed hooks
12
12
  * @example
13
13
  * ```typescript
14
14
  * const pipe = createPipe({ url: 'wss://api.example.com/pipe' });
15
15
  * const pipeClient = mkPipeClient({ pipe });
16
- *
16
+ *
17
17
  * const useChatTopic = pipeClient.createTopic('chat');
18
18
  * ```
19
19
  */ function mkPipeClient({ pipe }) {
package/index.esm.js CHANGED
@@ -4,14 +4,14 @@ import { share } from 'rxjs';
4
4
 
5
5
  /**
6
6
  * Creates React hooks for real-time data subscriptions using "@leancodepl/pipe".
7
- *
7
+ *
8
8
  * @param pipe - Pipe instance from "@leancodepl/pipe"
9
9
  * @returns Object containing `createTopic` method for creating typed hooks
10
10
  * @example
11
11
  * ```typescript
12
12
  * const pipe = createPipe({ url: 'wss://api.example.com/pipe' });
13
13
  * const pipeClient = mkPipeClient({ pipe });
14
- *
14
+ *
15
15
  * const useChatTopic = pipeClient.createTopic('chat');
16
16
  * ```
17
17
  */ function mkPipeClient({ pipe }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/hook-pipe-client",
3
- "version": "9.6.5",
3
+ "version": "9.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "dependencies": {
6
6
  "@leancodepl/pipe": "^1.0.0",