From: Chris Duncan Date: Sun, 12 Jan 2025 22:44:03 +0000 (-0800) Subject: Alias NanoPow directly to best supported class instead of trying to extract class... X-Git-Tag: v1.2.0~6 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=656b3804b62d469a7ca47e7fceb2b20f2b628efd;p=nano-pow.git Alias NanoPow directly to best supported class instead of trying to extract class methods which causes issues with private methods. --- 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 }