@ooneex/middleware 0.11.0 → 0.12.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/dist/index.js CHANGED
@@ -1,3 +1,14 @@
1
- import{container as o,EContainerScope as a}from"@ooneex/container";var d={middleware:(e=a.Singleton)=>{return(r)=>{o.add(r,e)}}};export{d as decorator};
1
+ // src/decorators.ts
2
+ import { container, EContainerScope } from "@ooneex/container";
3
+ var decorator = {
4
+ middleware: (scope = EContainerScope.Singleton) => {
5
+ return (target) => {
6
+ container.add(target, scope);
7
+ };
8
+ }
9
+ };
10
+ export {
11
+ decorator
12
+ };
2
13
 
3
- //# debugId=99D3A80723DBEBF264756E2164756E21
14
+ //# debugId=DD0E93A6B98DA46564756E2164756E21
package/dist/index.js.map CHANGED
@@ -4,7 +4,7 @@
4
4
  "sourcesContent": [
5
5
  "import { container, EContainerScope } from \"@ooneex/container\";\nimport type { MiddlewareClassType, SocketMiddlewareClassType } from \"./types\";\n\nexport const decorator = {\n middleware: (scope: EContainerScope = EContainerScope.Singleton) => {\n return (target: MiddlewareClassType | SocketMiddlewareClassType): void => {\n container.add(target, scope);\n };\n },\n};\n"
6
6
  ],
7
- "mappings": "AAAA,oBAAS,qBAAW,0BAGb,IAAM,EAAY,CACvB,WAAY,CAAC,EAAyB,EAAgB,YAAc,CAClE,MAAO,CAAC,IAAkE,CACxE,EAAU,IAAI,EAAQ,CAAK,GAGjC",
8
- "debugId": "99D3A80723DBEBF264756E2164756E21",
7
+ "mappings": ";AAAA;AAGO,IAAM,YAAY;AAAA,EACvB,YAAY,CAAC,QAAyB,gBAAgB,cAAc;AAAA,IAClE,OAAO,CAAC,WAAkE;AAAA,MACxE,UAAU,IAAI,QAAQ,KAAK;AAAA;AAAA;AAGjC;",
8
+ "debugId": "DD0E93A6B98DA46564756E2164756E21",
9
9
  "names": []
10
10
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ooneex/middleware",
3
3
  "description": "Middleware framework with decorators for request/response pipeline processing in HTTP and WebSocket contexts",
4
- "version": "0.11.0",
4
+ "version": "0.12.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",