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/hipchat/index.js | 2 +- recipes/hipchat/package.json | 2 +- recipes/hipchat/webview.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'recipes/hipchat') diff --git a/recipes/hipchat/index.js b/recipes/hipchat/index.js index 0a461ab..ce3256b 100644 --- a/recipes/hipchat/index.js +++ b/recipes/hipchat/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 HipChat extends Ferdi { +module.exports = Ferdium => class HipChat extends Ferdium { validateUrl(url) { return _asyncToGenerator(function* () { try { diff --git a/recipes/hipchat/package.json b/recipes/hipchat/package.json index b0437f6..0be97cc 100644 --- a/recipes/hipchat/package.json +++ b/recipes/hipchat/package.json @@ -1,7 +1,7 @@ { "id": "hipchat", "name": "HipChat", - "version": "1.1.1", + "version": "1.2.0", "license": "MIT", "config": { "serviceURL": "https://{teamId}.hipchat.com/chat", diff --git a/recipes/hipchat/webview.js b/recipes/hipchat/webview.js index 8748926..229b376 100644 --- a/recipes/hipchat/webview.js +++ b/recipes/hipchat/webview.js @@ -1,11 +1,11 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { const directMessages = document.querySelectorAll('.hc-mention').length; const allMessages = document.querySelectorAll('.aui-badge:not(.hc-mention)').length - directMessages; - // set Ferdi badge - Ferdi.setBadge(directMessages, allMessages); + // set Ferdium badge + Ferdium.setBadge(directMessages, allMessages); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-70-g09d2