inversify-typesafe-spring-like 0.2.0 → 0.3.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/README.md +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
Add-On Library for inversify-typesafe to make it more like <a href="https://spring.io/" target="_blank">Spring</a>.
|
|
5
|
+
<br/>
|
|
6
|
+
<a href="https://stackblitz.com/edit/inversify-typesafe-spring-like?file=test%2Fmain.test.ts" target="_blank">
|
|
7
|
+
<strong>See Demo</strong>
|
|
8
|
+
</a>
|
|
5
9
|
</p>
|
|
6
10
|
|
|
7
11
|
<p align="center">
|
|
8
|
-
<a href="https://github.com/myeongjae-kim/inversify-typesafe
|
|
9
|
-
<img src="https://github.com/myeongjae-kim/inversify-typesafe
|
|
12
|
+
<a href="https://github.com/myeongjae-kim/inversify-typesafe/actions?query=workflow%3ACI">
|
|
13
|
+
<img src="https://github.com/myeongjae-kim/inversify-typesafe/workflows/CI/badge.svg" alt="CI" height="18">
|
|
10
14
|
</a>
|
|
11
|
-
<a href="https://codecov.io/gh/myeongjae-kim/inversify-typesafe
|
|
12
|
-
<img src="https://img.shields.io/codecov/c/github/myeongjae-kim/inversify-typesafe
|
|
15
|
+
<a href="https://codecov.io/gh/myeongjae-kim/inversify-typesafe">
|
|
16
|
+
<img src="https://img.shields.io/codecov/c/github/myeongjae-kim/inversify-typesafe.svg" alt="Test Coverage" height="18">
|
|
13
17
|
</a>
|
|
14
18
|
<a href="https://www.npmjs.com/package/inversify-typesafe-spring-like">
|
|
15
19
|
<img src="https://img.shields.io/npm/v/inversify-typesafe-spring-like.svg" alt="npm version" height="18">
|
|
@@ -17,7 +21,7 @@
|
|
|
17
21
|
<a href="https://bundlephobia.com/package/inversify-typesafe-spring-like">
|
|
18
22
|
<img src="https://img.shields.io/bundlephobia/minzip/inversify-typesafe-spring-like" alt="Bundle Size" height="18">
|
|
19
23
|
</a>
|
|
20
|
-
<a href="https://raw.githubusercontent.com/myeongjae-kim/inversify-typesafe-spring-like/
|
|
24
|
+
<a href="https://raw.githubusercontent.com/myeongjae-kim/inversify-typesafe/refs/heads/main/packages/inversify-typesafe-spring-like/LICENSE">
|
|
21
25
|
<img src="https://img.shields.io/npm/l/inversify-typesafe-spring-like.svg" alt="MIT license" height="18">
|
|
22
26
|
</a>
|
|
23
27
|
</p>
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { returnTypesafeInject, TypesafeContainer
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { TypesafeServiceConfig as BeanConfig, returnTypesafeInject, TypesafeContainer } from \"inversify-typesafe\";\n\nexport const returnAutowired = <Name extends string>() => ({ Autowired: returnTypesafeInject<Name>() });\n\nexport type { BeanConfig };\n\nexport class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {\n constructor(beanConfig: BeanConfig<S>, options?: ContainerOptions) {\n super(beanConfig, { defaultScope: \"Singleton\", ...options });\n }\n}"],"names":["_TypesafeContainer","ApplicationContext","beanConfig","options","call","_extends","defaultScope","this","TypesafeContainer","Autowired","returnTypesafeInject"],"mappings":"6ZAOmE,SAAAA,GACjE,SAAAC,EAAYC,EAA2BC,GAA0B,OAC/DH,EAAAI,KAAMF,KAAAA,EAAUG,GAAIC,aAAc,aAAgBH,KAAUI,IAC9D,SAACN,SAAAD,KAAAC,yEAAAA,CAAA,CAHgE,CAAQO,EAAoBA,2CAJhE,WAA4B,MAAA,CAAEC,UAAWC,EAAoBA,uBAAU"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ContainerOptions } from "inversify";
|
|
2
|
-
import {
|
|
2
|
+
import { TypesafeServiceConfig as BeanConfig, TypesafeContainer } from "inversify-typesafe";
|
|
3
3
|
export declare const returnAutowired: <Name extends string>() => {
|
|
4
4
|
Autowired: (name: Name) => MethodDecorator & ParameterDecorator & PropertyDecorator;
|
|
5
5
|
};
|
|
6
|
+
export type { BeanConfig };
|
|
6
7
|
export declare class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {
|
|
7
|
-
constructor(
|
|
8
|
+
constructor(beanConfig: BeanConfig<S>, options?: ContainerOptions);
|
|
8
9
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ContainerOptions } from "inversify";
|
|
2
|
-
import {
|
|
2
|
+
import { TypesafeServiceConfig as BeanConfig, TypesafeContainer } from "inversify-typesafe";
|
|
3
3
|
export declare const returnAutowired: <Name extends string>() => {
|
|
4
4
|
Autowired: (name: Name) => MethodDecorator & ParameterDecorator & PropertyDecorator;
|
|
5
5
|
};
|
|
6
|
+
export type { BeanConfig };
|
|
6
7
|
export declare class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {
|
|
7
|
-
constructor(
|
|
8
|
+
constructor(beanConfig: BeanConfig<S>, options?: ContainerOptions);
|
|
8
9
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { returnTypesafeInject, TypesafeContainer
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { TypesafeServiceConfig as BeanConfig, returnTypesafeInject, TypesafeContainer } from \"inversify-typesafe\";\n\nexport const returnAutowired = <Name extends string>() => ({ Autowired: returnTypesafeInject<Name>() });\n\nexport type { BeanConfig };\n\nexport class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {\n constructor(beanConfig: BeanConfig<S>, options?: ContainerOptions) {\n super(beanConfig, { defaultScope: \"Singleton\", ...options });\n }\n}"],"names":["returnAutowired","Autowired","returnTypesafeInject","ApplicationContext","TypesafeContainer","constructor","beanConfig","options","super","_extends","defaultScope"],"mappings":"ySAGa,MAAAA,EAAkBA,KAAAA,CAA8BC,UAAWC,MAI3D,MAAAC,UAA8DC,EACzEC,WAAAA,CAAYC,EAA2BC,GACrCC,MAAMF,EAAUG,EAAA,CAAIC,aAAc,aAAgBH,GACpD"}
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { returnTypesafeInject, TypesafeContainer
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { TypesafeServiceConfig as BeanConfig, returnTypesafeInject, TypesafeContainer } from \"inversify-typesafe\";\n\nexport const returnAutowired = <Name extends string>() => ({ Autowired: returnTypesafeInject<Name>() });\n\nexport type { BeanConfig };\n\nexport class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {\n constructor(beanConfig: BeanConfig<S>, options?: ContainerOptions) {\n super(beanConfig, { defaultScope: \"Singleton\", ...options });\n }\n}"],"names":["_TypesafeContainer","ApplicationContext","beanConfig","options","call","_extends","defaultScope","this","TypesafeContainer","Autowired","returnTypesafeInject"],"mappings":"irBAOmE,SAAAA,GACjE,SAAAC,EAAYC,EAA2BC,GAA0B,OAC/DH,EAAAI,KAAMF,KAAAA,EAAUG,GAAIC,aAAc,aAAgBH,KAAUI,IAC9D,SAACN,SAAAD,KAAAC,yEAAAA,CAAA,CAHgE,CAAQO,EAAoBA,qCAJhE,WAA4B,MAAA,CAAEC,UAAWC,EAAoBA,uBAAU"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inversify-typesafe-spring-like",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"description": "Add-On Library for inversify-typesafe to make it more like Spring.",
|
|
6
6
|
"source": "src/index.ts",
|
|
7
7
|
"exports": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"type": "git",
|
|
51
51
|
"url": "https://github.com/myeongjae-kim/inversify-typesafe"
|
|
52
52
|
},
|
|
53
|
-
"homepage": "https://github.com/myeongjae-kim/inversify-typesafe",
|
|
53
|
+
"homepage": "https://github.com/myeongjae-kim/inversify-typesafe/tree/main/packages/inversify-typesafe-spring-like",
|
|
54
54
|
"keywords": [
|
|
55
55
|
"inversify",
|
|
56
56
|
"spring",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"author": "Myeongjae Kim",
|
|
62
62
|
"license": "MIT",
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"inversify-typesafe": "^0.
|
|
64
|
+
"inversify-typesafe": "^0.3.1"
|
|
65
65
|
}
|
|
66
66
|
}
|