@xuda.io/drive_module 1.1.961 → 1.1.963

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.
Files changed (2) hide show
  1. package/index.js +1 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -27,9 +27,6 @@ const unzipper = require("unzipper");
27
27
  const fs = require("fs");
28
28
  const tesseract = require("node-tesseract-ocr");
29
29
 
30
- import { createRequire } from "module";
31
- const require = createRequire(import.meta.url);
32
- const franc = require("franc");
33
30
  ////////////////////////////////////////////
34
31
 
35
32
  [
@@ -1727,6 +1724,7 @@ const ocr_drive_file = async function (app_id, doc) {
1727
1724
 
1728
1725
  var ocr = "";
1729
1726
  const generalConfig = { lang: "eng", oem: 1, psm: 3 };
1727
+ const franc = await import("franc");
1730
1728
 
1731
1729
  switch (doc.mime.split("/")[0]) {
1732
1730
  case "image": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.961",
3
+ "version": "1.1.963",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {