@chalupajs/interface
Advanced tools
Comparing version 1.0.0 to 1.1.0
export {}; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Constructor } from './types'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { EventCallable, ICommunicationFacade, MethodCallable } from './ICommunicationFacade'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ServiceAppearedCallback, ServiceDisappearedCallback } from './NetworkEventCallbacks'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=ICommunicationFacade.js.map |
export declare type ServiceAppearedCallback = (serviceName: string) => Promise<void>; | ||
export declare type ServiceDisappearedCallback = (serviceName: string) => Promise<void>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=NetworkEventCallbacks.js.map |
import { ConfigurationOptions } from 'konvenient'; | ||
export declare const Configuration: (config?: Partial<ConfigurationOptions> | undefined) => <T>(constructor: new () => T) => new () => T; | ||
export { ConfigurationOptions, Configurable, ConfigurableSchema, SchemaResult, Nested, PredefinedFormat, configurator, KONVENIENT_CONFIGURATION_CLASS as CONFIGURATION_CLASS, } from 'konvenient'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ declare namespace ContainerConstant { |
@@ -0,0 +0,0 @@ "use strict"; |
import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Constructor } from '../types'; |
@@ -0,0 +0,0 @@ "use strict"; |
import { Constructor } from '../types'; | ||
import { ILogger } from '../Log/ILogger'; | ||
import { IDynamicValueContext } from './IDynamicValueContext'; | ||
export interface IContainer { | ||
@@ -36,4 +37,6 @@ /** | ||
*/ | ||
bindConstant<T>(accessor: string, constant: T): this; | ||
rebindConstant<T>(accessor: string, constant: T): this; | ||
bindConstant<T>(accessor: string | Constructor<T>, constant: T): this; | ||
rebindConstant<T>(accessor: string | Constructor<T>, constant: T): this; | ||
bindDynamicValue<T>(accessor: string | Constructor<T>, func: (context: IDynamicValueContext) => T): this; | ||
rebindDynamicValue<T>(accessor: string | Constructor<T>, func: (context: IDynamicValueContext) => T): this; | ||
unbind(accessor: string | Constructor): this; | ||
@@ -40,0 +43,0 @@ immediate<T>(constructor: Constructor<T>): T; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IContainer.js.map |
@@ -0,0 +0,0 @@ import { Constructor } from '../types'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IFacadeContainer.js.map |
@@ -0,0 +0,0 @@ import { Constructor } from '../types'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IInjectContainer.js.map |
@@ -0,0 +0,0 @@ import { Constructor } from '../types'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IPluginContainer.js.map |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare namespace Errors { |
@@ -0,0 +0,0 @@ "use strict"; |
import { Constructor } from '../types'; | ||
export declare function ErrorHandler(errors: Constructor<Error> | Constructor<Error>[]): (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void; | ||
export declare function registerErrorHandlerOnTarget(target: any, handlerName: string, errors: Constructor<Error>[]): void; |
@@ -0,0 +0,0 @@ "use strict"; |
import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Constructor } from '../types'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ICommunicationChannel } from './ICommunicationChannel'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface ICommunicationChannel { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=ICommunicationChannel.js.map |
@@ -15,2 +15,3 @@ import 'reflect-metadata'; | ||
export { IPluginContainer } from './Container/IPluginContainer'; | ||
export { IDynamicValueContext } from './Container/IDynamicValueContext'; | ||
export { ExternalServiceTemplate, serviceMethodPlaceholder, ExternalServiceCall, IExternalServiceCall, CallWithResult, IExternalServiceEmit, EmitWithResult, serviceEventPlaceholder, } from './ExternalService/ExternalServiceTemplate'; | ||
@@ -17,0 +18,0 @@ export { ExternalService, ExternalServiceOptions, ExternalServiceMethod, ExternalServiceMethodOptions, ExternalServiceEvent, ExternalServiceEventOptions, } from './ExternalService/decorators'; |
@@ -0,0 +0,0 @@ "use strict"; |
import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IIntermediateService } from './IIntermediateService'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IBuilderStrategy.js.map |
@@ -1,2 +0,1 @@ | ||
import { Container } from 'inversify'; | ||
import { Constructor } from '../types'; | ||
@@ -6,4 +5,7 @@ import { ServiceOptions } from '../Service/decorators'; | ||
import { IServiceBridge } from './IServiceBridge'; | ||
import { Container } from "inversify"; | ||
import { IInjectContainer } from "../Container/IInjectContainer"; | ||
export interface IIntermediateService { | ||
container: Container; | ||
injectContainer: IInjectContainer; | ||
serviceConstructor: Constructor; | ||
@@ -10,0 +12,0 @@ serviceOptions: ServiceOptions; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IIntermediateService.js.map |
@@ -0,0 +0,0 @@ import { ICommunicationFacade } from '../Communication/ICommunicationFacade'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IServiceBridge.js.map |
@@ -0,0 +0,0 @@ export interface IServiceBridgeOrchestrator { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IServiceBridgeOrchestrator.js.map |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ILogger } from './ILogger'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=ILogger.js.map |
@@ -0,0 +0,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=ILogProvider.js.map |
@@ -0,0 +0,0 @@ export interface LogFunction { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=LogFunction.js.map |
@@ -0,0 +0,0 @@ import { Constructor } from '../types'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ declare namespace Metadata { |
@@ -0,0 +0,0 @@ "use strict"; |
import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Constructor } from '../types'; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare function ServiceAppeared(): (target: any, propertyKey: any, _descriptor: PropertyDescriptor) => void; | ||
export declare function ServiceDisappeared(): (target: any, propertyKey: any, _descriptor: PropertyDescriptor) => void; |
@@ -0,0 +0,0 @@ "use strict"; |
import { Constructor } from '../types'; | ||
import { IPluginContainer } from '../Container/IPluginContainer'; | ||
import { IPlugin } from './IPlugin'; | ||
import { IDynamicValueContext } from '../Container/IDynamicValueContext'; | ||
export declare abstract class AbstractPlugin implements IPlugin { | ||
@@ -14,6 +15,8 @@ preCreation(_container: IPluginContainer): Promise<void>; | ||
onBindInterface<T>(_accessor: string, _constructor: Constructor<T>): Constructor<T>; | ||
onBindConstant<T>(_accessor: string, _constant: T): T; | ||
onBindConstant<T>(_accessor: string | Constructor<T>, _constant: T): T; | ||
onBindDynamicValue<T>(_accessor: string | Constructor<T>, func: (context: IDynamicValueContext) => T): (context: IDynamicValueContext) => T; | ||
onRebindClass<T>(_constructor: Constructor<T>): Constructor<T>; | ||
onRebindInterface<T>(_accessor: string, _constructor: Constructor<T>): Constructor<T>; | ||
onRebindConstant<T>(_accessor: string, _constant: T): T; | ||
onRebindConstant<T>(_accessor: string | Constructor<T>, _constant: T): T; | ||
onRebindDynamicValue<T>(_accessor: string | Constructor<T>, func: (context: IDynamicValueContext) => T): (context: IDynamicValueContext) => T; | ||
onUnbind(_accessor: string | Constructor): boolean; | ||
@@ -20,0 +23,0 @@ onBindModule(_moduleConstructor: Constructor): Constructor; |
@@ -35,2 +35,5 @@ "use strict"; | ||
} | ||
onBindDynamicValue(_accessor, func) { | ||
return func; | ||
} | ||
onRebindClass(_constructor) { | ||
@@ -45,2 +48,5 @@ return _constructor; | ||
} | ||
onRebindDynamicValue(_accessor, func) { | ||
return func; | ||
} | ||
onUnbind(_accessor) { | ||
@@ -47,0 +53,0 @@ return true; |
import { Constructor } from '../types'; | ||
import { IPluginContainer } from '../Container/IPluginContainer'; | ||
import { IDynamicValueContext } from '../Container/IDynamicValueContext'; | ||
export interface IPlugin { | ||
@@ -13,6 +14,8 @@ preCreation(container: IPluginContainer): Promise<void>; | ||
onBindInterface<T>(accessor: string, constructor: Constructor<T>): Constructor<T>; | ||
onBindConstant<T>(accessor: string, constant: T): T; | ||
onBindConstant<T>(accessor: string | Constructor<T>, constant: T): T; | ||
onBindDynamicValue<T>(accessor: string | Constructor<T>, func: (context: IDynamicValueContext) => T): (context: IDynamicValueContext) => T; | ||
onRebindClass<T>(constructor: Constructor<T>): Constructor<T>; | ||
onRebindInterface<T>(accessor: string, constructor: Constructor<T>): Constructor<T>; | ||
onRebindConstant<T>(accessor: string, constant: T): T; | ||
onRebindConstant<T>(accessor: string | Constructor<T>, constant: T): T; | ||
onRebindDynamicValue<T>(accessor: string | Constructor<T>, func: (context: IDynamicValueContext) => T): (context: IDynamicValueContext) => T; | ||
onUnbind(accessor: string | Constructor): boolean; | ||
@@ -19,0 +22,0 @@ onBindModule(moduleConstructor: Constructor): Constructor; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IPlugin.js.map |
import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ "use strict"; |
import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Constructor } from '../types'; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare type Constructor<T = any> = new (...args: any[]) => T; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@chalupajs/interface", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Service framework", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249495
141
3110
1