@kevisual/oss 0.0.13 → 0.0.15
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.d.ts +1 -1
- package/dist/index.js +11 -2049
- package/dist/services/config.d.ts +1 -1
- package/dist/services/config.js +36 -2049
- package/dist/services/index.d.ts +20 -2
- package/dist/services/index.js +38 -2049
- package/package.json +12 -12
- package/src/core/copy-object.ts +26 -0
- package/src/core/type.ts +87 -0
- package/src/index.ts +244 -0
- package/src/s3/copy-object.ts +46 -0
- package/src/s3/core.ts +425 -0
- package/src/s3/type.ts +157 -0
- package/src/services/config.ts +67 -0
- package/src/services/index.ts +9 -0
- package/src/test/common.ts +103 -0
- package/src/test/config-admin.ts +84 -0
- package/src/test/test-s3.ts +23 -0
- package/src/util/download.ts +73 -0
- package/src/util/extract-standard-headers.ts +44 -0
- package/src/util/get-content-type.ts +49 -0
- package/src/util/hash.ts +26 -0
- package/src/util/index.ts +5 -0
package/dist/index.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export declare class OssBase implements OssBaseOperation {
|
|
|
107
107
|
hash: (str: string | Buffer | Object) => string;
|
|
108
108
|
constructor(opts: OssBaseOptions);
|
|
109
109
|
setPrefix(prefix: string): void;
|
|
110
|
-
getObject(objectName: string): Promise<import("stream").Readable>;
|
|
110
|
+
getObject(objectName: string): Promise<import("node:stream").Readable>;
|
|
111
111
|
getJson(objectName: string): Promise<Record<string, any>>;
|
|
112
112
|
/**
|
|
113
113
|
* 上传文件, 当是流的时候,中断之后的etag会变,所以传递的时候不要嵌套async await,例如 busboy 监听文件流内部的时候,不要用check
|