@hasna/files 0.2.24 → 0.2.26
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/dist/cli/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -167918,7 +167918,7 @@ async function importGoogleDriveItem(client2, item, config9, destinationSource,
|
|
|
167918
167918
|
};
|
|
167919
167919
|
}
|
|
167920
167920
|
function shouldStreamGoogleDriveItem(client2, item, storageType) {
|
|
167921
|
-
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && item.size >= STREAM_TO_S3_THRESHOLD_BYTES;
|
|
167921
|
+
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && (!item.size || item.size >= STREAM_TO_S3_THRESHOLD_BYTES);
|
|
167922
167922
|
}
|
|
167923
167923
|
async function importGoogleDriveStream(source, storageType, item, config9, downloaded) {
|
|
167924
167924
|
const importedName = basename5(downloaded.filename);
|
package/dist/index.js
CHANGED
|
@@ -164511,7 +164511,7 @@ async function importGoogleDriveItem(client2, item, config9, destinationSource,
|
|
|
164511
164511
|
};
|
|
164512
164512
|
}
|
|
164513
164513
|
function shouldStreamGoogleDriveItem(client2, item, storageType) {
|
|
164514
|
-
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && item.size >= STREAM_TO_S3_THRESHOLD_BYTES;
|
|
164514
|
+
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && (!item.size || item.size >= STREAM_TO_S3_THRESHOLD_BYTES);
|
|
164515
164515
|
}
|
|
164516
164516
|
async function importGoogleDriveStream(source, storageType, item, config9, downloaded) {
|
|
164517
164517
|
const importedName = basename5(downloaded.filename);
|
package/dist/mcp/index.js
CHANGED
|
@@ -183442,7 +183442,7 @@ async function importGoogleDriveItem(client2, item, config9, destinationSource,
|
|
|
183442
183442
|
};
|
|
183443
183443
|
}
|
|
183444
183444
|
function shouldStreamGoogleDriveItem(client2, item, storageType) {
|
|
183445
|
-
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && item.size >= STREAM_TO_S3_THRESHOLD_BYTES;
|
|
183445
|
+
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && (!item.size || item.size >= STREAM_TO_S3_THRESHOLD_BYTES);
|
|
183446
183446
|
}
|
|
183447
183447
|
async function importGoogleDriveStream(source, storageType, item, config9, downloaded) {
|
|
183448
183448
|
const importedName = basename5(downloaded.filename);
|
package/dist/server/index.js
CHANGED
|
@@ -164181,7 +164181,7 @@ async function importGoogleDriveItem(client2, item, config9, destinationSource,
|
|
|
164181
164181
|
};
|
|
164182
164182
|
}
|
|
164183
164183
|
function shouldStreamGoogleDriveItem(client2, item, storageType) {
|
|
164184
|
-
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && item.size >= STREAM_TO_S3_THRESHOLD_BYTES;
|
|
164184
|
+
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && (!item.size || item.size >= STREAM_TO_S3_THRESHOLD_BYTES);
|
|
164185
164185
|
}
|
|
164186
164186
|
async function importGoogleDriveStream(source, storageType, item, config9, downloaded) {
|
|
164187
164187
|
const importedName = basename5(downloaded.filename);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/files",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"description": "Agent-first file management — index local folders and S3 buckets, sync Google Drive, tag, search, and retrieve files via CLI + MCP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|