composed-di 0.2.8 → 0.2.9
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/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/serviceFactory.d.ts +3 -3
- package/dist/serviceFactory.d.ts.map +1 -1
- package/dist/serviceFactory.js +1 -1
- package/dist/serviceFactory.js.map +1 -1
- package/dist/serviceKey.d.ts +1 -1
- package/dist/serviceKey.d.ts.map +1 -1
- package/dist/serviceKey.js +1 -1
- package/dist/serviceKey.js.map +1 -1
- package/dist/serviceModule.d.ts +4 -4
- package/dist/serviceModule.d.ts.map +1 -1
- package/dist/serviceModule.js +1 -1
- package/dist/serviceModule.js.map +1 -1
- package/dist/{ServiceScope.d.ts → serviceScope.d.ts} +1 -1
- package/dist/serviceScope.d.ts.map +1 -0
- package/dist/{ServiceScope.js → serviceScope.js} +1 -1
- package/dist/serviceScope.js.map +1 -0
- package/dist/utils.d.ts +1 -1
- package/package.json +2 -1
- package/src/index.ts +5 -5
- package/src/{ServiceFactory.ts → serviceFactory.ts} +83 -83
- package/src/{ServiceModule.ts → serviceModule.ts} +123 -123
- package/src/{ServiceScope.ts → serviceScope.ts} +7 -7
- package/src/utils.ts +2 -2
- package/dist/ServiceScope.d.ts.map +0 -1
- package/dist/ServiceScope.js.map +0 -1
- /package/src/{ServiceKey.ts → serviceKey.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
export * from './serviceKey';
|
|
2
|
+
export * from './serviceModule';
|
|
3
|
+
export * from './serviceFactory';
|
|
4
|
+
export * from './serviceScope';
|
|
5
5
|
export * from './utils';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,9 +14,9 @@ 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("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./serviceKey"), exports);
|
|
18
|
+
__exportStar(require("./serviceModule"), exports);
|
|
19
|
+
__exportStar(require("./serviceFactory"), exports);
|
|
20
|
+
__exportStar(require("./serviceScope"), exports);
|
|
21
21
|
__exportStar(require("./utils"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,mDAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,0CAAwB"}
|
package/dist/serviceFactory.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ServiceKey } from './
|
|
2
|
-
import { ServiceScope } from './
|
|
1
|
+
import { ServiceKey } from './serviceKey';
|
|
2
|
+
import { ServiceScope } from './serviceScope';
|
|
3
3
|
type ServiceType<T> = T extends ServiceKey<infer U> ? U : never;
|
|
4
4
|
type DependencyTypes<T extends readonly ServiceKey<unknown>[]> = {
|
|
5
5
|
[K in keyof T]: ServiceType<T[K]>;
|
|
@@ -32,4 +32,4 @@ export declare abstract class ServiceFactory<const T, const D extends readonly S
|
|
|
32
32
|
}): ServiceFactory<T, D>;
|
|
33
33
|
}
|
|
34
34
|
export {};
|
|
35
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=serviceFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"serviceFactory.d.ts","sourceRoot":"","sources":["../src/serviceFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAGhE,KAAK,eAAe,CAAC,CAAC,SAAS,SAAS,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI;KAC9D,CAAC,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,CAAC;AAEF,8BAAsB,cAAc,CAClC,KAAK,CAAC,CAAC,EACP,KAAK,CAAC,CAAC,SAAS,SAAS,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE;IAEnD,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACjC,QAAQ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AAc,CAAC,CAAC,EAAE,CAAC,CAAC;CAOzB"}
|
package/dist/serviceFactory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"serviceFactory.js","sourceRoot":"","sources":["../src/serviceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,MAAsB,cAAc;IAUlC;;;OAGG;IACH,MAAM,CAAC,SAAS,CAGd,EACA,KAAK,EACL,QAAQ,EACR,SAAS,GAAG,EAAkB,EAC9B,UAAU,EACV,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,GAOnB;QACC,IAAI,QAAuB,CAAC;QAE5B,OAAO;YACL,KAAK;YACL,QAAQ;YACR,SAAS;YACH,UAAU,CAAC,GAAG,YAAgC;;oBAClD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;wBAC3B,QAAQ,GAAG,MAAM,UAAU,CAAC,GAAG,YAAY,CAAC,CAAC;oBAC/C,CAAC;oBAED,OAAO,QAAQ,CAAC;gBAClB,CAAC;aAAA;YACD,OAAO;gBACL,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;oBAC3B,OAAO,CAAC,QAAQ,CAAC,CAAC;oBAClB,QAAQ,GAAG,SAAS,CAAC;gBACvB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAO,CAA+D,EAC3E,QAAQ,EACR,SAAS,EACT,UAAU,GAKX;QACC,OAAO;YACL,QAAQ;YACR,SAAS;YACT,UAAU;SACX,CAAC;IACJ,CAAC;CACF;AAvED,wCAuEC"}
|
package/dist/serviceKey.d.ts
CHANGED
package/dist/serviceKey.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"serviceKey.d.ts","sourceRoot":"","sources":["../src/serviceKey.ts"],"names":[],"mappings":"AACA,qBAAa,UAAU,CAAC,CAAC;aAGK,IAAI,EAAE,MAAM;IAFxC,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEH,IAAI,EAAE,MAAM;CAGzC"}
|
package/dist/serviceKey.js
CHANGED
package/dist/serviceKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"serviceKey.js","sourceRoot":"","sources":["../src/serviceKey.ts"],"names":[],"mappings":";;;AAAA,aAAa;AACb,MAAa,UAAU;IAGrB,YAA4B,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AAND,gCAMC"}
|
package/dist/serviceModule.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ServiceKey } from './
|
|
2
|
-
import { ServiceFactory } from './
|
|
3
|
-
import { ServiceScope } from './
|
|
1
|
+
import { ServiceKey } from './serviceKey';
|
|
2
|
+
import { ServiceFactory } from './serviceFactory';
|
|
3
|
+
import { ServiceScope } from './serviceScope';
|
|
4
4
|
type GenericFactory = ServiceFactory<unknown, readonly ServiceKey<any>[]>;
|
|
5
5
|
export declare class ServiceModule {
|
|
6
6
|
readonly factories: GenericFactory[];
|
|
@@ -30,4 +30,4 @@ export declare class ServiceModule {
|
|
|
30
30
|
static from(entries: (ServiceModule | GenericFactory)[]): ServiceModule;
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
33
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=serviceModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"serviceModule.d.ts","sourceRoot":"","sources":["../src/serviceModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,KAAK,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE,SAAS,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAG1E,qBAAa,aAAa;IACJ,QAAQ,CAAC,SAAS,EAAE,cAAc,EAAE;IAAxD,OAAO;IAOM,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAqBnD;;;;;;;;;OASG;IACI,OAAO,CAAC,KAAK,CAAC,EAAE,YAAY;IAQnC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,aAAa,GAAG,cAAc,CAAC,EAAE,GAAG,aAAa;CAcxE"}
|
package/dist/serviceModule.js
CHANGED
|
@@ -100,4 +100,4 @@ function isSuitable(key, factory) {
|
|
|
100
100
|
var _a;
|
|
101
101
|
return ((_a = factory === null || factory === void 0 ? void 0 : factory.provides) === null || _a === void 0 ? void 0 : _a.symbol) === (key === null || key === void 0 ? void 0 : key.symbol);
|
|
102
102
|
}
|
|
103
|
-
//# sourceMappingURL=
|
|
103
|
+
//# sourceMappingURL=serviceModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"serviceModule.js","sourceRoot":"","sources":["../src/serviceModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,aAAa;IACxB,YAA6B,SAA2B;QAA3B,cAAS,GAAT,SAAS,CAAkB;QACtD,SAAS,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC5B,0BAA0B,CAAC,OAAO,CAAC,CAAC;YACpC,wBAAwB,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACL,CAAC;IAEY,GAAG,CAAI,GAAkB;;YACpC,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,C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AC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,WAAC,OAAA,CAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,MAAM,OAAK,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,CAAA,CAAA,EAAA,CAAC,CAAC;AAC/E,CAAC;AAED,SAAS,UAAU,CACjB,GAAkB,EAClB,OAA+B;;IAE/B,OAAO,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,0CAAE,MAAM,OAAK,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,CAAA,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceScope.d.ts","sourceRoot":"","sources":["../src/serviceScope.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAGX,QAAQ,CAAC,IAAI,EAAE,MAAM;IAFjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEH,IAAI,EAAE,MAAM;CAGlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceScope.js","sourceRoot":"","sources":["../src/serviceScope.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IAGvB,YAAqB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AAND,oCAMC"}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceModule } from './
|
|
1
|
+
import { ServiceModule } from './serviceModule';
|
|
2
2
|
export interface DotGraphOptions {
|
|
3
3
|
/** Graph direction: 'TB' (top-bottom), 'LR' (left-right), 'BT' (bottom-top), 'RL' (right-left) */
|
|
4
4
|
direction?: 'TB' | 'LR' | 'BT' | 'RL';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "composed-di",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.9",
|
|
5
5
|
"author": "Juan Herrera juanhr454@gmail.com",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsc --build",
|
|
32
|
+
"clean": "tsc --build --clean",
|
|
32
33
|
"prepublishOnly": "npm run build"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './utils'
|
|
1
|
+
export * from './serviceKey';
|
|
2
|
+
export * from './serviceModule';
|
|
3
|
+
export * from './serviceFactory';
|
|
4
|
+
export * from './serviceScope';
|
|
5
|
+
export * from './utils';
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { ServiceKey } from './
|
|
2
|
-
import { ServiceScope } from './
|
|
3
|
-
|
|
4
|
-
// Helper types to extract the type from ServiceKey
|
|
5
|
-
type ServiceType<T> = T extends ServiceKey<infer U> ? U : never;
|
|
6
|
-
|
|
7
|
-
// Helper types to convert an array/tuple of ServiceKey to tuple of their types
|
|
8
|
-
type DependencyTypes<T extends readonly ServiceKey<unknown>[]> = {
|
|
9
|
-
[K in keyof T]: ServiceType<T[K]>;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export abstract class ServiceFactory<
|
|
13
|
-
const T,
|
|
14
|
-
const D extends readonly ServiceKey<unknown>[] = [],
|
|
15
|
-
> {
|
|
16
|
-
abstract provides: ServiceKey<T>;
|
|
17
|
-
abstract dependsOn: D;
|
|
18
|
-
abstract scope?: ServiceScope;
|
|
19
|
-
abstract initialize: (...dependencies: DependencyTypes<D>) => T | Promise<T>;
|
|
20
|
-
abstract dispose?: () => void;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Creates a singleton service factory that ensures a single instance of the provided service is initialized
|
|
24
|
-
* and used throughout the scope lifecycle.
|
|
25
|
-
*/
|
|
26
|
-
static singleton<
|
|
27
|
-
const T,
|
|
28
|
-
const D extends readonly ServiceKey<unknown>[] = [],
|
|
29
|
-
>({
|
|
30
|
-
scope,
|
|
31
|
-
provides,
|
|
32
|
-
dependsOn = [] as unknown as D,
|
|
33
|
-
initialize,
|
|
34
|
-
dispose = () => {},
|
|
35
|
-
}: {
|
|
36
|
-
scope?: ServiceScope;
|
|
37
|
-
provides: ServiceKey<T>;
|
|
38
|
-
dependsOn?: D;
|
|
39
|
-
initialize: (...dependencies: DependencyTypes<D>) => T | Promise<T>;
|
|
40
|
-
dispose?: (instance: T) => void;
|
|
41
|
-
}): ServiceFactory<T, D> {
|
|
42
|
-
let instance: T | undefined;
|
|
43
|
-
|
|
44
|
-
return {
|
|
45
|
-
scope,
|
|
46
|
-
provides,
|
|
47
|
-
dependsOn,
|
|
48
|
-
async initialize(...dependencies: DependencyTypes<D>): Promise<T> {
|
|
49
|
-
if (instance === undefined) {
|
|
50
|
-
instance = await initialize(...dependencies);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return instance;
|
|
54
|
-
},
|
|
55
|
-
dispose(): void {
|
|
56
|
-
if (instance !== undefined) {
|
|
57
|
-
dispose(instance);
|
|
58
|
-
instance = undefined;
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Creates a one-shot service factory that initializes a new instance of the provided service
|
|
66
|
-
* every time it is requested.
|
|
67
|
-
*/
|
|
68
|
-
static oneShot<const T, const D extends readonly ServiceKey<unknown>[] = []>({
|
|
69
|
-
provides,
|
|
70
|
-
dependsOn,
|
|
71
|
-
initialize,
|
|
72
|
-
}: {
|
|
73
|
-
provides: ServiceKey<T>;
|
|
74
|
-
dependsOn: D;
|
|
75
|
-
initialize: (...dependencies: DependencyTypes<D>) => T | Promise<T>;
|
|
76
|
-
}): ServiceFactory<T, D> {
|
|
77
|
-
return {
|
|
78
|
-
provides,
|
|
79
|
-
dependsOn,
|
|
80
|
-
initialize,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
import { ServiceKey } from './serviceKey';
|
|
2
|
+
import { ServiceScope } from './serviceScope';
|
|
3
|
+
|
|
4
|
+
// Helper types to extract the type from ServiceKey
|
|
5
|
+
type ServiceType<T> = T extends ServiceKey<infer U> ? U : never;
|
|
6
|
+
|
|
7
|
+
// Helper types to convert an array/tuple of ServiceKey to tuple of their types
|
|
8
|
+
type DependencyTypes<T extends readonly ServiceKey<unknown>[]> = {
|
|
9
|
+
[K in keyof T]: ServiceType<T[K]>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export abstract class ServiceFactory<
|
|
13
|
+
const T,
|
|
14
|
+
const D extends readonly ServiceKey<unknown>[] = [],
|
|
15
|
+
> {
|
|
16
|
+
abstract provides: ServiceKey<T>;
|
|
17
|
+
abstract dependsOn: D;
|
|
18
|
+
abstract scope?: ServiceScope;
|
|
19
|
+
abstract initialize: (...dependencies: DependencyTypes<D>) => T | Promise<T>;
|
|
20
|
+
abstract dispose?: () => void;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Creates a singleton service factory that ensures a single instance of the provided service is initialized
|
|
24
|
+
* and used throughout the scope lifecycle.
|
|
25
|
+
*/
|
|
26
|
+
static singleton<
|
|
27
|
+
const T,
|
|
28
|
+
const D extends readonly ServiceKey<unknown>[] = [],
|
|
29
|
+
>({
|
|
30
|
+
scope,
|
|
31
|
+
provides,
|
|
32
|
+
dependsOn = [] as unknown as D,
|
|
33
|
+
initialize,
|
|
34
|
+
dispose = () => {},
|
|
35
|
+
}: {
|
|
36
|
+
scope?: ServiceScope;
|
|
37
|
+
provides: ServiceKey<T>;
|
|
38
|
+
dependsOn?: D;
|
|
39
|
+
initialize: (...dependencies: DependencyTypes<D>) => T | Promise<T>;
|
|
40
|
+
dispose?: (instance: T) => void;
|
|
41
|
+
}): ServiceFactory<T, D> {
|
|
42
|
+
let instance: T | undefined;
|
|
43
|
+
|
|
44
|
+
return {
|
|
45
|
+
scope,
|
|
46
|
+
provides,
|
|
47
|
+
dependsOn,
|
|
48
|
+
async initialize(...dependencies: DependencyTypes<D>): Promise<T> {
|
|
49
|
+
if (instance === undefined) {
|
|
50
|
+
instance = await initialize(...dependencies);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return instance;
|
|
54
|
+
},
|
|
55
|
+
dispose(): void {
|
|
56
|
+
if (instance !== undefined) {
|
|
57
|
+
dispose(instance);
|
|
58
|
+
instance = undefined;
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Creates a one-shot service factory that initializes a new instance of the provided service
|
|
66
|
+
* every time it is requested.
|
|
67
|
+
*/
|
|
68
|
+
static oneShot<const T, const D extends readonly ServiceKey<unknown>[] = []>({
|
|
69
|
+
provides,
|
|
70
|
+
dependsOn,
|
|
71
|
+
initialize,
|
|
72
|
+
}: {
|
|
73
|
+
provides: ServiceKey<T>;
|
|
74
|
+
dependsOn: D;
|
|
75
|
+
initialize: (...dependencies: DependencyTypes<D>) => T | Promise<T>;
|
|
76
|
+
}): ServiceFactory<T, D> {
|
|
77
|
+
return {
|
|
78
|
+
provides,
|
|
79
|
+
dependsOn,
|
|
80
|
+
initialize,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
import { ServiceKey } from './
|
|
2
|
-
import { ServiceFactory } from './
|
|
3
|
-
import { ServiceScope } from './
|
|
4
|
-
|
|
5
|
-
type GenericFactory = ServiceFactory<unknown, readonly ServiceKey<any>[]>;
|
|
6
|
-
type GenericKey = ServiceKey<any>;
|
|
7
|
-
|
|
8
|
-
export class ServiceModule {
|
|
9
|
-
private constructor(readonly factories: GenericFactory[]) {
|
|
10
|
-
factories.forEach((factory) => {
|
|
11
|
-
checkRecursiveDependencies(factory);
|
|
12
|
-
checkMissingDependencies(factory, this.factories);
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
public async get<T>(key: ServiceKey<T>): Promise<T> {
|
|
17
|
-
const factory = this.factories.find((factory: GenericFactory) => {
|
|
18
|
-
return isSuitable(key, factory);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
// Check if a factory to supply the requested key was not found
|
|
22
|
-
if (!factory) {
|
|
23
|
-
throw new Error(`Could not find a suitable factory for ${key.name}`);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Resolve all dependencies first
|
|
27
|
-
const dependencies = await Promise.all(
|
|
28
|
-
factory.dependsOn.map((dependencyKey: ServiceKey<unknown>) => {
|
|
29
|
-
return this.get(dependencyKey);
|
|
30
|
-
}),
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
// Call the factory to retrieve the dependency
|
|
34
|
-
return factory.initialize(...dependencies);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Disposes of service factories within the specified scope or all factories if no scope is provided.
|
|
39
|
-
*
|
|
40
|
-
* This method is useful for cleaning up resources and instances held by service factories,
|
|
41
|
-
* such as singleton factories, as they may hold database connections or other resources that need to be released.
|
|
42
|
-
*
|
|
43
|
-
* @param {ServiceScope} [scope] The scope to filter the factories to be disposed.
|
|
44
|
-
* If not provided, all factories are disposed of.
|
|
45
|
-
* @return {void} No return value.
|
|
46
|
-
*/
|
|
47
|
-
public dispose(scope?: ServiceScope) {
|
|
48
|
-
const factories = scope
|
|
49
|
-
? this.factories.filter((f) => f.scope === scope)
|
|
50
|
-
: this.factories;
|
|
51
|
-
|
|
52
|
-
factories.forEach((factory) => factory.dispose?.());
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Creates a new ServiceModule instance by aggregating and deduplicating a list of
|
|
57
|
-
* ServiceModule or GenericFactory instances.
|
|
58
|
-
* If multiple factories provide the same
|
|
59
|
-
* ServiceKey, the last one in the list takes precedence.
|
|
60
|
-
*
|
|
61
|
-
* @param {Array<ServiceModule | GenericFactory>} entries - An array of ServiceModule or GenericFactory
|
|
62
|
-
* instances to be processed into a single ServiceModule.
|
|
63
|
-
* @return {ServiceModule} A new ServiceModule containing the deduplicated factories.
|
|
64
|
-
*/
|
|
65
|
-
static from(entries: (ServiceModule | GenericFactory)[]): ServiceModule {
|
|
66
|
-
// Flatten entries and keep only the last factory for each ServiceKey
|
|
67
|
-
const flattened = entries.flatMap((e) =>
|
|
68
|
-
e instanceof ServiceModule ? e.factories : [e],
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
const byKey = new Map<symbol, GenericFactory>();
|
|
72
|
-
// Later factories overwrite earlier ones (last-wins)
|
|
73
|
-
for (const f of flattened) {
|
|
74
|
-
byKey.set(f.provides.symbol, f);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return new ServiceModule(Array.from(byKey.values()));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function checkRecursiveDependencies(factory: GenericFactory) {
|
|
82
|
-
const recursive = factory.dependsOn.some((dependencyKey) => {
|
|
83
|
-
return dependencyKey === factory.provides;
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
if (recursive) {
|
|
87
|
-
throw new Error(
|
|
88
|
-
'Recursive dependency detected on: ' + factory.provides.name,
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function checkMissingDependencies(
|
|
94
|
-
factory: GenericFactory,
|
|
95
|
-
factories: GenericFactory[],
|
|
96
|
-
) {
|
|
97
|
-
const missingDependencies = factory.dependsOn.filter(
|
|
98
|
-
(dependencyKey: GenericKey) => {
|
|
99
|
-
return !isRegistered(dependencyKey, factories);
|
|
100
|
-
},
|
|
101
|
-
);
|
|
102
|
-
if (missingDependencies.length === 0) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
const dependencyList = missingDependencies
|
|
107
|
-
.map((dependencyKey) => ` -> ${dependencyKey.name}`)
|
|
108
|
-
.join('\n');
|
|
109
|
-
throw new Error(
|
|
110
|
-
`${factory.provides.name} will fail because it depends on:\n ${dependencyList}`,
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function isRegistered(key: GenericKey, factories: GenericFactory[]) {
|
|
115
|
-
return factories.some((factory) => factory.provides?.symbol === key?.symbol);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function isSuitable<T, D extends readonly ServiceKey<any>[]>(
|
|
119
|
-
key: ServiceKey<T>,
|
|
120
|
-
factory: ServiceFactory<any, D>,
|
|
121
|
-
): factory is ServiceFactory<T, D> {
|
|
122
|
-
return factory?.provides?.symbol === key?.symbol;
|
|
123
|
-
}
|
|
1
|
+
import { ServiceKey } from './serviceKey';
|
|
2
|
+
import { ServiceFactory } from './serviceFactory';
|
|
3
|
+
import { ServiceScope } from './serviceScope';
|
|
4
|
+
|
|
5
|
+
type GenericFactory = ServiceFactory<unknown, readonly ServiceKey<any>[]>;
|
|
6
|
+
type GenericKey = ServiceKey<any>;
|
|
7
|
+
|
|
8
|
+
export class ServiceModule {
|
|
9
|
+
private constructor(readonly factories: GenericFactory[]) {
|
|
10
|
+
factories.forEach((factory) => {
|
|
11
|
+
checkRecursiveDependencies(factory);
|
|
12
|
+
checkMissingDependencies(factory, this.factories);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
public async get<T>(key: ServiceKey<T>): Promise<T> {
|
|
17
|
+
const factory = this.factories.find((factory: GenericFactory) => {
|
|
18
|
+
return isSuitable(key, factory);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// Check if a factory to supply the requested key was not found
|
|
22
|
+
if (!factory) {
|
|
23
|
+
throw new Error(`Could not find a suitable factory for ${key.name}`);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Resolve all dependencies first
|
|
27
|
+
const dependencies = await Promise.all(
|
|
28
|
+
factory.dependsOn.map((dependencyKey: ServiceKey<unknown>) => {
|
|
29
|
+
return this.get(dependencyKey);
|
|
30
|
+
}),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
// Call the factory to retrieve the dependency
|
|
34
|
+
return factory.initialize(...dependencies);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Disposes of service factories within the specified scope or all factories if no scope is provided.
|
|
39
|
+
*
|
|
40
|
+
* This method is useful for cleaning up resources and instances held by service factories,
|
|
41
|
+
* such as singleton factories, as they may hold database connections or other resources that need to be released.
|
|
42
|
+
*
|
|
43
|
+
* @param {ServiceScope} [scope] The scope to filter the factories to be disposed.
|
|
44
|
+
* If not provided, all factories are disposed of.
|
|
45
|
+
* @return {void} No return value.
|
|
46
|
+
*/
|
|
47
|
+
public dispose(scope?: ServiceScope) {
|
|
48
|
+
const factories = scope
|
|
49
|
+
? this.factories.filter((f) => f.scope === scope)
|
|
50
|
+
: this.factories;
|
|
51
|
+
|
|
52
|
+
factories.forEach((factory) => factory.dispose?.());
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new ServiceModule instance by aggregating and deduplicating a list of
|
|
57
|
+
* ServiceModule or GenericFactory instances.
|
|
58
|
+
* If multiple factories provide the same
|
|
59
|
+
* ServiceKey, the last one in the list takes precedence.
|
|
60
|
+
*
|
|
61
|
+
* @param {Array<ServiceModule | GenericFactory>} entries - An array of ServiceModule or GenericFactory
|
|
62
|
+
* instances to be processed into a single ServiceModule.
|
|
63
|
+
* @return {ServiceModule} A new ServiceModule containing the deduplicated factories.
|
|
64
|
+
*/
|
|
65
|
+
static from(entries: (ServiceModule | GenericFactory)[]): ServiceModule {
|
|
66
|
+
// Flatten entries and keep only the last factory for each ServiceKey
|
|
67
|
+
const flattened = entries.flatMap((e) =>
|
|
68
|
+
e instanceof ServiceModule ? e.factories : [e],
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
const byKey = new Map<symbol, GenericFactory>();
|
|
72
|
+
// Later factories overwrite earlier ones (last-wins)
|
|
73
|
+
for (const f of flattened) {
|
|
74
|
+
byKey.set(f.provides.symbol, f);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return new ServiceModule(Array.from(byKey.values()));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function checkRecursiveDependencies(factory: GenericFactory) {
|
|
82
|
+
const recursive = factory.dependsOn.some((dependencyKey) => {
|
|
83
|
+
return dependencyKey === factory.provides;
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
if (recursive) {
|
|
87
|
+
throw new Error(
|
|
88
|
+
'Recursive dependency detected on: ' + factory.provides.name,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function checkMissingDependencies(
|
|
94
|
+
factory: GenericFactory,
|
|
95
|
+
factories: GenericFactory[],
|
|
96
|
+
) {
|
|
97
|
+
const missingDependencies = factory.dependsOn.filter(
|
|
98
|
+
(dependencyKey: GenericKey) => {
|
|
99
|
+
return !isRegistered(dependencyKey, factories);
|
|
100
|
+
},
|
|
101
|
+
);
|
|
102
|
+
if (missingDependencies.length === 0) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const dependencyList = missingDependencies
|
|
107
|
+
.map((dependencyKey) => ` -> ${dependencyKey.name}`)
|
|
108
|
+
.join('\n');
|
|
109
|
+
throw new Error(
|
|
110
|
+
`${factory.provides.name} will fail because it depends on:\n ${dependencyList}`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function isRegistered(key: GenericKey, factories: GenericFactory[]) {
|
|
115
|
+
return factories.some((factory) => factory.provides?.symbol === key?.symbol);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function isSuitable<T, D extends readonly ServiceKey<any>[]>(
|
|
119
|
+
key: ServiceKey<T>,
|
|
120
|
+
factory: ServiceFactory<any, D>,
|
|
121
|
+
): factory is ServiceFactory<T, D> {
|
|
122
|
+
return factory?.provides?.symbol === key?.symbol;
|
|
123
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export class ServiceScope {
|
|
2
|
-
readonly symbol: symbol;
|
|
3
|
-
|
|
4
|
-
constructor(readonly name: string) {
|
|
5
|
-
this.symbol = Symbol(name);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
export class ServiceScope {
|
|
2
|
+
readonly symbol: symbol;
|
|
3
|
+
|
|
4
|
+
constructor(readonly name: string) {
|
|
5
|
+
this.symbol = Symbol(name);
|
|
6
|
+
}
|
|
7
|
+
}
|
package/src/utils.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ServiceModule } from './
|
|
2
|
-
import { ServiceKey } from './
|
|
1
|
+
import { ServiceModule } from './serviceModule';
|
|
2
|
+
import { ServiceKey } from './serviceKey';
|
|
3
3
|
|
|
4
4
|
export interface DotGraphOptions {
|
|
5
5
|
/** Graph direction: 'TB' (top-bottom), 'LR' (left-right), 'BT' (bottom-top), 'RL' (right-left) */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceScope.d.ts","sourceRoot":"","sources":["../src/ServiceScope.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAGX,QAAQ,CAAC,IAAI,EAAE,MAAM;IAFjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEH,IAAI,EAAE,MAAM;CAGlC"}
|
package/dist/ServiceScope.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceScope.js","sourceRoot":"","sources":["../src/ServiceScope.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IAGvB,YAAqB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AAND,oCAMC"}
|
|
File without changes
|