From bc1148c00a8509998ea15f389d0aa251a475b033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 6 Feb 2025 15:25:47 +0800 Subject: [PATCH] fix: require_dlopen --- src/pty/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pty/index.ts b/src/pty/index.ts index d9cc2e1c..25c969ce 100644 --- a/src/pty/index.ts +++ b/src/pty/index.ts @@ -26,9 +26,4 @@ export function require_dlopen(modulename: string) { process.dlopen(module, path.join(import__dirname, modulename)); // eslint-disable-next-line @typescript-eslint/no-explicit-any return module.exports as any; -} -/** - * Expose the native API when not Windows, note that this is not public API and - * could be removed at any time. - */ -export const native = (process.platform !== 'win32' ? require_dlopen('./pty/' + process.platform + '.' + process.arch + '/pty.node') : null); +} \ No newline at end of file