diff --git a/package-lock.json b/package-lock.json index 9d387a8d4..084ee4cea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gdlauncher", - "version": "1.1.13", + "version": "1.1.14", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -16332,6 +16332,13 @@ "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", "dev": true }, + "nan": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", + "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", + "dev": true, + "optional": true + }, "nanoid": { "version": "3.1.25", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.25.tgz", @@ -23825,7 +23832,8 @@ "dev": true, "optional": true, "requires": { - "bindings": "^1.5.0" + "bindings": "^1.5.0", + "nan": "^2.12.1" } }, "glob-parent": { @@ -24475,7 +24483,8 @@ "dev": true, "optional": true, "requires": { - "bindings": "^1.5.0" + "bindings": "^1.5.0", + "nan": "^2.12.1" } }, "glob-parent": { diff --git a/src/app/desktop/utils/getInstances.js b/src/app/desktop/utils/getInstances.js index 830c6d663..63c573c8f 100644 --- a/src/app/desktop/utils/getInstances.js +++ b/src/app/desktop/utils/getInstances.js @@ -103,9 +103,13 @@ const getInstances = async instancesPath => { return null; }; const folders = await getDirectories(instancesPath); - const instances = await pMap(folders, mapFolderToInstance, { - concurrency: 5 - }); + const instances = await pMap( + folders.filter(folder => folder !== '.DS_Store'), + mapFolderToInstance, + { + concurrency: 5 + } + ); const hashMap = {}; // eslint-disable-next-line for (const instance of instances) { diff --git a/src/app/desktop/utils/modsFingerprintsScan.js b/src/app/desktop/utils/modsFingerprintsScan.js index 598db0cbb..d2a05066f 100644 --- a/src/app/desktop/utils/modsFingerprintsScan.js +++ b/src/app/desktop/utils/modsFingerprintsScan.js @@ -149,9 +149,13 @@ const modsFingerprintsScan = async instancesPath => { }; const folders = await getDirectories(instancesPath); - const instances = await pMap(folders, mapFolderToInstance, { - concurrency: 5 - }); + const instances = await pMap( + folders.filter(folder => folder !== '.DS_Store'), + mapFolderToInstance, + { + concurrency: 5 + } + ); const hashMap = {}; // eslint-disable-next-line for (const instance of instances) { diff --git a/src/common/modals/InstanceManager/Mods.js b/src/common/modals/InstanceManager/Mods.js index fd3b0c19f..21e589226 100644 --- a/src/common/modals/InstanceManager/Mods.js +++ b/src/common/modals/InstanceManager/Mods.js @@ -145,7 +145,7 @@ const NotItemsAvailable = styled.div` const DragEnterEffect = styled.div` position: absolute; display: flex; - flex-direction; column; + flex-direction: column; justify-content: center; align-items: center; border: solid 5px ${props => props.theme.palette.primary.main}; @@ -161,8 +161,8 @@ const DragEnterEffect = styled.div` backdrop-filter: blur(4px); background: linear-gradient( 0deg, - rgba(0, 0, 0, .3) 40%, - rgba(0, 0, 0, .3) 40% + rgba(0, 0, 0, 0.3) 40%, + rgba(0, 0, 0, 0.3) 40% ); opacity: ${({ transitionState }) => transitionState === 'entering' || transitionState === 'entered' ? 1 : 0}; diff --git a/src/common/modals/ModOverview.js b/src/common/modals/ModOverview.js index ca040bb8a..3b08226c8 100644 --- a/src/common/modals/ModOverview.js +++ b/src/common/modals/ModOverview.js @@ -373,7 +373,7 @@ const Container = styled.div` perspective: 1px; transform-style: preserve-3d; height: calc(100% - 70px); - width; 100%; + width: 100%; overflow-x: hidden; overflow-y: scroll; `; diff --git a/src/common/modals/ModsBrowser.js b/src/common/modals/ModsBrowser.js index 2ca8dce9f..2bd2ae227 100644 --- a/src/common/modals/ModsBrowser.js +++ b/src/common/modals/ModsBrowser.js @@ -175,7 +175,7 @@ const ModsListWrapper = ({
{ if (!isAppUpdated(latestStablerelease)) { return latestStablerelease; } - if (!isAppUpdated(latestPrerelease) && releaseChannel !== 0) { + if ( + latestPrerelease && + !isAppUpdated(latestPrerelease) && + releaseChannel !== 0 + ) { return latestPrerelease; }