diff --git a/package-lock.json b/package-lock.json index 2e625cb..b95e4fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "postscript-preview", - "version": "0.4.1", + "version": "0.4.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "postscript-preview", - "version": "0.4.1", + "version": "0.4.2", "dependencies": { "@types/temp": "^0.8.34", "temp": "^0.9.1" diff --git a/package.json b/package.json index b637c03..d3bbd17 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "postscript-preview", "displayName": "PostScript Preview", "description": "PostScript Preview is an extension that helps to preview EPS and PS files in Visual Studio Code.", - "version": "0.4.1", + "version": "0.4.2", "icon": "images/logo.png", "publisher": "ahnafnafee", "engines": { diff --git a/src/extension.ts b/src/extension.ts index 022c38b..a6b700a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -109,7 +109,7 @@ function isMajorUpdate(previousVersion: string, currentVersion: string) { var currentVerArr = currentVersion.split(".").map(Number); // For pdftocairo bug fix - if (currentVerArr[1] > previousVerArr[1]) { + if (currentVerArr[1] > previousVerArr[1] || currentVerArr[2] > previousVerArr[2]) { return true; } else { return false; @@ -140,7 +140,7 @@ async function showWhatsNew(context: ExtensionContext) { if (result === actions[0]) { await env.openExternal( Uri.parse( - "https://github.com/ahnafnafee/PostScript-Preview#requirements" + "https://github.com/ahnafnafee/PostScript-Preview#windows" ) ); }