@worldsibu/convector-core-controller
Advanced tools
Comparing version 1.3.9-0-alpha.273fee8f to 1.3.9-0-alpha.4f71c94c
@@ -20,3 +20,2 @@ "use strict"; | ||
descriptor.value = function internalFn(_, args, extras) { | ||
if (extras === void 0) { extras = {}; } | ||
var rest = []; | ||
@@ -28,8 +27,10 @@ for (var _i = 3; _i < arguments.length; _i++) { | ||
var _this = this; | ||
var schemas, namespace, ctx, e_1, error; | ||
var internalCall, schemas, namespace, ctx, e_1, error; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
internalCall = false; | ||
if ('_internal_invokable' in this) { | ||
return [2, fn.call.apply(fn, [this, _, args, extras].concat(rest))]; | ||
internalCall = true; | ||
args = [_, args, extras].concat(rest).filter(function (param) { return param !== undefined; }); | ||
} | ||
@@ -80,3 +81,3 @@ schemas = Reflect.getOwnMetadata(param_decorator_1.paramMetadataKey, target, key); | ||
namespace = Reflect.getMetadata(controller_decorator_1.controllerMetadataKey, target.constructor); | ||
ctx = Object.create(this[namespace], tslib_1.__assign({}, extras, { _internal_invokable: { value: true } })); | ||
ctx = Object.create(internalCall ? this : this[namespace], tslib_1.__assign({}, (extras || {}), { _internal_invokable: { value: true } })); | ||
_a.label = 3; | ||
@@ -83,0 +84,0 @@ case 3: |
{ | ||
"name": "@worldsibu/convector-core-controller", | ||
"version": "1.3.9-0-alpha.273fee8f", | ||
"version": "1.3.9-0-alpha.4f71c94c", | ||
"description": "Convector Controller base class", | ||
@@ -53,4 +53,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@worldsibu/convector-core-errors": "1.3.9-0-alpha.273fee8f", | ||
"@worldsibu/convector-core-model": "1.3.9-0-alpha.273fee8f", | ||
"@worldsibu/convector-core-errors": "1.3.9-0-alpha.4f71c94c", | ||
"@worldsibu/convector-core-model": "1.3.9-0-alpha.4f71c94c", | ||
"tslib": "^1.9.0", | ||
@@ -57,0 +57,0 @@ "window-or-global": "^1.0.1", |
Sorry, the diff of this file is not supported yet
28937
202
+ Added@worldsibu/convector-core-errors@1.3.9-0-alpha.4f71c94c(transitive)
+ Added@worldsibu/convector-core-model@1.3.9-0-alpha.4f71c94c(transitive)
+ Added@worldsibu/convector-core-storage@1.3.9-0-alpha.4f71c94c(transitive)
- Removed@worldsibu/convector-core-errors@1.3.9-0-alpha.273fee8f(transitive)
- Removed@worldsibu/convector-core-model@1.3.9-0-alpha.273fee8f(transitive)
- Removed@worldsibu/convector-core-storage@1.3.9-0-alpha.273fee8f(transitive)
Updated@worldsibu/convector-core-errors@1.3.9-0-alpha.4f71c94c
Updated@worldsibu/convector-core-model@1.3.9-0-alpha.4f71c94c