ai-yuca 1.0.2 → 1.0.3
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/package.json +1 -1
- package/dist/src/upload.js +1 -0
- package/package.json +1 -1
- package/src/upload.ts +3 -0
package/dist/package.json
CHANGED
package/dist/src/upload.js
CHANGED
|
@@ -160,6 +160,7 @@ async function uploadFile(options) {
|
|
|
160
160
|
* @returns 上传结果
|
|
161
161
|
*/
|
|
162
162
|
async function uploadFiles(options) {
|
|
163
|
+
console.log(options);
|
|
163
164
|
const { bucketName, sourcePath, destination, storageClient, recursive = false, enableCompression = true } = options;
|
|
164
165
|
if (!bucketName || !sourcePath || !storageClient) {
|
|
165
166
|
throw new Error('缺少必要的上传参数');
|
package/package.json
CHANGED
package/src/upload.ts
CHANGED
|
@@ -148,6 +148,9 @@ async function uploadFile(options: UploadFileOptions): Promise<UploadResult> {
|
|
|
148
148
|
* @returns 上传结果
|
|
149
149
|
*/
|
|
150
150
|
async function uploadFiles(options: UploadFilesOptions): Promise<UploadFilesResult> {
|
|
151
|
+
|
|
152
|
+
console.log(options);
|
|
153
|
+
|
|
151
154
|
const { bucketName, sourcePath, destination, storageClient, recursive = false, enableCompression = true } = options;
|
|
152
155
|
|
|
153
156
|
if (!bucketName || !sourcePath || !storageClient) {
|