File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,12 @@ type LegacyStorageAdapter = {
13
13
} ;
14
14
15
15
const officialAdapters = {
16
- s3 : { name : 'oc-s3-storage-adapter' , version : '1.2.0' } ,
17
- gs : { name : 'oc-gs-storage-adapter' , version : '1.1.0' } ,
18
- 'azure-blob-storage' : { name : 'oc-azure-storage-adapter' , version : '0.1.0' }
16
+ s3 : { name : 'oc-s3-storage-adapter' , firstPromiseBasedVersion : '1.2.0' } ,
17
+ gs : { name : 'oc-gs-storage-adapter' , firstPromiseBasedVersion : '1.1.0' } ,
18
+ 'azure-blob-storage' : {
19
+ name : 'oc-azure-storage-adapter' ,
20
+ firstPromiseBasedVersion : '0.1.0'
21
+ }
19
22
} ;
20
23
type OfficialAdapter = keyof typeof officialAdapters ;
21
24
@@ -65,7 +68,7 @@ export default function getPromiseBasedAdapter(
65
68
if ( isOfficialAdapter ( adapter ) ) {
66
69
const pkg = officialAdapters [ adapter . adapterType ] ;
67
70
process . emitWarning (
68
- `Adapters now should work with promises. Consider upgrading your package ${ pkg . name } to at least version ${ pkg . version } ` ,
71
+ `Adapters now should work with promises. Consider upgrading your package ${ pkg . name } to at least version ${ pkg . firstPromiseBasedVersion } ` ,
69
72
'DeprecationWarning'
70
73
) ;
71
74
} else {
You can’t perform that action at this time.
0 commit comments