Browse Source

fixed npm list

master
Daniel Hübleitner 2 years ago
parent
commit
2583d5940a
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/backend/Extension.ts

+ 5
- 1
src/backend/Extension.ts View File

@@ -272,7 +272,11 @@ export class NPMExtension extends FSExtension<NPMStatus>{
272 272
                 return 
273 273
             } else {
274 274
                 logger.info(stdout)
275
-                return JSON.parse(stdout)['dependencies'][this.name]['version']
275
+                return JSON.parse(stdout)
276
+                    ['dependencies']
277
+                        ['dependencies']
278
+                            [this.name]
279
+                                ['version']
276 280
             }
277 281
         }catch(error){
278 282
             logger.error(error)

Loading…
Cancel
Save