@ooneex/service 0.0.18 → 1.0.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/README.md +6 -26
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,50 +1,30 @@
|
|
|
1
1
|
# @ooneex/service
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Service layer foundation with decorator-based registration and dependency injection for encapsulating business logic and domain operations.
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|

|
|
7
|
-

|
|
8
|
-

|
|
9
7
|

|
|
10
8
|

|
|
11
9
|
|
|
12
10
|
## Features
|
|
13
11
|
|
|
14
|
-
✅ **Service Decorator** - Register
|
|
12
|
+
✅ **Service Decorator** - Register service classes with the DI container using `@decorator.service()`
|
|
15
13
|
|
|
16
|
-
✅ **Interface
|
|
14
|
+
✅ **IService Interface** - Standard generic interface with an `execute(data?)` method for service implementations
|
|
17
15
|
|
|
18
|
-
✅ **Scope Control** - Configure singleton, transient, or request-scoped services
|
|
16
|
+
✅ **Scope Control** - Configure singleton, transient, or request-scoped services via `EContainerScope`
|
|
19
17
|
|
|
20
|
-
✅ **
|
|
18
|
+
✅ **ServiceClassType** - Type definition for service class constructors
|
|
21
19
|
|
|
22
|
-
✅ **Container Integration** - Seamless integration with
|
|
23
|
-
|
|
24
|
-
✅ **Zero Boilerplate** - Simple decorator-based registration
|
|
20
|
+
✅ **Container Integration** - Seamless integration with `@ooneex/container` for automatic dependency resolution
|
|
25
21
|
|
|
26
22
|
## Installation
|
|
27
23
|
|
|
28
|
-
### Bun
|
|
29
24
|
```bash
|
|
30
25
|
bun add @ooneex/service
|
|
31
26
|
```
|
|
32
27
|
|
|
33
|
-
### pnpm
|
|
34
|
-
```bash
|
|
35
|
-
pnpm add @ooneex/service
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Yarn
|
|
39
|
-
```bash
|
|
40
|
-
yarn add @ooneex/service
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### npm
|
|
44
|
-
```bash
|
|
45
|
-
npm install @ooneex/service
|
|
46
|
-
```
|
|
47
|
-
|
|
48
28
|
## Usage
|
|
49
29
|
|
|
50
30
|
### Basic Service
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ooneex/service",
|
|
3
|
-
"description": "Service layer decorator and
|
|
4
|
-
"version": "0.0
|
|
3
|
+
"description": "Service layer foundation with decorator-based registration and dependency injection for encapsulating business logic and domain operations",
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"npm:publish": "bun publish --tolerate-republish --access public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ooneex/container": "0.0.
|
|
31
|
+
"@ooneex/container": "0.0.19"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {},
|
|
34
34
|
"keywords": [
|