From 155c4b832281348c16be1f4ef667e6e23dbf1bd8 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Fri, 27 Aug 2021 18:13:24 +0530 Subject: chore: normalized all recipes to ensure compatibility with es6 (#639) - Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm. --- recipes/fastmail/index.js | 3 +-- recipes/fastmail/package.json | 2 +- recipes/fastmail/webview.js | 13 ++++++++----- 3 files changed, 10 insertions(+), 8 deletions(-) (limited to 'recipes/fastmail') diff --git a/recipes/fastmail/index.js b/recipes/fastmail/index.js index 2d94af4..23607bd 100644 --- a/recipes/fastmail/index.js +++ b/recipes/fastmail/index.js @@ -1,2 +1 @@ -module.exports = Franz => Franz; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhc3RtYWlsL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZmFzdG1haWwvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 +module.exports = Ferdi => Ferdi; diff --git a/recipes/fastmail/package.json b/recipes/fastmail/package.json index b0ded8f..7a73acb 100644 --- a/recipes/fastmail/package.json +++ b/recipes/fastmail/package.json @@ -1,7 +1,7 @@ { "id": "fastmail", "name": "FastMail", - "version": "2.0.2", + "version": "2.1.0", "license": "MIT", "config": { "serviceURL": "https://www.fastmail.com/mail/", diff --git a/recipes/fastmail/webview.js b/recipes/fastmail/webview.js index 5355dbe..46bad0d 100644 --- a/recipes/fastmail/webview.js +++ b/recipes/fastmail/webview.js @@ -1,15 +1,18 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = (Franz) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = (Ferdi) => { const getMessages = () => { const inbox = document.querySelector('.v-MailboxSource--inbox .v-MailboxSource-badge'); if (!inbox) { return; } const messages = Number(inbox.innerText); - Franz.setBadge(messages); + Ferdi.setBadge(messages); }; - Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); - Franz.loop(getMessages); + Ferdi.loop(getMessages); + + Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); }; -- cgit v1.2.3-54-g00ecf