apiconnect-explorer
Version:
- [Getting Started](#getting-started) - [Configuration](#configuration) * [Required](#required) * [Optional](#optional) - [Usage in React](#usage-in-react) - [Usage outside of React](#usage-outside-of-react) - [Detailed description of options](#detail
1 lines • 3.5 kB
text/typescript
;function a(b){"@babel/helpers - typeof";return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},a(b)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var b=d(require("./AbstractKafkaCodeSnippet.ts")),c=require("../constants.ts");function d(a){return a&&a.__esModule?a:{default:a}}function e(b,a){if(!(b instanceof a))throw new TypeError("Cannot call a class as a function")}function f(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,h(c.key),c)}function g(a,b,c){return b&&f(a.prototype,b),c&&f(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function h(b){var c=j(b,"string");return"symbol"==a(c)?c:c+""}function j(b,c){if("object"!=a(b)||!b)return b;var d=b[Symbol.toPrimitive];if(void 0!==d){var e=d.call(b,c||"default");if("object"!=a(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===c?String:Number)(b)}function k(a,b,c){return b=p(b),l(a,n()?Reflect.construct(b,c||[],p(a).constructor):b.apply(a,c))}function l(b,c){if(c&&("object"==a(c)||"function"==typeof c))return c;if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");return m(b)}function m(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function n(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(n=function(){return!!a})()}function p(a){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},p(a)}function q(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&r(a,b)}function r(a,b){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},r(a,b)}var s=exports["default"]=function(a){function b(){return e(this,b),k(this,b,arguments)}return q(b,a),g(b,[{key:"sasl_ssl",value:function(){return{SASL:!0,SSL:!0,saslMechanism:c.SASL_MECHANISMS.PLAIN,securityProtocol:c.SECURITY_PROTOCOLS.SASL_SSL}}},{key:"sasl_plain",value:function(){return{SASL:!0,saslMechanism:c.SASL_MECHANISMS.PLAIN,securityProtocol:c.SECURITY_PROTOCOLS.SASL_PLAINTEXT}}},{key:"sasl_sha_256",value:function(){return{SASL:!0,saslMechanism:c.SASL_MECHANISMS.SCRAM256,securityProtocol:c.SECURITY_PROTOCOLS.SASL_PLAINTEXT}}},{key:"sasl_sha_512",value:function(){return{SASL:!0,saslMechanism:c.SASL_MECHANISMS.SCRAM512,securityProtocol:c.SECURITY_PROTOCOLS.SASL_PLAINTEXT}}},{key:"sasl_ssl_sha_256",value:function(){return{SASL:!0,SSL:!0,saslMechanism:c.SASL_MECHANISMS.SCRAM256,securityProtocol:c.SECURITY_PROTOCOLS.SASL_SSL}}},{key:"sasl_ssl_sha_512",value:function(){return{SASL:!0,SSL:!0,saslMechanism:c.SASL_MECHANISMS.SCRAM512,securityProtocol:c.SECURITY_PROTOCOLS.SASL_SSL}}},{key:"ssl",value:function(){return{SSL:!0,securityProtocol:"SSL"}}},{key:"ssl_mutualtls",value:function(){return{MUTUAL_TLS:!0,securityProtocol:"SSL"}}},{key:"plaintext",value:function(){return{securityProtocol:c.SECURITY_PROTOCOLS.PLAINTEXT}}}])}(b["default"]);