parse-dashboard 4.0.0-beta.1 → 4.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Parse-Dashboard/app.js
CHANGED
|
@@ -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 })
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 || '';
|