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.4.0 to 20.5.0

tsconfig.json

126

CustomUrlDrilldown.js
/*!
* Copyright © 2018 Splunk Inc.
* Copyright © 2020 Splunk Inc.
* SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or

@@ -90,3 +90,3 @@ * in part without a valid written license from Splunk Inc. is PROHIBITED.

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

@@ -96,71 +96,32 @@ /************************************************************************/

/* 0 */
/***/ (function(module, exports) {
/***/ (function(module, exports, __webpack_require__) {
module.exports = require("@babel/runtime-corejs2/core-js/promise");
/***/ }),
/* 1 */
/***/ (function(module, exports) {
module.exports = require("@babel/runtime-corejs2/core-js/array/is-array");
/***/ }),
/* 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__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_core_js_promise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
/* harmony import */ var _babel_runtime_corejs2_core_js_promise__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_promise__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
/* 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__);
var CustomUrlDrilldown = /*#__PURE__*/function () {
/**
* A configuration object is passed to the handler
* @constructor
* @param {Object} 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;
this.events = _babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_1___default()(options.events) ? options.events : ['any'];
}
/**
* Determines if the custom event handler is designed to convert the event
* @method canHandle
* @param {VisualizationEvent} event
* @returns {Boolean} true if the event handler will convert the event
*/
_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));
Object.defineProperty(exports, "__esModule", { value: true });
var CustomUrlDrilldown = /** @class */ (function () {
/**
* A configuration object is passed to the handler
* @constructor
* @param {Object} options
*/
function CustomUrlDrilldown(options) {
if (options === void 0) { options = {}; }
this.options = options;
this.events = Array.isArray(options.events) ? options.events : ['any'];
}
/**
* Determines if the custom event handler is designed to convert the event
* @method canHandle
* @param {VisualizationEvent} event
* @returns {Boolean} true if the event handler will convert the event
*/
CustomUrlDrilldown.prototype.canHandle = function (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

@@ -171,24 +132,21 @@ * @method handle

*/
CustomUrlDrilldown.prototype.handle = function () {
// TODO: verify url token updates happen external to the handler eventSaga:findEventHandler
return Promise.resolve([
{
type: 'linkTo',
payload: {
url: this.options.url,
newTab: this.options.newTab,
},
},
]);
};
return CustomUrlDrilldown;
}());
exports.default = CustomUrlDrilldown;
}, {
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
}
}]);
}
}]);
return CustomUrlDrilldown;
}();
/* harmony default export */ __webpack_exports__["default"] = (CustomUrlDrilldown);
/***/ })
/******/ ]);
//# sourceMappingURL=CustomUrlDrilldown.js.map

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

"author": "Splunk",
"version": "20.4.0",
"version": "20.5.0",
"scripts": {

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

"@babel/core": "^7.12.3",
"@splunk/dashboard-build-tools": "20.4.0",
"@splunk/dashboard-build-tools": "20.5.0",
"jest": "^26.0.0",
"raw-loader": "^4.0.0",
"ts-jest": "^26.0.0",
"ts-loader": "^8.0.1",
"webpack": "^4.29.6",

@@ -30,0 +32,0 @@ "webpack-merge": "^4.2.1"

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