inversify-typesafe-spring-like 0.2.0 → 0.2.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 { returnTypesafeInject, TypesafeContainer, TypesafeServiceConfig } from \"inversify-typesafe\";\n\nexport const returnAutowired = <Name extends string>() => ({ Autowired: returnTypesafeInject<Name>() });\n\nexport class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {\n constructor(serviceConfig: TypesafeServiceConfig<S>, options?: ContainerOptions) {\n super(serviceConfig, { defaultScope: \"Singleton\", ...options });\n }\n}"],"names":["_TypesafeContainer","ApplicationContext","serviceConfig","options","call","_extends","defaultScope","this","TypesafeContainer","Autowired","returnTypesafeInject"],"mappings":"6ZAKmE,SAAAA,GACjE,SAAAC,EAAYC,EAAyCC,GAA0B,OAC7EH,EAAAI,KAAMF,KAAAA,EAAaG,GAAIC,aAAc,aAAgBH,KAAUI,IACjE,SAACN,SAAAD,KAAAC,yEAAAA,CAAA,CAHgE,CAAQO,EAAoBA,2CAFhE,WAA4B,MAAA,CAAEC,UAAWC,EAAoBA,uBAAU"}
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 { TypesafeContainer, TypesafeServiceConfig } from "inversify-typesafe";
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(serviceConfig: TypesafeServiceConfig<S>, options?: ContainerOptions);
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 { TypesafeContainer, TypesafeServiceConfig } from "inversify-typesafe";
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(serviceConfig: TypesafeServiceConfig<S>, options?: ContainerOptions);
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, TypesafeServiceConfig } from \"inversify-typesafe\";\n\nexport const returnAutowired = <Name extends string>() => ({ Autowired: returnTypesafeInject<Name>() });\n\nexport class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {\n constructor(serviceConfig: TypesafeServiceConfig<S>, options?: ContainerOptions) {\n super(serviceConfig, { defaultScope: \"Singleton\", ...options });\n }\n}"],"names":["returnAutowired","Autowired","returnTypesafeInject","ApplicationContext","TypesafeContainer","constructor","serviceConfig","options","super","_extends","defaultScope"],"mappings":"ySAGa,MAAAA,EAAkBA,KAAAA,CAA8BC,UAAWC,MAE3D,MAAAC,UAA8DC,EACzEC,WAAAA,CAAYC,EAAyCC,GACnDC,MAAMF,EAAaG,EAAA,CAAIC,aAAc,aAAgBH,GACvD"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport { returnTypesafeInject, TypesafeContainer, TypesafeServiceConfig } from \"inversify-typesafe\";\n\nexport const returnAutowired = <Name extends string>() => ({ Autowired: returnTypesafeInject<Name>() });\n\nexport class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {\n constructor(serviceConfig: TypesafeServiceConfig<S>, options?: ContainerOptions) {\n super(serviceConfig, { defaultScope: \"Singleton\", ...options });\n }\n}"],"names":["_TypesafeContainer","ApplicationContext","serviceConfig","options","call","_extends","defaultScope","this","TypesafeContainer","Autowired","returnTypesafeInject"],"mappings":"irBAKmE,SAAAA,GACjE,SAAAC,EAAYC,EAAyCC,GAA0B,OAC7EH,EAAAI,KAAMF,KAAAA,EAAaG,GAAIC,aAAc,aAAgBH,KAAUI,IACjE,SAACN,SAAAD,KAAAC,yEAAAA,CAAA,CAHgE,CAAQO,EAAoBA,qCAFhE,WAA4B,MAAA,CAAEC,UAAWC,EAAoBA,uBAAU"}
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.2.0",
4
+ "version": "0.2.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": {