@@ -35,9 +35,9 @@ class GetMultipleOptions implements GetMultipleOptionsInterface {
35
35
abstract class BaseProvider implements ClassForBaseProvider {
36
36
public store : Map < string , ExpirableValue > = new Map ;
37
37
38
- abstract _get ( name : string , sdkOptions ?: unknown ) : Promise < string | undefined > ;
38
+ public abstract _get ( name : string , sdkOptions ?: unknown ) : Promise < string | undefined > ;
39
39
40
- abstract _getMultiple ( path : string , sdkOptions ?: unknown ) : Promise < Record < string , string | undefined > > ;
40
+ public abstract _getMultiple ( path : string , sdkOptions ?: unknown ) : Promise < Record < string , string | undefined > > ;
41
41
42
42
public async get ( name : string , options ?: GetOptionsInterface ) : Promise < void | string | Record < string , unknown > > {
43
43
const configs = new GetOptions ( options || { } ) ;
@@ -51,7 +51,7 @@ abstract class BaseProvider implements ClassForBaseProvider {
51
51
try {
52
52
value = await this . _get ( name , options ?. sdkOptions ) ;
53
53
} catch ( error ) {
54
- throw Error ( error ) ;
54
+ throw error ;
55
55
}
56
56
57
57
if ( value !== undefined && configs . transform !== undefined ) {
@@ -81,7 +81,7 @@ abstract class BaseProvider implements ClassForBaseProvider {
81
81
try {
82
82
values = await this . _getMultiple ( path , options ?. sdkOptions ) ;
83
83
} catch ( error ) {
84
- throw Error ( error ) ;
84
+ throw error ;
85
85
}
86
86
87
87
if ( configs . transform !== undefined ) {
@@ -152,7 +152,7 @@ const transformValue = (value: string, transform: string, throwOnTransformError:
152
152
}
153
153
} catch ( error ) {
154
154
if ( throwOnTransformError ) {
155
- throw Error ( error ) ;
155
+ throw error ;
156
156
}
157
157
158
158
return ;
0 commit comments