@hyperix/hooks 0.1.4 → 0.1.5

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as _outofgas_react_stream from '@outofgas/react-stream';
1
+ import { UseSubscribeState } from '@outofgas/react-stream';
2
2
 
3
3
  declare function useDebouncedValue<T>(value: T, delayMs?: number): T;
4
4
 
@@ -18,10 +18,11 @@ type UseL2BookOptions = {
18
18
  depth?: number;
19
19
  nSigFigs?: number;
20
20
  };
21
+ declare const EMPTY_L2_BOOK: L2Book;
21
22
  declare function calcOrderbookLevels(price: number): {
22
23
  nSigFigs: number;
23
24
  tick: string;
24
25
  }[];
25
- declare const useL2Book: (coin: string, options?: UseL2BookOptions) => _outofgas_react_stream.UseSubscribeState<L2Book>;
26
+ declare const useL2Book: (coin: string, options?: UseL2BookOptions) => UseSubscribeState<L2Book>;
26
27
 
27
- export { type L2Book, type L2BookLevel, type UseL2BookOptions, calcOrderbookLevels, useDebouncedValue, useL2Book };
28
+ export { EMPTY_L2_BOOK, type L2Book, type L2BookLevel, type UseL2BookOptions, calcOrderbookLevels, useDebouncedValue, useL2Book };
package/dist/index.js CHANGED
@@ -2267,6 +2267,7 @@ var useL2Book = (coin, options = {}) => {
2267
2267
  });
2268
2268
  };
2269
2269
  export {
2270
+ EMPTY_L2_BOOK,
2270
2271
  calcOrderbookLevels,
2271
2272
  useDebouncedValue,
2272
2273
  useL2Book
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperix/hooks",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",