New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ghee

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghee - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

16

lib/ghee.js
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

@@ -104,2 +106,4 @@

value: function _sendMessage(msg, method, params) {
var _this = this;
var from = this.slack.dataStore.getUserById(msg.user);

@@ -111,3 +115,9 @@ var channel = this.slack.dataStore.getChannelGroupOrDMById(msg.channel);

if (response) {
this.slack.sendMessage(response, msg.channel);
if (isPromise(response)) {
response.then(function (text) {
_this.slack.sendMessage(text, msg.channel);
});
} else {
this.slack.sendMessage(response, msg.channel);
}
}

@@ -124,2 +134,6 @@ }

function isPromise(obj) {
return !!obj && ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}
String.prototype.startsWith = function (needle) {

@@ -126,0 +140,0 @@ return this.indexOf(needle) == 0;

2

package.json
{
"name": "ghee",
"version": "0.0.4",
"version": "0.0.5",
"description": "ES6/ES7 Slack Bot Wrapper",

@@ -5,0 +5,0 @@ "main": "lib/ghee.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc