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

@splunk/dashboard-event-handlers

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splunk/dashboard-event-handlers - npm Package Compare versions

Comparing version 20.2.0 to 20.3.0

75

CustomUrlDrilldown.js

@@ -90,3 +90,3 @@ /*!

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ })

@@ -108,2 +108,14 @@ /************************************************************************/

/* 2 */
/***/ (function(module, exports) {
module.exports = require("@babel/runtime-corejs2/helpers/classCallCheck");
/***/ }),
/* 3 */
/***/ (function(module, exports) {
module.exports = require("@babel/runtime-corejs2/helpers/createClass");
/***/ }),
/* 4 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

@@ -117,6 +129,12 @@

/* harmony import */ var _babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _babel_runtime_corejs2_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
/* harmony import */ var _babel_runtime_corejs2_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _babel_runtime_corejs2_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
/* harmony import */ var _babel_runtime_corejs2_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
class CustomUrlDrilldown {
var CustomUrlDrilldown = /*#__PURE__*/function () {
/**

@@ -127,3 +145,7 @@ * A configuration object is passed to the handler

*/
constructor(options = {}) {
function CustomUrlDrilldown() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
_babel_runtime_corejs2_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, CustomUrlDrilldown);
this.options = options;

@@ -140,26 +162,31 @@ this.events = _babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_1___default()(options.events) ? options.events : ['any'];

canHandle(event) {
return event && event.type !== 'range.select' && this.options && !!this.options.url && (this.events.includes('any') || this.events.includes(event.type));
}
/**
* Convert the event payload into a list of actionable tasks
* @method handle
* @param {VisualizationEvent} event
* @returns {Array} List of action(s)
*/
_babel_runtime_corejs2_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(CustomUrlDrilldown, [{
key: "canHandle",
value: function canHandle(event) {
return event && event.type !== 'range.select' && this.options && !!this.options.url && (this.events.includes('any') || this.events.includes(event.type));
}
/**
* Convert the event payload into a list of actionable tasks
* @method handle
* @param {VisualizationEvent} event
* @returns {Array} List of action(s)
*/
}, {
key: "handle",
value: function handle() {
// TODO: verify url token updates happen external to the handler eventSaga:findEventHandler
return _babel_runtime_corejs2_core_js_promise__WEBPACK_IMPORTED_MODULE_0___default.a.resolve([{
type: 'linkTo',
payload: {
url: this.options.url,
newTab: this.options.newTab
}
}]);
}
}]);
handle() {
// TODO: verify url token updates happen external to the handler eventSaga:findEventHandler
return _babel_runtime_corejs2_core_js_promise__WEBPACK_IMPORTED_MODULE_0___default.a.resolve([{
type: 'linkTo',
payload: {
url: this.options.url,
newTab: this.options.newTab
}
}]);
}
return CustomUrlDrilldown;
}();
}
/* harmony default export */ __webpack_exports__["default"] = (CustomUrlDrilldown);

@@ -166,0 +193,0 @@

@@ -5,3 +5,3 @@ {

"author": "Splunk",
"version": "20.2.0",
"version": "20.3.0",
"scripts": {

@@ -25,3 +25,3 @@ "build": "NODE_ENV=production webpack --config ./webpack.config.js --bail",

"@babel/core": "^7.12.3",
"@splunk/dashboard-build-tools": "20.2.0",
"@splunk/dashboard-build-tools": "20.3.0",
"jest": "^25.1.0",

@@ -28,0 +28,0 @@ "raw-loader": "^4.0.0",

Sorry, the diff of this file is not supported yet

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