cynx-lib 1.3.46 → 1.3.47
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.
package/package.json
CHANGED
|
@@ -256,7 +256,7 @@ class StorageManager {
|
|
|
256
256
|
fileType,
|
|
257
257
|
mimeType,
|
|
258
258
|
fileSize: Number(f.file_size || 0),
|
|
259
|
-
cloudUrl: f.cloud_url,
|
|
259
|
+
// cloudUrl: f.cloud_url,
|
|
260
260
|
viewUrl: `${base}/cdn/${fileId}/view`,
|
|
261
261
|
downloadUrl: `${base}/cdn/${fileId}/download`,
|
|
262
262
|
url: `${base}/cdn/${fileId}`,
|
|
@@ -1016,7 +1016,7 @@ class StorageManager {
|
|
|
1016
1016
|
const fileType = rf.fileType || rf.file_type || (0, import_storage.getFileTypeCategory)(mimeType, rf.originalName || rf.original_name);
|
|
1017
1017
|
const originalName = rf.originalName || rf.original_name || "file";
|
|
1018
1018
|
const fileSize = Number(rf.fileSize || rf.file_size || 0);
|
|
1019
|
-
const cloudUrl = rf.cloudUrl || rf.cloud_url;
|
|
1019
|
+
const cloudUrl = rf.cloudUrl || rf.cloud_url || rf.url || (this.storageServerUrl ? `${this.storageServerUrl}/cdn/${fileId}` : "");
|
|
1020
1020
|
const cloudPublicId = rf.cloudPublicId || rf.cloud_public_id || fileId;
|
|
1021
1021
|
const storageId = rf.storageId || rf.storage_id || null;
|
|
1022
1022
|
if (this.query) {
|
|
@@ -265,7 +265,7 @@ export class StorageManager {
|
|
|
265
265
|
fileType,
|
|
266
266
|
mimeType,
|
|
267
267
|
fileSize: Number(f.file_size || 0),
|
|
268
|
-
cloudUrl: f.cloud_url,
|
|
268
|
+
// cloudUrl: f.cloud_url,
|
|
269
269
|
viewUrl: `${base}/cdn/${fileId}/view`,
|
|
270
270
|
downloadUrl: `${base}/cdn/${fileId}/download`,
|
|
271
271
|
url: `${base}/cdn/${fileId}`,
|
|
@@ -1135,7 +1135,7 @@ export class StorageManager {
|
|
|
1135
1135
|
const fileType = rf.fileType || rf.file_type || getFileTypeCategory(mimeType, rf.originalName || rf.original_name);
|
|
1136
1136
|
const originalName = rf.originalName || rf.original_name || 'file';
|
|
1137
1137
|
const fileSize = Number(rf.fileSize || rf.file_size || 0);
|
|
1138
|
-
const cloudUrl = rf.cloudUrl || rf.cloud_url;
|
|
1138
|
+
const cloudUrl = rf.cloudUrl || rf.cloud_url || rf.url || (this.storageServerUrl ? `${this.storageServerUrl}/cdn/${fileId}` : '');
|
|
1139
1139
|
const cloudPublicId = rf.cloudPublicId || rf.cloud_public_id || fileId;
|
|
1140
1140
|
const storageId = rf.storageId || rf.storage_id || null;
|
|
1141
1141
|
|