@prismatic-io/spectral 9.1.3 → 9.1.4
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.
|
@@ -8,17 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
11
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
13
|
};
|
|
@@ -425,9 +414,8 @@ const flowFunctionKey = (flowName, functionName) => {
|
|
|
425
414
|
return `${flowKey}_${functionName}`;
|
|
426
415
|
};
|
|
427
416
|
const convertOnExecution = (onExecution, componentRegistry) => (context, params) => {
|
|
428
|
-
const {
|
|
429
417
|
// @ts-expect-error _components isn't part of the public API
|
|
430
|
-
_components } = context
|
|
418
|
+
const { _components } = context;
|
|
431
419
|
const invoke = _components.invoke;
|
|
432
420
|
// Construct the component methods from the component registry
|
|
433
421
|
const componentMethods = Object.entries(componentRegistry).reduce((accumulator, [registryComponentKey, { key: componentKey, actions, public: isPublic, signature }]) => {
|
|
@@ -458,7 +446,7 @@ const convertOnExecution = (onExecution, componentRegistry) => (context, params)
|
|
|
458
446
|
}, {});
|
|
459
447
|
return Object.assign(Object.assign({}, accumulator), { [registryComponentKey]: componentActions });
|
|
460
448
|
}, {});
|
|
461
|
-
return onExecution(Object.assign(Object.assign({},
|
|
449
|
+
return onExecution(Object.assign(Object.assign({}, context), { components: componentMethods }), params);
|
|
462
450
|
};
|
|
463
451
|
/** Creates the structure necessary to import a Component as part of a
|
|
464
452
|
* Code Native integration. */
|