From 7630ccd7d339f3f60b61f07fc113fa26532717ff Mon Sep 17 00:00:00 2001 From: james-a-morris Date: Fri, 22 Nov 2024 16:01:33 -0500 Subject: [PATCH] fix: addtl try Signed-off-by: james-a-morris --- packages/error-handling/src/utils/assert.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/error-handling/src/utils/assert.ts b/packages/error-handling/src/utils/assert.ts index 62e2267..f0910b1 100644 --- a/packages/error-handling/src/utils/assert.ts +++ b/packages/error-handling/src/utils/assert.ts @@ -1,4 +1,4 @@ -import assertBase from "assert"; +import * as assertModule from "assert"; import { AssertError } from "../errors/AssertError"; /** @@ -10,7 +10,7 @@ import { AssertError } from "../errors/AssertError"; */ export function assert(value: unknown, message: string): asserts value { try { - return assertBase(value, message); + return assertModule.ok(value, message); } catch (e: unknown) { throw new AssertError(message); }