@xuda.io/drive_module 1.1.1102 → 1.1.1104

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 +17 -15
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2374,25 +2374,27 @@ exports.update_drive_addons = async function (req, job_id) {
2374
2374
  const app_obj = app_obj_ret.data;
2375
2375
  }
2376
2376
 
2377
- if (typeof ocr !== "undefined") {
2378
- drive_addons.ocr = ocr;
2379
- }
2377
+ const set_drive_addons = function (drive_addons) {
2378
+ if (typeof ocr !== "undefined") {
2379
+ drive_addons.ocr = ocr;
2380
+ }
2380
2381
 
2381
- if (typeof image_convertor !== "undefined") {
2382
- drive_addons.image_convertor = image_convertor;
2383
- }
2382
+ if (typeof image_convertor !== "undefined") {
2383
+ drive_addons.image_convertor = image_convertor;
2384
+ }
2384
2385
 
2385
- if (typeof video_ai !== "undefined") {
2386
- drive_addons.video_ai = video_ai;
2387
- }
2386
+ if (typeof video_ai !== "undefined") {
2387
+ drive_addons.video_ai = video_ai;
2388
+ }
2388
2389
 
2389
- if (typeof ai_component_generator !== "undefined") {
2390
- drive_addons.ai_component_generator = ocr;
2391
- }
2390
+ if (typeof ai_component_generator !== "undefined") {
2391
+ drive_addons.ai_component_generator = ocr;
2392
+ }
2392
2393
 
2393
- if (typeof edit_image !== "undefined") {
2394
- drive_addons.edit_image = edit_image;
2395
- }
2394
+ if (typeof edit_image !== "undefined") {
2395
+ drive_addons.edit_image = edit_image;
2396
+ }
2397
+ };
2396
2398
  };
2397
2399
 
2398
2400
  setTimeout(async function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1102",
3
+ "version": "1.1.1104",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {