@rkmodules/rules 0.0.102 → 0.0.103
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/index.cjs.js +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2365,11 +2365,13 @@ var Engine = /** @class */ (function () {
|
|
|
2365
2365
|
return newFn;
|
|
2366
2366
|
}
|
|
2367
2367
|
if (!fn) {
|
|
2368
|
-
|
|
2368
|
+
console.warn("Function ".concat(to === null || to === void 0 ? void 0 : to.name, " not found in index, which is unexpected as you are deleting an edge to it."));
|
|
2369
|
+
return newFn;
|
|
2369
2370
|
}
|
|
2370
2371
|
if (to.inputs && to.inputs[toField] === "<".concat(fromNode, ".").concat(fromField, ">")) {
|
|
2371
|
-
//
|
|
2372
|
+
// delete the incoming edge
|
|
2372
2373
|
delete to.inputs[toField];
|
|
2374
|
+
// revert to default value if exists
|
|
2373
2375
|
if ((_a = fn.inputs) === null || _a === void 0 ? void 0 : _a[toField]) {
|
|
2374
2376
|
var normDef = normalizeVarDef(fn.inputs[toField]);
|
|
2375
2377
|
if (normDef.default !== undefined) {
|