@maestro-js/file-storage 1.0.0-alpha.17 → 1.0.0-alpha.19
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 +2 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare function createS3Driver({ client, bucket, prefix, url: baseUrl }: {
|
|
|
43
43
|
url?: string;
|
|
44
44
|
}): Driver<void>;
|
|
45
45
|
|
|
46
|
+
type FileStorageDriver<T = any> = Driver<T>;
|
|
46
47
|
interface FileInput {
|
|
47
48
|
name: string;
|
|
48
49
|
type: string;
|
|
@@ -127,7 +128,7 @@ declare const FileStorage: {
|
|
|
127
128
|
};
|
|
128
129
|
};
|
|
129
130
|
declare namespace FileStorage {
|
|
130
|
-
type Driver<T = any> =
|
|
131
|
+
type Driver<T = any> = FileStorageDriver<T>;
|
|
131
132
|
interface FileStorageService {
|
|
132
133
|
get(path: string): Promise<Buffer>;
|
|
133
134
|
text(path: string, encoding?: BufferEncoding): Promise<string>;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"default": "./dist/index.js"
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
"version": "1.0.0-alpha.
|
|
10
|
+
"version": "1.0.0-alpha.19",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "restricted"
|
|
13
13
|
},
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"iso-fns2": "npm:iso-fns@2.0.0-alpha.26",
|
|
19
19
|
"mime-types": "^2.1.35",
|
|
20
|
-
"@maestro-js/service-registry": "1.0.0-alpha.
|
|
20
|
+
"@maestro-js/service-registry": "1.0.0-alpha.19"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@aws-sdk/client-s3": "^3.750.0",
|