pdf-oxide 0.3.43 → 0.3.45

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.
@@ -95,7 +95,7 @@ export declare class SearchStream extends Readable {
95
95
  * Implement async iteration protocol for `for await...of` support
96
96
  * @returns AsyncIterator for iterating over search results
97
97
  */
98
- [Symbol.asyncIterator](): AsyncGenerator<SearchResultData, void, unknown>;
98
+ [Symbol.asyncIterator](): AsyncGenerator<SearchResultData, undefined, unknown>;
99
99
  }
100
100
  /**
101
101
  * Readable stream for text extraction with progress tracking
@@ -148,7 +148,7 @@ export declare class ExtractionStream extends Readable {
148
148
  * Implement async iteration protocol for `for await...of` support
149
149
  * @returns AsyncGenerator for iterating over extraction progress
150
150
  */
151
- [Symbol.asyncIterator](): AsyncGenerator<ExtractionProgressData, void, unknown>;
151
+ [Symbol.asyncIterator](): AsyncGenerator<ExtractionProgressData, undefined, unknown>;
152
152
  }
153
153
  /**
154
154
  * Readable stream for page metadata retrieval
@@ -196,7 +196,7 @@ export declare class MetadataStream extends Readable {
196
196
  * Implement async iteration protocol for `for await...of` support
197
197
  * @returns AsyncGenerator for iterating over page metadata
198
198
  */
199
- [Symbol.asyncIterator](): AsyncGenerator<PageMetadataData, void, unknown>;
199
+ [Symbol.asyncIterator](): AsyncGenerator<PageMetadataData, undefined, unknown>;
200
200
  }
201
201
  /**
202
202
  * Creates a readable stream for search results
@@ -36,7 +36,7 @@ export class WorkerPool {
36
36
  const worker = new Worker(path.join(__dirname, 'worker.js'));
37
37
  worker.on('error', (error) => {
38
38
  console.error(`Worker ${i} error:`, error);
39
- this.handleWorkerError(error);
39
+ this.handleWorkerError(error instanceof Error ? error : new Error(String(error)));
40
40
  });
41
41
  worker.on('exit', (code) => {
42
42
  if (code !== 0 && !this.terminated) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdf-oxide",
3
- "version": "0.3.43",
3
+ "version": "0.3.45",
4
4
  "type": "module",
5
5
  "description": "High-performance PDF parsing and text extraction library — prebuilt native bindings, no build toolchain required",
6
6
  "main": "lib/index.js",
@@ -67,10 +67,10 @@
67
67
  }
68
68
  },
69
69
  "devDependencies": {
70
- "@types/node": "^18.0.0",
70
+ "@types/node": "^25.6.0",
71
71
  "node-addon-api": "^8.7.0",
72
72
  "rimraf": "^6.1.3",
73
- "typescript": "^5.3.0"
73
+ "typescript": "^6.0.3"
74
74
  },
75
75
  "gypfile": false
76
76
  }
Binary file
Binary file
Binary file