dt-common-device 3.0.1 → 3.0.2
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/queue/entities/HybridHttpQueue.d.ts +1 -0
- package/dist/queue/entities/HybridHttpQueue.js +2 -1
- package/dist/queue/interfaces/IHybridHttpQueue.d.ts +1 -0
- package/dist/queue/services/QueueService.d.ts +1 -0
- package/dist/queue/types/http.types.d.ts +1 -0
- package/package.json +1 -1
- package/src/queue/entities/HybridHttpQueue.ts +3 -1
- package/src/queue/interfaces/IHybridHttpQueue.ts +1 -0
- package/src/queue/services/QueueService.ts +1 -0
- package/src/queue/types/http.types.ts +1 -0
|
@@ -156,11 +156,12 @@ let HybridHttpQueue = (() => {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
async request(options) {
|
|
159
|
-
const { method, url, body, headers, queueOptions } = options;
|
|
159
|
+
const { method, url, body, params, headers, queueOptions } = options;
|
|
160
160
|
// Create HttpCallOption object
|
|
161
161
|
const httpCallOption = {
|
|
162
162
|
headers,
|
|
163
163
|
body,
|
|
164
|
+
params,
|
|
164
165
|
queueOptions,
|
|
165
166
|
};
|
|
166
167
|
// Call handleRequest with the constructed parameters
|
package/package.json
CHANGED
|
@@ -166,6 +166,7 @@ export class HybridHttpQueue {
|
|
|
166
166
|
method: string;
|
|
167
167
|
url: string;
|
|
168
168
|
body?: any;
|
|
169
|
+
params?: Record<string, any>;
|
|
169
170
|
headers?: Record<string, string>;
|
|
170
171
|
queueOptions?: {
|
|
171
172
|
connectionId: string;
|
|
@@ -173,11 +174,12 @@ export class HybridHttpQueue {
|
|
|
173
174
|
microservice: string;
|
|
174
175
|
};
|
|
175
176
|
}): Promise<IQueueResponse> {
|
|
176
|
-
const { method, url, body, headers, queueOptions } = options;
|
|
177
|
+
const { method, url, body, params, headers, queueOptions } = options;
|
|
177
178
|
// Create HttpCallOption object
|
|
178
179
|
const httpCallOption: HttpCallOption = {
|
|
179
180
|
headers,
|
|
180
181
|
body,
|
|
182
|
+
params,
|
|
181
183
|
queueOptions,
|
|
182
184
|
};
|
|
183
185
|
// Call handleRequest with the constructed parameters
|