@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.cjs.js
CHANGED
|
@@ -2367,11 +2367,13 @@ var Engine = /** @class */ (function () {
|
|
|
2367
2367
|
return newFn;
|
|
2368
2368
|
}
|
|
2369
2369
|
if (!fn) {
|
|
2370
|
-
|
|
2370
|
+
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."));
|
|
2371
|
+
return newFn;
|
|
2371
2372
|
}
|
|
2372
2373
|
if (to.inputs && to.inputs[toField] === "<".concat(fromNode, ".").concat(fromField, ">")) {
|
|
2373
|
-
//
|
|
2374
|
+
// delete the incoming edge
|
|
2374
2375
|
delete to.inputs[toField];
|
|
2376
|
+
// revert to default value if exists
|
|
2375
2377
|
if ((_a = fn.inputs) === null || _a === void 0 ? void 0 : _a[toField]) {
|
|
2376
2378
|
var normDef = normalizeVarDef(fn.inputs[toField]);
|
|
2377
2379
|
if (normDef.default !== undefined) {
|