File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
plugins/local-storage/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,15 +141,15 @@ class LocalFS implements ILocalPackageManager {
141141 }
142142
143143 createPackage ( name : string , value : any , cb : Function ) {
144- this . _createFile ( this . _getStorage ( name ) , this . _convertToString ( value ) , cb ) ;
144+ this . _createFile ( this . _getStorage ( pkgFileName ) , this . _convertToString ( value ) , cb ) ;
145145 }
146146
147147 savePackage ( name : string , value : any , cb : Function ) {
148- this . _writeFile ( this . _getStorage ( name ) , this . _convertToString ( value ) , cb ) ;
148+ this . _writeFile ( this . _getStorage ( pkgFileName ) , this . _convertToString ( value ) , cb ) ;
149149 }
150150
151151 readPackage ( name : string , cb : Function ) {
152- this . _readStorageFile ( this . _getStorage ( name ) ) . then ( function ( res ) {
152+ this . _readStorageFile ( this . _getStorage ( pkgFileName ) ) . then ( function ( res ) {
153153 try {
154154 const data : any = JSON . parse ( res . toString ( 'utf8' ) ) ;
155155
You can’t perform that action at this time.
0 commit comments