From 35d01427549e55e1e8d49dcb53079a3da6df1c65 Mon Sep 17 00:00:00 2001 From: Jeff Hansen Date: Thu, 4 Apr 2024 13:14:53 -0400 Subject: [PATCH] fix(exports): add back createBuildResolver and createDisposableResolver --- CHANGELOG.md | 4 ++++ src/awilix.ts | 2 ++ src/resolvers.ts | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2877d13..841e675 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v10.0.2 + +- Add back `createBuildResolver` and `createDisposableResolver` exports ([#358](https://github.com/jeffijoe/awilix/pull/358)) + # v10.0.1 - Add back some type exports ([#351](https://github.com/jeffijoe/awilix/pull/351)) diff --git a/src/awilix.ts b/src/awilix.ts index 274aa6c..180d6de 100644 --- a/src/awilix.ts +++ b/src/awilix.ts @@ -38,4 +38,6 @@ export { asClass, asFunction, asValue, + createBuildResolver, + createDisposableResolver, } from './resolvers' diff --git a/src/resolvers.ts b/src/resolvers.ts index 741d381..79f6e5e 100644 --- a/src/resolvers.ts +++ b/src/resolvers.ts @@ -244,7 +244,7 @@ export function aliasTo( * @return {object} * The interface. */ -function createBuildResolver>( +export function createBuildResolver>( obj: B, ): BuildResolver & B { function setLifetime(this: any, value: LifetimeType) { @@ -285,7 +285,7 @@ function createBuildResolver>( * function. * @param obj */ -function createDisposableResolver>( +export function createDisposableResolver>( obj: B, ): DisposableResolver & B { function disposer(this: any, dispose: Disposer) {