@@ -30,8 +30,8 @@ <h1 class="page-title">Source: src/sender.js</h1>
3030
3131const { Buffer } = require("buffer");
3232const { validateTableName, validateColumnName, validateDesignatedTimestamp } = require("./validation");
33- const { connect, NetConnectOpts } = require("net");
34- const { connect: connectTLS, ConnectionOptions} = require("tls");
33+ const net = require("net");
34+ const tls = require("tls");
3535const crypto = require('crypto');
3636
3737const DEFAULT_BUFFER_SIZE = 8192;
@@ -114,7 +114,7 @@ <h1 class="page-title">Source: src/sender.js</h1>
114114 /**
115115 * Creates a connection to the database.
116116 *
117- * @param {NetConnectOpts | ConnectionOptions} options - Connection options, host and port are required.
117+ * @param {net. NetConnectOpts | tls. ConnectionOptions} options - Connection options, host and port are required.
118118 * @param {boolean} [secure = false] - If true connection will use TLS encryption.
119119 */
120120 async connect(options, secure = false) {
@@ -128,8 +128,8 @@ <h1 class="page-title">Source: src/sender.js</h1>
128128 throw new Error("Sender connected already");
129129 }
130130 this.socket = !secure
131- ? connect(options)
132- : connectTLS (options, async () => {
131+ ? net. connect(options)
132+ : tls.connect (options, async () => {
133133 if (!self.socket.authorized) {
134134 reject(new Error("Problem with server's certificate"));
135135 await self.close();
@@ -508,7 +508,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-@q
508508< br class ="clear ">
509509
510510< footer >
511- Documentation generated by < a href ="https://github.com/jsdoc/jsdoc "> JSDoc 3.6.11</ a > on Mon Aug 15 2022 11:54:33 GMT+0100 (British Summer Time)
511+ Documentation generated by < a href ="https://github.com/jsdoc/jsdoc "> JSDoc 3.6.11</ a > on Mon Aug 15 2022 15:25:19 GMT+0100 (British Summer Time)
512512</ footer >
513513
514514< script > prettyPrint ( ) ; </ script >
0 commit comments