@nosferatu500/textract-lite
Advanced tools
Comparing version 7.0.10 to 7.0.11
import fs from "fs"; | ||
import path from "path"; | ||
import { fileURLToPath } from "node:url"; | ||
import { fileURLToPath, pathToFileURL } from "node:url"; | ||
const __filename = fileURLToPath(import.meta.url); | ||
@@ -26,3 +26,3 @@ const __dirname = path.dirname(__filename); | ||
// discover available extractors | ||
const extractors = await Promise.all(fs.readdirSync(extractorPath).map(async (item) => { | ||
const extractors = await Promise.all(fs.readdirSync(pathToFileURL(extractorPath)).map(async (item) => { | ||
const fullExtractorPath = path.join(extractorPath, item); | ||
@@ -29,0 +29,0 @@ // get the extractor |
@@ -6,3 +6,3 @@ import fs from "fs"; | ||
import { cleanseText } from "../utils.js"; | ||
import { pathToFileURL } from "url"; | ||
import { pathToFileURL } from "node:url"; | ||
function extractText(filePath, options) { | ||
@@ -9,0 +9,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "@nosferatu500/textract-lite", | ||
"version": "7.0.10", | ||
"version": "7.0.11", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/nosferatu500/textract-lite", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21620