@dev-pi2pie/word-counter 0.1.5-canary.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.
@@ -2425,7 +2425,7 @@ parentPort.on("message", async (message) => {
2425
2425
  parentPort?.postMessage(response);
2426
2426
  return;
2427
2427
  }
2428
- if (isProbablyBinary(buffer)) {
2428
+ if (config.detectBinary && isProbablyBinary(buffer)) {
2429
2429
  const response = {
2430
2430
  type: "result",
2431
2431
  taskId: message.taskId,