@xuda.io/drive_module 1.1.943 → 1.1.945

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 +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1797,7 +1797,8 @@ const ocr_drive_file = async function (app_id, doc) {
1797
1797
  doc.ocr = ocr.replace(/<\/?[^>]+(>|$)/g, "").replace(/[\n\t]/g, " ");
1798
1798
  doc.ocr_stat = 3;
1799
1799
  } catch (err) {
1800
- // doc.ocr_stat = 4;
1800
+ doc.ocr_stat = 4;
1801
+ doc.ocr_error = err.message;
1801
1802
  } finally {
1802
1803
  doc.ocr_stat_ts = Date.now();
1803
1804
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.943",
3
+ "version": "1.1.945",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {