Skip to content

Commit

Permalink
convert worker script to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
mesarth committed Apr 4, 2024
1 parent 366d623 commit b0d9bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker.js → src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import { JSONPathEnvironment } from "json-p3";
const useExtendedSyntax = workerData?.useExtendedSyntax ?? false;
const env = new JSONPathEnvironment({ strict: !useExtendedSyntax });
const result = env.query(workerData.expression, workerData.input);
parentPort.postMessage(result.values());
parentPort?.postMessage(result.values());
process.exit();

0 comments on commit b0d9bcd

Please sign in to comment.