@celljs/core 4.1.0 → 4.2.0
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.
- package/README.md +49 -62
- package/esm/browser/static-module.d.ts +1 -1
- package/esm/common/annotation/aspect.d.ts +2 -1
- package/esm/common/annotation/aspect.js.map +1 -1
- package/esm/common/annotation/autowired-provider.d.ts +0 -2
- package/esm/common/annotation/autowired-provider.js +4 -13
- package/esm/common/annotation/autowired-provider.js.map +1 -1
- package/esm/common/annotation/autowired.d.ts +1 -1
- package/esm/common/annotation/autowired.js +11 -3
- package/esm/common/annotation/autowired.js.map +1 -1
- package/esm/common/annotation/component.d.ts +4 -8
- package/esm/common/annotation/component.js +0 -6
- package/esm/common/annotation/component.js.map +1 -1
- package/esm/common/annotation/constant.d.ts +1 -1
- package/esm/common/annotation/constant.js +6 -3
- package/esm/common/annotation/constant.js.map +1 -1
- package/esm/common/annotation/detached/autowired-provider.js +2 -2
- package/esm/common/annotation/detached/autowired-provider.js.map +1 -1
- package/esm/common/annotation/index.d.ts +0 -6
- package/esm/common/annotation/index.js +0 -6
- package/esm/common/annotation/index.js.map +1 -1
- package/esm/common/annotation/named.d.ts +2 -1
- package/esm/common/annotation/named.js +5 -1
- package/esm/common/annotation/named.js.map +1 -1
- package/esm/common/annotation/optional.d.ts +2 -1
- package/esm/common/annotation/optional.js +5 -1
- package/esm/common/annotation/optional.js.map +1 -1
- package/esm/common/annotation/post-construct.d.ts +2 -1
- package/esm/common/annotation/post-construct.js +5 -1
- package/esm/common/annotation/post-construct.js.map +1 -1
- package/esm/common/annotation/tagged.d.ts +2 -1
- package/esm/common/annotation/tagged.js +6 -1
- package/esm/common/annotation/tagged.js.map +1 -1
- package/esm/common/annotation/value.d.ts +3 -2
- package/esm/common/annotation/value.js +7 -10
- package/esm/common/annotation/value.js.map +1 -1
- package/esm/common/aop/aop-proxy-factory.d.ts +6 -2
- package/esm/common/aop/aop-proxy-factory.js +44 -28
- package/esm/common/aop/aop-proxy-factory.js.map +1 -1
- package/esm/common/aop/class-filter.js +6 -6
- package/esm/common/aop/class-filter.js.map +1 -1
- package/esm/common/application/application-factory.d.ts +1 -1
- package/esm/common/application/application-factory.js +4 -4
- package/esm/common/application/application-factory.js.map +1 -1
- package/esm/common/container/auto-bind.d.ts +7 -3
- package/esm/common/container/auto-bind.js +49 -80
- package/esm/common/container/auto-bind.js.map +1 -1
- package/esm/common/container/container-error.d.ts +21 -0
- package/esm/common/container/container-error.js +22 -0
- package/esm/common/container/container-error.js.map +1 -0
- package/esm/common/container/container-provider.d.ts +5 -4
- package/esm/common/container/container-provider.js +2 -1
- package/esm/common/container/container-provider.js.map +1 -1
- package/esm/common/container/container-util.d.ts +5 -7
- package/esm/common/container/container-util.js +8 -19
- package/esm/common/container/container-util.js.map +1 -1
- package/esm/common/container/container.d.ts +104 -0
- package/esm/common/container/container.js +299 -0
- package/esm/common/container/container.js.map +1 -0
- package/esm/common/container/dynamic-container.d.ts +1 -1
- package/esm/common/container/dynamic-container.js +2 -2
- package/esm/common/container/dynamic-container.js.map +1 -1
- package/esm/common/container/index.d.ts +5 -6
- package/esm/common/container/index.js +5 -3
- package/esm/common/container/index.js.map +1 -1
- package/esm/common/container/injection.d.ts +40 -0
- package/esm/common/container/injection.js +109 -0
- package/esm/common/container/injection.js.map +1 -0
- package/esm/common/container/scope.d.ts +2 -3
- package/esm/common/container/scope.js +2 -3
- package/esm/common/container/scope.js.map +1 -1
- package/esm/common/el/application-expression-engine.d.ts +7 -0
- package/esm/common/{provider/provider-creator.js → el/application-expression-engine.js} +11 -11
- package/esm/common/el/application-expression-engine.js.map +1 -0
- package/esm/common/el/core-context-initializer.d.ts +3 -2
- package/esm/common/el/core-context-initializer.js +10 -8
- package/esm/common/el/core-context-initializer.js.map +1 -1
- package/esm/common/el/expression-compiler.d.ts +5 -4
- package/esm/common/el/expression-compiler.js +7 -6
- package/esm/common/el/expression-compiler.js.map +1 -1
- package/esm/common/el/expression-engine.d.ts +61 -0
- package/esm/common/el/expression-engine.js +459 -0
- package/esm/common/el/expression-engine.js.map +1 -0
- package/esm/common/el/expression-handler.d.ts +1 -2
- package/esm/common/el/expression-handler.js +1 -5
- package/esm/common/el/expression-handler.js.map +1 -1
- package/esm/common/el/expression-protocol.d.ts +3 -5
- package/esm/common/el/expression-protocol.js +0 -1
- package/esm/common/el/expression-protocol.js.map +1 -1
- package/esm/common/el/expression-util.d.ts +9 -8
- package/esm/common/el/expression-util.js +8 -9
- package/esm/common/el/expression-util.js.map +1 -1
- package/esm/common/el/index.d.ts +2 -1
- package/esm/common/el/index.js +2 -1
- package/esm/common/el/index.js.map +1 -1
- package/esm/common/provider/index.d.ts +0 -1
- package/esm/common/provider/index.js +0 -1
- package/esm/common/provider/index.js.map +1 -1
- package/esm/common/provider/provider-protocol.d.ts +5 -9
- package/esm/common/provider/provider-protocol.js +0 -1
- package/esm/common/provider/provider-protocol.js.map +1 -1
- package/esm/common/provider/provider-util.d.ts +1 -1
- package/esm/common/provider/provider-util.js +2 -2
- package/esm/common/provider/provider-util.js.map +1 -1
- package/esm/common/provider/provider.d.ts +7 -6
- package/esm/common/provider/provider.js +15 -26
- package/esm/common/provider/provider.js.map +1 -1
- package/esm/common/static-module.d.ts +1 -1
- package/esm/common/static-module.js +1 -1
- package/esm/common/static-module.js.map +1 -1
- package/esm/common/test/mock-logger.js +2 -13
- package/esm/common/test/mock-logger.js.map +1 -1
- package/esm/common/test/test-module.d.ts +1 -1
- package/esm/common/test/test-module.js +1 -1
- package/esm/common/test/test-module.js.map +1 -1
- package/esm/common/utils/annotation-util.js +2 -1
- package/esm/common/utils/annotation-util.js.map +1 -1
- package/esm/common/utils/proxy-util.d.ts +5 -2
- package/esm/common/utils/proxy-util.js +10 -28
- package/esm/common/utils/proxy-util.js.map +1 -1
- package/esm/node/static-module.d.ts +1 -1
- package/lib/browser/static-module.d.ts +1 -1
- package/lib/common/annotation/aspect.d.ts +2 -1
- package/lib/common/annotation/aspect.d.ts.map +1 -1
- package/lib/common/annotation/aspect.js.map +1 -1
- package/lib/common/annotation/autowired-provider.d.ts +0 -2
- package/lib/common/annotation/autowired-provider.d.ts.map +1 -1
- package/lib/common/annotation/autowired-provider.js +4 -14
- package/lib/common/annotation/autowired-provider.js.map +1 -1
- package/lib/common/annotation/autowired.d.ts +1 -1
- package/lib/common/annotation/autowired.d.ts.map +1 -1
- package/lib/common/annotation/autowired.js +11 -3
- package/lib/common/annotation/autowired.js.map +1 -1
- package/lib/common/annotation/component.d.ts +4 -8
- package/lib/common/annotation/component.d.ts.map +1 -1
- package/lib/common/annotation/component.js +0 -6
- package/lib/common/annotation/component.js.map +1 -1
- package/lib/common/annotation/constant.d.ts +1 -1
- package/lib/common/annotation/constant.d.ts.map +1 -1
- package/lib/common/annotation/constant.js +6 -3
- package/lib/common/annotation/constant.js.map +1 -1
- package/lib/common/annotation/detached/autowired-provider.js +2 -2
- package/lib/common/annotation/detached/autowired-provider.js.map +1 -1
- package/lib/common/annotation/index.d.ts +0 -6
- package/lib/common/annotation/index.d.ts.map +1 -1
- package/lib/common/annotation/index.js +0 -6
- package/lib/common/annotation/index.js.map +1 -1
- package/lib/common/annotation/named.d.ts +2 -1
- package/lib/common/annotation/named.d.ts.map +1 -1
- package/lib/common/annotation/named.js +6 -2
- package/lib/common/annotation/named.js.map +1 -1
- package/lib/common/annotation/optional.d.ts +2 -1
- package/lib/common/annotation/optional.d.ts.map +1 -1
- package/lib/common/annotation/optional.js +6 -2
- package/lib/common/annotation/optional.js.map +1 -1
- package/lib/common/annotation/post-construct.d.ts +2 -1
- package/lib/common/annotation/post-construct.d.ts.map +1 -1
- package/lib/common/annotation/post-construct.js +6 -2
- package/lib/common/annotation/post-construct.js.map +1 -1
- package/lib/common/annotation/tagged.d.ts +2 -1
- package/lib/common/annotation/tagged.d.ts.map +1 -1
- package/lib/common/annotation/tagged.js +7 -2
- package/lib/common/annotation/tagged.js.map +1 -1
- package/lib/common/annotation/value.d.ts +3 -2
- package/lib/common/annotation/value.d.ts.map +1 -1
- package/lib/common/annotation/value.js +7 -10
- package/lib/common/annotation/value.js.map +1 -1
- package/lib/common/aop/aop-proxy-factory.d.ts +6 -2
- package/lib/common/aop/aop-proxy-factory.d.ts.map +1 -1
- package/lib/common/aop/aop-proxy-factory.js +45 -29
- package/lib/common/aop/aop-proxy-factory.js.map +1 -1
- package/lib/common/aop/class-filter.js +7 -7
- package/lib/common/aop/class-filter.js.map +1 -1
- package/lib/common/application/application-factory.d.ts +1 -1
- package/lib/common/application/application-factory.d.ts.map +1 -1
- package/lib/common/application/application-factory.js +4 -4
- package/lib/common/application/application-factory.js.map +1 -1
- package/lib/common/container/assembly.spec.js +11 -11
- package/lib/common/container/assembly.spec.js.map +1 -1
- package/lib/common/container/auto-bind.d.ts +7 -3
- package/lib/common/container/auto-bind.d.ts.map +1 -1
- package/lib/common/container/auto-bind.js +49 -81
- package/lib/common/container/auto-bind.js.map +1 -1
- package/lib/common/container/container-error.d.ts +22 -0
- package/lib/common/container/container-error.d.ts.map +1 -0
- package/lib/common/container/container-error.js +26 -0
- package/lib/common/container/container-error.js.map +1 -0
- package/lib/common/container/container-provider.d.ts +5 -4
- package/lib/common/container/container-provider.d.ts.map +1 -1
- package/lib/common/container/container-provider.js +3 -2
- package/lib/common/container/container-provider.js.map +1 -1
- package/lib/common/container/container-util.d.ts +5 -7
- package/lib/common/container/container-util.d.ts.map +1 -1
- package/lib/common/container/container-util.js +8 -19
- package/lib/common/container/container-util.js.map +1 -1
- package/lib/common/container/container.d.ts +105 -0
- package/lib/common/container/container.d.ts.map +1 -0
- package/lib/common/container/container.js +305 -0
- package/lib/common/container/container.js.map +1 -0
- package/lib/common/container/container.spec.d.ts +2 -0
- package/lib/common/container/container.spec.d.ts.map +1 -0
- package/lib/common/container/container.spec.js +334 -0
- package/lib/common/container/container.spec.js.map +1 -0
- package/lib/common/container/dynamic-container.d.ts +1 -1
- package/lib/common/container/dynamic-container.d.ts.map +1 -1
- package/lib/common/container/dynamic-container.js +3 -3
- package/lib/common/container/dynamic-container.js.map +1 -1
- package/lib/common/container/index.d.ts +5 -6
- package/lib/common/container/index.d.ts.map +1 -1
- package/lib/common/container/index.js +5 -3
- package/lib/common/container/index.js.map +1 -1
- package/lib/common/container/injection.d.ts +41 -0
- package/lib/common/container/injection.d.ts.map +1 -0
- package/lib/common/container/injection.js +112 -0
- package/lib/common/container/injection.js.map +1 -0
- package/lib/common/container/scope.d.ts +2 -3
- package/lib/common/container/scope.d.ts.map +1 -1
- package/lib/common/container/scope.js +2 -3
- package/lib/common/container/scope.js.map +1 -1
- package/lib/common/el/application-expression-engine.d.ts +8 -0
- package/lib/common/el/application-expression-engine.d.ts.map +1 -0
- package/lib/common/el/application-expression-engine.js +22 -0
- package/lib/common/el/application-expression-engine.js.map +1 -0
- package/lib/common/el/core-context-initializer.d.ts +3 -2
- package/lib/common/el/core-context-initializer.d.ts.map +1 -1
- package/lib/common/el/core-context-initializer.js +9 -7
- package/lib/common/el/core-context-initializer.js.map +1 -1
- package/lib/common/el/expression-compiler.d.ts +5 -4
- package/lib/common/el/expression-compiler.d.ts.map +1 -1
- package/lib/common/el/expression-compiler.js +6 -5
- package/lib/common/el/expression-compiler.js.map +1 -1
- package/lib/common/el/expression-engine.d.ts +62 -0
- package/lib/common/el/expression-engine.d.ts.map +1 -0
- package/lib/common/el/expression-engine.js +465 -0
- package/lib/common/el/expression-engine.js.map +1 -0
- package/lib/common/el/expression-engine.spec.d.ts +2 -0
- package/lib/common/el/expression-engine.spec.d.ts.map +1 -0
- package/lib/common/el/expression-engine.spec.js +100 -0
- package/lib/common/el/expression-engine.spec.js.map +1 -0
- package/lib/common/el/expression-handler.d.ts +1 -2
- package/lib/common/el/expression-handler.d.ts.map +1 -1
- package/lib/common/el/expression-handler.js +0 -4
- package/lib/common/el/expression-handler.js.map +1 -1
- package/lib/common/el/expression-handler.spec.js +5 -6
- package/lib/common/el/expression-handler.spec.js.map +1 -1
- package/lib/common/el/expression-protocol.d.ts +3 -5
- package/lib/common/el/expression-protocol.d.ts.map +1 -1
- package/lib/common/el/expression-protocol.js +1 -2
- package/lib/common/el/expression-protocol.js.map +1 -1
- package/lib/common/el/expression-util.d.ts +9 -8
- package/lib/common/el/expression-util.d.ts.map +1 -1
- package/lib/common/el/expression-util.js +8 -9
- package/lib/common/el/expression-util.js.map +1 -1
- package/lib/common/el/index.d.ts +2 -1
- package/lib/common/el/index.d.ts.map +1 -1
- package/lib/common/el/index.js +2 -1
- package/lib/common/el/index.js.map +1 -1
- package/lib/common/el/value-and-el.spec.js +2 -2
- package/lib/common/el/value-and-el.spec.js.map +1 -1
- package/lib/common/provider/index.d.ts +0 -1
- package/lib/common/provider/index.d.ts.map +1 -1
- package/lib/common/provider/index.js +0 -1
- package/lib/common/provider/index.js.map +1 -1
- package/lib/common/provider/provider-protocol.d.ts +5 -9
- package/lib/common/provider/provider-protocol.d.ts.map +1 -1
- package/lib/common/provider/provider-protocol.js +1 -2
- package/lib/common/provider/provider-protocol.js.map +1 -1
- package/lib/common/provider/provider-util.d.ts +1 -1
- package/lib/common/provider/provider-util.d.ts.map +1 -1
- package/lib/common/provider/provider-util.js +2 -2
- package/lib/common/provider/provider-util.js.map +1 -1
- package/lib/common/provider/provider.d.ts +7 -6
- package/lib/common/provider/provider.d.ts.map +1 -1
- package/lib/common/provider/provider.js +16 -26
- package/lib/common/provider/provider.js.map +1 -1
- package/lib/common/static-module.d.ts +1 -1
- package/lib/common/static-module.js +2 -2
- package/lib/common/static-module.js.map +1 -1
- package/lib/common/test/mock-logger.d.ts.map +1 -1
- package/lib/common/test/mock-logger.js +2 -12
- package/lib/common/test/mock-logger.js.map +1 -1
- package/lib/common/test/test-module.d.ts +1 -1
- package/lib/common/test/test-module.d.ts.map +1 -1
- package/lib/common/test/test-module.js +2 -2
- package/lib/common/test/test-module.js.map +1 -1
- package/lib/common/utils/annotation-util.js +2 -1
- package/lib/common/utils/annotation-util.js.map +1 -1
- package/lib/common/utils/proxy-util.d.ts +5 -2
- package/lib/common/utils/proxy-util.d.ts.map +1 -1
- package/lib/common/utils/proxy-util.js +12 -30
- package/lib/common/utils/proxy-util.js.map +1 -1
- package/lib/node/static-module.d.ts +1 -1
- package/package.json +4 -6
- package/src/common/annotation/aspect.ts +2 -1
- package/src/common/annotation/autowired-provider.ts +4 -17
- package/src/common/annotation/autowired.ts +14 -6
- package/src/common/annotation/component.ts +6 -26
- package/src/common/annotation/constant.ts +10 -7
- package/src/common/annotation/detached/autowired-provider.ts +2 -2
- package/src/common/annotation/index.ts +0 -6
- package/src/common/annotation/named.ts +7 -1
- package/src/common/annotation/optional.ts +6 -1
- package/src/common/annotation/post-construct.ts +6 -1
- package/src/common/annotation/tagged.ts +8 -1
- package/src/common/annotation/value.ts +9 -11
- package/src/common/aop/aop-proxy-factory.ts +52 -30
- package/src/common/aop/class-filter.ts +6 -6
- package/src/common/application/application-factory.ts +4 -5
- package/src/common/container/assembly.spec.ts +7 -12
- package/src/common/container/auto-bind.ts +54 -85
- package/src/common/container/container-error.ts +31 -0
- package/src/common/container/container-provider.ts +9 -7
- package/src/common/container/container-util.ts +8 -19
- package/src/common/container/container.spec.ts +262 -0
- package/src/common/container/container.ts +363 -0
- package/src/common/container/dynamic-container.ts +2 -2
- package/src/common/container/index.ts +5 -7
- package/src/common/container/injection.ts +135 -0
- package/src/common/container/scope.ts +2 -1
- package/src/common/el/application-expression-engine.ts +9 -0
- package/src/common/el/core-context-initializer.ts +9 -8
- package/src/common/el/expression-compiler.ts +7 -6
- package/src/common/el/expression-engine.spec.ts +107 -0
- package/src/common/el/expression-engine.ts +487 -0
- package/src/common/el/expression-handler.spec.ts +6 -7
- package/src/common/el/expression-handler.ts +2 -5
- package/src/common/el/expression-protocol.ts +4 -8
- package/src/common/el/expression-util.ts +12 -13
- package/src/common/el/index.ts +3 -2
- package/src/common/el/value-and-el.spec.ts +2 -2
- package/src/common/provider/index.ts +0 -2
- package/src/common/provider/provider-protocol.ts +5 -11
- package/src/common/provider/provider-util.ts +3 -3
- package/src/common/provider/provider.ts +17 -29
- package/src/common/static-module.ts +1 -1
- package/src/common/test/mock-logger.ts +0 -2
- package/src/common/test/test-module.ts +1 -1
- package/src/common/utils/annotation-util.ts +2 -2
- package/src/common/utils/proxy-util.ts +8 -28
- package/esm/common/annotation/decorate.d.ts +0 -1
- package/esm/common/annotation/decorate.js +0 -2
- package/esm/common/annotation/decorate.js.map +0 -1
- package/esm/common/annotation/inject.d.ts +0 -1
- package/esm/common/annotation/inject.js +0 -2
- package/esm/common/annotation/inject.js.map +0 -1
- package/esm/common/annotation/injectable.d.ts +0 -1
- package/esm/common/annotation/injectable.js +0 -2
- package/esm/common/annotation/injectable.js.map +0 -1
- package/esm/common/annotation/pre-destroy.d.ts +0 -1
- package/esm/common/annotation/pre-destroy.js +0 -2
- package/esm/common/annotation/pre-destroy.js.map +0 -1
- package/esm/common/annotation/target-name.d.ts +0 -1
- package/esm/common/annotation/target-name.js +0 -2
- package/esm/common/annotation/target-name.js.map +0 -1
- package/esm/common/annotation/unmanaged.d.ts +0 -1
- package/esm/common/annotation/unmanaged.js +0 -2
- package/esm/common/annotation/unmanaged.js.map +0 -1
- package/esm/common/container/container-factory.d.ts +0 -4
- package/esm/common/container/container-factory.js +0 -9
- package/esm/common/container/container-factory.js.map +0 -1
- package/esm/common/el/jexl-engine-provider.d.ts +0 -5
- package/esm/common/el/jexl-engine-provider.js +0 -22
- package/esm/common/el/jexl-engine-provider.js.map +0 -1
- package/esm/common/provider/provider-creator.d.ts +0 -6
- package/esm/common/provider/provider-creator.js.map +0 -1
- package/lib/common/annotation/decorate.d.ts +0 -2
- package/lib/common/annotation/decorate.d.ts.map +0 -1
- package/lib/common/annotation/decorate.js +0 -6
- package/lib/common/annotation/decorate.js.map +0 -1
- package/lib/common/annotation/inject.d.ts +0 -2
- package/lib/common/annotation/inject.d.ts.map +0 -1
- package/lib/common/annotation/inject.js +0 -6
- package/lib/common/annotation/inject.js.map +0 -1
- package/lib/common/annotation/injectable.d.ts +0 -2
- package/lib/common/annotation/injectable.d.ts.map +0 -1
- package/lib/common/annotation/injectable.js +0 -6
- package/lib/common/annotation/injectable.js.map +0 -1
- package/lib/common/annotation/pre-destroy.d.ts +0 -2
- package/lib/common/annotation/pre-destroy.d.ts.map +0 -1
- package/lib/common/annotation/pre-destroy.js +0 -6
- package/lib/common/annotation/pre-destroy.js.map +0 -1
- package/lib/common/annotation/target-name.d.ts +0 -2
- package/lib/common/annotation/target-name.d.ts.map +0 -1
- package/lib/common/annotation/target-name.js +0 -6
- package/lib/common/annotation/target-name.js.map +0 -1
- package/lib/common/annotation/unmanaged.d.ts +0 -2
- package/lib/common/annotation/unmanaged.d.ts.map +0 -1
- package/lib/common/annotation/unmanaged.js +0 -6
- package/lib/common/annotation/unmanaged.js.map +0 -1
- package/lib/common/container/container-factory.d.ts +0 -5
- package/lib/common/container/container-factory.d.ts.map +0 -1
- package/lib/common/container/container-factory.js +0 -13
- package/lib/common/container/container-factory.js.map +0 -1
- package/lib/common/el/jexl-engine-provider.d.ts +0 -6
- package/lib/common/el/jexl-engine-provider.d.ts.map +0 -1
- package/lib/common/el/jexl-engine-provider.js +0 -25
- package/lib/common/el/jexl-engine-provider.js.map +0 -1
- package/lib/common/provider/provider-creator.d.ts +0 -7
- package/lib/common/provider/provider-creator.d.ts.map +0 -1
- package/lib/common/provider/provider-creator.js +0 -22
- package/lib/common/provider/provider-creator.js.map +0 -1
- package/src/common/annotation/decorate.ts +0 -1
- package/src/common/annotation/inject.ts +0 -1
- package/src/common/annotation/injectable.ts +0 -1
- package/src/common/annotation/pre-destroy.ts +0 -1
- package/src/common/annotation/target-name.ts +0 -1
- package/src/common/annotation/unmanaged.ts +0 -1
- package/src/common/container/container-factory.ts +0 -9
- package/src/common/el/jexl-engine-provider.ts +0 -18
- package/src/common/provider/provider-creator.ts +0 -12
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { ComponentId } from '../
|
|
2
|
-
import { Container } from '../container';
|
|
1
|
+
import type { ComponentId } from '../container/container';
|
|
3
2
|
import { Prioritizeable } from '../utils/prioritizeable';
|
|
4
3
|
|
|
5
|
-
export const ProviderCreator = Symbol('ProviderCreator');
|
|
6
4
|
export const ComponentFilter = Symbol('ComponentFilter');
|
|
7
5
|
export const ComponentFilterRegistry = Symbol('ComponentFilterRegistry');
|
|
8
6
|
export const ComponentFilterContribution = Symbol('ComponentFilterContribution');
|
|
9
7
|
|
|
8
|
+
/** The components of an identifier, created when first asked for; what `@AutowiredProvider` injects. */
|
|
10
9
|
export interface Provider<T extends object> {
|
|
11
|
-
get(
|
|
12
|
-
sortSync(getPriority?: Prioritizeable.GetPrioritySync<T
|
|
13
|
-
sort(getPriority?: Prioritizeable.GetPriority<T>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ProviderCreator<T extends object> {
|
|
17
|
-
create(id: ComponentId, container: Container): Provider<T>;
|
|
10
|
+
get(): T[];
|
|
11
|
+
sortSync(getPriority?: Prioritizeable.GetPrioritySync<T>): T[];
|
|
12
|
+
sort(getPriority?: Prioritizeable.GetPriority<T>): Promise<T[]>;
|
|
18
13
|
}
|
|
19
14
|
|
|
20
15
|
/**
|
|
@@ -23,7 +18,6 @@ export interface ProviderCreator<T extends object> {
|
|
|
23
18
|
*/
|
|
24
19
|
export type ComponentFilter<T extends Object> = (toTest: T) => boolean;
|
|
25
20
|
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
21
|
export type ComponentType = ComponentId;
|
|
28
22
|
|
|
29
23
|
export interface ComponentFilterRegistry {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PROVIDER, ID_KEY } from '../annotation/autowired-provider';
|
|
2
|
-
import { ComponentId } from '../
|
|
3
|
-
import { ContainerUtil } from '../container';
|
|
2
|
+
import type { ComponentId } from '../container/container';
|
|
3
|
+
import { ContainerUtil } from '../container/container-util';
|
|
4
4
|
import { Provider } from './provider-protocol';
|
|
5
5
|
|
|
6
6
|
export namespace ProviderUtil {
|
|
7
7
|
export function get<T extends Object>(componentId: ComponentId<T>): Provider<T> {
|
|
8
|
-
return ContainerUtil.
|
|
8
|
+
return ContainerUtil.get(PROVIDER, { tags: { [ID_KEY]: componentId } });
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentId } from '../
|
|
1
|
+
import type { Binding, ComponentId, Container } from '../container/container';
|
|
2
2
|
import { Provider, ComponentFilterRegistry } from './provider-protocol';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Prioritizeable } from '../utils/prioritizeable';
|
|
4
|
+
import { ID_KEY, PROVIDER } from '../annotation/autowired-provider';
|
|
5
5
|
|
|
6
6
|
const DEFAULT_GET_PRIORITY: Prioritizeable.GetPrioritySync<any> = value => {
|
|
7
7
|
if (value) {
|
|
@@ -23,41 +23,29 @@ export class ContainerBasedProvider<T extends object> implements Provider<T> {
|
|
|
23
23
|
protected readonly container: Container
|
|
24
24
|
) { }
|
|
25
25
|
|
|
26
|
-
get(
|
|
26
|
+
get(): T[] {
|
|
27
27
|
if (this.components === undefined) {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
while (currentContainer !== null) {
|
|
33
|
-
if (currentContainer.isBound(this.componentId)) {
|
|
34
|
-
try {
|
|
35
|
-
currentComponents.push(...currentContainer.getAll(this.componentId));
|
|
36
|
-
} catch (error) {
|
|
37
|
-
console.error(error);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (filterRegistry === undefined && currentContainer.isBound(ComponentFilterRegistry)) {
|
|
41
|
-
filterRegistry = currentContainer.get(ComponentFilterRegistry);
|
|
42
|
-
}
|
|
43
|
-
// eslint-disable-next-line no-null/no-null
|
|
44
|
-
currentContainer = recursive === true ? currentContainer.parent : null;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
this.components = filterRegistry ? filterRegistry.applyFilters(currentComponents, this.componentId) : currentComponents;
|
|
48
|
-
|
|
28
|
+
const components = this.container.isBound(this.componentId) ? this.container.getAll<T>(this.componentId) : [];
|
|
29
|
+
const filterRegistry = this.container.isBound(ComponentFilterRegistry)
|
|
30
|
+
? this.container.get<ComponentFilterRegistry>(ComponentFilterRegistry) : undefined;
|
|
31
|
+
this.components = filterRegistry ? filterRegistry.applyFilters(components, this.componentId) : components;
|
|
49
32
|
}
|
|
50
33
|
return this.components;
|
|
51
34
|
}
|
|
52
35
|
|
|
53
|
-
sortSync(getPriority: Prioritizeable.GetPrioritySync<T> = DEFAULT_GET_PRIORITY
|
|
54
|
-
this.components = Prioritizeable.prioritizeAllSync<T>(this.get(
|
|
36
|
+
sortSync(getPriority: Prioritizeable.GetPrioritySync<T> = DEFAULT_GET_PRIORITY): T[] {
|
|
37
|
+
this.components = Prioritizeable.prioritizeAllSync<T>(this.get(), getPriority).map(c => c.value);
|
|
55
38
|
return this.components;
|
|
56
39
|
}
|
|
57
40
|
|
|
58
|
-
async sort(getPriority: Prioritizeable.GetPriority<T> = DEFAULT_GET_PRIORITY
|
|
59
|
-
const result = await Prioritizeable.prioritizeAll<T>(this.get(
|
|
41
|
+
async sort(getPriority: Prioritizeable.GetPriority<T> = DEFAULT_GET_PRIORITY): Promise<T[]> {
|
|
42
|
+
const result = await Prioritizeable.prioritizeAll<T>(this.get(), getPriority);
|
|
60
43
|
this.components = result.map<T>(c => c.value);
|
|
61
44
|
return this.components;
|
|
62
45
|
}
|
|
63
46
|
}
|
|
47
|
+
|
|
48
|
+
/** `@AutowiredProvider(id)` is an injection of `PROVIDER` tagged with the id: a provider of its components. */
|
|
49
|
+
export function bindAutowiredProvider(bind: <B>(id: ComponentId<B>) => Binding<B>): void {
|
|
50
|
+
bind(PROVIDER).toDynamicValue(ctx => new ContainerBasedProvider(ctx.target.tags![ID_KEY] as ComponentId<object>, ctx.container));
|
|
51
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index';
|
|
2
2
|
import { bindValue } from './annotation/value';
|
|
3
|
-
import { bindAutowiredProvider } from './
|
|
3
|
+
import { bindAutowiredProvider } from './provider/provider';
|
|
4
4
|
import { autoBind } from './container/auto-bind';
|
|
5
5
|
|
|
6
6
|
export default autoBind(bind => {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Injectable } from '../annotation';
|
|
2
1
|
import { Logger, LogLevel, LogMessage } from '../logger/logger-protocol';
|
|
3
2
|
import { Emitter } from '../utils';
|
|
4
3
|
|
|
5
|
-
@Injectable()
|
|
6
4
|
export class MockLogger implements Logger {
|
|
7
5
|
level: LogLevel = 'info';
|
|
8
6
|
protected readonly onLogEmitter = new Emitter<LogMessage>();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bindAutowiredProvider } from '../annotation/autowired-provider';
|
|
2
1
|
import { bindValue } from '../annotation/value';
|
|
2
|
+
import { bindAutowiredProvider } from '../provider/provider';
|
|
3
3
|
import { autoBind } from '../container';
|
|
4
4
|
import { Logger } from '../logger';
|
|
5
5
|
import { MockLogger } from './mock-logger';
|
|
@@ -12,10 +12,10 @@ export namespace AnnotationUtil {
|
|
|
12
12
|
|
|
13
13
|
export function getType(target: any, targetKey: string | symbol, index?: number) {
|
|
14
14
|
if (index !== undefined) {
|
|
15
|
-
return Reflect.getMetadata('design:paramtypes', target, targetKey)[index];
|
|
15
|
+
return Reflect.getMetadata('design:paramtypes', target, targetKey)?.[index];
|
|
16
16
|
} else {
|
|
17
17
|
return Reflect.getMetadata('design:type', target, targetKey);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
}
|
|
21
|
+
}
|
|
@@ -1,36 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/** What a proxy of a component (AOP) answers with the object it wraps. */
|
|
2
|
+
export const PROXY_TARGET = Symbol.for('@celljs/core/proxy-target');
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
/** The object behind a component proxy, or the object itself. */
|
|
5
|
+
export function getTarget(obj: any): any {
|
|
6
|
+
return obj?.[PROXY_TARGET] ?? obj;
|
|
5
7
|
}
|
|
6
8
|
|
|
9
|
+
/** The class of the object behind a component proxy, or of the object itself. */
|
|
7
10
|
export function getTargetClass(obj: any): any {
|
|
8
|
-
|
|
9
|
-
resolveMode = true;
|
|
10
|
-
const target = obj.target;
|
|
11
|
-
return target ? target.constructor : obj.constructor;
|
|
12
|
-
|
|
13
|
-
} finally {
|
|
14
|
-
resolveMode = false;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function getTarget(obj: any): any {
|
|
19
|
-
try {
|
|
20
|
-
resolveMode = true;
|
|
21
|
-
const target = obj.target;
|
|
22
|
-
return target || obj;
|
|
23
|
-
|
|
24
|
-
} finally {
|
|
25
|
-
resolveMode = false;
|
|
26
|
-
}
|
|
11
|
+
return getTarget(obj)?.constructor;
|
|
27
12
|
}
|
|
28
13
|
|
|
29
14
|
export function isProxy(obj: any): boolean {
|
|
30
|
-
|
|
31
|
-
resolveMode = true;
|
|
32
|
-
return !!obj.target;
|
|
33
|
-
} finally {
|
|
34
|
-
resolveMode = false;
|
|
35
|
-
}
|
|
15
|
+
return obj?.[PROXY_TARGET] !== undefined;
|
|
36
16
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { decorate } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorate.js","sourceRoot":"","sources":["../../../src/common/annotation/decorate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { inject as Inject } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inject.js","sourceRoot":"","sources":["../../../src/common/annotation/inject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { injectable as Injectable } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"injectable.js","sourceRoot":"","sources":["../../../src/common/annotation/injectable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { preDestroy as PreDestroy } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pre-destroy.js","sourceRoot":"","sources":["../../../src/common/annotation/pre-destroy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { targetName as TargetName } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"target-name.js","sourceRoot":"","sources":["../../../src/common/annotation/target-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { unmanaged as Unmanaged } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unmanaged.js","sourceRoot":"","sources":["../../../src/common/annotation/unmanaged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Container } from 'inversify';
|
|
2
|
-
export class ContainerFactory {
|
|
3
|
-
static create(...modules) {
|
|
4
|
-
const container = new Container({ skipBaseClassChecks: true });
|
|
5
|
-
container.load(...modules);
|
|
6
|
-
return container;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=container-factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container-factory.js","sourceRoot":"","sources":["../../../src/common/container/container-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA+B,MAAM,WAAW,CAAC;AAEnE,MAAM,OAAO,gBAAgB;IACzB,MAAM,CAAC,MAAM,CAAC,GAAG,OAA0B;QACvC,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC;QAC/D,SAAS,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;QAC3B,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { Component } from '../annotation/index.js';
|
|
8
|
-
import { JexlEngineProvider } from './expression-protocol.js';
|
|
9
|
-
import { Jexl } from 'jexl';
|
|
10
|
-
let JexlEngineProviderImpl = class JexlEngineProviderImpl {
|
|
11
|
-
provide() {
|
|
12
|
-
if (!this.jexlEngine) {
|
|
13
|
-
this.jexlEngine = new Jexl();
|
|
14
|
-
}
|
|
15
|
-
return this.jexlEngine;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
JexlEngineProviderImpl = __decorate([
|
|
19
|
-
Component(JexlEngineProvider)
|
|
20
|
-
], JexlEngineProviderImpl);
|
|
21
|
-
export { JexlEngineProviderImpl };
|
|
22
|
-
//# sourceMappingURL=jexl-engine-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jexl-engine-provider.js","sourceRoot":"","sources":["../../../src/common/el/jexl-engine-provider.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGrB,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAI/B,OAAO;QAEH,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC;QACjC,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CAEJ,CAAA;AAZY,sBAAsB;IADlC,SAAS,CAAC,kBAAkB,CAAC;GACjB,sBAAsB,CAYlC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ComponentId } from '../annotation/component.js';
|
|
2
|
-
import { Provider, ProviderCreator } from './provider-protocol.js';
|
|
3
|
-
import { Container } from '../container/index.js';
|
|
4
|
-
export declare class ProviderCreatorImpl<T extends Object> implements ProviderCreator<T> {
|
|
5
|
-
create(id: ComponentId, container: Container): Provider<T>;
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider-creator.js","sourceRoot":"","sources":["../../../src/common/provider/provider-creator.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAY,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAG7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,MAAM,CAAC,EAAe,EAAE,SAAoB;QACxC,OAAO,IAAI,sBAAsB,CAAC,EAAE,EAAE,SAAS,CAAgB,CAAC;IACpE,CAAC;CACJ,CAAA;AAJY,mBAAmB;IAD/B,SAAS,CAAC,eAAe,CAAC;GACd,mBAAmB,CAI/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorate.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/decorate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.decorate = void 0;
|
|
4
|
-
var inversify_1 = require("inversify");
|
|
5
|
-
Object.defineProperty(exports, "decorate", { enumerable: true, get: function () { return inversify_1.decorate; } });
|
|
6
|
-
//# sourceMappingURL=decorate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorate.js","sourceRoot":"","sources":["../../../src/common/annotation/decorate.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,qGAAA,QAAQ,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inject.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/inject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Inject = void 0;
|
|
4
|
-
var inversify_1 = require("inversify");
|
|
5
|
-
Object.defineProperty(exports, "Inject", { enumerable: true, get: function () { return inversify_1.inject; } });
|
|
6
|
-
//# sourceMappingURL=inject.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inject.js","sourceRoot":"","sources":["../../../src/common/annotation/inject.ts"],"names":[],"mappings":";;;AAAA,uCAA6C;AAApC,mGAAA,MAAM,OAAU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"injectable.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/injectable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Injectable = void 0;
|
|
4
|
-
var inversify_1 = require("inversify");
|
|
5
|
-
Object.defineProperty(exports, "Injectable", { enumerable: true, get: function () { return inversify_1.injectable; } });
|
|
6
|
-
//# sourceMappingURL=injectable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"injectable.js","sourceRoot":"","sources":["../../../src/common/annotation/injectable.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAA5C,uGAAA,UAAU,OAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pre-destroy.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/pre-destroy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PreDestroy = void 0;
|
|
4
|
-
var inversify_1 = require("inversify");
|
|
5
|
-
Object.defineProperty(exports, "PreDestroy", { enumerable: true, get: function () { return inversify_1.preDestroy; } });
|
|
6
|
-
//# sourceMappingURL=pre-destroy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pre-destroy.js","sourceRoot":"","sources":["../../../src/common/annotation/pre-destroy.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAA5C,uGAAA,UAAU,OAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"target-name.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/target-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TargetName = void 0;
|
|
4
|
-
var inversify_1 = require("inversify");
|
|
5
|
-
Object.defineProperty(exports, "TargetName", { enumerable: true, get: function () { return inversify_1.targetName; } });
|
|
6
|
-
//# sourceMappingURL=target-name.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"target-name.js","sourceRoot":"","sources":["../../../src/common/annotation/target-name.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAA5C,uGAAA,UAAU,OAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unmanaged.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/unmanaged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Unmanaged = void 0;
|
|
4
|
-
var inversify_1 = require("inversify");
|
|
5
|
-
Object.defineProperty(exports, "Unmanaged", { enumerable: true, get: function () { return inversify_1.unmanaged; } });
|
|
6
|
-
//# sourceMappingURL=unmanaged.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unmanaged.js","sourceRoot":"","sources":["../../../src/common/annotation/unmanaged.ts"],"names":[],"mappings":";;;AAAA,uCAAmD;AAA1C,sGAAA,SAAS,OAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container-factory.d.ts","sourceRoot":"","sources":["../../../src/common/container/container-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEnE,qBAAa,gBAAgB;IACzB,MAAM,CAAC,MAAM,CAAC,GAAG,OAAO,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC,SAAS,CAIjE;CACJ"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContainerFactory = void 0;
|
|
4
|
-
const inversify_1 = require("inversify");
|
|
5
|
-
class ContainerFactory {
|
|
6
|
-
static create(...modules) {
|
|
7
|
-
const container = new inversify_1.Container({ skipBaseClassChecks: true });
|
|
8
|
-
container.load(...modules);
|
|
9
|
-
return container;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.ContainerFactory = ContainerFactory;
|
|
13
|
-
//# sourceMappingURL=container-factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container-factory.js","sourceRoot":"","sources":["../../../src/common/container/container-factory.ts"],"names":[],"mappings":";;;AAAA,yCAAmE;AAEnE;IACI,MAAM,CAAC,MAAM,CAAC,GAAG,OAA0B;QACvC,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC;QAC/D,SAAS,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;QAC3B,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jexl-engine-provider.d.ts","sourceRoot":"","sources":["../../../src/common/el/jexl-engine-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,qBACa,sBAAuB,YAAW,kBAAkB,CAAC,GAAG,CAAC;IAElE,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAE1B,OAAO,IAAI,GAAG,CAMb;CAEJ"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.JexlEngineProviderImpl = void 0;
|
|
10
|
-
const annotation_1 = require("../annotation");
|
|
11
|
-
const expression_protocol_1 = require("./expression-protocol");
|
|
12
|
-
const jexl_1 = require("jexl");
|
|
13
|
-
let JexlEngineProviderImpl = class JexlEngineProviderImpl {
|
|
14
|
-
provide() {
|
|
15
|
-
if (!this.jexlEngine) {
|
|
16
|
-
this.jexlEngine = new jexl_1.Jexl();
|
|
17
|
-
}
|
|
18
|
-
return this.jexlEngine;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.JexlEngineProviderImpl = JexlEngineProviderImpl;
|
|
22
|
-
exports.JexlEngineProviderImpl = JexlEngineProviderImpl = __decorate([
|
|
23
|
-
(0, annotation_1.Component)(expression_protocol_1.JexlEngineProvider)
|
|
24
|
-
], JexlEngineProviderImpl);
|
|
25
|
-
//# sourceMappingURL=jexl-engine-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jexl-engine-provider.js","sourceRoot":"","sources":["../../../src/common/el/jexl-engine-provider.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAA0C;AAC1C,+DAA2D;AAC3D,+BAA4B;AAGrB,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAI/B,OAAO;QAEH,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,IAAI,CAAC,UAAU,GAAG,IAAI,WAAI,EAAE,CAAC;QACjC,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CAEJ,CAAA;;iCAZY,sBAAsB;IADlC,IAAA,sBAAS,EAAC,wCAAkB,CAAC;GACjB,sBAAsB,CAYlC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ComponentId } from '../annotation/component';
|
|
2
|
-
import { Provider, ProviderCreator } from './provider-protocol';
|
|
3
|
-
import { Container } from '../container';
|
|
4
|
-
export declare class ProviderCreatorImpl<T extends Object> implements ProviderCreator<T> {
|
|
5
|
-
create(id: ComponentId, container: Container): Provider<T>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=provider-creator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider-creator.d.ts","sourceRoot":"","sources":["../../../src/common/provider/provider-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,qBACa,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAE,YAAW,eAAe,CAAC,CAAC,CAAC;IAC5E,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAEzD;CACJ"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ProviderCreatorImpl = void 0;
|
|
10
|
-
const component_1 = require("../annotation/component");
|
|
11
|
-
const provider_protocol_1 = require("./provider-protocol");
|
|
12
|
-
const provider_1 = require("./provider");
|
|
13
|
-
let ProviderCreatorImpl = class ProviderCreatorImpl {
|
|
14
|
-
create(id, container) {
|
|
15
|
-
return new provider_1.ContainerBasedProvider(id, container);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
exports.ProviderCreatorImpl = ProviderCreatorImpl;
|
|
19
|
-
exports.ProviderCreatorImpl = ProviderCreatorImpl = __decorate([
|
|
20
|
-
(0, component_1.Component)(provider_protocol_1.ProviderCreator)
|
|
21
|
-
], ProviderCreatorImpl);
|
|
22
|
-
//# sourceMappingURL=provider-creator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider-creator.js","sourceRoot":"","sources":["../../../src/common/provider/provider-creator.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uDAAiE;AACjE,2DAAgE;AAEhE,yCAAoD;AAG7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,MAAM,CAAC,EAAe,EAAE,SAAoB;QACxC,OAAO,IAAI,iCAAsB,CAAC,EAAE,EAAE,SAAS,CAAgB,CAAC;IACpE,CAAC;CACJ,CAAA;;8BAJY,mBAAmB;IAD/B,IAAA,qBAAS,EAAC,mCAAe,CAAC;GACd,mBAAmB,CAI/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { decorate } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { inject as Inject } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { injectable as Injectable } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { preDestroy as PreDestroy } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { targetName as TargetName } from 'inversify';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { unmanaged as Unmanaged } from 'inversify';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Container, ContainerModule, interfaces } from 'inversify';
|
|
2
|
-
|
|
3
|
-
export class ContainerFactory {
|
|
4
|
-
static create(...modules: ContainerModule[]): interfaces.Container {
|
|
5
|
-
const container = new Container({ skipBaseClassChecks: true });
|
|
6
|
-
container.load(...modules);
|
|
7
|
-
return container;
|
|
8
|
-
}
|
|
9
|
-
}
|