diff options
author | 2021-08-27 18:13:24 +0530 | |
---|---|---|
committer | 2021-08-27 18:13:24 +0530 | |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/hipchat/index.js | |
parent | docs: fixed template file for creating recipe. (diff) | |
download | ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip |
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.
Diffstat (limited to 'recipes/hipchat/index.js')
-rw-r--r-- | recipes/hipchat/index.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/recipes/hipchat/index.js b/recipes/hipchat/index.js index f39569a..5c550d8 100644 --- a/recipes/hipchat/index.js +++ b/recipes/hipchat/index.js | |||
@@ -1,6 +1,6 @@ | |||
1 | function _asyncToGenerator(fn) { return function () { const gen = fn.apply(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); }, (err) => { step('throw', err); }); } } return step('next'); }); }; } | 1 | function _asyncToGenerator(fn) { return function () { const gen = fn.apply(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); }, (err) => { step('throw', err); }); } } return step('next'); }); }; } |
2 | 2 | ||
3 | module.exports = Franz => class HipChat extends Franz { | 3 | module.exports = Ferdi => class HipChat extends Ferdi { |
4 | validateUrl(url) { | 4 | validateUrl(url) { |
5 | return _asyncToGenerator(function* () { | 5 | return _asyncToGenerator(function* () { |
6 | try { | 6 | try { |
@@ -25,4 +25,3 @@ module.exports = Franz => class HipChat extends Franz { | |||
25 | return `${url}/chat`; | 25 | return `${url}/chat`; |
26 | } | 26 | } |
27 | }; | 27 | }; |
28 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhpcGNoYXQvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiSGlwQ2hhdCIsInZhbGlkYXRlVXJsIiwidXJsIiwicmVzcCIsIndpbmRvdyIsImZldGNoIiwibWV0aG9kIiwiaGVhZGVycyIsImRhdGEiLCJqc29uIiwiT2JqZWN0IiwiaGFzT3duUHJvcGVydHkiLCJjYWxsIiwiZXJyIiwiY29uc29sZSIsImVycm9yIiwiYnVpbGRVcmwiXSwibWFwcGluZ3MiOiI7Ozs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBUyxNQUFNQyxPQUFOLFNBQXNCRCxLQUF0QixDQUE0QjtBQUM5Q0UsYUFBTixDQUFrQkMsR0FBbEIsRUFBdUI7QUFBQTtBQUNyQixVQUFJO0FBQ0YsY0FBTUMsT0FBTyxNQUFNQyxPQUFPQyxLQUFQLENBQWMsR0FBRUgsR0FBSSxlQUFwQixFQUFvQztBQUNyREksa0JBQVEsS0FENkM7QUFFckRDLG1CQUFTO0FBQ1AsNEJBQWdCO0FBRFQ7QUFGNEMsU0FBcEMsQ0FBbkI7QUFNQSxjQUFNQyxPQUFPLE1BQU1MLEtBQUtNLElBQUwsRUFBbkI7O0FBRUEsZUFBT0MsT0FBT0MsY0FBUCxDQUFzQkMsSUFBdEIsQ0FBMkJKLElBQTNCLEVBQWlDLFVBQWpDLENBQVA7QUFDRCxPQVZELENBVUUsT0FBT0ssR0FBUCxFQUFZO0FBQ1pDLGdCQUFRQyxLQUFSLENBQWNGLEdBQWQ7QUFDRDs7QUFFRCxhQUFPLEtBQVA7QUFmcUI7QUFnQnRCOztBQUVERyx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