@@ -56,7 +56,7 @@ export class CommonVersionsConfiguration {
5656 private static _jsonSchema : JsonSchema = JsonSchema . fromFile (
5757 path . join ( __dirname , '../schemas/common-versions.schema.json' ) ) ;
5858
59- private _filename : string ;
59+ private _filePath : string ;
6060 private _preferredVersions : ProtectableMap < string , string > ;
6161 private _xstitchPreferredVersions : ProtectableMap < string , string > ;
6262 private _allowedAlternativeVersions : ProtectableMap < string , string [ ] > ;
@@ -99,15 +99,15 @@ export class CommonVersionsConfiguration {
9999 /**
100100 * Get the absolute file path of the common-versions.json file.
101101 */
102- public get filepath ( ) : string {
103- return this . _filename ;
102+ public get filePath ( ) : string {
103+ return this . _filePath ;
104104 }
105105
106106 /**
107107 * Writes the "common-versions.json" file to disk, using the filename that was passed to loadFromFile().
108108 */
109109 public save ( ) : void {
110- JsonFile . save ( this . _serialize ( ) , this . _filename , { updateExistingFile : true } ) ;
110+ JsonFile . save ( this . _serialize ( ) , this . _filePath , { updateExistingFile : true } ) ;
111111 }
112112
113113 /**
@@ -173,7 +173,7 @@ export class CommonVersionsConfiguration {
173173 return allPreferredVersions ;
174174 }
175175
176- private constructor ( commonVersionsJson : ICommonVersionsJson | undefined , filename : string ) {
176+ private constructor ( commonVersionsJson : ICommonVersionsJson | undefined , filePath : string ) {
177177 this . _preferredVersions = new ProtectableMap < string , string > (
178178 { onSet : this . _onSetPreferredVersions . bind ( this ) } ) ;
179179
@@ -192,10 +192,10 @@ export class CommonVersionsConfiguration {
192192 CommonVersionsConfiguration . _deserializeTable ( this . allowedAlternativeVersions ,
193193 commonVersionsJson . allowedAlternativeVersions ) ;
194194 } catch ( e ) {
195- throw new Error ( `Error loading "${ path . basename ( filename ) } ": ${ e . message } ` ) ;
195+ throw new Error ( `Error loading "${ path . basename ( filePath ) } ": ${ e . message } ` ) ;
196196 }
197197 }
198- this . _filename = filename ;
198+ this . _filePath = filePath ;
199199 }
200200
201201 private _onSetPreferredVersions ( source : ProtectableMap < string , string > , key : string , value : string ) : string {
0 commit comments