Skip to content

Commit

Permalink
chore: Rename public name of a function to better explain usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Iku-turso committed Oct 22, 2023
1 parent fc6aefa commit e29528d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/injectable/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import isInjectionToken from './src/getInjectionToken/isInjectionToken';
import getInjectableBunch from './src/getInjectableBunch/getInjectableBunch';
import isInjectableBunch from './src/getInjectableBunch/isInjectableBunch';
import toFlatInjectables from './src/dependency-injection-container/toFlatInjectables';
export { getCompositeKey } from './src/getCompositeKey/getCompositeKey';
import { getCompositeKey } from './src/getCompositeKey/getCompositeKey';

export const getKeyedSingletonCompositeKey = getCompositeKey;

export { createInstantiationTargetDecorator } from './src/dependency-injection-container/createInstantiationTargetDecorator';
export { createInjectionTargetDecorator } from './src/dependency-injection-container/createInjectionTargetDecorator';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@ogre-tools/injectable';

import { computed, createAtom, runInAction } from 'mobx';
import { getCompositeKey } from '@ogre-tools/injectable';
import { getKeyedSingletonCompositeKey } from '@ogre-tools/injectable';

export const isInternalOfComputedInjectMany = Symbol(
'isInternalOfComputedInjectMany',
Expand Down Expand Up @@ -99,7 +99,7 @@ const reactiveInstancesInjectable = getInjectable({

lifecycle: lifecycleEnum.keyedSingleton({
getInstanceKey: (di, { injectionToken, instantiationParameter }) =>
getCompositeKey(injectionToken, instantiationParameter),
getKeyedSingletonCompositeKey(injectionToken, instantiationParameter),
}),

cannotCauseCycles: true,
Expand Down

0 comments on commit e29528d

Please sign in to comment.