From 0e96b9dc0865e77c6a634a1c63e15f5a2df34586 Mon Sep 17 00:00:00 2001 From: Xmader Date: Wed, 18 Nov 2020 14:01:14 -0500 Subject: [PATCH] v0.15.8 --- dist/main.js | 13 +++++++++---- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/dist/main.js b/dist/main.js index 93ca5b8..a690873 100644 --- a/dist/main.js +++ b/dist/main.js @@ -5,7 +5,7 @@ // @supportURL https://github.com/Xmader/musescore-downloader/issues // @updateURL https://msdl.librescore.org/install.user.js // @downloadURL https://msdl.librescore.org/install.user.js -// @version 0.15.7 +// @version 0.15.8 // @description download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱 // @author Xmader // @match https://musescore.com/*/* @@ -26560,9 +26560,14 @@ Please pipe the document into a Node stream.\ const m = mod.toString().match(AUTH_REG); if (m) { const code = m[1]; - // eslint-disable-next-line no-new-func, @typescript-eslint/no-implied-eval - const magic = Function(`return (${code})`)(); - resolve(magic); + try { + // eslint-disable-next-line no-new-func, @typescript-eslint/no-implied-eval + const magic = Function(`return (${code})`)(); + resolve(magic); + } + catch (err) { + console.error(err); + } } }); } diff --git a/package-lock.json b/package-lock.json index 16ed57c..c2c68e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "musescore-downloader", - "version": "0.15.7", + "version": "0.15.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 523b102..024a375 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "musescore-downloader", - "version": "0.15.7", + "version": "0.15.8", "description": "download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱", "main": "dist/main.js", "repository": {