File tree 1 file changed +12
-7
lines changed
1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,18 @@ var fs = require('fs');
9
9
const currentVersionFeatures = require ( '../package.json' ) . parseDashboardFeatures ;
10
10
11
11
var newFeaturesInLatestVersion = [ ] ;
12
- packageJson ( 'parse-dashboard' , { version : 'latest' , fullMetadata : true } ) . then ( latestPackage => {
13
- if ( latestPackage . parseDashboardFeatures instanceof Array ) {
14
- newFeaturesInLatestVersion = latestPackage . parseDashboardFeatures . filter ( feature => {
15
- return currentVersionFeatures . indexOf ( feature ) === - 1 ;
16
- } ) ;
17
- }
18
- } ) ;
12
+ packageJson ( 'parse-dashboard' , { version : 'latest' , fullMetadata : true } )
13
+ . then ( latestPackage => {
14
+ if ( latestPackage . parseDashboardFeatures instanceof Array ) {
15
+ newFeaturesInLatestVersion = latestPackage . parseDashboardFeatures . filter ( feature => {
16
+ return currentVersionFeatures . indexOf ( feature ) === - 1 ;
17
+ } ) ;
18
+ }
19
+ } )
20
+ . catch ( ( ) => {
21
+ // In case of a failure make sure the final value is an empty array
22
+ newFeaturesInLatestVersion = [ ] ;
23
+ } ) ;
19
24
20
25
function getMount ( mountPath ) {
21
26
mountPath = mountPath || '' ;
You can’t perform that action at this time.
0 commit comments