inversify-typesafe-spring-like 0.4.0 → 0.5.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { TypesafeServiceConfig as BeanConfig, createTypesafeContainer, returnTypesafeInject } from \"inversify-typesafe\";\n\nexport const returnAutowired = <Name extends string>() => ({ Autowired: returnTypesafeInject<Name>() });\n\nexport type { BeanConfig };\n\nexport const ApplicationContext = <S extends Record<string, unknown>>(beanConfig: BeanConfig<S>, options?: ContainerOptions) =>\n createTypesafeContainer(beanConfig, { defaultScope: \"Singleton\", ...options });"],"names":["beanConfig","options","createTypesafeContainer","_extends","defaultScope","Autowired","returnTypesafeInject"],"mappings":"uRAOkC,SAAoCA,EAA2BC,GAC/F,OAAAC,EAAuBA,wBAACF,EAAUG,EAAIC,CAAAA,aAAc,aAAgBH,GAAU,0BALjD,WAAH,MAA+B,CAAEI,UAAWC,EAAAA,uBAA8B"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { TypesafeServiceConfig as BeanConfig, createTypesafeContainer, returnTypesafeInject } from \"inversify-typesafe\";\n\nexport const returnAutowired = <S extends Record<string, unknown>>() => ({ Autowired: returnTypesafeInject<S>() });\n\nexport type { BeanConfig };\n\nexport const ApplicationContext = <S extends Record<string, unknown>>(beanConfig: BeanConfig<S>, options?: ContainerOptions) =>\n createTypesafeContainer(beanConfig, { defaultScope: \"Singleton\", ...options });"],"names":["beanConfig","options","createTypesafeContainer","_extends","defaultScope","Autowired","returnTypesafeInject"],"mappings":"uRAOkC,SAAoCA,EAA2BC,GAC/F,OAAAC,EAAuBA,wBAACF,EAAUG,EAAIC,CAAAA,aAAc,aAAgBH,GAAU,0BALjD,WAAH,MAA6C,CAAEI,UAAWC,EAAAA,uBAA2B"}
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ContainerOptions } from "inversify";
2
2
  import { TypesafeServiceConfig as BeanConfig } from "inversify-typesafe";
3
- export declare const returnAutowired: <Name extends string>() => {
4
- Autowired: (name: Name) => MethodDecorator & ParameterDecorator & PropertyDecorator;
3
+ export declare const returnAutowired: <S extends Record<string, unknown>>() => {
4
+ Autowired: (name: Extract<keyof S, string>) => MethodDecorator & ParameterDecorator & PropertyDecorator;
5
5
  };
6
6
  export type { BeanConfig };
7
7
  export declare const ApplicationContext: <S extends Record<string, unknown>>(beanConfig: BeanConfig<S>, options?: ContainerOptions) => import("inversify-typesafe").TypesafeContainer<S>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ContainerOptions } from "inversify";
2
2
  import { TypesafeServiceConfig as BeanConfig } from "inversify-typesafe";
3
- export declare const returnAutowired: <Name extends string>() => {
4
- Autowired: (name: Name) => MethodDecorator & ParameterDecorator & PropertyDecorator;
3
+ export declare const returnAutowired: <S extends Record<string, unknown>>() => {
4
+ Autowired: (name: Extract<keyof S, string>) => MethodDecorator & ParameterDecorator & PropertyDecorator;
5
5
  };
6
6
  export type { BeanConfig };
7
7
  export declare const ApplicationContext: <S extends Record<string, unknown>>(beanConfig: BeanConfig<S>, options?: ContainerOptions) => import("inversify-typesafe").TypesafeContainer<S>;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { TypesafeServiceConfig as BeanConfig, createTypesafeContainer, returnTypesafeInject } from \"inversify-typesafe\";\n\nexport const returnAutowired = <Name extends string>() => ({ Autowired: returnTypesafeInject<Name>() });\n\nexport type { BeanConfig };\n\nexport const ApplicationContext = <S extends Record<string, unknown>>(beanConfig: BeanConfig<S>, options?: ContainerOptions) =>\n createTypesafeContainer(beanConfig, { defaultScope: \"Singleton\", ...options });"],"names":["returnAutowired","Autowired","returnTypesafeInject","ApplicationContext","beanConfig","options","createTypesafeContainer","_extends","defaultScope"],"mappings":"+SAGa,MAAAA,EAAkBA,KAA4B,CAAEC,UAAWC,MAI3DC,EAAqBA,CAAoCC,EAA2BC,IAC/FC,EAAwBF,EAAUG,GAAIC,aAAc,aAAgBH"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { TypesafeServiceConfig as BeanConfig, createTypesafeContainer, returnTypesafeInject } from \"inversify-typesafe\";\n\nexport const returnAutowired = <S extends Record<string, unknown>>() => ({ Autowired: returnTypesafeInject<S>() });\n\nexport type { BeanConfig };\n\nexport const ApplicationContext = <S extends Record<string, unknown>>(beanConfig: BeanConfig<S>, options?: ContainerOptions) =>\n createTypesafeContainer(beanConfig, { defaultScope: \"Singleton\", ...options });"],"names":["returnAutowired","Autowired","returnTypesafeInject","ApplicationContext","beanConfig","options","createTypesafeContainer","_extends","defaultScope"],"mappings":"+SAGa,MAAAA,EAAkBA,KAA0C,CAAEC,UAAWC,MAIzEC,EAAqBA,CAAoCC,EAA2BC,IAC/FC,EAAwBF,EAAUG,GAAIC,aAAc,aAAgBH"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { TypesafeServiceConfig as BeanConfig, createTypesafeContainer, returnTypesafeInject } from \"inversify-typesafe\";\n\nexport const returnAutowired = <Name extends string>() => ({ Autowired: returnTypesafeInject<Name>() });\n\nexport type { BeanConfig };\n\nexport const ApplicationContext = <S extends Record<string, unknown>>(beanConfig: BeanConfig<S>, options?: ContainerOptions) =>\n createTypesafeContainer(beanConfig, { defaultScope: \"Singleton\", ...options });"],"names":["beanConfig","options","createTypesafeContainer","_extends","defaultScope","Autowired","returnTypesafeInject"],"mappings":"2iBAOkC,SAAoCA,EAA2BC,GAC/F,OAAAC,EAAuBA,wBAACF,EAAUG,EAAIC,CAAAA,aAAc,aAAgBH,GAAU,oBALjD,WAAH,MAA+B,CAAEI,UAAWC,EAAAA,uBAA8B"}
1
+ {"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { TypesafeServiceConfig as BeanConfig, createTypesafeContainer, returnTypesafeInject } from \"inversify-typesafe\";\n\nexport const returnAutowired = <S extends Record<string, unknown>>() => ({ Autowired: returnTypesafeInject<S>() });\n\nexport type { BeanConfig };\n\nexport const ApplicationContext = <S extends Record<string, unknown>>(beanConfig: BeanConfig<S>, options?: ContainerOptions) =>\n createTypesafeContainer(beanConfig, { defaultScope: \"Singleton\", ...options });"],"names":["beanConfig","options","createTypesafeContainer","_extends","defaultScope","Autowired","returnTypesafeInject"],"mappings":"2iBAOkC,SAAoCA,EAA2BC,GAC/F,OAAAC,EAAuBA,wBAACF,EAAUG,EAAIC,CAAAA,aAAc,aAAgBH,GAAU,oBALjD,WAAH,MAA6C,CAAEI,UAAWC,EAAAA,uBAA2B"}
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.0",
4
+ "version": "0.5.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": {
@@ -61,6 +61,6 @@
61
61
  "author": "Myeongjae Kim",
62
62
  "license": "MIT",
63
63
  "dependencies": {
64
- "inversify-typesafe": "^0.4.0"
64
+ "inversify-typesafe": "^0.5.1"
65
65
  }
66
66
  }