@kevisual/oss 0.0.9 → 0.0.10

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.
@@ -115,7 +115,7 @@ declare class OssBase implements OssBaseOperation {
115
115
  getObject(objectName: string): Promise<stream.Readable>;
116
116
  getJson(objectName: string): Promise<Record<string, any>>;
117
117
  /**
118
- * 上传文件,
118
+ * 上传文件, 当是流的时候,中断之后的etag会变,所以传递的时候不要嵌套async await,例如 busboy 监听文件流内部的时候,不要用check
119
119
  * @param objectName
120
120
  * @param data
121
121
  * @param metaData
@@ -140,7 +140,10 @@ declare class OssBase implements OssBaseOperation {
140
140
  * @param hash
141
141
  * @returns
142
142
  */
143
- checkObjectHash(objectName: string, hash: string): Promise<boolean>;
143
+ checkObjectHash(objectName: string, hash: string): Promise<{
144
+ success: boolean;
145
+ metaData: ItemBucketMetadata | null;
146
+ }>;
144
147
  copyObject(sourceObject: any, targetObject: any): Promise<minio_dist_esm_internal_type_mjs.CopyObjectResult>;
145
148
  replaceObject(objectName: string, meta: {
146
149
  [key: string]: string;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import 'minio';
2
2
  import 'minio/dist/esm/internal/type.mjs';
3
3
  import 'stream';
4
- export { O as OssBase, a as OssBaseOptions } from './index-BeN3AaPr.js';
4
+ export { O as OssBase, a as OssBaseOptions } from './index-By4Dj6k_.js';