@xuda.io/drive_module 1.1.777 → 1.1.778

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 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2599,8 +2599,8 @@ const get_drive_doc = async function (
2599
2599
  originalname: file_name,
2600
2600
  uid,
2601
2601
  date_created: Date.now(),
2602
- ip: headers["cf-connecting-ip"],
2603
- country: headers["cf-ipcountry"],
2602
+ ip: headers?.["cf-connecting-ip"],
2603
+ country: headers?.["cf-ipcountry"],
2604
2604
  file_ext: ext,
2605
2605
  is_archive: _conf.archive_drive_ext.includes(ext) ? true : false,
2606
2606
  drive_type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.777",
3
+ "version": "1.1.778",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {