@resolid/di 0.7.0 → 0.7.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/index.d.mts +3 -3
- package/package.json +22 -23
package/dist/index.d.mts
CHANGED
|
@@ -25,11 +25,11 @@ interface Resolver {
|
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/container/index.d.ts
|
|
27
27
|
type Scope = "singleton" | "transient";
|
|
28
|
-
|
|
28
|
+
interface Provider<T = unknown> {
|
|
29
29
|
token: Token<T>;
|
|
30
30
|
factory: () => T;
|
|
31
31
|
scope?: Scope;
|
|
32
|
-
}
|
|
32
|
+
}
|
|
33
33
|
declare class Container implements Resolver, Disposable {
|
|
34
34
|
private readonly _providers;
|
|
35
35
|
private readonly _singletons;
|
|
@@ -49,7 +49,7 @@ declare class Container implements Resolver, Disposable {
|
|
|
49
49
|
optional: true;
|
|
50
50
|
}): () => T | undefined;
|
|
51
51
|
get<T>(token: Token<T>, options: {
|
|
52
|
-
lazy
|
|
52
|
+
lazy: false;
|
|
53
53
|
optional?: boolean;
|
|
54
54
|
}): T | undefined;
|
|
55
55
|
dispose(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolid/di",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TypeScript Dependency Injection Container",
|
|
6
6
|
"keywords": [
|
|
7
|
-
"resolid",
|
|
8
7
|
"container",
|
|
9
|
-
"
|
|
10
|
-
"inversion of control",
|
|
8
|
+
"dependency injection",
|
|
11
9
|
"di",
|
|
12
|
-
"
|
|
10
|
+
"inversion of control",
|
|
11
|
+
"ioc",
|
|
12
|
+
"resolid"
|
|
13
13
|
],
|
|
14
14
|
"homepage": "https://www.resolid.tech",
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/resolid/framework.git",
|
|
18
|
-
"directory": "packages/di"
|
|
19
|
-
},
|
|
20
15
|
"license": "MIT",
|
|
21
16
|
"author": {
|
|
22
17
|
"name": "Huijie Wei",
|
|
23
18
|
"email": "hello@resolid.tech"
|
|
24
19
|
},
|
|
25
|
-
"
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/resolid/framework.git",
|
|
23
|
+
"directory": "packages/di"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
26
28
|
"type": "module",
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"types": "./dist/index.d.mts",
|
|
27
31
|
"exports": {
|
|
28
32
|
".": {
|
|
29
33
|
"types": "./dist/index.d.mts",
|
|
30
34
|
"import": "./dist/index.mjs"
|
|
31
35
|
}
|
|
32
36
|
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"provenance": true
|
|
40
|
+
},
|
|
38
41
|
"devDependencies": {
|
|
39
|
-
"tsdown": "^0.
|
|
42
|
+
"tsdown": "^0.20.3",
|
|
40
43
|
"typescript": "^5.9.3"
|
|
41
44
|
},
|
|
42
45
|
"engines": {
|
|
43
|
-
"node": "^
|
|
44
|
-
},
|
|
45
|
-
"publishConfig": {
|
|
46
|
-
"access": "public",
|
|
47
|
-
"provenance": true
|
|
46
|
+
"node": "^22.13.0 || >=24"
|
|
48
47
|
},
|
|
49
48
|
"scripts": {
|
|
50
49
|
"build": "tsdown",
|
|
51
|
-
"lint": "
|
|
50
|
+
"lint": "oxlint",
|
|
52
51
|
"test": "vitest run",
|
|
53
52
|
"typecheck": "tsc --noEmit"
|
|
54
53
|
}
|