@venok/http 2.2.0-next.2 → 2.2.0-next.3
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/http/context.js +2 -2
- package/package.json +1 -1
package/dist/http/context.js
CHANGED
|
@@ -42,7 +42,7 @@ class HttpContextCreator extends VenokContextCreator {
|
|
|
42
42
|
guards: true,
|
|
43
43
|
filters: false,
|
|
44
44
|
callback: undefined
|
|
45
|
-
}, contextType = "
|
|
45
|
+
}, contextType = "http") {
|
|
46
46
|
const moduleKey = this.getContextModuleKey(instance.constructor);
|
|
47
47
|
const { getParamsMetadata } = super.getMetadata(instance, methodName, metadataKey, paramsFactory, contextType);
|
|
48
48
|
const { fnHandleResponse, httpStatusCode, responseHeaders, hasCustomHeaders } = this.getExternalMetadata(getParamsMetadata, instance, callback, methodName, moduleKey);
|
|
@@ -55,7 +55,7 @@ class HttpContextCreator extends VenokContextCreator {
|
|
|
55
55
|
};
|
|
56
56
|
const result = super.create(instance, callback, methodName, metadataKey, paramsFactory, contextId, inquirerId, { ...options, callback: doneCallback }, contextType);
|
|
57
57
|
const exceptionFilter = this.filtersContextCreator.create(instance, callback, moduleKey, contextId, inquirerId);
|
|
58
|
-
return this.venokProxy.createProxy(result, exceptionFilter);
|
|
58
|
+
return this.venokProxy.createProxy(result, exceptionFilter, contextType);
|
|
59
59
|
}
|
|
60
60
|
getExternalMetadata(getParamsMetadata, instance, callback, methodName, moduleKey) {
|
|
61
61
|
const paramsMetadata = getParamsMetadata(moduleKey);
|