@kaokei/di 2.0.8 → 3.0.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 +27 -56
- package/dist/binding.d.cts +36 -0
- package/dist/binding.d.ts +36 -0
- package/dist/cachemap.d.cts +21 -0
- package/dist/cachemap.d.ts +21 -0
- package/dist/constants.d.cts +28 -0
- package/dist/constants.d.ts +28 -0
- package/dist/container.d.cts +29 -0
- package/dist/container.d.ts +29 -0
- package/dist/decorator.d.cts +18 -0
- package/dist/decorator.d.ts +18 -0
- package/dist/errors/BaseError.d.cts +4 -0
- package/dist/errors/BaseError.d.ts +4 -0
- package/dist/errors/BindingNotFoundError.d.cts +5 -0
- package/dist/errors/BindingNotFoundError.d.ts +5 -0
- package/dist/errors/BindingNotValidError.d.cts +5 -0
- package/dist/errors/BindingNotValidError.d.ts +5 -0
- package/dist/errors/CircularDependencyError.d.cts +5 -0
- package/dist/errors/CircularDependencyError.d.ts +5 -0
- package/dist/errors/DuplicateBindingError.d.cts +5 -0
- package/dist/errors/DuplicateBindingError.d.ts +5 -0
- package/dist/errors/PostConstructError.d.cts +5 -0
- package/dist/errors/PostConstructError.d.ts +5 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +402 -0
- package/dist/interfaces.d.cts +47 -0
- package/dist/interfaces.d.ts +47 -0
- package/dist/lazyinject.d.cts +4 -0
- package/dist/lazyinject.d.ts +4 -0
- package/dist/token.d.cts +12 -0
- package/dist/token.d.ts +12 -0
- package/package.json +38 -97
- package/dist/index.cjs.js +0 -746
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.cjs.min.js +0 -11
- package/dist/index.cjs.min.js.map +0 -1
- package/dist/index.cjs.runtime.js +0 -735
- package/dist/index.cjs.runtime.js.map +0 -1
- package/dist/index.cjs.runtime.min.js +0 -11
- package/dist/index.cjs.runtime.min.js.map +0 -1
- package/dist/index.esm.js +0 -724
- package/dist/index.esm.js.map +0 -1
- package/dist/index.esm.min.js +0 -11
- package/dist/index.esm.min.js.map +0 -1
- package/dist/index.esm.runtime.js +0 -713
- package/dist/index.esm.runtime.js.map +0 -1
- package/dist/index.esm.runtime.min.js +0 -11
- package/dist/index.esm.runtime.min.js.map +0 -1
- package/dist/index.iife.js +0 -749
- package/dist/index.iife.js.map +0 -1
- package/dist/index.iife.min.js +0 -11
- package/dist/index.iife.min.js.map +0 -1
- package/dist/src/Injector.d.ts +0 -143
- package/dist/src/Injector.d.ts.map +0 -1
- package/dist/src/constants.d.ts +0 -17
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/decorator.d.ts +0 -42
- package/dist/src/decorator.d.ts.map +0 -1
- package/dist/src/errors/CircularDependencyError.d.ts +0 -6
- package/dist/src/errors/CircularDependencyError.d.ts.map +0 -1
- package/dist/src/errors/ConstructorInjectMissTokenError.d.ts +0 -6
- package/dist/src/errors/ConstructorInjectMissTokenError.d.ts.map +0 -1
- package/dist/src/errors/InjectFailedError.d.ts +0 -6
- package/dist/src/errors/InjectFailedError.d.ts.map +0 -1
- package/dist/src/errors/PropertyInjectMissTokenError.d.ts +0 -6
- package/dist/src/errors/PropertyInjectMissTokenError.d.ts.map +0 -1
- package/dist/src/errors/ProviderNotValidError.d.ts +0 -6
- package/dist/src/errors/ProviderNotValidError.d.ts.map +0 -1
- package/dist/src/errors/TokenNotFoundError.d.ts +0 -6
- package/dist/src/errors/TokenNotFoundError.d.ts.map +0 -1
- package/dist/src/errors/index.d.ts +0 -7
- package/dist/src/errors/index.d.ts.map +0 -1
- package/dist/src/forwardRef.d.ts +0 -7
- package/dist/src/forwardRef.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -7
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/utils.d.ts +0 -4
- package/dist/src/utils.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,38 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaokei/di",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Tiny di library depends on typescript and reflect-metadata",
|
|
3
|
+
"version": "3.0.0",
|
|
5
4
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
5
|
+
"description": "Tiny di library depends on typescript decorator.",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"unpkg": "./dist/index.cjs",
|
|
10
|
+
"jsdelivr": "./dist/index.cjs",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist/**/*"
|
|
13
13
|
],
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"browser": "./dist/index.iife.js",
|
|
19
|
-
"node": {
|
|
20
|
-
"import": {
|
|
21
|
-
"production": "./dist/index.esm.runtime.min.js",
|
|
22
|
-
"development": "./dist/index.esm.js",
|
|
23
|
-
"default": "./dist/index.esm.js"
|
|
24
|
-
},
|
|
25
|
-
"require": {
|
|
26
|
-
"production": "./dist/index.cjs.runtime.min.js",
|
|
27
|
-
"development": "./dist/index.cjs.js",
|
|
28
|
-
"default": "./dist/index.cjs.js"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs"
|
|
31
18
|
},
|
|
32
19
|
"./dist/*": "./dist/*",
|
|
33
20
|
"./package.json": "./package.json"
|
|
34
21
|
},
|
|
35
|
-
"browserVariableName": "DI",
|
|
36
22
|
"sideEffects": false,
|
|
37
23
|
"homepage": "https://github.com/kaokei/di",
|
|
38
24
|
"author": "kaokei",
|
|
@@ -44,83 +30,38 @@
|
|
|
44
30
|
"type": "git",
|
|
45
31
|
"url": "git+https://github.com/kaokei/di.git"
|
|
46
32
|
},
|
|
47
|
-
"keywords": [
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
53
|
-
"lint": "eslint --fix --ext js,ts,jsx,tsx src tests playground",
|
|
54
|
-
"build": "npm run check && npm run rp",
|
|
55
|
-
"clean": "rm -rf dist/*",
|
|
56
|
-
"postpublish": "git push origin --follow-tags",
|
|
57
|
-
"prepublishOnly": "npm run clean && npm run build",
|
|
58
|
-
"release": "standard-version -r",
|
|
59
|
-
"release:first": "standard-version --first-release",
|
|
60
|
-
"coverage": "open ./coverage/lcov-report/index.html",
|
|
61
|
-
"commit": "git-cz"
|
|
62
|
-
},
|
|
63
|
-
"peerDependencies": {
|
|
64
|
-
"reflect-metadata": "^0.2.2"
|
|
65
|
-
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"IoC",
|
|
35
|
+
"DI",
|
|
36
|
+
"Dependency injection"
|
|
37
|
+
],
|
|
66
38
|
"devDependencies": {
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"@rollup/plugin-commonjs": "^25.0.7",
|
|
75
|
-
"@rollup/plugin-json": "^6.0.1",
|
|
76
|
-
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
77
|
-
"@rollup/plugin-replace": "^5.0.5",
|
|
78
|
-
"@types/jest": "^29.5.10",
|
|
79
|
-
"@types/node": "^20.10.0",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
81
|
-
"@typescript-eslint/parser": "^6.12.0",
|
|
82
|
-
"babel-jest": "^29.7.0",
|
|
83
|
-
"commitizen": "^4.3.0",
|
|
84
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
85
|
-
"eslint": "^8.54.0",
|
|
86
|
-
"eslint-config-prettier": "^9.0.0",
|
|
87
|
-
"eslint-plugin-prettier": "^5.0.1",
|
|
88
|
-
"fs-extra": "^11.1.1",
|
|
89
|
-
"git-cz": "^4.9.0",
|
|
90
|
-
"jest": "^29.7.0",
|
|
91
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
92
|
-
"lint-staged": "^15.1.0",
|
|
93
|
-
"prettier": "^3.1.0",
|
|
39
|
+
"@types/fs-extra": "^11.0.4",
|
|
40
|
+
"@types/node": "^22.13.4",
|
|
41
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
42
|
+
"@vitest/coverage-v8": "^3.0.5",
|
|
43
|
+
"@vue/test-utils": "^2.4.6",
|
|
44
|
+
"fs-extra": "^11.3.0",
|
|
45
|
+
"jsdom": "^25.0.1",
|
|
94
46
|
"reflect-metadata": "^0.2.2",
|
|
95
|
-
"rollup": "^4.5.2",
|
|
96
|
-
"rollup-plugin-node-builtins": "^2.1.2",
|
|
97
|
-
"rollup-plugin-node-globals": "^1.4.0",
|
|
98
|
-
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
99
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
100
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
101
47
|
"standard-version": "^9.5.0",
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
48
|
+
"typescript": "~5.6.3",
|
|
49
|
+
"vite": "^5.4.14",
|
|
50
|
+
"vite-plugin-dts": "^4.5.0",
|
|
51
|
+
"vitest": "^3.0.5",
|
|
52
|
+
"vue": "^3.5.13",
|
|
53
|
+
"vue-router": "^4.5.0",
|
|
54
|
+
"vue-tsc": "^2.2.2"
|
|
106
55
|
},
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"commit-msg": "commitlint -e $GIT_PARAMS"
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"inversify": "6"
|
|
110
58
|
},
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
"path": "node_modules/cz-conventional-changelog"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"commitlint": {
|
|
122
|
-
"extends": [
|
|
123
|
-
"@commitlint/config-conventional"
|
|
124
|
-
]
|
|
59
|
+
"scripts": {
|
|
60
|
+
"test": "vitest",
|
|
61
|
+
"coverage": "vitest run --coverage",
|
|
62
|
+
"build": "tsc && vite build",
|
|
63
|
+
"clean": "rm -rf dist/*",
|
|
64
|
+
"release": "standard-version -r",
|
|
65
|
+
"release:first": "standard-version --first-release"
|
|
125
66
|
}
|
|
126
|
-
}
|
|
67
|
+
}
|