@rs-x/core 0.4.9 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +25 -26
  2. package/dist/index.js +1188 -1189
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import { Container, Newable, ServiceIdentifier, BindToFluentSyntax, ContainerMod
2
2
  export { BindToFluentSyntax, Container, ContainerModule, ContainerModuleLoadOptions, inject as Inject, injectable as Injectable, multiInject as MultiInject, Newable, preDestroy as PreDestroy, ServiceIdentifier, unmanaged as Unmanaged } from 'inversify';
3
3
  import { Observable, Subject } from 'rxjs';
4
4
 
5
- interface IDeepCloneValueGetter {
6
- get(source: unknown): unknown;
5
+ interface IDeepCloneExcept {
6
+ except(source: unknown): unknown;
7
7
  }
8
8
 
9
9
  interface IResolvedValueCache {
@@ -12,44 +12,28 @@ interface IResolvedValueCache {
12
12
  delete(source: WeakKey): void;
13
13
  }
14
14
 
15
- declare class DeepCloneValueGetter implements IDeepCloneValueGetter {
15
+ declare class DeepCloneValueExcept implements IDeepCloneExcept {
16
16
  private readonly _resolvedValueCache;
17
17
  constructor(_resolvedValueCache: IResolvedValueCache);
18
- get(source: unknown): unknown;
18
+ except(source: unknown): unknown;
19
19
  }
20
20
 
21
- declare const InjectionContainer: Container;
22
-
23
- interface IMultiInjectTokens {
24
- serviceToken?: symbol;
25
- multiInjectToken: symbol;
26
- }
27
- interface IMultiInjectService {
28
- target: Newable<unknown>;
29
- token: symbol;
30
- }
31
- type BindMethod = <T>(serviceIdentifier: ServiceIdentifier<T>) => BindToFluentSyntax<T>;
32
- declare function registerMultiInjectService(container: Container | ContainerModuleLoadOptions, target: Newable<unknown>, options: IMultiInjectTokens): void;
33
- declare function registerMultiInjectServices(container: Container | ContainerModuleLoadOptions, multiInjectToken: symbol, services: readonly IMultiInjectService[]): void;
34
- declare function overrideMultiInjectServices(container: Container | ContainerModuleLoadOptions, multiInjectToken: symbol, services: readonly IMultiInjectService[]): void;
35
-
36
21
  interface IDeepClone {
37
22
  readonly priority: number;
38
23
  clone(source: unknown): unknown;
39
24
  }
40
25
 
41
- declare function DeepClone(serviceToken?: symbol): (target: Newable<IDeepClone>) => void;
42
-
43
26
  declare class DefaultDeepClone implements IDeepClone {
44
27
  private readonly _deepCloneList;
45
- private readonly _deepCloneValueGetter;
46
28
  readonly priority = 0;
47
- constructor(_deepCloneList: readonly IDeepClone[], _deepCloneValueGetter: IDeepCloneValueGetter);
29
+ constructor(_deepCloneList: readonly IDeepClone[]);
48
30
  clone(source: unknown): unknown;
49
31
  }
50
32
 
51
33
  declare class LodashDeepClone implements IDeepClone {
34
+ private readonly _deepCloneExcept;
52
35
  readonly priority = 1;
36
+ constructor(_deepCloneExcept: IDeepCloneExcept);
53
37
  clone(source: unknown): unknown;
54
38
  private cloneExceptPredicate;
55
39
  }
@@ -59,6 +43,21 @@ declare class StructuredDeepClone implements IDeepClone {
59
43
  clone(source: unknown): unknown;
60
44
  }
61
45
 
46
+ declare const InjectionContainer: Container;
47
+
48
+ interface IMultiInjectTokens {
49
+ serviceToken?: symbol;
50
+ multiInjectToken: symbol;
51
+ }
52
+ interface IMultiInjectService {
53
+ target: Newable<unknown>;
54
+ token: symbol;
55
+ }
56
+ type BindMethod = <T>(serviceIdentifier: ServiceIdentifier<T>) => BindToFluentSyntax<T>;
57
+ declare function registerMultiInjectService(container: Container | ContainerModuleLoadOptions, target: Newable<unknown>, options: IMultiInjectTokens): void;
58
+ declare function registerMultiInjectServices(container: Container | ContainerModuleLoadOptions, multiInjectToken: symbol, services: readonly IMultiInjectService[]): void;
59
+ declare function overrideMultiInjectServices(container: Container | ContainerModuleLoadOptions, multiInjectToken: symbol, services: readonly IMultiInjectService[]): void;
60
+
62
61
  interface IEqualityService {
63
62
  isEqual(a: unknown, b: unknown): boolean;
64
63
  }
@@ -583,8 +582,8 @@ declare const RsXCoreInjectionTokens: {
583
582
  ILodashDeepClone: symbol;
584
583
  IDeepCloneList: symbol;
585
584
  IResolvedValueCache: symbol;
586
- IDeepCloneValueGetter: symbol;
587
- DefaultDeepCloneValueGetter: symbol;
585
+ IDeepCloneExcept: symbol;
586
+ DefaultDeepCloneExcept: symbol;
588
587
  };
589
588
 
590
589
  declare const defaultIndexValueAccessorList: readonly IMultiInjectService[];
@@ -613,4 +612,4 @@ declare class WaitForEvent<T extends {
613
612
  private unsubscribeEvent;
614
613
  }
615
614
 
616
- export { type AnyFunction, ArgumentException, ArrayIndexAccessor, Assertion, type BindMethod, type CheckValidKey, type ConstructorType, type DateProperty, DatePropertyAccessor, DeepClone, DeepCloneValueGetter, DefaultDeepClone, EqualityService, ErrorLog, FunctionCallIndex, FunctionCallIndexFactory, FunctionCallResultCacheFactory, type GetFunction, GuidFactory, type IArrayIndexAccessor, type IChainPart, type IDatePropertyAccessor, type IDeepClone, type IDeepCloneValueGetter, type IDisposable, type IDisposableFunctionCallIndex, type IDisposableOwner, type IEqualityService, type IError, type IErrorLog, type IFunctionCallIndex, type IFunctionCallIndexData, type IFunctionCallIndexFactory, type IFunctionCallResult, type IFunctionCallResultCache, type IFunctionCallResultCacheFactory, type IFunctionCallResultIdInfo, type IGuidFactory, type IISequenceWithIdData, type IIndexValueAccessor, type IMapKeyAccessor, type IMethodAccessor, type IMultiInjectService, type IMultiInjectTokens, type IObservableAccessor, type IPromiseAccessor, type IPropertyChange, type IPropertyDescriptor, type IPropertyValueAccessor, type IResolvedValueCache, type ISequenceIdFactory, type ISequenceWithId, type ISetKeyAccessor, type ISingletonFactory, type ISingletonFactoryWithIdGeneration, IndexValueAccessor, InjectionContainer, InvalidCastException, InvalidOperationException, type LastValuObservable, LodashDeepClone, MapKeyAccessor, MethodAccessor, NullOrEmptyException, NullOrUndefinedException, ObservableAccessor, PENDING, ParserException, PrettyPrinter, PromiseAccessor, PropertyDescriptorType, PropertyValueAccessor, ResolvedValueCache, RsXCoreInjectionTokens, RsXCoreModule, SequenceIdFactory, SequenceWithId, type SetFunction, SetKeyAccessor, SingletonFactory, SingletonFactoryWithGuid, SingletonFactoryWithIdGeneration, StructuredDeepClone, Type, UnexpectedException, UnsupportedException, WaitForEvent, dataProperties, defaultDeeoCloneList, defaultIndexValueAccessorList, echo, emptyFunction, emptyValue, overrideMultiInjectServices, printValue, registerMultiInjectService, registerMultiInjectServices, replaceSetItemAt, truePredicate, utCDate };
615
+ export { type AnyFunction, ArgumentException, ArrayIndexAccessor, Assertion, type BindMethod, type CheckValidKey, type ConstructorType, type DateProperty, DatePropertyAccessor, DeepCloneValueExcept, DefaultDeepClone, EqualityService, ErrorLog, FunctionCallIndex, FunctionCallIndexFactory, FunctionCallResultCacheFactory, type GetFunction, GuidFactory, type IArrayIndexAccessor, type IChainPart, type IDatePropertyAccessor, type IDeepClone, type IDeepCloneExcept, type IDisposable, type IDisposableFunctionCallIndex, type IDisposableOwner, type IEqualityService, type IError, type IErrorLog, type IFunctionCallIndex, type IFunctionCallIndexData, type IFunctionCallIndexFactory, type IFunctionCallResult, type IFunctionCallResultCache, type IFunctionCallResultCacheFactory, type IFunctionCallResultIdInfo, type IGuidFactory, type IISequenceWithIdData, type IIndexValueAccessor, type IMapKeyAccessor, type IMethodAccessor, type IMultiInjectService, type IMultiInjectTokens, type IObservableAccessor, type IPromiseAccessor, type IPropertyChange, type IPropertyDescriptor, type IPropertyValueAccessor, type IResolvedValueCache, type ISequenceIdFactory, type ISequenceWithId, type ISetKeyAccessor, type ISingletonFactory, type ISingletonFactoryWithIdGeneration, IndexValueAccessor, InjectionContainer, InvalidCastException, InvalidOperationException, type LastValuObservable, LodashDeepClone, MapKeyAccessor, MethodAccessor, NullOrEmptyException, NullOrUndefinedException, ObservableAccessor, PENDING, ParserException, PrettyPrinter, PromiseAccessor, PropertyDescriptorType, PropertyValueAccessor, ResolvedValueCache, RsXCoreInjectionTokens, RsXCoreModule, SequenceIdFactory, SequenceWithId, type SetFunction, SetKeyAccessor, SingletonFactory, SingletonFactoryWithGuid, SingletonFactoryWithIdGeneration, StructuredDeepClone, Type, UnexpectedException, UnsupportedException, WaitForEvent, dataProperties, defaultDeeoCloneList, defaultIndexValueAccessorList, echo, emptyFunction, emptyValue, overrideMultiInjectServices, printValue, registerMultiInjectService, registerMultiInjectServices, replaceSetItemAt, truePredicate, utCDate };