@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
|
@@ -0,0 +1,334 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const bun_test_1 = require("bun:test");
|
|
16
|
+
const chai_1 = require("chai");
|
|
17
|
+
const container_1 = require("./container");
|
|
18
|
+
const container_error_1 = require("./container-error");
|
|
19
|
+
const annotation_1 = require("../annotation");
|
|
20
|
+
const scope_1 = require("./scope");
|
|
21
|
+
/**
|
|
22
|
+
* The container on its own: bindings, constraints, injection by the decorators and its errors.
|
|
23
|
+
* The decorators only describe classes, so every test binds what it needs by hand.
|
|
24
|
+
*/
|
|
25
|
+
function errorOf(fn) {
|
|
26
|
+
try {
|
|
27
|
+
fn();
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
(0, chai_1.expect)(error).to.be.instanceOf(container_error_1.ContainerError);
|
|
31
|
+
return error;
|
|
32
|
+
}
|
|
33
|
+
throw new Error('expected a ContainerError');
|
|
34
|
+
}
|
|
35
|
+
(0, bun_test_1.describe)('Container', () => {
|
|
36
|
+
(0, bun_test_1.it)('binds a class, a constant, a factory and an alias; transient unless told otherwise', () => {
|
|
37
|
+
class A {
|
|
38
|
+
}
|
|
39
|
+
const Value1 = Symbol('Value1');
|
|
40
|
+
const Made = Symbol('Made');
|
|
41
|
+
const Alias = Symbol('Alias');
|
|
42
|
+
const c = new container_1.Container();
|
|
43
|
+
c.bind(A).to(A);
|
|
44
|
+
c.bind(Value1).toConstantValue(42);
|
|
45
|
+
let made = 0;
|
|
46
|
+
c.bind(Made).toDynamicValue(() => ++made).inSingletonScope();
|
|
47
|
+
c.bind(Alias).toService(Value1);
|
|
48
|
+
(0, chai_1.expect)(c.get(A)).to.be.instanceOf(A);
|
|
49
|
+
(0, chai_1.expect)(c.get(A)).not.to.equal(c.get(A));
|
|
50
|
+
(0, chai_1.expect)(c.get(Value1)).to.equal(42);
|
|
51
|
+
(0, chai_1.expect)([c.get(Made), c.get(Made)]).to.deep.equal([1, 1]);
|
|
52
|
+
(0, chai_1.expect)(c.get(Alias)).to.equal(42);
|
|
53
|
+
});
|
|
54
|
+
(0, bun_test_1.it)('loads modules: bind, unbind, isBound and rebind', () => {
|
|
55
|
+
const Id = Symbol('Id');
|
|
56
|
+
const c = new container_1.Container(new container_1.ContainerModule((bind, unbind, isBound, rebind) => {
|
|
57
|
+
bind(Id).toConstantValue('a');
|
|
58
|
+
(0, chai_1.expect)(isBound(Id)).to.equal(true);
|
|
59
|
+
rebind(Id).toConstantValue('b');
|
|
60
|
+
}));
|
|
61
|
+
(0, chai_1.expect)(c.getAll(Id)).to.deep.equal(['b']);
|
|
62
|
+
c.unbind(Id);
|
|
63
|
+
(0, chai_1.expect)(c.isBound(Id)).to.equal(false);
|
|
64
|
+
});
|
|
65
|
+
(0, bun_test_1.it)('selects bindings by name and tag; unconstrained bindings match any query, default ones only plain requests', () => {
|
|
66
|
+
const Store = Symbol('Store');
|
|
67
|
+
const c = new container_1.Container();
|
|
68
|
+
c.bind(Store).toConstantValue('redis').whenTargetNamed('redis');
|
|
69
|
+
c.bind(Store).toConstantValue('eu').whenTargetTagged('region', 'eu');
|
|
70
|
+
c.bind(Store).toConstantValue('memory').whenTargetIsDefault();
|
|
71
|
+
(0, chai_1.expect)(c.get(Store)).to.equal('memory');
|
|
72
|
+
(0, chai_1.expect)(c.get(Store, { name: 'redis' })).to.equal('redis');
|
|
73
|
+
(0, chai_1.expect)(c.get(Store, { tags: { region: 'eu' } })).to.equal('eu');
|
|
74
|
+
(0, chai_1.expect)(c.isBound(Store, { name: 'mongo' })).to.equal(false);
|
|
75
|
+
// Without a query, getAll and isBound take every binding, whatever its constraint.
|
|
76
|
+
(0, chai_1.expect)(c.getAll(Store)).to.deep.equal(['redis', 'eu', 'memory']);
|
|
77
|
+
(0, chai_1.expect)(c.isBound(Store)).to.equal(true);
|
|
78
|
+
c.bind(Store).toConstantValue('any');
|
|
79
|
+
(0, chai_1.expect)(c.getAll(Store, { name: 'redis' })).to.deep.equal(['redis', 'any']);
|
|
80
|
+
});
|
|
81
|
+
(0, bun_test_1.it)('injects constructor parameters, properties and @Value, then calls @PostConstruct once', () => {
|
|
82
|
+
const Clock = Symbol('Clock');
|
|
83
|
+
const calls = [];
|
|
84
|
+
let Service = class Service {
|
|
85
|
+
constructor(first) {
|
|
86
|
+
this.first = first;
|
|
87
|
+
}
|
|
88
|
+
init() {
|
|
89
|
+
calls.push(`init ${this.first} ${this.clock} ${this.answer}`);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, annotation_1.Autowired)(Clock),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], Service.prototype, "clock", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, annotation_1.Value)('answer'),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], Service.prototype, "answer", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, annotation_1.PostConstruct)(),
|
|
102
|
+
__metadata("design:type", Function),
|
|
103
|
+
__metadata("design:paramtypes", []),
|
|
104
|
+
__metadata("design:returntype", void 0)
|
|
105
|
+
], Service.prototype, "init", null);
|
|
106
|
+
Service = __decorate([
|
|
107
|
+
__param(0, (0, annotation_1.Autowired)(Clock)),
|
|
108
|
+
__metadata("design:paramtypes", [Number])
|
|
109
|
+
], Service);
|
|
110
|
+
const c = new container_1.Container();
|
|
111
|
+
c.bind(Clock).toConstantValue(7);
|
|
112
|
+
c.bind(annotation_1.VALUE).toDynamicValue(({ target }) => target.name === 'answer' ? 42 : undefined);
|
|
113
|
+
c.bind(Service).to(Service).inSingletonScope();
|
|
114
|
+
c.get(Service);
|
|
115
|
+
c.get(Service);
|
|
116
|
+
(0, chai_1.expect)(calls).to.deep.equal(['init 7 7 42']);
|
|
117
|
+
});
|
|
118
|
+
(0, bun_test_1.it)('takes constructor parameters without @Autowired from their declared class', () => {
|
|
119
|
+
class Dep {
|
|
120
|
+
}
|
|
121
|
+
class Uses {
|
|
122
|
+
constructor(dep) {
|
|
123
|
+
this.dep = dep;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
Reflect.defineMetadata('design:paramtypes', [Dep], Uses);
|
|
127
|
+
const c = new container_1.Container();
|
|
128
|
+
c.bind(Dep).to(Dep).inSingletonScope();
|
|
129
|
+
c.bind(Uses).to(Uses);
|
|
130
|
+
(0, chai_1.expect)(c.get(Uses).dep).to.equal(c.get(Dep));
|
|
131
|
+
});
|
|
132
|
+
(0, bun_test_1.it)('subclasses inherit injected properties, @PostConstruct and the constructor of their parent', () => {
|
|
133
|
+
const Dep = Symbol('Dep');
|
|
134
|
+
let Base = class Base {
|
|
135
|
+
constructor(fromConstructor) {
|
|
136
|
+
this.fromConstructor = fromConstructor;
|
|
137
|
+
this.initialized = false;
|
|
138
|
+
}
|
|
139
|
+
init() {
|
|
140
|
+
this.initialized = true;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, annotation_1.Autowired)(Dep),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], Base.prototype, "fromBase", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, annotation_1.PostConstruct)(),
|
|
149
|
+
__metadata("design:type", Function),
|
|
150
|
+
__metadata("design:paramtypes", []),
|
|
151
|
+
__metadata("design:returntype", void 0)
|
|
152
|
+
], Base.prototype, "init", null);
|
|
153
|
+
Base = __decorate([
|
|
154
|
+
__param(0, (0, annotation_1.Autowired)(Dep)),
|
|
155
|
+
__metadata("design:paramtypes", [String])
|
|
156
|
+
], Base);
|
|
157
|
+
class Derived extends Base {
|
|
158
|
+
}
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, annotation_1.Autowired)(Dep),
|
|
161
|
+
(0, annotation_1.Named)('other'),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], Derived.prototype, "own", void 0);
|
|
164
|
+
const c = new container_1.Container();
|
|
165
|
+
c.bind(Dep).toConstantValue('plain').whenTargetIsDefault();
|
|
166
|
+
c.bind(Dep).toConstantValue('other').whenTargetNamed('other');
|
|
167
|
+
c.bind(Derived).to(Derived);
|
|
168
|
+
const d = c.get(Derived);
|
|
169
|
+
(0, chai_1.expect)([d.fromBase, d.fromConstructor, d.own, d.initialized]).to.deep.equal(['plain', 'plain', 'other', true]);
|
|
170
|
+
});
|
|
171
|
+
(0, bun_test_1.it)('@Optional: undefined or [] when nothing is bound; an optional property keeps its initial value', () => {
|
|
172
|
+
const Missing = Symbol('Missing');
|
|
173
|
+
let Tolerant = class Tolerant {
|
|
174
|
+
constructor(param = 'default') {
|
|
175
|
+
this.param = param;
|
|
176
|
+
this.one = 'initial';
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, annotation_1.Autowired)(Missing),
|
|
181
|
+
(0, annotation_1.Optional)(),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], Tolerant.prototype, "one", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, annotation_1.Autowired)({ id: Missing, multi: true }),
|
|
186
|
+
(0, annotation_1.Optional)(),
|
|
187
|
+
__metadata("design:type", Array)
|
|
188
|
+
], Tolerant.prototype, "many", void 0);
|
|
189
|
+
Tolerant = __decorate([
|
|
190
|
+
__param(0, (0, annotation_1.Autowired)(Missing)),
|
|
191
|
+
__param(0, (0, annotation_1.Optional)()),
|
|
192
|
+
__metadata("design:paramtypes", [Object])
|
|
193
|
+
], Tolerant);
|
|
194
|
+
const c = new container_1.Container();
|
|
195
|
+
c.bind(Tolerant).to(Tolerant);
|
|
196
|
+
const t = c.get(Tolerant);
|
|
197
|
+
(0, chai_1.expect)([t.one, t.many, t.param]).to.deep.equal(['initial', [], 'default']);
|
|
198
|
+
});
|
|
199
|
+
(0, bun_test_1.it)('@Tagged on an injection point', () => {
|
|
200
|
+
const Store = Symbol('TaggedStore');
|
|
201
|
+
class Consumer {
|
|
202
|
+
}
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, annotation_1.Autowired)(Store),
|
|
205
|
+
(0, annotation_1.Tagged)('region', 'eu'),
|
|
206
|
+
__metadata("design:type", String)
|
|
207
|
+
], Consumer.prototype, "store", void 0);
|
|
208
|
+
const c = new container_1.Container();
|
|
209
|
+
c.bind(Store).toConstantValue('us').whenTargetTagged('region', 'us');
|
|
210
|
+
c.bind(Store).toConstantValue('eu').whenTargetTagged('region', 'eu');
|
|
211
|
+
c.bind(Consumer).to(Consumer);
|
|
212
|
+
(0, chai_1.expect)(c.get(Consumer).store).to.equal('eu');
|
|
213
|
+
});
|
|
214
|
+
(0, bun_test_1.it)('gives factories and activation handlers the injection point', () => {
|
|
215
|
+
const Logger = Symbol('Logger');
|
|
216
|
+
class Owner {
|
|
217
|
+
}
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, annotation_1.Autowired)(Logger),
|
|
220
|
+
__metadata("design:type", String)
|
|
221
|
+
], Owner.prototype, "logger", void 0);
|
|
222
|
+
const c = new container_1.Container();
|
|
223
|
+
c.bind(Logger).toDynamicValue(({ target }) => { var _a; return `logger of ${(_a = target.owner) === null || _a === void 0 ? void 0 : _a.name}.${String(target.key)}`; });
|
|
224
|
+
c.bind(Owner).to(Owner).onActivation((context, instance) => Object.assign(instance, { activated: context.target.id === Owner }));
|
|
225
|
+
const o = c.get(Owner);
|
|
226
|
+
(0, chai_1.expect)(o.logger).to.equal('logger of Owner.logger');
|
|
227
|
+
(0, chai_1.expect)(o.activated).to.equal(true);
|
|
228
|
+
});
|
|
229
|
+
(0, bun_test_1.it)('lists its bindings for tools', () => {
|
|
230
|
+
class A {
|
|
231
|
+
}
|
|
232
|
+
const Named1 = Symbol('Named1');
|
|
233
|
+
const c = new container_1.Container();
|
|
234
|
+
c.bind(A).to(A).inSingletonScope();
|
|
235
|
+
c.bind(Named1).toService(A).whenTargetNamed('x');
|
|
236
|
+
const rows = [...c.bindings()].flatMap(([id, bindings]) => bindings.map(b => [container_1.Container.idName(id), b.type, b.scope, b.condition]));
|
|
237
|
+
(0, chai_1.expect)(rows).to.deep.equal([['A', 'class', scope_1.Scope.Singleton, undefined], ['Symbol(Named1)', 'service', scope_1.Scope.Transient, 'named x']]);
|
|
238
|
+
});
|
|
239
|
+
(0, bun_test_1.describe)('errors', () => {
|
|
240
|
+
(0, bun_test_1.it)('CELL_DI_NO_BINDING names the identifier, who needs it and the chain', () => {
|
|
241
|
+
const Mailer = Symbol('Mailer');
|
|
242
|
+
class Signup {
|
|
243
|
+
}
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, annotation_1.Autowired)(Mailer),
|
|
246
|
+
__metadata("design:type", Object)
|
|
247
|
+
], Signup.prototype, "mailer", void 0);
|
|
248
|
+
let Controller = class Controller {
|
|
249
|
+
constructor(signup) {
|
|
250
|
+
this.signup = signup;
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
Controller = __decorate([
|
|
254
|
+
__param(0, (0, annotation_1.Autowired)(Signup)),
|
|
255
|
+
__metadata("design:paramtypes", [Signup])
|
|
256
|
+
], Controller);
|
|
257
|
+
const c = new container_1.Container();
|
|
258
|
+
c.bind(Signup).to(Signup);
|
|
259
|
+
c.bind(Controller).to(Controller);
|
|
260
|
+
const error = errorOf(() => c.get(Controller));
|
|
261
|
+
(0, chai_1.expect)(error.code).to.equal('CELL_DI_NO_BINDING');
|
|
262
|
+
(0, chai_1.expect)(error.message).to.equal('No binding for Symbol(Mailer), needed by Signup.mailer (Controller → Signup → Symbol(Mailer)).');
|
|
263
|
+
(0, chai_1.expect)(error.path).to.deep.equal(['Controller', 'Signup', 'Symbol(Mailer)']);
|
|
264
|
+
(0, chai_1.expect)(error.hint).to.contain('@Optional()');
|
|
265
|
+
});
|
|
266
|
+
(0, bun_test_1.it)('CELL_DI_NO_BINDING lists the bindings that do not match, or a second identifier with the same name', () => {
|
|
267
|
+
const Store = Symbol('Store');
|
|
268
|
+
const c = new container_1.Container();
|
|
269
|
+
c.bind(Store).toConstantValue('redis').whenTargetNamed('redis');
|
|
270
|
+
(0, chai_1.expect)(errorOf(() => c.get(Store, { name: 'mongo' })).message)
|
|
271
|
+
.to.equal('No binding for Symbol(Store) named mongo. The bindings of Symbol(Store) do not match: constant [named redis].');
|
|
272
|
+
c.bind(Symbol('Twin')).toConstantValue(1);
|
|
273
|
+
(0, chai_1.expect)(errorOf(() => c.get(Symbol('Twin'))).message).to.contain('two copies of the module that declares it are loaded');
|
|
274
|
+
});
|
|
275
|
+
(0, bun_test_1.it)('CELL_DI_AMBIGUOUS lists the candidates', () => {
|
|
276
|
+
const Plugin = Symbol('Plugin');
|
|
277
|
+
class P1 {
|
|
278
|
+
}
|
|
279
|
+
class P2 {
|
|
280
|
+
}
|
|
281
|
+
const c = new container_1.Container();
|
|
282
|
+
c.bind(Plugin).to(P1);
|
|
283
|
+
c.bind(Plugin).to(P2);
|
|
284
|
+
const error = errorOf(() => c.get(Plugin));
|
|
285
|
+
(0, chai_1.expect)(error.code).to.equal('CELL_DI_AMBIGUOUS');
|
|
286
|
+
(0, chai_1.expect)(error.message).to.equal('2 bindings match Symbol(Plugin): P1, P2.');
|
|
287
|
+
(0, chai_1.expect)(c.getAll(Plugin)).to.have.length(2);
|
|
288
|
+
});
|
|
289
|
+
(0, bun_test_1.it)('CELL_DI_CIRCULAR shows the cycle, and the container still works afterwards', () => {
|
|
290
|
+
class A {
|
|
291
|
+
}
|
|
292
|
+
__decorate([
|
|
293
|
+
(0, annotation_1.Autowired)({ id: 'B' }),
|
|
294
|
+
__metadata("design:type", Object)
|
|
295
|
+
], A.prototype, "b", void 0);
|
|
296
|
+
let B = class B {
|
|
297
|
+
constructor(a) {
|
|
298
|
+
this.a = a;
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
B = __decorate([
|
|
302
|
+
__param(0, (0, annotation_1.Autowired)(A)),
|
|
303
|
+
__metadata("design:paramtypes", [A])
|
|
304
|
+
], B);
|
|
305
|
+
const c = new container_1.Container();
|
|
306
|
+
c.bind(A).to(A).inSingletonScope();
|
|
307
|
+
c.bind('B').to(B).inSingletonScope();
|
|
308
|
+
const error = errorOf(() => c.get(A));
|
|
309
|
+
(0, chai_1.expect)(error.code).to.equal('CELL_DI_CIRCULAR');
|
|
310
|
+
(0, chai_1.expect)(error.message).to.equal('Circular dependency: A → B → A.');
|
|
311
|
+
c.rebind('B').toConstantValue('b');
|
|
312
|
+
(0, chai_1.expect)(c.get(A).b).to.equal('b');
|
|
313
|
+
});
|
|
314
|
+
(0, bun_test_1.it)('CELL_DI_MISSING_INJECT for a parameter that names no identifier', () => {
|
|
315
|
+
class NoId {
|
|
316
|
+
constructor(options) {
|
|
317
|
+
this.options = options;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
Reflect.defineMetadata('design:paramtypes', [Object], NoId);
|
|
321
|
+
const c = new container_1.Container();
|
|
322
|
+
c.bind(NoId).to(NoId);
|
|
323
|
+
const error = errorOf(() => c.get(NoId));
|
|
324
|
+
(0, chai_1.expect)(error.code).to.equal('CELL_DI_MISSING_INJECT');
|
|
325
|
+
(0, chai_1.expect)(error.message).to.contain('NoId constructor parameter #0');
|
|
326
|
+
});
|
|
327
|
+
(0, bun_test_1.it)('CELL_DI_INCOMPLETE_BINDING for bind() without a target', () => {
|
|
328
|
+
const c = new container_1.Container();
|
|
329
|
+
c.bind('nothing');
|
|
330
|
+
(0, chai_1.expect)(errorOf(() => c.get('nothing')).code).to.equal('CELL_DI_INCOMPLETE_BINDING');
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
});
|
|
334
|
+
//# sourceMappingURL=container.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.spec.js","sourceRoot":"","sources":["../../../src/common/container/container.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uCAAwC;AACxC,+BAA8B;AAC9B,2CAAyD;AACzD,uDAAmD;AACnD,8CAAgG;AAChG,mCAAgC;AAEhC;;;GAGG;AACH,SAAS,OAAO,CAAC,EAAiB;IAC9B,IAAI,CAAC;QACD,EAAE,EAAE,CAAC;IACT,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,IAAA,aAAM,EAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,gCAAc,CAAC,CAAC;QAC/C,OAAO,KAAuB,CAAC;IACnC,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;AACjD,CAAC;AAED,IAAA,mBAAQ,EAAC,WAAW,EAAE,GAAG,EAAE;IAEvB,IAAA,aAAE,EAAC,oFAAoF,EAAE,GAAG,EAAE;QAC1F,MAAM,CAAC;SAAI;QACX,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QAChC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5B,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,CAAC,GAAG,IAAI,qBAAS,EAAE,CAAC;QAC1B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,e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AAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;YACtD,IAAA,aAAM,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;QAEH,IAAA,aAAE,EAAC,wDAAwD,EAAE,GAAG,EAAE;YAC9D,MAAM,CAAC,GAAG,IAAI,qBAAS,EAAE,CAAC;YAC1B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAClB,IAAA,aAAM,EAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QACxF,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-container.d.ts","sourceRoot":"","sources":["../../../src/common/container/dynamic-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dynamic-container.d.ts","sourceRoot":"","sources":["../../../src/common/container/dynamic-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,SAAS,CAAoC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.container = void 0;
|
|
4
|
-
const
|
|
5
|
-
//
|
|
6
|
-
exports.container = Promise.resolve(new
|
|
4
|
+
const container_1 = require("./container");
|
|
5
|
+
// The toolchain replaces this file with the DI modules of the application (@celljs/vite ContainerGenerator).
|
|
6
|
+
exports.container = Promise.resolve(new container_1.Container());
|
|
7
7
|
//# sourceMappingURL=dynamic-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-container.js","sourceRoot":"","sources":["../../../src/common/container/dynamic-container.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"dynamic-container.js","sourceRoot":"","sources":["../../../src/common/container/dynamic-container.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAExC,6GAA6G;AAChG,QAAA,SAAS,GAAuB,OAAO,CAAC,OAAO,CAAC,IAAI,qBAAS,EAAE,CAAC,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export * from './container
|
|
1
|
+
export * from './container';
|
|
2
|
+
export * from './container-error';
|
|
3
|
+
export * from './injection';
|
|
4
|
+
export * from './scope';
|
|
2
5
|
export * from './auto-bind';
|
|
6
|
+
export * from './container-provider';
|
|
3
7
|
export * from './container-util';
|
|
4
|
-
export * from './scope';
|
|
5
|
-
export * from './container-factory';
|
|
6
|
-
import { interfaces } from 'inversify';
|
|
7
|
-
export type Container = interfaces.Container;
|
|
8
|
-
export type ContainerModule = interfaces.ContainerModule;
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/container/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/container/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
|
|
@@ -14,9 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./container
|
|
17
|
+
__exportStar(require("./container"), exports);
|
|
18
|
+
__exportStar(require("./container-error"), exports);
|
|
19
|
+
__exportStar(require("./injection"), exports);
|
|
20
|
+
__exportStar(require("./scope"), exports);
|
|
18
21
|
__exportStar(require("./auto-bind"), exports);
|
|
22
|
+
__exportStar(require("./container-provider"), exports);
|
|
19
23
|
__exportStar(require("./container-util"), exports);
|
|
20
|
-
__exportStar(require("./scope"), exports);
|
|
21
|
-
__exportStar(require("./container-factory"), exports);
|
|
22
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/container/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/container/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,oDAAkC;AAClC,8CAA4B;AAC5B,0CAAwB;AACxB,8CAA4B;AAC5B,uDAAqC;AACrC,mDAAiC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ComponentId } from './container';
|
|
2
|
+
/**
|
|
3
|
+
* A constructor parameter or property to inject: what to inject (`id`, all of them with `multi`,
|
|
4
|
+
* nothing when `optional` and unbound) and which binding (`name`, `tags`). Also what a dynamic value
|
|
5
|
+
* or constraint gets to see; `owner` and `key` are absent when the container is asked directly.
|
|
6
|
+
*/
|
|
7
|
+
export interface InjectionTarget {
|
|
8
|
+
readonly id: ComponentId;
|
|
9
|
+
readonly multi?: boolean;
|
|
10
|
+
readonly optional?: boolean;
|
|
11
|
+
readonly name?: string | number | symbol;
|
|
12
|
+
readonly tags?: Readonly<Record<string | number | symbol, unknown>>;
|
|
13
|
+
/** The class that declares the parameter or property. */
|
|
14
|
+
readonly owner?: Function;
|
|
15
|
+
/** The property, or the index of the constructor parameter. */
|
|
16
|
+
readonly key?: string | symbol | number;
|
|
17
|
+
}
|
|
18
|
+
/** How the container creates instances of a class; computed once per class. */
|
|
19
|
+
export interface InjectionPlan {
|
|
20
|
+
readonly parameters: readonly InjectionTarget[];
|
|
21
|
+
readonly properties: readonly InjectionTarget[];
|
|
22
|
+
readonly postConstruct?: string | symbol;
|
|
23
|
+
}
|
|
24
|
+
type Point = {
|
|
25
|
+
-readonly [K in keyof InjectionTarget]?: InjectionTarget[K];
|
|
26
|
+
};
|
|
27
|
+
export declare namespace InjectionUtil {
|
|
28
|
+
/**
|
|
29
|
+
* The injection point of a parameter or property decorator (`@Autowired`, `@Optional`, `@Named`...):
|
|
30
|
+
* the first decorator creates it, the others complete it. Subclasses inherit the properties.
|
|
31
|
+
*/
|
|
32
|
+
function point(target: any, key: string | symbol | undefined, index?: number): Point;
|
|
33
|
+
/** Forgets a property: its value does not come from the container (`detached` injections). */
|
|
34
|
+
function remove(target: any, key: string | symbol): void;
|
|
35
|
+
function setPostConstruct(target: any, key: string | symbol): void;
|
|
36
|
+
function plan(type: Function): InjectionPlan;
|
|
37
|
+
/** `UserService.repository` or `UserService constructor parameter #0`. */
|
|
38
|
+
function describe(target: Partial<InjectionTarget>): string;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=injection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../../src/common/container/injection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IA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C,GAAG,MAAM,CAGjE;CACJ"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InjectionUtil = void 0;
|
|
4
|
+
const container_error_1 = require("./container-error");
|
|
5
|
+
const PARAMETERS = 'cell:di:parameters';
|
|
6
|
+
const PROPERTIES = 'cell:di:properties';
|
|
7
|
+
const POST_CONSTRUCT = 'cell:di:post-construct';
|
|
8
|
+
/** What TypeScript writes for parameters whose type is an interface, a union or a primitive. */
|
|
9
|
+
const NOT_AN_ID = [Object, Function, Array, String, Number, Boolean, Symbol, BigInt, Promise];
|
|
10
|
+
var InjectionUtil;
|
|
11
|
+
(function (InjectionUtil) {
|
|
12
|
+
const plans = new WeakMap();
|
|
13
|
+
/**
|
|
14
|
+
* The injection point of a parameter or property decorator (`@Autowired`, `@Optional`, `@Named`...):
|
|
15
|
+
* the first decorator creates it, the others complete it. Subclasses inherit the properties.
|
|
16
|
+
*/
|
|
17
|
+
function point(target, key, index) {
|
|
18
|
+
var _a;
|
|
19
|
+
if (index !== undefined) {
|
|
20
|
+
if (key !== undefined) {
|
|
21
|
+
throw new Error(`${target.constructor.name}.${String(key)}: only constructor parameters and properties can be injected.`);
|
|
22
|
+
}
|
|
23
|
+
let parameters = Reflect.getOwnMetadata(PARAMETERS, target);
|
|
24
|
+
if (!parameters) {
|
|
25
|
+
parameters = [];
|
|
26
|
+
Reflect.defineMetadata(PARAMETERS, parameters, target);
|
|
27
|
+
}
|
|
28
|
+
return (_a = parameters[index]) !== null && _a !== void 0 ? _a : (parameters[index] = { owner: target, key: index });
|
|
29
|
+
}
|
|
30
|
+
const owner = target.constructor;
|
|
31
|
+
let properties = Reflect.getOwnMetadata(PROPERTIES, owner);
|
|
32
|
+
if (!properties) {
|
|
33
|
+
properties = new Map(Reflect.getMetadata(PROPERTIES, owner));
|
|
34
|
+
Reflect.defineMetadata(PROPERTIES, properties, owner);
|
|
35
|
+
}
|
|
36
|
+
let point = properties.get(key);
|
|
37
|
+
if (!point || point.owner !== owner) {
|
|
38
|
+
point = { owner, key };
|
|
39
|
+
properties.set(key, point);
|
|
40
|
+
}
|
|
41
|
+
return point;
|
|
42
|
+
}
|
|
43
|
+
InjectionUtil.point = point;
|
|
44
|
+
/** Forgets a property: its value does not come from the container (`detached` injections). */
|
|
45
|
+
function remove(target, key) {
|
|
46
|
+
const properties = Reflect.getOwnMetadata(PROPERTIES, target.constructor);
|
|
47
|
+
properties === null || properties === void 0 ? void 0 : properties.delete(key);
|
|
48
|
+
}
|
|
49
|
+
InjectionUtil.remove = remove;
|
|
50
|
+
function setPostConstruct(target, key) {
|
|
51
|
+
Reflect.defineMetadata(POST_CONSTRUCT, key, target.constructor);
|
|
52
|
+
}
|
|
53
|
+
InjectionUtil.setPostConstruct = setPostConstruct;
|
|
54
|
+
function plan(type) {
|
|
55
|
+
var _a;
|
|
56
|
+
var _b;
|
|
57
|
+
let plan = plans.get(type);
|
|
58
|
+
if (!plan) {
|
|
59
|
+
plan = {
|
|
60
|
+
parameters: parameters(type),
|
|
61
|
+
properties: [...(_b = (_a = Reflect.getMetadata(PROPERTIES, type)) === null || _a === void 0 ? void 0 : _a.values()) !== null && _b !== void 0 ? _b : []].map(complete),
|
|
62
|
+
postConstruct: Reflect.getMetadata(POST_CONSTRUCT, type)
|
|
63
|
+
};
|
|
64
|
+
plans.set(type, plan);
|
|
65
|
+
}
|
|
66
|
+
return plan;
|
|
67
|
+
}
|
|
68
|
+
InjectionUtil.plan = plan;
|
|
69
|
+
/** The parameters of the nearest constructor in the class hierarchy that TypeScript or a decorator described. */
|
|
70
|
+
function parameters(type) {
|
|
71
|
+
var _a, _b, _c;
|
|
72
|
+
for (let c = type; c && c !== Function.prototype; c = Object.getPrototypeOf(c)) {
|
|
73
|
+
const points = Reflect.getOwnMetadata(PARAMETERS, c);
|
|
74
|
+
const types = Reflect.getOwnMetadata('design:paramtypes', c);
|
|
75
|
+
if (points || types) {
|
|
76
|
+
const count = Math.max((_a = points === null || points === void 0 ? void 0 : points.length) !== null && _a !== void 0 ? _a : 0, (_b = types === null || types === void 0 ? void 0 : types.length) !== null && _b !== void 0 ? _b : 0);
|
|
77
|
+
const result = [];
|
|
78
|
+
for (let i = 0; i < count; i++) {
|
|
79
|
+
const point = (_c = points === null || points === void 0 ? void 0 : points[i]) !== null && _c !== void 0 ? _c : { owner: c, key: i };
|
|
80
|
+
const declared = types === null || types === void 0 ? void 0 : types[i];
|
|
81
|
+
result.push(complete(point.id === undefined && typeof declared === 'function' && !NOT_AN_ID.includes(declared)
|
|
82
|
+
? { ...point, id: declared } : point));
|
|
83
|
+
}
|
|
84
|
+
return result;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return [];
|
|
88
|
+
}
|
|
89
|
+
function complete(point) {
|
|
90
|
+
if (point.id === undefined) {
|
|
91
|
+
throw missing(point);
|
|
92
|
+
}
|
|
93
|
+
return point;
|
|
94
|
+
}
|
|
95
|
+
function missing(point) {
|
|
96
|
+
const where = describe(point);
|
|
97
|
+
return new container_error_1.ContainerError({
|
|
98
|
+
code: 'CELL_DI_MISSING_INJECT',
|
|
99
|
+
message: `${where} has no @Autowired (or @Value), so the container does not know what to inject.`,
|
|
100
|
+
hint: 'Add @Autowired(<id>) to the constructor parameter or property; an interface type needs the id explicitly.',
|
|
101
|
+
path: [where]
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/** `UserService.repository` or `UserService constructor parameter #0`. */
|
|
105
|
+
function describe(target) {
|
|
106
|
+
var _a;
|
|
107
|
+
const owner = ((_a = target.owner) === null || _a === void 0 ? void 0 : _a.name) || '(anonymous class)';
|
|
108
|
+
return typeof target.key === 'number' ? `${owner} constructor parameter #${target.key}` : `${owner}.${String(target.key)}`;
|
|
109
|
+
}
|
|
110
|
+
InjectionUtil.describe = describe;
|
|
111
|
+
})(InjectionUtil || (exports.InjectionUtil = InjectionUtil = {}));
|
|
112
|
+
//# sourceMappingUR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,EAAE,CAAC;IAC/H,CAAC;IAHe,cAAA,QAAQ,WAGvB,CAAA;AACL,CAAC,EAnGgB,aAAa,aAAb,aAAa,GAAb,aAAa,QAmG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/common/container/scope.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACb,
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/common/container/scope.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACb,SAAS,cAAc;IACvB,SAAS,cAAc;CAC1B"}
|
|
@@ -3,8 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Scope = void 0;
|
|
4
4
|
var Scope;
|
|
5
5
|
(function (Scope) {
|
|
6
|
-
Scope[
|
|
7
|
-
Scope[
|
|
8
|
-
Scope[Scope["Transient"] = 2] = "Transient";
|
|
6
|
+
Scope["Singleton"] = "Singleton";
|
|
7
|
+
Scope["Transient"] = "Transient";
|
|
9
8
|
})(Scope || (exports.Scope = Scope = {}));
|
|
10
9
|
//# sourceMappingURL=scope.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../src/common/container/scope.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../src/common/container/scope.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAGX;AAHD,WAAY,KAAK;IACb,gCAAuB,CAAA;IACvB,gCAAuB,CAAA;AAC3B,CAAC,EAHW,KAAK,aAAL,KAAK,GAAL,KAAK,QAGhB"}
|