File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,22 @@ let newFeaturesInLatestVersion = [];
1414 * Gets the new features in the latest version of Parse Dashboard.
1515 */
1616async function getNewFeaturesInLatestVersion ( ) {
17- // Get latest version
18- const packageJson = ( await import ( 'package-json' ) ) . default ;
19- const latestPackage = await packageJson ( 'parse-dashboard' , { version : 'latest' , fullMetadata : true } ) ;
20-
2117 try {
18+ // Get latest version
19+ const packageJson = ( await import ( 'package-json' ) ) . default ;
20+ const latestPackage = await packageJson ( 'parse-dashboard' , { version : 'latest' , fullMetadata : true } ) ;
21+
2222 if ( latestPackage . parseDashboardFeatures instanceof Array ) {
2323 newFeaturesInLatestVersion = latestPackage . parseDashboardFeatures . filter ( feature => {
2424 return currentVersionFeatures . indexOf ( feature ) === - 1 ;
2525 } ) ;
2626 }
2727 } catch {
28+ // Fail silently if fetching the latest package information fails
2829 newFeaturesInLatestVersion = [ ] ;
2930 }
3031}
31- getNewFeaturesInLatestVersion ( )
32+ getNewFeaturesInLatestVersion ( ) . catch ( ( ) => { } )
3233
3334function getMount ( mountPath ) {
3435 mountPath = mountPath || '' ;
You can’t perform that action at this time.
0 commit comments