@ooneex/repository 1.1.3 → 1.1.4

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 e,EContainerScope as t,injectable as p}from"@ooneex/container";var a={repository:(r=t.Singleton)=>{return(o)=>{p()(o),e.add(o,r)}}};export{a as decorator};
1
+ // src/decorators.ts
2
+ import { container, EContainerScope } from "@ooneex/container";
3
+ var decorator = {
4
+ repository: (scope = EContainerScope.Singleton) => {
5
+ return (target) => {
6
+ container.add(target, scope);
7
+ };
8
+ }
9
+ };
10
+ export {
11
+ decorator
12
+ };
2
13
 
3
- //# debugId=F39CFD523FD098B164756E2164756E21
14
+ //# debugId=2A948AD4E27AE10D64756E2164756E21
package/dist/index.js.map CHANGED
@@ -2,9 +2,9 @@
2
2
  "version": 3,
3
3
  "sources": ["src/decorators.ts"],
4
4
  "sourcesContent": [
5
- "import { container, EContainerScope, injectable } from \"@ooneex/container\";\nimport type { RepositoryClassType } from \"./types\";\n\nexport const decorator = {\n repository: (scope: EContainerScope = EContainerScope.Singleton) => {\n return (target: RepositoryClassType): void => {\n injectable()(target);\n container.add(target, scope);\n };\n },\n};\n"
5
+ "import { container, EContainerScope } from \"@ooneex/container\";\nimport type { RepositoryClassType } from \"./types\";\n\nexport const decorator = {\n repository: (scope: EContainerScope = EContainerScope.Singleton) => {\n return (target: RepositoryClassType): void => {\n container.add(target, scope);\n };\n },\n};\n"
6
6
  ],
7
- "mappings": "AAAA,oBAAS,qBAAW,gBAAiB,0BAG9B,IAAM,EAAY,CACvB,WAAY,CAAC,EAAyB,EAAgB,YAAc,CAClE,MAAO,CAAC,IAAsC,CAC5C,EAAW,EAAE,CAAM,EACnB,EAAU,IAAI,EAAQ,CAAK,GAGjC",
8
- "debugId": "F39CFD523FD098B164756E2164756E21",
7
+ "mappings": ";AAAA;AAGO,IAAM,YAAY;AAAA,EACvB,YAAY,CAAC,QAAyB,gBAAgB,cAAc;AAAA,IAClE,OAAO,CAAC,WAAsC;AAAA,MAC5C,UAAU,IAAI,QAAQ,KAAK;AAAA;AAAA;AAGjC;",
8
+ "debugId": "2A948AD4E27AE10D64756E2164756E21",
9
9
  "names": []
10
10
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ooneex/repository",
3
3
  "description": "Data access layer with decorator-based repository registration, query abstraction, and dependency injection for clean persistence patterns",
4
- "version": "1.1.3",
4
+ "version": "1.1.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",