@gmod/tabix 1.5.1 → 1.5.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="1.5.2"></a>
2
+ ## [1.5.2](https://github.com/GMOD/tabix-js/compare/v1.5.1...v1.5.2) (2021-12-15)
3
+
4
+
5
+
6
+ - Change typescript signature of lineCallback from Promise<void> to void
7
+
1
8
  <a name="1.5.1"></a>
2
9
  ## [1.5.1](https://github.com/GMOD/tabix-js/compare/v1.5.0...v1.5.1) (2021-12-15)
3
10
 
@@ -2,7 +2,7 @@
2
2
  import { GenericFilehandle } from 'generic-filehandle';
3
3
  import { Options } from './indexFile';
4
4
  import Chunk from './chunk';
5
- declare type GetLinesCallback = (line: string, fileOffset: number) => Promise<void>;
5
+ declare type GetLinesCallback = (line: string, fileOffset: number) => void;
6
6
  interface GetLinesOpts {
7
7
  [key: string]: unknown;
8
8
  signal?: AbortSignal;
@@ -2,7 +2,7 @@
2
2
  import { GenericFilehandle } from 'generic-filehandle';
3
3
  import { Options } from './indexFile';
4
4
  import Chunk from './chunk';
5
- declare type GetLinesCallback = (line: string, fileOffset: number) => Promise<void>;
5
+ declare type GetLinesCallback = (line: string, fileOffset: number) => void;
6
6
  interface GetLinesOpts {
7
7
  [key: string]: unknown;
8
8
  signal?: AbortSignal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmod/tabix",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Read Tabix-indexed files, supports both .tbi and .csi indexes",
5
5
  "license": "MIT",
6
6
  "repository": "GMOD/tabix-js",