@opra/nestjs 1.28.3 → 1.28.5
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/LICENSE +1 -1
- package/README.md +33 -3
- package/package.json +5 -4
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,19 +1,49 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<a href="https://oprajs.com">
|
|
4
|
+
<img src="https://oprajs.com/img/opra-header-block.webp" width="880" alt="OPRA — Open Platform for Rich APIs" />
|
|
5
|
+
</a>
|
|
6
|
+
|
|
1
7
|
# @opra/nestjs
|
|
2
8
|
|
|
9
|
+
Core NestJS integration for the OPRA framework
|
|
10
|
+
|
|
3
11
|
[![NPM Version][npm-image]][npm-url]
|
|
4
12
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
5
13
|
[![CI Tests][ci-test-image]][ci-test-url]
|
|
6
14
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
7
15
|
|
|
16
|
+
[🌐 Documentation](https://oprajs.com) · [🚀 Getting Started](https://oprajs.com/docs/introduction) · [📦 Packages](https://github.com/panates/opra#packages) · [💬 Issues](https://github.com/panates/opra/issues)
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
Core NestJS integration for the [OPRA](https://oprajs.com) framework. Bridges OPRA controllers and NestJS's dependency injection and module system.
|
|
23
|
+
|
|
24
|
+
## Features
|
|
8
25
|
|
|
9
|
-
|
|
10
|
-
|
|
26
|
+
- **`RpcControllerFactory`** — Wraps OPRA RPC controllers as NestJS-compatible classes
|
|
27
|
+
- **`MQControllerFactory`** — NestJS wrapper for OPRA message queue controllers
|
|
28
|
+
- **`WsControllerFactory`** — NestJS wrapper for OPRA WebSocket controllers
|
|
29
|
+
- **`RpcParamsFactory`** — Parameter extraction and validation from NestJS execution context
|
|
30
|
+
- **`@Public()`** — Decorator to mark endpoints as publicly accessible
|
|
31
|
+
- **`OpraNestUtils`** — Shared utilities for NestJS adapter packages
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install @opra/nestjs
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
> This package is a shared foundation. For transport-specific modules use [`@opra/nestjs-http`](../nestjs-http), [`@opra/nestjs-kafka`](../nestjs-kafka), [`@opra/nestjs-rabbitmq`](../nestjs-rabbitmq), or [`@opra/nestjs-socketio`](../nestjs-socketio).
|
|
11
40
|
|
|
12
41
|
## Node Compatibility
|
|
13
|
-
- node >= 20.x
|
|
14
42
|
|
|
43
|
+
- node >= 20.x
|
|
15
44
|
|
|
16
45
|
## License
|
|
46
|
+
|
|
17
47
|
Available under [MIT](LICENSE) license.
|
|
18
48
|
|
|
19
49
|
[npm-image]: https://img.shields.io/npm/v/@opra/nestjs
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/nestjs",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.5",
|
|
4
4
|
"description": "Opra NestJS module",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"homepage": "https://www.oprajs.com",
|
|
7
8
|
"dependencies": {
|
|
8
|
-
"@jsopen/objects": "^2.2.
|
|
9
|
+
"@jsopen/objects": "^2.2.2",
|
|
9
10
|
"reflect-metadata": "^0.2.2",
|
|
10
11
|
"tslib": "^2.8.1"
|
|
11
12
|
},
|
|
12
13
|
"peerDependencies": {
|
|
13
|
-
"@opra/common": "^1.28.
|
|
14
|
-
"@opra/core": "^1.28.
|
|
14
|
+
"@opra/common": "^1.28.5",
|
|
15
|
+
"@opra/core": "^1.28.5",
|
|
15
16
|
"@nestjs/common": "^10.0.0 || ^11.0.0",
|
|
16
17
|
"@nestjs/core": "^10.0.0 || ^11.0.0",
|
|
17
18
|
"@nestjs/microservices": "^10.0.0 || ^11.0.0"
|