From 656b3804b62d469a7ca47e7fceb2b20f2b628efd Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 12 Jan 2025 14:44:03 -0800 Subject: [PATCH] Alias NanoPow directly to best supported class instead of trying to extract class methods which causes issues with private methods. --- src/classes/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/classes/index.ts b/src/classes/index.ts index 844bc66..121ac4e 100644 --- a/src/classes/index.ts +++ b/src/classes/index.ts @@ -20,8 +20,5 @@ try { isGpuSupported = false } -const NanoPow = { - search: isGpuSupported ? NanoPowGpu.search : isGlSupported ? NanoPowGl.search : null, - validate: isGpuSupported ? NanoPowGpu.validate : isGlSupported ? NanoPowGl.validate : null, -} +const NanoPow = isGpuSupported ? NanoPowGpu : isGlSupported ? NanoPowGl : null export { NanoPow, NanoPowGl, NanoPowGpu } -- 2.34.1