From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/grape/index.js | 2 +- recipes/grape/package.json | 2 +- recipes/grape/webview.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes/grape') diff --git a/recipes/grape/index.js b/recipes/grape/index.js index 2039c8d..593f026 100644 --- a/recipes/grape/index.js +++ b/recipes/grape/index.js @@ -1,6 +1,6 @@ function _asyncToGenerator(fn) { return function () { const gen = Reflect.apply(fn, this, arguments); return new Promise((resolve, reject) => { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then((value) => { step('next', value); }, (error) => { step('throw', error); }); } } return step('next'); }); }; } -module.exports = Ferdi => class Grape extends Ferdi { +module.exports = Ferdium => class Grape extends Ferdium { validateUrl(url) { return _asyncToGenerator(function* () { try { diff --git a/recipes/grape/package.json b/recipes/grape/package.json index fa557f8..9fe40ab 100644 --- a/recipes/grape/package.json +++ b/recipes/grape/package.json @@ -1,7 +1,7 @@ { "id": "grape", "name": "Grape", - "version": "1.1.1", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.chatgrape.com/chat", diff --git a/recipes/grape/webview.js b/recipes/grape/webview.js index 9c69aa2..6349bd0 100644 --- a/recipes/grape/webview.js +++ b/recipes/grape/webview.js @@ -1,10 +1,10 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { const directMessages = document.querySelectorAll('.c0120').length; const indirectMessages = document.querySelectorAll('.c0121').length; - Ferdi.setBadge(directMessages, indirectMessages); + Ferdium.setBadge(directMessages, indirectMessages); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf