fix: Switch to Tailwind v3 - v4 incompatible with Astro

This commit is contained in:
Kunthawat
2026-03-12 18:06:44 +07:00
parent 821c328bbc
commit 3fb9f89bc3
3652 changed files with 357284 additions and 59303 deletions

32
node_modules/is-port-reachable/index.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
import net from 'node:net';
export default async function isPortReachable(port, {host, timeout = 1000} = {}) {
if (typeof host !== 'string') {
throw new TypeError('Specify a `host`');
}
const promise = new Promise(((resolve, reject) => {
const socket = new net.Socket();
const onError = () => {
socket.destroy();
reject();
};
socket.setTimeout(timeout);
socket.once('error', onError);
socket.once('timeout', onError);
socket.connect(port, host, () => {
socket.end();
resolve();
});
}));
try {
await promise;
return true;
} catch {
return false;
}
}