From 953ddd82e48dd206cef5ac94456549aed13b3ad5 Mon Sep 17 00:00:00 2001
From: RaindropsSys <raindrops@equestria.dev>
Date: Fri, 17 Nov 2023 23:25:29 +0100
Subject: Updated 30 files and deleted 2976 files (automated)

---
 .../addressbook/node_modules/resolve-alpn/index.js | 43 ----------------------
 1 file changed, 43 deletions(-)
 delete mode 100644 includes/external/addressbook/node_modules/resolve-alpn/index.js

(limited to 'includes/external/addressbook/node_modules/resolve-alpn/index.js')

diff --git a/includes/external/addressbook/node_modules/resolve-alpn/index.js b/includes/external/addressbook/node_modules/resolve-alpn/index.js
deleted file mode 100644
index 2d6c043..0000000
--- a/includes/external/addressbook/node_modules/resolve-alpn/index.js
+++ /dev/null
@@ -1,43 +0,0 @@
-'use strict';
-const tls = require('tls');
-
-module.exports = (options = {}, connect = tls.connect) => new Promise((resolve, reject) => {
-	let timeout = false;
-
-	let socket;
-
-	const callback = async () => {
-		await socketPromise;
-
-		socket.off('timeout', onTimeout);
-		socket.off('error', reject);
-
-		if (options.resolveSocket) {
-			resolve({alpnProtocol: socket.alpnProtocol, socket, timeout});
-
-			if (timeout) {
-				await Promise.resolve();
-				socket.emit('timeout');
-			}
-		} else {
-			socket.destroy();
-			resolve({alpnProtocol: socket.alpnProtocol, timeout});
-		}
-	};
-
-	const onTimeout = async () => {
-		timeout = true;
-		callback();
-	};
-
-	const socketPromise = (async () => {
-		try {
-			socket = await connect(options, callback);
-
-			socket.on('error', reject);
-			socket.once('timeout', onTimeout);
-		} catch (error) {
-			reject(error);
-		}
-	})();
-});
-- 
cgit