inversify-typesafe-spring-like 0.1.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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t=require("inversify-typesafe");function e(){return e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e.apply(null,arguments)}function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}exports.ApplicationContext=/*#__PURE__*/function(t){function n(r,n){return t.call(this,r,e({defaultScope:"Singleton"},n))||this}var o,i;return i=t,(o=n).prototype=Object.create(i.prototype),o.prototype.constructor=o,r(o,i),n}(t.
|
|
1
|
+
var t=require("inversify-typesafe");function e(){return e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e.apply(null,arguments)}function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}exports.ApplicationContext=/*#__PURE__*/function(t){function n(r,n){return t.call(this,r,e({defaultScope:"Singleton"},n))||this}var o,i;return i=t,(o=n).prototype=Object.create(i.prototype),o.prototype.constructor=o,r(o,i),n}(t.TypesafeContainer),exports.returnAutowired=function(){return{Autowired:t.returnTypesafeInject()}};
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport {
|
|
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
|
|
7
|
-
|
|
6
|
+
export type { BeanConfig };
|
|
7
|
+
export declare class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {
|
|
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
|
|
7
|
-
|
|
6
|
+
export type { BeanConfig };
|
|
7
|
+
export declare class ApplicationContext<S extends Record<string, unknown>> extends TypesafeContainer<S> {
|
|
8
|
+
constructor(beanConfig: BeanConfig<S>, options?: ContainerOptions);
|
|
8
9
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{returnTypesafeInject as n,TypesafeContainer as r}from"inversify-typesafe";function t(){return t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t)({}).hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},t.apply(null,arguments)}const e=()=>({Autowired:n()});class o extends r{constructor(n,r){super(n,t({defaultScope:"Singleton"},r))}}export{o as ApplicationContext,e as returnAutowired};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { ContainerOptions } from \"inversify\";\nimport {
|
|
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
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("inversify-typesafe")):"function"==typeof define&&define.amd?define(["exports","inversify-typesafe"],t):t((e||self).inversifyTypesafeSpringLike={},e.inversifyTypesafe)}(this,function(e,t){function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(null,arguments)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}e.ApplicationContext=/*#__PURE__*/function(e){function t(t,r){return e.call(this,t,n({defaultScope:"Singleton"},r))||this}var o,i;return i=e,(o=t).prototype=Object.create(i.prototype),o.prototype.constructor=o,r(o,i),t}(t.
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("inversify-typesafe")):"function"==typeof define&&define.amd?define(["exports","inversify-typesafe"],t):t((e||self).inversifyTypesafeSpringLike={},e.inversifyTypesafe)}(this,function(e,t){function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(null,arguments)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}e.ApplicationContext=/*#__PURE__*/function(e){function t(t,r){return e.call(this,t,n({defaultScope:"Singleton"},r))||this}var o,i;return i=e,(o=t).prototype=Object.create(i.prototype),o.prototype.constructor=o,r(o,i),t}(t.TypesafeContainer),e.returnAutowired=function(){return{Autowired:t.returnTypesafeInject()}}});
|
|
2
2
|
//# sourceMappingURL=index.umd.js.map
|
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 {
|
|
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.1
|
|
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": {
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"author": "Myeongjae Kim",
|
|
62
62
|
"license": "MIT",
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"inversify-typesafe": "^0.
|
|
64
|
+
"inversify-typesafe": "^0.2.0"
|
|
65
65
|
}
|
|
66
66
|
}
|