@kevisual/oss 0.0.8 → 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.
- package/dist/{index-BeN3AaPr.d.ts → index-By4Dj6k_.d.ts} +5 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2351 -4
- package/dist/services/config.d.ts +1 -1
- package/dist/services/config.js +2351 -4
- package/dist/services/index.d.ts +2 -2
- package/dist/services/index.js +2351 -4
- package/package.json +1 -1
|
@@ -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<
|
|
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