@nestjs-plugins/nestjs-nats-jetstream-transport
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "@nestjs-plugins/nestjs-nats-jetstream-transport", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Nats JetStream Transport for NestJS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -22,2 +22,3 @@ # Nats JetStream Transport Module for NestJS | ||
npm i @nestjs/microservices | ||
npm i nats | ||
npm i @nestjs-plugins/nestjs-nats-jetstream-transport | ||
@@ -69,3 +70,2 @@ ``` | ||
- **connectionOptions**: ConnectionOptions | ||
- **streamConfig**: StreamConfig | ||
- **jetStreamOptions**: JetStreamOptions | ||
@@ -134,29 +134,2 @@ - **jetStreamPublishOptions**: JetStreamPublishOptions | ||
### streamConfig | ||
- **allow_rollup_hdrs**: boolean | ||
- **deny_delete**: boolean | ||
- **deny_purge**: boolean | ||
- **description**: string | ||
- **discard**: DiscardPolicy - When a Stream has reached its configured `max_bytes` or `max_msgs`, this policy kicks in. `DiscardPolicy::New` refuses new messages or `DiscardPolicy::Old` (default) deletes old messages to make space. | ||
- **duplicate_window**: number - The window within which to track duplicate messages. | ||
- **max_age**: number - Maximum age of any message in the stream, expressed in microseconds. | ||
- **max_bytes**: number - How large the Stream may become in total bytes before the configured discard policy kicks in. | ||
- **max_consumers**: number - How many Consumers can be defined for a given Stream, -1 for unlimited. | ||
- **max_msg_size**: number - The largest message that will be accepted by the Stream. | ||
- **max_msgs**: number - How large the Stream may become in total messages before the configured discard policy kicks in. | ||
- **max_msgs_per_subject**: number | ||
- **mirror**: ? | ||
- **name**: string - A name for the Stream. Must not have spaces, tabs or period `.` characters. | ||
- **no_ack**: boolean - Setting this to true sisables acknowledging messages that are received by the Stream. | ||
- **num_replicas**: number - How many replicas to keep for each message in a clustered JetStream, maximum 5. | ||
- **placement**: Not documented! | ||
- **retention**: RetentionPolicy - How message retention is considered, `Limits` (default), `Interest` or `WorkQueue`. | ||
- **sealed**: boolean | ||
- **sources**: ? | ||
- **storage**: 'file' | 'memory' - The type of storage backend, `File` (default) and `Memory`. | ||
- **template_owner**: string - The owner of the template associated with this stream. | ||
### JetStreamOptions | ||
@@ -195,6 +168,2 @@ | ||
servers: 'localhost:4222', | ||
}, | ||
streamConfig: { | ||
subjects: ['order.*'], | ||
}, | ||
}), | ||
@@ -201,0 +170,0 @@ ], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131073
331