From 6c19b13d8049f5f8fd23aa6cb0e38bf454035ac5 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 21 Apr 2023 21:31:40 -0700 Subject: [PATCH] fix: downgrade update-notifier to 5.1.0 --- dist/node12/gcc_matcher.json | 17 ----------------- dist/node12/llvm_matcher.json | 17 ----------------- dist/node12/msvc_matcher.json | 18 ------------------ dist/node12/python_matcher.json | 18 ------------------ dist/node16/gcc_matcher.json | 17 ----------------- dist/node16/llvm_matcher.json | 17 ----------------- dist/node16/msvc_matcher.json | 18 ------------------ dist/node16/python_matcher.json | 18 ------------------ package.json | 2 +- src/check-updates.ts | 4 ++-- 10 files changed, 3 insertions(+), 143 deletions(-) delete mode 100644 dist/node12/gcc_matcher.json delete mode 100644 dist/node12/llvm_matcher.json delete mode 100644 dist/node12/msvc_matcher.json delete mode 100644 dist/node12/python_matcher.json delete mode 100644 dist/node16/gcc_matcher.json delete mode 100644 dist/node16/llvm_matcher.json delete mode 100644 dist/node16/msvc_matcher.json delete mode 100644 dist/node16/python_matcher.json diff --git a/dist/node12/gcc_matcher.json b/dist/node12/gcc_matcher.json deleted file mode 100644 index b7235840..00000000 --- a/dist/node12/gcc_matcher.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "gcc", - "pattern": [ - { - "regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5 - } - ] - } - ] -} diff --git a/dist/node12/llvm_matcher.json b/dist/node12/llvm_matcher.json deleted file mode 100644 index f13bbd0b..00000000 --- a/dist/node12/llvm_matcher.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "llvm", - "pattern": [ - { - "regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5 - } - ] - } - ] -} diff --git a/dist/node12/msvc_matcher.json b/dist/node12/msvc_matcher.json deleted file mode 100644 index 0d6ed10e..00000000 --- a/dist/node12/msvc_matcher.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "msvc", - "pattern": [ - { - "regexp": "^(?:\\s+\\d+>)?(\\S.*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "code": 5, - "message": 6 - } - ] - } - ] -} diff --git a/dist/node12/python_matcher.json b/dist/node12/python_matcher.json deleted file mode 100644 index 3e5d8d5b..00000000 --- a/dist/node12/python_matcher.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "python", - "pattern": [ - { - "regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$", - "file": 1, - "line": 2 - }, - { - "regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$", - "message": 2 - } - ] - } - ] -} diff --git a/dist/node16/gcc_matcher.json b/dist/node16/gcc_matcher.json deleted file mode 100644 index b7235840..00000000 --- a/dist/node16/gcc_matcher.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "gcc", - "pattern": [ - { - "regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5 - } - ] - } - ] -} diff --git a/dist/node16/llvm_matcher.json b/dist/node16/llvm_matcher.json deleted file mode 100644 index f13bbd0b..00000000 --- a/dist/node16/llvm_matcher.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "llvm", - "pattern": [ - { - "regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5 - } - ] - } - ] -} diff --git a/dist/node16/msvc_matcher.json b/dist/node16/msvc_matcher.json deleted file mode 100644 index 0d6ed10e..00000000 --- a/dist/node16/msvc_matcher.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "msvc", - "pattern": [ - { - "regexp": "^(?:\\s+\\d+>)?(\\S.*)\\((\\d+),?(\\d+)?(?:,\\d+,\\d+)?\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "code": 5, - "message": 6 - } - ] - } - ] -} diff --git a/dist/node16/python_matcher.json b/dist/node16/python_matcher.json deleted file mode 100644 index 3e5d8d5b..00000000 --- a/dist/node16/python_matcher.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "python", - "pattern": [ - { - "regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$", - "file": 1, - "line": 2 - }, - { - "regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$", - "message": 2 - } - ] - } - ] -} diff --git a/package.json b/package.json index 64b27807..eba6991f 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ }, "prettier": "prettier-config-atomic", "dependencies": { - "update-notifier": "^6.0.2" + "update-notifier": "^5.1.0" }, "devDependencies": { "@actions/core": "^1.10.0", diff --git a/src/check-updates.ts b/src/check-updates.ts index 94b8c9ae..d6db380e 100644 --- a/src/check-updates.ts +++ b/src/check-updates.ts @@ -5,10 +5,10 @@ import { join } from "path" // auto self update notifier export async function checkUpdates() { try { - const updateNotifier = (await import("update-notifier")).default + const { UpdateNotifier } = await import("update-notifier") const packageJsonString = await readFile(join(__dirname, "..", "package.json"), "utf8") const packageJson = JSON.parse(packageJsonString) - updateNotifier({ pkg: packageJson }).notify() + new UpdateNotifier({ pkg: packageJson }).notify() } catch (err) { warning(`Failed to check for updates: ${err}`) }