Comparing version 0.1.5 to 0.1.6
/// <reference types="node" /> | ||
import { Readable } from 'stream'; | ||
import IStorageAdapter from './IStorageAdapter'; | ||
export default interface IStorageAdapterV2 extends IStorageAdapter { | ||
fileCreateByUrl(destPath: string, url: string, fileMeta?: FileMeta, fetchOptions?: any): Promise<any>; | ||
export default interface IStorageAdapterV2<FileCreateByUrlOptions extends { | ||
fetchOptions?: { | ||
buffer?: boolean; | ||
}; | ||
} = { | ||
fetchOptions?: { | ||
buffer?: boolean; | ||
}; | ||
}> extends IStorageAdapter { | ||
fileCreateByUrl(destPath: string, url: string, options?: FileCreateByUrlOptions): Promise<any>; | ||
fileCreateByStream(destPath: string, readStream: Readable): Promise<void>; | ||
@@ -10,7 +18,1 @@ fileReadByStream(key: string): Promise<Readable>; | ||
} | ||
interface FileMeta { | ||
fileName?: string; | ||
mimetype?: string; | ||
size?: number | string; | ||
} | ||
export {}; |
/// <reference types="node" /> | ||
import { Readable } from 'stream'; | ||
import IStorageAdapter from './IStorageAdapter'; | ||
export default interface IStorageAdapterV2 extends IStorageAdapter { | ||
fileCreateByUrl(destPath: string, url: string, fileMeta?: FileMeta, fetchOptions?: any): Promise<any>; | ||
export default interface IStorageAdapterV2<FileCreateByUrlOptions extends { | ||
fetchOptions?: { | ||
buffer?: boolean; | ||
}; | ||
} = { | ||
fetchOptions?: { | ||
buffer?: boolean; | ||
}; | ||
}> extends IStorageAdapter { | ||
fileCreateByUrl(destPath: string, url: string, options?: FileCreateByUrlOptions): Promise<any>; | ||
fileCreateByStream(destPath: string, readStream: Readable): Promise<void>; | ||
@@ -10,7 +18,1 @@ fileReadByStream(key: string): Promise<Readable>; | ||
} | ||
interface FileMeta { | ||
fileName?: string; | ||
mimetype?: string; | ||
size?: number | string; | ||
} | ||
export {}; |
{ | ||
"name": "nc-plugin", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "NocoDB Plugin Template", | ||
@@ -5,0 +5,0 @@ "author": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
59946
374
0