http-request-manager 18.11.22 → 18.12.1
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
CHANGED
|
@@ -38,6 +38,7 @@ This README is the main documentation hub for the library. Detailed service guid
|
|
|
38
38
|
| **🔐 Enterprise Encryption** | AES symmetric + RSA asymmetric encryption | [`Encryption Utils`](https://github.com/micheleboni/npm-angular/tree/main/projects/http-request-manager/src/docs/UTILS_README.md#encryption) |
|
|
39
39
|
| **📡 Streaming Support** | NDJSON & Server-Sent Events (SSE) | [`HTTP Manager`](https://github.com/micheleboni/npm-angular/tree/main/projects/http-request-manager/src/docs/HTTP_MANAGER_README.md#streaming) |
|
|
40
40
|
| **📄 File Downloads** | Progress tracking for large files | [`HTTP Manager`](https://github.com/micheleboni/npm-angular/tree/main/projects/http-request-manager/src/docs/HTTP_MANAGER_README.md#file-downloads) |
|
|
41
|
+
| **📤 File Uploads** | Multi-file upload with progress, validation, and form-data config | [`Upload Request`](https://github.com/micheleboni/npm-angular/tree/main/projects/http-request-manager/src/docs/UPLOAD_REQUEST_README.md) |
|
|
41
42
|
| **📊 Pagination** | Built-in pagination with page tracking | [`HTTP State Manager`](https://github.com/micheleboni/npm-angular/tree/main/projects/http-request-manager/src/docs/HTTP_STATE_MANAGER_README.md#pagination) |
|
|
42
43
|
| **🔔 Smart Notifications** | Persistent notifications with DB storage | [`WebSocket Guide`](https://github.com/micheleboni/npm-angular/tree/main/projects/http-request-manager/src/docs/ADVANCED_WEBSOCKET.md#notifications) |
|
|
43
44
|
| **👥 Presence Tracking** | Real-time user presence by channel | [`WebSocket Guide`](https://github.com/micheleboni/npm-angular/tree/main/projects/http-request-manager/src/docs/ADVANCED_WEBSOCKET.md#presence) |
|
|
@@ -128,7 +129,7 @@ export class UsersComponent {
|
|
|
128
129
|
|
|
129
130
|
ngOnInit() {
|
|
130
131
|
this.httpManager.getRequest(
|
|
131
|
-
ApiRequest.adapt({ path: ['users'] })
|
|
132
|
+
ApiRequest.adapt({ path: ['users'], displaySuccess: true, successMessage: 'Loaded users!' })
|
|
132
133
|
).subscribe();
|
|
133
134
|
}
|
|
134
135
|
}
|
|
@@ -219,7 +220,8 @@ export class AppModule { }
|
|
|
219
220
|
| `stream` | `boolean` | Enable streaming by default | `false` |
|
|
220
221
|
| `displayError` | `boolean` | Show toast errors by default | `false` |
|
|
221
222
|
| `displaySuccess` | `boolean` | Show toast on success by default | `false` |
|
|
222
|
-
| `successMessage` | `string` | Custom success toast message | `
|
|
223
|
+
| `successMessage` | `string` | Custom success toast message (optional) | `undefined` |
|
|
224
|
+
| `errorMessage` | `string` | Custom error toast message (optional, overrides default) | `undefined` |
|
|
223
225
|
|
|
224
226
|
#### Local Storage Options (`LocalStorageOptions`)
|
|
225
227
|
|