react-obsidian 2.10.2 → 2.11.0-alpha.1
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/dist/src/GraphProperties.js +1 -3
- package/dist/src/GraphProperties.js.map +1 -1
- package/dist/src/ProvidedPropertiesStore.js +4 -9
- package/dist/src/ProvidedPropertiesStore.js.map +1 -1
- package/dist/src/ReferenceCounter.js +2 -5
- package/dist/src/ReferenceCounter.js.map +1 -1
- package/dist/src/decorators/Graph.js +1 -2
- package/dist/src/decorators/Graph.js.map +1 -1
- package/dist/src/decorators/LifecycleBound.js +2 -4
- package/dist/src/decorators/LifecycleBound.js.map +1 -1
- package/dist/src/decorators/Memoize.d.ts.map +1 -1
- package/dist/src/decorators/Memoize.js +1 -2
- package/dist/src/decorators/Memoize.js.map +1 -1
- package/dist/src/decorators/Singleton.d.ts.map +1 -1
- package/dist/src/decorators/Singleton.js +1 -2
- package/dist/src/decorators/Singleton.js.map +1 -1
- package/dist/src/decorators/inject/Inject.d.ts +1 -1
- package/dist/src/decorators/inject/Inject.d.ts.map +1 -1
- package/dist/src/decorators/inject/Inject.js +1 -2
- package/dist/src/decorators/inject/Inject.js.map +1 -1
- package/dist/src/decorators/inject/Injectable.js +1 -2
- package/dist/src/decorators/inject/Injectable.js.map +1 -1
- package/dist/src/decorators/inject/LateInject.js +1 -2
- package/dist/src/decorators/inject/LateInject.js.map +1 -1
- package/dist/src/decorators/provides/MemoizeDescriptor.d.ts.map +1 -1
- package/dist/src/decorators/provides/MemoizeDescriptor.js +1 -3
- package/dist/src/decorators/provides/MemoizeDescriptor.js.map +1 -1
- package/dist/src/decorators/provides/Provides.js +1 -2
- package/dist/src/decorators/provides/Provides.js.map +1 -1
- package/dist/src/graph/CircularDependenciesDetector.js +2 -1
- package/dist/src/graph/CircularDependenciesDetector.js.map +1 -1
- package/dist/src/graph/ObjectGraph.d.ts +1 -1
- package/dist/src/graph/ObjectGraph.d.ts.map +1 -1
- package/dist/src/graph/ObjectGraph.js +6 -6
- package/dist/src/graph/ObjectGraph.js.map +1 -1
- package/dist/src/graph/PropertyRetriever.d.ts +1 -1
- package/dist/src/graph/PropertyRetriever.d.ts.map +1 -1
- package/dist/src/graph/PropertyRetriever.js +3 -2
- package/dist/src/graph/PropertyRetriever.js.map +1 -1
- package/dist/src/graph/PropertyRetrieverDelegate.d.ts +1 -1
- package/dist/src/graph/PropertyRetrieverDelegate.d.ts.map +1 -1
- package/dist/src/graph/ProviderBinder.d.ts.map +1 -1
- package/dist/src/graph/ProviderBinder.js +2 -4
- package/dist/src/graph/ProviderBinder.js.map +1 -1
- package/dist/src/graph/ServiceLocatorFactory.d.ts.map +1 -1
- package/dist/src/graph/VisitedNodes.js +2 -4
- package/dist/src/graph/VisitedNodes.js.map +1 -1
- package/dist/src/graph/registry/GraphMiddlewareChain.js +1 -0
- package/dist/src/graph/registry/GraphMiddlewareChain.js.map +1 -1
- package/dist/src/graph/registry/GraphRegistry.d.ts.map +1 -1
- package/dist/src/graph/registry/GraphRegistry.js +19 -26
- package/dist/src/graph/registry/GraphRegistry.js.map +1 -1
- package/dist/src/graph/registry/Middleware.js +1 -0
- package/dist/src/graph/registry/Middleware.js.map +1 -1
- package/dist/src/graph/registry/ObtainLifecycleBoundGraphException.js.map +1 -1
- package/dist/src/injectors/class/ClassInjector.d.ts.map +1 -1
- package/dist/src/injectors/class/ClassInjector.js +6 -5
- package/dist/src/injectors/class/ClassInjector.js.map +1 -1
- package/dist/src/injectors/class/ConstructorArgs.js +1 -3
- package/dist/src/injectors/class/ConstructorArgs.js.map +1 -1
- package/dist/src/injectors/class/InjectionMetadata.js +5 -9
- package/dist/src/injectors/class/InjectionMetadata.js.map +1 -1
- package/dist/src/injectors/class/LateInjector.js +1 -1
- package/dist/src/injectors/class/LateInjector.js.map +1 -1
- package/dist/src/injectors/components/ComponentInjector.js.map +1 -1
- package/dist/src/injectors/components/InjectComponent.d.ts +1 -1
- package/dist/src/injectors/components/InjectComponent.d.ts.map +1 -1
- package/dist/src/injectors/components/InjectComponent.js.map +1 -1
- package/dist/src/injectors/components/PropsInjector.d.ts.map +1 -1
- package/dist/src/injectors/components/PropsInjector.js +1 -1
- package/dist/src/injectors/components/PropsInjector.js.map +1 -1
- package/dist/src/injectors/components/useGraph.d.ts +1 -1
- package/dist/src/injectors/components/useGraph.d.ts.map +1 -1
- package/dist/src/injectors/components/useGraph.js +1 -1
- package/dist/src/injectors/components/useGraph.js.map +1 -1
- package/dist/src/injectors/components/useInjectionToken.d.ts.map +1 -1
- package/dist/src/injectors/components/useInjectionToken.js +1 -1
- package/dist/src/injectors/components/useInjectionToken.js.map +1 -1
- package/dist/src/injectors/hooks/HookInjector.js +2 -1
- package/dist/src/injectors/hooks/HookInjector.js.map +1 -1
- package/dist/src/injectors/hooks/InjectHook.d.ts.map +1 -1
- package/dist/src/injectors/hooks/InjectHook.js +2 -3
- package/dist/src/injectors/hooks/InjectHook.js.map +1 -1
- package/dist/src/model/Model.js.map +1 -1
- package/dist/src/observable/Observable.d.ts.map +1 -1
- package/dist/src/observable/Observable.js +3 -2
- package/dist/src/observable/Observable.js.map +1 -1
- package/dist/src/observable/cold/ColdMediatorObservable.d.ts.map +1 -1
- package/dist/src/observable/cold/ColdMediatorObservable.js +3 -4
- package/dist/src/observable/cold/ColdMediatorObservable.js.map +1 -1
- package/dist/src/observable/cold/useColdObservers.js +1 -2
- package/dist/src/observable/cold/useColdObservers.js.map +1 -1
- package/dist/src/observable/mapObservablesToValues.js +1 -2
- package/dist/src/observable/mapObservablesToValues.js.map +1 -1
- package/dist/src/observable/mediator/MediatorObservable.js.map +1 -1
- package/dist/src/observable/useObserver.d.ts.map +1 -1
- package/dist/src/observable/useObserver.js +1 -3
- package/dist/src/observable/useObserver.js.map +1 -1
- package/dist/src/observable/useObservers.d.ts +2 -1
- package/dist/src/observable/useObservers.d.ts.map +1 -1
- package/dist/src/observable/useObservers.js +2 -3
- package/dist/src/observable/useObservers.js.map +1 -1
- package/dist/src/utils/React.d.ts.map +1 -1
- package/dist/src/utils/React.js +2 -3
- package/dist/src/utils/React.js.map +1 -1
- package/dist/src/utils/isDev.js +4 -8
- package/dist/src/utils/isDev.js.map +1 -1
- package/dist/src/utils/isNumber.js +1 -2
- package/dist/src/utils/isNumber.js.map +1 -1
- package/dist/src/utils/uniqueId.js +2 -3
- package/dist/src/utils/uniqueId.js.map +1 -1
- package/dist/test/fixtures/CircularDependencyFromSubgraph.d.ts +1 -1
- package/dist/test/fixtures/CircularDependencyFromSubgraph.d.ts.map +1 -1
- package/dist/test/fixtures/CircularDependencyFromSubgraph.js +2 -2
- package/dist/test/fixtures/CircularDependencyFromSubgraph.js.map +1 -1
- package/dist/test/fixtures/CircularDependencyGraph.d.ts.map +1 -1
- package/dist/test/fixtures/CircularDependencyGraph.js +3 -2
- package/dist/test/fixtures/CircularDependencyGraph.js.map +1 -1
- package/dist/test/fixtures/CircularDependencyGraph2.d.ts.map +1 -1
- package/dist/test/fixtures/CircularDependencyGraph2.js +3 -2
- package/dist/test/fixtures/CircularDependencyGraph2.js.map +1 -1
- package/dist/test/fixtures/GraphWithMultipleDependencies.js +2 -2
- package/dist/test/fixtures/GraphWithMultipleDependencies.js.map +1 -1
- package/dist/test/fixtures/GraphWithOnBind.d.ts +1 -1
- package/dist/test/fixtures/GraphWithOnBind.d.ts.map +1 -1
- package/dist/test/fixtures/GraphWithOnBind.js +3 -2
- package/dist/test/fixtures/GraphWithOnBind.js.map +1 -1
- package/dist/test/fixtures/LifecycleBoundGraph.js +6 -4
- package/dist/test/fixtures/LifecycleBoundGraph.js.map +1 -1
- package/dist/test/fixtures/LifecycleBoundWithLifecycleBoundSubgraph.d.ts.map +1 -1
- package/dist/test/fixtures/LifecycleBoundWithLifecycleBoundSubgraph.js +2 -2
- package/dist/test/fixtures/LifecycleBoundWithLifecycleBoundSubgraph.js.map +1 -1
- package/dist/test/fixtures/MainGraph.js.map +1 -1
- package/dist/test/fixtures/ScopedLifecycleBoundGraph.js +2 -2
- package/dist/test/fixtures/ScopedLifecycleBoundGraph.js.map +1 -1
- package/dist/test/fixtures/SingletonGraph.js +1 -4
- package/dist/test/fixtures/SingletonGraph.js.map +1 -1
- package/dist/test/fixtures/StringProvider.js +1 -0
- package/dist/test/fixtures/StringProvider.js.map +1 -1
- package/dist/test/fixtures/Subgraph.js.map +1 -1
- package/dist/test/fixtures/SubgraphWithCircularDependency.d.ts.map +1 -1
- package/dist/test/fixtures/SubgraphWithCircularDependency.js +3 -2
- package/dist/test/fixtures/SubgraphWithCircularDependency.js.map +1 -1
- package/dist/test/fixtures/ThrowingMainGraph.js.map +1 -1
- package/dist/test/fixtures/UniqueNumberGraph.d.ts.map +1 -1
- package/dist/test/fixtures/UniqueNumberGraph.js +3 -3
- package/dist/test/fixtures/UniqueNumberGraph.js.map +1 -1
- package/dist/testkit/index.d.ts.map +1 -1
- package/dist/testkit/index.js +0 -1
- package/dist/testkit/index.js.map +1 -1
- package/dist/testkit/mockGraphs.js +1 -2
- package/dist/testkit/mockGraphs.js.map +1 -1
- package/dist/testkit/mockModel.js +1 -2
- package/dist/testkit/mockModel.js.map +1 -1
- package/dist/transformers/babel-plugin-obsidian/helpers/index.d.ts +2 -2
- package/dist/transformers/babel-plugin-obsidian/helpers/index.d.ts.map +1 -1
- package/dist/transformers/babel-plugin-obsidian/helpers/index.js +13 -16
- package/dist/transformers/babel-plugin-obsidian/helpers/index.js.map +1 -1
- package/dist/transformers/babel-plugin-obsidian/index.d.ts.map +1 -1
- package/dist/transformers/babel-plugin-obsidian/index.js +1 -1
- package/dist/transformers/babel-plugin-obsidian/index.js.map +1 -1
- package/dist/transformers/babel-plugin-obsidian/unmagler/method.d.ts.map +1 -1
- package/dist/transformers/babel-plugin-obsidian/unmagler/method.js +1 -3
- package/dist/transformers/babel-plugin-obsidian/unmagler/method.js.map +1 -1
- package/dist/transformers/babel-plugin-obsidian/unmagler/property.js.map +1 -1
- package/eslint.config.mjs +140 -0
- package/package.json +27 -25
- package/src/decorators/Memoize.ts +0 -1
- package/src/decorators/inject/Inject.ts +1 -1
- package/src/decorators/provides/MemoizeDescriptor.ts +0 -1
- package/src/graph/ObjectGraph.ts +2 -4
- package/src/graph/PropertyRetriever.ts +4 -4
- package/src/graph/PropertyRetrieverDelegate.ts +1 -1
- package/src/graph/ProviderBinder.ts +1 -2
- package/src/graph/registry/GraphRegistry.ts +7 -7
- package/src/graph/registry/ObtainLifecycleBoundGraphException.ts +1 -1
- package/src/injectors/class/ClassInjector.ts +2 -2
- package/src/injectors/components/ComponentInjector.tsx +1 -1
- package/src/injectors/components/InjectComponent.ts +3 -3
- package/src/injectors/components/PropsInjector.ts +0 -1
- package/src/injectors/components/useGraph.ts +1 -2
- package/src/injectors/hooks/InjectHook.ts +0 -1
- package/src/observable/Observable.ts +2 -2
- package/src/observable/cold/ColdMediatorObservable.ts +0 -1
- package/src/observable/cold/useColdObservers.ts +1 -1
- package/src/observable/mediator/MediatorObservable.ts +1 -1
- package/src/observable/useObserver.ts +1 -2
- package/src/observable/useObservers.ts +4 -3
- package/src/utils/isDev.ts +1 -2
- package/testkit/index.ts +0 -1
- package/transformers/babel-plugin-obsidian/helpers/index.ts +8 -8
- package/transformers/babel-plugin-obsidian/index.ts +0 -1
- package/transformers/babel-plugin-obsidian/unmagler/method.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediatorObservable.js","sourceRoot":"","sources":["../../../../src/observable/mediator/MediatorObservable.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,8CAA2C;AAW3C,MAAa,kBAAsB,SAAQ,uBAAa;IACtD,SAAS,CAA2B,MAA0B,EAAE,OAA+B;QAC7F,IAAI,CAAC,SAAS,CAAS,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACtC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,KAAe,CAAW,CAAC;QAC7D,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAI,MAAsB,EAAE,MAAiB;QACpD,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACzB,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"MediatorObservable.js","sourceRoot":"","sources":["../../../../src/observable/mediator/MediatorObservable.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,8CAA2C;AAW3C,MAAa,kBAAsB,SAAQ,uBAAa;IACtD,SAAS,CAA2B,MAA0B,EAAE,OAA+B;QAC7F,IAAI,CAAC,SAAS,CAAS,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACtC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,KAAe,CAAW,CAAC;QAC7D,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAI,MAAsB,EAAE,MAAiB;QACpD,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACzB,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC/B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,UAAU,CACR,OAAwC,EACxC,MAAuC;QAEvC,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAA6B,CAAC;QAErE,OAAO;aACJ,MAAM,CAAC,iBAAO,CAAC;aACf,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACzB,IAAI,CAAC,SAAS,CAAC,MAA0B,EAAE,CAAC,IAAI,EAAE,EAAE;gBAClD,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI;oBAAE,OAAO;gBAEnC,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;oBAChC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;gBACvB,CAAC;qBAAM,CAAC;oBACN,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;oBACrB,MAAM,CAAC,MAAM,CAAC,CAAC;gBACjB,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEL,MAAM,CAAC,MAAM,CAAC,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED,UAAU,CACR,OAAwC,EACxC,OAA2C;QAE3C,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAA6B,CAAC;QAErE,OAAO;aACJ,MAAM,CAAC,iBAAO,CAAC;aACf,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACzB,IAAI,CAAC,SAAS,CAAC,MAA0B,EAAE,CAAC,IAAI,EAAE,EAAE;gBAClD,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI;oBAAE,OAAO;gBAEnC,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;oBAChC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;gBACvB,CAAC;qBAAM,CAAC;oBACN,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;oBACrB,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;gBAC3C,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEL,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAjED,gDAiEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useObserver.d.ts","sourceRoot":"","sources":["../../../src/observable/useObserver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useObserver.d.ts","sourceRoot":"","sources":["../../../src/observable/useObserver.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,KAAK,qBAAqB,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtE,wBAAgB,WAAW,CAAC,CAAC,EAAE,qBAAqB,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,CAetG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useObserver =
|
|
4
|
-
/* eslint-disable no-param-reassign */
|
|
3
|
+
exports.useObserver = useObserver;
|
|
5
4
|
const react_1 = require("react");
|
|
6
5
|
const Observable_1 = require("./Observable");
|
|
7
6
|
function useObserver(observableOrGenerator) {
|
|
@@ -15,7 +14,6 @@ function useObserver(observableOrGenerator) {
|
|
|
15
14
|
}, [observable]);
|
|
16
15
|
return [value, onNext];
|
|
17
16
|
}
|
|
18
|
-
exports.useObserver = useObserver;
|
|
19
17
|
function getOrGenerateObservable(observableOrGenerator) {
|
|
20
18
|
return observableOrGenerator instanceof Observable_1.Observable ? observableOrGenerator : observableOrGenerator();
|
|
21
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useObserver.js","sourceRoot":"","sources":["../../../src/observable/useObserver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useObserver.js","sourceRoot":"","sources":["../../../src/observable/useObserver.ts"],"names":[],"mappings":";;AAUA,kCAeC;AAzBD,iCAKe;AACf,6CAA0C;AAI1C,SAAgB,WAAW,CAAI,qBAA+C;IAC5E,MAAM,UAAU,GAAG,IAAA,eAAO,EACxB,GAAG,EAAE,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,EACpD,EAAE,CACH,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACrD,MAAM,MAAM,GAAG,IAAA,mBAAW,EAAC,CAAC,IAAO,EAAE,EAAE;QACrC,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC;IAC1B,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,OAAO,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,uBAAuB,CAAI,qBAA+C;IACjF,OAAO,qBAAqB,YAAY,uBAAU,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC;AACvG,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ObservedValues } from './types';
|
|
2
|
-
|
|
2
|
+
import type { Observable } from './Observable';
|
|
3
|
+
export declare function useObservers<T extends Record<string, Observable<any>>>(observables: T): ObservedValues<T>;
|
|
3
4
|
//# sourceMappingURL=useObservers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useObservers.d.ts","sourceRoot":"","sources":["../../../src/observable/useObservers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAe,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"useObservers.d.ts","sourceRoot":"","sources":["../../../src/observable/useObservers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAe,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAoBzG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useObservers =
|
|
3
|
+
exports.useObservers = useObservers;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const MediatorObservable_1 = require("./mediator/MediatorObservable");
|
|
6
6
|
const mapObservablesToValues_1 = require("./mapObservablesToValues");
|
|
@@ -16,9 +16,8 @@ function useObservers(observables) {
|
|
|
16
16
|
observables[key].unsubscribe(onNext);
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
|
-
return () => unsubscribers.forEach(
|
|
19
|
+
return () => unsubscribers.forEach(unsubscribe => unsubscribe());
|
|
20
20
|
}, []);
|
|
21
21
|
return values;
|
|
22
22
|
}
|
|
23
|
-
exports.useObservers = useObservers;
|
|
24
23
|
//# sourceMappingURL=useObservers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useObservers.js","sourceRoot":"","sources":["../../../src/observable/useObservers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useObservers.js","sourceRoot":"","sources":["../../../src/observable/useObservers.ts"],"names":[],"mappings":";;AAMA,oCAoBC;AA1BD,iCAA4C;AAC5C,sEAAmE;AAEnE,qEAAkE;AAGlE,SAAgB,YAAY,CAA4C,WAAc;IACpF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,IAAA,+CAAsB,EAAC,WAAW,CAAC,CAAC,CAAC;IAEhF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,QAAQ,GAAG,IAAI,uCAAkB,EAAE,CAAC;QAC1C,MAAM,aAAa,GAAkB,EAAE,CAAC;QAExC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACvC,MAAM,MAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;YACtE,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;YAE7C,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtB,WAAW,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YACvC,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IACnE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"React.d.ts","sourceRoot":"","sources":["../../../src/utils/React.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,KAAK,iBAAiB,GAAG,KAAK,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG;IAC3E,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,OAAO,CAAC;CACvD,CAAC;AACF,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,iBAAiB,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI,iBAAiB,CAErG;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EAC5D,SAAS,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAC3C,aAAa,CAAC,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"React.d.ts","sourceRoot":"","sources":["../../../src/utils/React.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,KAAK,iBAAiB,GAAG,KAAK,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG;IAC3E,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,OAAO,CAAC;CACvD,CAAC;AACF,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,iBAAiB,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI,iBAAiB,CAErG;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EAC5D,SAAS,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAC3C,aAAa,CAAC,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAEU,CAAC,CAC5D"}
|
package/dist/src/utils/React.js
CHANGED
|
@@ -3,14 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.isMemoizedComponent = isMemoizedComponent;
|
|
7
|
+
exports.genericMemo = genericMemo;
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
function isMemoizedComponent(component) {
|
|
9
10
|
return component.type !== undefined;
|
|
10
11
|
}
|
|
11
|
-
exports.isMemoizedComponent = isMemoizedComponent;
|
|
12
12
|
function genericMemo(Component, propsAreEqual) {
|
|
13
13
|
return react_1.default.memo(Component, propsAreEqual);
|
|
14
14
|
}
|
|
15
|
-
exports.genericMemo = genericMemo;
|
|
16
15
|
//# sourceMappingURL=React.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"React.js","sourceRoot":"","sources":["../../../src/utils/React.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"React.js","sourceRoot":"","sources":["../../../src/utils/React.ts"],"names":[],"mappings":";;;;;AAKA,kDAEC;AAED,kCAKC;AAdD,kDAAiD;AAKjD,SAAgB,mBAAmB,CAAC,SAAiC;IACnE,OAAQ,SAA+B,CAAC,IAAI,KAAK,SAAS,CAAC;AAC7D,CAAC;AAED,SAAgB,WAAW,CACzB,SAA2C,EAC3C,aAAgD;IAEhD,OAAO,eAAK,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,CAAiB,CAAC;AAC9D,CAAC"}
|
package/dist/src/utils/isDev.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDev =
|
|
3
|
+
exports.isDev = isDev;
|
|
4
4
|
function isDev() {
|
|
5
5
|
return isNodeDev() || isReactNativeDev();
|
|
6
6
|
}
|
|
7
|
-
exports.isDev = isDev;
|
|
8
7
|
function isNodeDev() {
|
|
9
|
-
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
11
|
-
return ['test', 'development'].includes((_a = process.env['NODE_ENV']) !== null && _a !== void 0 ? _a : '');
|
|
8
|
+
return ['test', 'development'].includes(process.env['NODE_ENV'] ?? '');
|
|
12
9
|
}
|
|
13
10
|
function isReactNativeDev() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return (_a = __DEV__) !== null && _a !== void 0 ? _a : false;
|
|
11
|
+
// @ts-expect-error __DEV__ is a global variable in React Native
|
|
12
|
+
return __DEV__ ?? false;
|
|
17
13
|
}
|
|
18
14
|
//# sourceMappingURL=isDev.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDev.js","sourceRoot":"","sources":["../../../src/utils/isDev.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isDev.js","sourceRoot":"","sources":["../../../src/utils/isDev.ts"],"names":[],"mappings":";;AAAA,sBAEC;AAFD,SAAgB,KAAK;IACnB,OAAO,SAAS,EAAE,IAAI,gBAAgB,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,SAAS;IAChB,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;AACzE,CAAC;AAED,SAAS,gBAAgB;IACvB,gEAAgE;IAChE,OAAO,OAAkB,IAAI,KAAK,CAAC;AACrC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isNumber =
|
|
3
|
+
exports.isNumber = isNumber;
|
|
4
4
|
function isNumber(value) {
|
|
5
5
|
return typeof value === 'number';
|
|
6
6
|
}
|
|
7
|
-
exports.isNumber = isNumber;
|
|
8
7
|
//# sourceMappingURL=isNumber.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isNumber.js","sourceRoot":"","sources":["../../../src/utils/isNumber.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isNumber.js","sourceRoot":"","sources":["../../../src/utils/isNumber.ts"],"names":[],"mappings":";;AAAA,4BAEC;AAFD,SAAgB,QAAQ,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;AACnC,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uniqueId =
|
|
3
|
+
exports.uniqueId = uniqueId;
|
|
4
4
|
let idCounter = 0;
|
|
5
5
|
function uniqueId(prefix) {
|
|
6
6
|
const id = ++idCounter;
|
|
7
|
-
return `${prefix
|
|
7
|
+
return `${prefix ?? ''}${id}`;
|
|
8
8
|
}
|
|
9
|
-
exports.uniqueId = uniqueId;
|
|
10
9
|
//# sourceMappingURL=uniqueId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniqueId.js","sourceRoot":"","sources":["../../../src/utils/uniqueId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uniqueId.js","sourceRoot":"","sources":["../../../src/utils/uniqueId.ts"],"names":[],"mappings":";;AAEA,4BAGC;AALD,IAAI,SAAS,GAAG,CAAC,CAAC;AAElB,SAAgB,QAAQ,CAAC,MAAe;IACtC,MAAM,EAAE,GAAG,EAAE,SAAS,CAAC;IACvB,OAAO,GAAG,MAAM,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC;AAChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularDependencyFromSubgraph.d.ts","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyFromSubgraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAY,MAAM,WAAW,CAAC;AAGzD,qBACa,8BAA+B,SAAQ,WAAW;IAE7D,IAAI,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"CircularDependencyFromSubgraph.d.ts","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyFromSubgraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAY,MAAM,WAAW,CAAC;AAGzD,qBACa,8BAA+B,SAAQ,WAAW;IAE7D,IAAI,CAAC,IAAI,EAAE,OAAO;CAGnB"}
|
|
@@ -17,14 +17,14 @@ let CircularDependencyFromSubgraph = class CircularDependencyFromSubgraph extend
|
|
|
17
17
|
return dep2;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
+
exports.CircularDependencyFromSubgraph = CircularDependencyFromSubgraph;
|
|
20
21
|
__decorate([
|
|
21
22
|
(0, src_1.Provides)(),
|
|
22
23
|
__metadata("design:type", Function),
|
|
23
24
|
__metadata("design:paramtypes", [Object]),
|
|
24
25
|
__metadata("design:returntype", void 0)
|
|
25
26
|
], CircularDependencyFromSubgraph.prototype, "dep1", null);
|
|
26
|
-
CircularDependencyFromSubgraph = __decorate([
|
|
27
|
+
exports.CircularDependencyFromSubgraph = CircularDependencyFromSubgraph = __decorate([
|
|
27
28
|
(0, src_1.Graph)({ subgraphs: [SubgraphWithCircularDependency_1.SubgraphWithCircularDependency] })
|
|
28
29
|
], CircularDependencyFromSubgraph);
|
|
29
|
-
exports.CircularDependencyFromSubgraph = CircularDependencyFromSubgraph;
|
|
30
30
|
//# sourceMappingURL=CircularDependencyFromSubgraph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularDependencyFromSubgraph.js","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyFromSubgraph.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AACzD,qFAAkF;AAG3E,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,iBAAW;IAE7D,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"CircularDependencyFromSubgraph.js","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyFromSubgraph.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AACzD,qFAAkF;AAG3E,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,iBAAW;IAE7D,IAAI,CAAC,IAAa;QAChB,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AALY,wEAA8B;AAEzC;IADC,IAAA,cAAQ,GAAE;;;;0DAGV;yCAJU,8BAA8B;IAD1C,IAAA,WAAK,EAAC,EAAE,SAAS,EAAE,CAAC,+DAA8B,CAAC,EAAE,CAAC;GAC1C,8BAA8B,CAK1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularDependencyGraph.d.ts","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyGraph.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CircularDependencyGraph.d.ts","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyGraph.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,WAAW,EAAY,MAAM,WAAW,CAAC;AAEzD,qBACa,uBAAwB,SAAQ,WAAW;IAEtD,OAAO,CAAC,OAAO,EAAE,MAAM;CAGxB"}
|
|
@@ -10,20 +10,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CircularDependencyGraph = void 0;
|
|
13
|
+
/* eslint-disable obsidian/no-circular-dependencies */
|
|
13
14
|
const src_1 = require("../../src");
|
|
14
15
|
let CircularDependencyGraph = class CircularDependencyGraph extends src_1.ObjectGraph {
|
|
15
16
|
aString(aString) {
|
|
16
17
|
return aString;
|
|
17
18
|
}
|
|
18
19
|
};
|
|
20
|
+
exports.CircularDependencyGraph = CircularDependencyGraph;
|
|
19
21
|
__decorate([
|
|
20
22
|
(0, src_1.Provides)(),
|
|
21
23
|
__metadata("design:type", Function),
|
|
22
24
|
__metadata("design:paramtypes", [String]),
|
|
23
25
|
__metadata("design:returntype", void 0)
|
|
24
26
|
], CircularDependencyGraph.prototype, "aString", null);
|
|
25
|
-
CircularDependencyGraph = __decorate([
|
|
27
|
+
exports.CircularDependencyGraph = CircularDependencyGraph = __decorate([
|
|
26
28
|
(0, src_1.Graph)()
|
|
27
29
|
], CircularDependencyGraph);
|
|
28
|
-
exports.CircularDependencyGraph = CircularDependencyGraph;
|
|
29
30
|
//# sourceMappingURL=CircularDependencyGraph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularDependencyGraph.js","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AAGlD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,iBAAW;IAEtD,OAAO,CAAC,OAAe;QACrB,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"CircularDependencyGraph.js","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAsD;AACtD,mCAAyD;AAGlD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,iBAAW;IAEtD,OAAO,CAAC,OAAe;QACrB,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAA;AALY,0DAAuB;AAElC;IADC,IAAA,cAAQ,GAAE;;;;sDAGV;kCAJU,uBAAuB;IADnC,IAAA,WAAK,GAAE;GACK,uBAAuB,CAKnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularDependencyGraph2.d.ts","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyGraph2.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CircularDependencyGraph2.d.ts","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyGraph2.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,WAAW,EAAY,MAAM,WAAW,CAAC;AAEzD,qBACa,wBAAyB,SAAQ,WAAW;IAEvD,IAAI,CAAC,IAAI,EAAE,GAAG;IAKd,IAAI,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG;IAKpB,IAAI,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG;CAGrB"}
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CircularDependencyGraph2 = void 0;
|
|
13
|
+
/* eslint-disable obsidian/no-circular-dependencies */
|
|
13
14
|
const src_1 = require("../../src");
|
|
14
15
|
let CircularDependencyGraph2 = class CircularDependencyGraph2 extends src_1.ObjectGraph {
|
|
15
16
|
dep1(dep2) {
|
|
@@ -22,6 +23,7 @@ let CircularDependencyGraph2 = class CircularDependencyGraph2 extends src_1.Obje
|
|
|
22
23
|
return dep1;
|
|
23
24
|
}
|
|
24
25
|
};
|
|
26
|
+
exports.CircularDependencyGraph2 = CircularDependencyGraph2;
|
|
25
27
|
__decorate([
|
|
26
28
|
(0, src_1.Provides)(),
|
|
27
29
|
__metadata("design:type", Function),
|
|
@@ -40,8 +42,7 @@ __decorate([
|
|
|
40
42
|
__metadata("design:paramtypes", [Object]),
|
|
41
43
|
__metadata("design:returntype", Object)
|
|
42
44
|
], CircularDependencyGraph2.prototype, "dep3", null);
|
|
43
|
-
CircularDependencyGraph2 = __decorate([
|
|
45
|
+
exports.CircularDependencyGraph2 = CircularDependencyGraph2 = __decorate([
|
|
44
46
|
(0, src_1.Graph)()
|
|
45
47
|
], CircularDependencyGraph2);
|
|
46
|
-
exports.CircularDependencyGraph2 = CircularDependencyGraph2;
|
|
47
48
|
//# sourceMappingURL=CircularDependencyGraph2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularDependencyGraph2.js","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyGraph2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AAGlD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,iBAAW;IAEvD,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAGD,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAGD,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"CircularDependencyGraph2.js","sourceRoot":"","sources":["../../../test/fixtures/CircularDependencyGraph2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAsD;AACtD,mCAAyD;AAGlD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,iBAAW;IAEvD,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAGD,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAGD,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAfY,4DAAwB;AAEnC;IADC,IAAA,cAAQ,GAAE;;;;oDAGV;AAGD;IADC,IAAA,cAAQ,GAAE;;;;oDAGV;AAGD;IADC,IAAA,cAAQ,GAAE;;;;oDAGV;mCAdU,wBAAwB;IADpC,IAAA,WAAK,GAAE;GACK,wBAAwB,CAepC"}
|
|
@@ -25,6 +25,7 @@ let GraphWithMultipleDependencies = class GraphWithMultipleDependencies extends
|
|
|
25
25
|
return '';
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
+
exports.GraphWithMultipleDependencies = GraphWithMultipleDependencies;
|
|
28
29
|
__decorate([
|
|
29
30
|
(0, src_1.Provides)(),
|
|
30
31
|
__metadata("design:type", Function),
|
|
@@ -49,8 +50,7 @@ __decorate([
|
|
|
49
50
|
__metadata("design:paramtypes", []),
|
|
50
51
|
__metadata("design:returntype", String)
|
|
51
52
|
], GraphWithMultipleDependencies.prototype, "noopDep", null);
|
|
52
|
-
GraphWithMultipleDependencies = __decorate([
|
|
53
|
+
exports.GraphWithMultipleDependencies = GraphWithMultipleDependencies = __decorate([
|
|
53
54
|
(0, src_1.Graph)()
|
|
54
55
|
], GraphWithMultipleDependencies);
|
|
55
|
-
exports.GraphWithMultipleDependencies = GraphWithMultipleDependencies;
|
|
56
56
|
//# sourceMappingURL=GraphWithMultipleDependencies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphWithMultipleDependencies.js","sourceRoot":"","sources":["../../../test/fixtures/GraphWithMultipleDependencies.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AAGlD,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,iBAAW;IAE5D,MAAM,CAAC,MAAc,EAAE,MAAc;QACnC,OAAO,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAGD,MAAM,CAAC,OAAe;QACpB,OAAO,SAAS,OAAO,EAAE,CAAC;IAC5B,CAAC;IAGD,MAAM,CAAC,OAAe;QACpB,OAAO,SAAS,OAAO,EAAE,CAAC;IAC5B,CAAC;IAGD,OAAO;QACL,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"GraphWithMultipleDependencies.js","sourceRoot":"","sources":["../../../test/fixtures/GraphWithMultipleDependencies.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AAGlD,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,iBAAW;IAE5D,MAAM,CAAC,MAAc,EAAE,MAAc;QACnC,OAAO,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAGD,MAAM,CAAC,OAAe;QACpB,OAAO,SAAS,OAAO,EAAE,CAAC;IAC5B,CAAC;IAGD,MAAM,CAAC,OAAe;QACpB,OAAO,SAAS,OAAO,EAAE,CAAC;IAC5B,CAAC;IAGD,OAAO;QACL,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;AApBY,sEAA6B;AAExC;IADC,IAAA,cAAQ,GAAE;;;;2DAGV;AAGD;IADC,IAAA,cAAQ,GAAE;;;;2DAGV;AAGD;IADC,IAAA,cAAQ,GAAE;;;;2DAGV;AAGD;IADC,IAAA,cAAQ,GAAE;;;;4DAGV;wCAnBU,6BAA6B;IADzC,IAAA,WAAK,GAAE;GACK,6BAA6B,CAoBzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphWithOnBind.d.ts","sourceRoot":"","sources":["../../../test/fixtures/GraphWithOnBind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAY,MAAM,WAAW,CAAC;AAEzD,qBACa,eAAgB,SAAQ,WAAW;IAC9C,OAAO,CAAC,MAAM,CAAO;IAEZ,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"GraphWithOnBind.d.ts","sourceRoot":"","sources":["../../../test/fixtures/GraphWithOnBind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAY,MAAM,WAAW,CAAC;AAEzD,qBACa,eAAgB,SAAQ,WAAW;IAC9C,OAAO,CAAC,MAAM,CAAO;IAEZ,MAAM,CAAC,MAAM,EAAE,OAAO;IAK/B,UAAU,IAAI,MAAM;CAGrB"}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.GraphWithOnBind = void 0;
|
|
13
13
|
const src_1 = require("../../src");
|
|
14
14
|
let GraphWithOnBind = class GraphWithOnBind extends src_1.ObjectGraph {
|
|
15
|
+
target;
|
|
15
16
|
onBind(target) {
|
|
16
17
|
this.target = target;
|
|
17
18
|
}
|
|
@@ -19,14 +20,14 @@ let GraphWithOnBind = class GraphWithOnBind extends src_1.ObjectGraph {
|
|
|
19
20
|
return this.target.name;
|
|
20
21
|
}
|
|
21
22
|
};
|
|
23
|
+
exports.GraphWithOnBind = GraphWithOnBind;
|
|
22
24
|
__decorate([
|
|
23
25
|
(0, src_1.Provides)(),
|
|
24
26
|
__metadata("design:type", Function),
|
|
25
27
|
__metadata("design:paramtypes", []),
|
|
26
28
|
__metadata("design:returntype", String)
|
|
27
29
|
], GraphWithOnBind.prototype, "targetName", null);
|
|
28
|
-
GraphWithOnBind = __decorate([
|
|
30
|
+
exports.GraphWithOnBind = GraphWithOnBind = __decorate([
|
|
29
31
|
(0, src_1.Graph)()
|
|
30
32
|
], GraphWithOnBind);
|
|
31
|
-
exports.GraphWithOnBind = GraphWithOnBind;
|
|
32
33
|
//# sourceMappingURL=GraphWithOnBind.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphWithOnBind.js","sourceRoot":"","sources":["../../../test/fixtures/GraphWithOnBind.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AAGlD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,iBAAW;
|
|
1
|
+
{"version":3,"file":"GraphWithOnBind.js","sourceRoot":"","sources":["../../../test/fixtures/GraphWithOnBind.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AAGlD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,iBAAW;IACtC,MAAM,CAAO;IAEZ,MAAM,CAAC,MAAe;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAGD,UAAU;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,IAAc,CAAC;IACpC,CAAC;CACF,CAAA;AAXY,0CAAe;AAQ1B;IADC,IAAA,cAAQ,GAAE;;;;iDAGV;0BAVU,eAAe;IAD3B,IAAA,WAAK,GAAE;GACK,eAAe,CAW3B"}
|
|
@@ -13,7 +13,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.LifecycleBoundGraph = void 0;
|
|
14
14
|
const src_1 = require("../../src");
|
|
15
15
|
const LifecycleBound_1 = require("../../src/decorators/LifecycleBound");
|
|
16
|
-
let LifecycleBoundGraph =
|
|
16
|
+
let LifecycleBoundGraph = class LifecycleBoundGraph extends src_1.ObjectGraph {
|
|
17
|
+
static { LifecycleBoundGraph_1 = this; }
|
|
18
|
+
static timesCreated = 0;
|
|
19
|
+
props;
|
|
17
20
|
constructor(props) {
|
|
18
21
|
super(props);
|
|
19
22
|
this.props = props;
|
|
@@ -28,7 +31,7 @@ let LifecycleBoundGraph = LifecycleBoundGraph_1 = class LifecycleBoundGraph exte
|
|
|
28
31
|
return 'A string that does not require props';
|
|
29
32
|
}
|
|
30
33
|
};
|
|
31
|
-
LifecycleBoundGraph
|
|
34
|
+
exports.LifecycleBoundGraph = LifecycleBoundGraph;
|
|
32
35
|
__decorate([
|
|
33
36
|
(0, src_1.Provides)(),
|
|
34
37
|
__metadata("design:type", Function),
|
|
@@ -41,10 +44,9 @@ __decorate([
|
|
|
41
44
|
__metadata("design:paramtypes", []),
|
|
42
45
|
__metadata("design:returntype", String)
|
|
43
46
|
], LifecycleBoundGraph.prototype, "doesNotRequireProps", null);
|
|
44
|
-
LifecycleBoundGraph = LifecycleBoundGraph_1 = __decorate([
|
|
47
|
+
exports.LifecycleBoundGraph = LifecycleBoundGraph = LifecycleBoundGraph_1 = __decorate([
|
|
45
48
|
(0, LifecycleBound_1.LifecycleBound)(),
|
|
46
49
|
(0, src_1.Graph)(),
|
|
47
50
|
__metadata("design:paramtypes", [Object])
|
|
48
51
|
], LifecycleBoundGraph);
|
|
49
|
-
exports.LifecycleBoundGraph = LifecycleBoundGraph;
|
|
50
52
|
//# sourceMappingURL=LifecycleBoundGraph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LifecycleBoundGraph.js","sourceRoot":"","sources":["../../../test/fixtures/LifecycleBoundGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mCAAyD;AACzD,wEAAqE;AAK9D,IAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"LifecycleBoundGraph.js","sourceRoot":"","sources":["../../../test/fixtures/LifecycleBoundGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mCAAyD;AACzD,wEAAqE;AAK9D,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,iBAAkB;;IACzD,MAAM,CAAC,YAAY,GAAG,CAAC,CAAC;IAChB,KAAK,CAAQ;IAErB,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,qBAAmB,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAGD,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,eAAe;YAC/B,CAAC,CAAC,8BAA8B,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE;YAC5D,CAAC,CAAC,gCAAgC,CAAC;IACvC,CAAC;IAGD,mBAAmB;QACjB,OAAO,sCAAsC,CAAC;IAChD,CAAC;;AApBU,kDAAmB;AAW9B;IADC,IAAA,cAAQ,GAAE;;;;4DAKV;AAGD;IADC,IAAA,cAAQ,GAAE;;;;8DAGV;8BApBU,mBAAmB;IAD/B,IAAA,+BAAc,GAAE;IAAE,IAAA,WAAK,GAAE;;GACb,mBAAmB,CAqB/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LifecycleBoundWithLifecycleBoundSubgraph.d.ts","sourceRoot":"","sources":["../../../test/fixtures/LifecycleBoundWithLifecycleBoundSubgraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAY,MAAM,WAAW,CAAC;AAIzD,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,qBACa,6CAA8C,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"LifecycleBoundWithLifecycleBoundSubgraph.d.ts","sourceRoot":"","sources":["../../../test/fixtures/LifecycleBoundWithLifecycleBoundSubgraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAY,MAAM,WAAW,CAAC;AAIzD,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,qBACa,6CAA8C,SAAQ,WAAW;IAE5E,OAAO,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM;CAG3C"}
|
|
@@ -18,15 +18,15 @@ let LifecycleBoundGraphWithLifecycleBoundSubgraph = class LifecycleBoundGraphWit
|
|
|
18
18
|
return `A string that requires props from a lifecycle bound subgraph: ${computedFromProps}`;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
+
exports.LifecycleBoundGraphWithLifecycleBoundSubgraph = LifecycleBoundGraphWithLifecycleBoundSubgraph;
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, src_1.Provides)(),
|
|
23
24
|
__metadata("design:type", Function),
|
|
24
25
|
__metadata("design:paramtypes", [String]),
|
|
25
26
|
__metadata("design:returntype", String)
|
|
26
27
|
], LifecycleBoundGraphWithLifecycleBoundSubgraph.prototype, "aString", null);
|
|
27
|
-
LifecycleBoundGraphWithLifecycleBoundSubgraph = __decorate([
|
|
28
|
+
exports.LifecycleBoundGraphWithLifecycleBoundSubgraph = LifecycleBoundGraphWithLifecycleBoundSubgraph = __decorate([
|
|
28
29
|
(0, LifecycleBound_1.LifecycleBound)(),
|
|
29
30
|
(0, src_1.Graph)({ subgraphs: [LifecycleBoundGraph_1.LifecycleBoundGraph] })
|
|
30
31
|
], LifecycleBoundGraphWithLifecycleBoundSubgraph);
|
|
31
|
-
exports.LifecycleBoundGraphWithLifecycleBoundSubgraph = LifecycleBoundGraphWithLifecycleBoundSubgraph;
|
|
32
32
|
//# sourceMappingURL=LifecycleBoundWithLifecycleBoundSubgraph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LifecycleBoundWithLifecycleBoundSubgraph.js","sourceRoot":"","sources":["../../../test/fixtures/LifecycleBoundWithLifecycleBoundSubgraph.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AACzD,wEAAqE;AACrE,+DAA4D;AAKrD,IAAM,6CAA6C,GAAnD,MAAM,6CAA8C,SAAQ,iBAAW;
|
|
1
|
+
{"version":3,"file":"LifecycleBoundWithLifecycleBoundSubgraph.js","sourceRoot":"","sources":["../../../test/fixtures/LifecycleBoundWithLifecycleBoundSubgraph.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyD;AACzD,wEAAqE;AACrE,+DAA4D;AAKrD,IAAM,6CAA6C,GAAnD,MAAM,6CAA8C,SAAQ,iBAAW;IAE5E,OAAO,CAAC,iBAAyB;QAC/B,OAAO,iEAAiE,iBAAiB,EAAE,CAAC;IAC9F,CAAC;CACF,CAAA;AALY,sGAA6C;AAExD;IADC,IAAA,cAAQ,GAAE;;;;4EAGV;wDAJU,6CAA6C;IADzD,IAAA,+BAAc,GAAE;IAAE,IAAA,WAAK,EAAC,EAAE,SAAS,EAAE,CAAC,yCAAmB,CAAC,EAAE,CAAC;GACjD,6CAA6C,CAKzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainGraph.js","sourceRoot":"","sources":["../../../test/fixtures/MainGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mCAKmB;AACnB,sEAA8C;AAC9C,sEAA8C;AAC9C,0DAAkC;AAKnB,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,iBAAW;IAEhD,UAAU,CAAC,cAA8B;QACvC,OAAO,cAAc,CAAC,SAAS,CAAC;IAClC,CAAC;IAGD,aAAa;QACX,OAAO,wBAAc,CAAC,aAAa,CAAC;IACtC,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"MainGraph.js","sourceRoot":"","sources":["../../../test/fixtures/MainGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mCAKmB;AACnB,sEAA8C;AAC9C,sEAA8C;AAC9C,0DAAkC;AAKnB,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,iBAAW;IAEhD,UAAU,CAAC,cAA8B;QACvC,OAAO,cAAc,CAAC,SAAS,CAAC;IAClC,CAAC;IAGD,aAAa;QACX,OAAO,wBAAc,CAAC,aAAa,CAAC;IACtC,CAAC;CACF,CAAA;AARC;IADC,IAAA,cAAQ,GAAE;;qCACgB,wBAAc;;2CAExC;AAGD;IADC,IAAA,cAAQ,GAAE;;;;8CAGV;AATkB,SAAS;IAD7B,IAAA,WAAK,EAAC,EAAE,SAAS,EAAE,CAAC,kBAAQ,CAAC,EAAE,CAAC;GACZ,SAAS,CAU7B;kBAVoB,SAAS"}
|
|
@@ -11,9 +11,9 @@ const src_1 = require("../../src");
|
|
|
11
11
|
const LifecycleBound_1 = require("../../src/decorators/LifecycleBound");
|
|
12
12
|
let ScopedLifecycleBoundGraph = class ScopedLifecycleBoundGraph extends src_1.ObjectGraph {
|
|
13
13
|
};
|
|
14
|
-
ScopedLifecycleBoundGraph =
|
|
14
|
+
exports.ScopedLifecycleBoundGraph = ScopedLifecycleBoundGraph;
|
|
15
|
+
exports.ScopedLifecycleBoundGraph = ScopedLifecycleBoundGraph = __decorate([
|
|
15
16
|
(0, LifecycleBound_1.LifecycleBound)({ scope: 'component' }),
|
|
16
17
|
(0, src_1.Graph)()
|
|
17
18
|
], ScopedLifecycleBoundGraph);
|
|
18
|
-
exports.ScopedLifecycleBoundGraph = ScopedLifecycleBoundGraph;
|
|
19
19
|
//# sourceMappingURL=ScopedLifecycleBoundGraph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScopedLifecycleBoundGraph.js","sourceRoot":"","sources":["../../../test/fixtures/ScopedLifecycleBoundGraph.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mCAA+C;AAC/C,wEAAqE;AAK9D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,iBAAkB;CAEhE,CAAA;AAFY,yBAAyB;IADrC,IAAA,+BAAc,EAAC,
|
|
1
|
+
{"version":3,"file":"ScopedLifecycleBoundGraph.js","sourceRoot":"","sources":["../../../test/fixtures/ScopedLifecycleBoundGraph.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mCAA+C;AAC/C,wEAAqE;AAK9D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,iBAAkB;CAEhE,CAAA;AAFY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,+BAAc,EAAC,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;IAAE,IAAA,WAAK,GAAE;GACnC,yBAAyB,CAErC"}
|
|
@@ -13,10 +13,7 @@ const lodash_1 = require("lodash");
|
|
|
13
13
|
const Singleton_1 = require("../../src/decorators/Singleton");
|
|
14
14
|
const src_1 = require("../../src");
|
|
15
15
|
let SingletonGraph = class SingletonGraph extends src_1.ObjectGraph {
|
|
16
|
-
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.id = (0, lodash_1.uniqueId)();
|
|
19
|
-
}
|
|
16
|
+
id = (0, lodash_1.uniqueId)();
|
|
20
17
|
instanceId() {
|
|
21
18
|
return `graph${this.id}`;
|
|
22
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingletonGraph.js","sourceRoot":"","sources":["../../../test/fixtures/SingletonGraph.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAkC;AAClC,8DAA2D;AAC3D,mCAAyD;AAG1C,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,iBAAW;
|
|
1
|
+
{"version":3,"file":"SingletonGraph.js","sourceRoot":"","sources":["../../../test/fixtures/SingletonGraph.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAkC;AAClC,8DAA2D;AAC3D,mCAAyD;AAG1C,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,iBAAW;IAC7C,EAAE,GAAG,IAAA,iBAAQ,GAAE,CAAC;IAGxB,UAAU;QACR,OAAO,QAAQ,IAAI,CAAC,EAAE,EAAE,CAAC;IAC3B,CAAC;CACF,CAAA;AAHC;IADC,IAAA,cAAQ,GAAE;;;;gDAGV;AANkB,cAAc;IADlC,IAAA,qBAAS,GAAE;IAAE,IAAA,WAAK,GAAE;GACA,cAAc,CAOlC;kBAPoB,cAAc"}
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const injectedValues_1 = __importDefault(require("./injectedValues"));
|
|
7
7
|
class StringProvider {
|
|
8
|
+
theString;
|
|
8
9
|
constructor(theString = injectedValues_1.default.fromStringProvider) {
|
|
9
10
|
this.theString = theString;
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringProvider.js","sourceRoot":"","sources":["../../../test/fixtures/StringProvider.ts"],"names":[],"mappings":";;;;;AAAA,sEAA8C;AAE9C,MAAqB,cAAc;
|
|
1
|
+
{"version":3,"file":"StringProvider.js","sourceRoot":"","sources":["../../../test/fixtures/StringProvider.ts"],"names":[],"mappings":";;;;;AAAA,sEAA8C;AAE9C,MAAqB,cAAc;IACL;IAA5B,YAA4B,YAAoB,wBAAc,CAAC,kBAAkB;QAArD,cAAS,GAAT,SAAS,CAA4C;IAAI,CAAC;CACvF;AAFD,iCAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subgraph.js","sourceRoot":"","sources":["../../../test/fixtures/Subgraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mCAAkC;AAClC,mCAAyD;AACzD,sEAA8C;AAC9C,sEAA8C;AAG/B,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,iBAAW;IAE/C,cAAc;QACZ,OAAO,IAAI,wBAAc,EAAE,CAAC;IAC9B,CAAC;IAGD,kBAAkB;QAChB,OAAO,wBAAc,CAAC,YAAY,CAAC;IACrC,CAAC;IAGD,gBAAgB;QACd,MAAM,KAAK,CAAC,mFAAmF,CAAC,CAAC;IACnG,CAAC;IAGD,UAAU;QACR,OAAO,IAAA,iBAAQ,EAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"Subgraph.js","sourceRoot":"","sources":["../../../test/fixtures/Subgraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mCAAkC;AAClC,mCAAyD;AACzD,sEAA8C;AAC9C,sEAA8C;AAG/B,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,iBAAW;IAE/C,cAAc;QACZ,OAAO,IAAI,wBAAc,EAAE,CAAC;IAC9B,CAAC;IAGD,kBAAkB;QAChB,OAAO,wBAAc,CAAC,YAAY,CAAC;IACrC,CAAC;IAGD,gBAAgB;QACd,MAAM,KAAK,CAAC,mFAAmF,CAAC,CAAC;IACnG,CAAC;IAGD,UAAU;QACR,OAAO,IAAA,iBAAQ,EAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;CACF,CAAA;AAlBC;IADC,IAAA,cAAQ,GAAE;;;oCACO,wBAAc;8CAE/B;AAGD;IADC,IAAA,cAAQ,GAAE;;;;kDAGV;AAGD;IADC,IAAA,cAAQ,GAAE;;;;gDAGV;AAGD;IADC,IAAA,cAAQ,GAAE;;;;0CAGV;AAnBkB,QAAQ;IAD5B,IAAA,WAAK,GAAE;GACa,QAAQ,CAoB5B;kBApBoB,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubgraphWithCircularDependency.d.ts","sourceRoot":"","sources":["../../../test/fixtures/SubgraphWithCircularDependency.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SubgraphWithCircularDependency.d.ts","sourceRoot":"","sources":["../../../test/fixtures/SubgraphWithCircularDependency.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EAGZ,MAAM,WAAW,CAAC;AAEnB,qBACa,8BAA+B,SAAQ,WAAW;IAE7D,IAAI,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG;IAKpB,IAAI,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG;CAGrB"}
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SubgraphWithCircularDependency = void 0;
|
|
13
|
+
/* eslint-disable obsidian/no-circular-dependencies */
|
|
13
14
|
const src_1 = require("../../src");
|
|
14
15
|
let SubgraphWithCircularDependency = class SubgraphWithCircularDependency extends src_1.ObjectGraph {
|
|
15
16
|
dep2(dep3) {
|
|
@@ -19,6 +20,7 @@ let SubgraphWithCircularDependency = class SubgraphWithCircularDependency extend
|
|
|
19
20
|
return dep2;
|
|
20
21
|
}
|
|
21
22
|
};
|
|
23
|
+
exports.SubgraphWithCircularDependency = SubgraphWithCircularDependency;
|
|
22
24
|
__decorate([
|
|
23
25
|
(0, src_1.Provides)(),
|
|
24
26
|
__metadata("design:type", Function),
|
|
@@ -31,9 +33,8 @@ __decorate([
|
|
|
31
33
|
__metadata("design:paramtypes", [Object]),
|
|
32
34
|
__metadata("design:returntype", Object)
|
|
33
35
|
], SubgraphWithCircularDependency.prototype, "dep3", null);
|
|
34
|
-
SubgraphWithCircularDependency = __decorate([
|
|
36
|
+
exports.SubgraphWithCircularDependency = SubgraphWithCircularDependency = __decorate([
|
|
35
37
|
(0, src_1.Singleton)(),
|
|
36
38
|
(0, src_1.Graph)()
|
|
37
39
|
], SubgraphWithCircularDependency);
|
|
38
|
-
exports.SubgraphWithCircularDependency = SubgraphWithCircularDependency;
|
|
39
40
|
//# sourceMappingURL=SubgraphWithCircularDependency.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubgraphWithCircularDependency.js","sourceRoot":"","sources":["../../../test/fixtures/SubgraphWithCircularDependency.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAKmB;AAGZ,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,iBAAW;IAE7D,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAGD,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"SubgraphWithCircularDependency.js","sourceRoot":"","sources":["../../../test/fixtures/SubgraphWithCircularDependency.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAsD;AACtD,mCAKmB;AAGZ,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,iBAAW;IAE7D,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAGD,IAAI,CAAC,IAAS;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAVY,wEAA8B;AAEzC;IADC,IAAA,cAAQ,GAAE;;;;0DAGV;AAGD;IADC,IAAA,cAAQ,GAAE;;;;0DAGV;yCATU,8BAA8B;IAD1C,IAAA,eAAS,GAAE;IAAE,IAAA,WAAK,GAAE;GACR,8BAA8B,CAU1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThrowingMainGraph.js","sourceRoot":"","sources":["../../../test/fixtures/ThrowingMainGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mCAA4C;AAC5C,4DAAoC;AAGrB,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,mBAAS;IAE7C,UAAU;QACjB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"ThrowingMainGraph.js","sourceRoot":"","sources":["../../../test/fixtures/ThrowingMainGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mCAA4C;AAC5C,4DAAoC;AAGrB,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,mBAAS;IAE7C,UAAU;QACjB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;CACF,CAAA;AAHU;IADR,IAAA,cAAQ,GAAE;;;;mDAGV;AAJkB,iBAAiB;IADrC,IAAA,WAAK,GAAE;GACa,iBAAiB,CAKrC;kBALoB,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniqueNumberGraph.d.ts","sourceRoot":"","sources":["../../../test/fixtures/UniqueNumberGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAGZ,MAAM,WAAW,CAAC;AAEnB,qBACa,iBAAkB,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"UniqueNumberGraph.d.ts","sourceRoot":"","sources":["../../../test/fixtures/UniqueNumberGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAGZ,MAAM,WAAW,CAAC;AAEnB,qBACa,iBAAkB,SAAQ,WAAW;IACpC,OAAO,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,MAAM,MAAM;IAKvD,eAAe,IAAI,MAAM;IAKzB,cAAc,IAAI,MAAM;CAGzB"}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UniqueNumberGraph = void 0;
|
|
13
13
|
const src_1 = require("../../src");
|
|
14
14
|
let UniqueNumberGraph = class UniqueNumberGraph extends src_1.ObjectGraph {
|
|
15
|
-
|
|
15
|
+
uniqueNumberGenerator;
|
|
16
16
|
constructor(uniqueNumberGenerator) {
|
|
17
17
|
super();
|
|
18
18
|
this.uniqueNumberGenerator = uniqueNumberGenerator;
|
|
@@ -24,6 +24,7 @@ let UniqueNumberGraph = class UniqueNumberGraph extends src_1.ObjectGraph {
|
|
|
24
24
|
return this.uniqueNumberGenerator();
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
+
exports.UniqueNumberGraph = UniqueNumberGraph;
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, src_1.Provides)(),
|
|
29
30
|
(0, src_1.Singleton)(),
|
|
@@ -37,9 +38,8 @@ __decorate([
|
|
|
37
38
|
__metadata("design:paramtypes", []),
|
|
38
39
|
__metadata("design:returntype", Number)
|
|
39
40
|
], UniqueNumberGraph.prototype, "instanceNumber", null);
|
|
40
|
-
UniqueNumberGraph = __decorate([
|
|
41
|
+
exports.UniqueNumberGraph = UniqueNumberGraph = __decorate([
|
|
41
42
|
(0, src_1.Graph)(),
|
|
42
43
|
__metadata("design:paramtypes", [Function])
|
|
43
44
|
], UniqueNumberGraph);
|
|
44
|
-
exports.UniqueNumberGraph = UniqueNumberGraph;
|
|
45
45
|
//# sourceMappingURL=UniqueNumberGraph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniqueNumberGraph.js","sourceRoot":"","sources":["../../../test/fixtures/UniqueNumberGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAKmB;AAGZ,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,iBAAW;
|
|
1
|
+
{"version":3,"file":"UniqueNumberGraph.js","sourceRoot":"","sources":["../../../test/fixtures/UniqueNumberGraph.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAKmB;AAGZ,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,iBAAW;IAC5B;IAApB,YAAoB,qBAAmC;QACrD,KAAK,EAAE,CAAC;QADU,0BAAqB,GAArB,qBAAqB,CAAc;IAEvD,CAAC;IAGD,eAAe;QACb,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACtC,CAAC;IAGD,cAAc;QACZ,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACtC,CAAC;CACF,CAAA;AAdY,8CAAiB;AAM5B;IADC,IAAA,cAAQ,GAAE;IAAE,IAAA,eAAS,GAAE;;;;wDAGvB;AAGD;IADC,IAAA,cAAQ,GAAE;;;;uDAGV;4BAbU,iBAAiB;IAD7B,IAAA,WAAK,GAAE;;GACK,iBAAiB,CAc7B"}
|