@bbn/bbn 1.0.261 → 1.0.262
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/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/fn/misc/analyzeFunction.js +6 -8
- package/package.json +1 -1
|
@@ -106,19 +106,17 @@ export default function analyzeFunction(fn) {
|
|
|
106
106
|
body = all.substring(i + matches[0].length).trim();
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
|
+
else if (!exp && (all[i] === "=") && (all[i + 1] === ">")) {
|
|
110
|
+
currentArg["name"] = exp.trim();
|
|
111
|
+
args.push(currentArg);
|
|
112
|
+
}
|
|
109
113
|
else if (all[i] === "=" && all[i + 1] === ">") {
|
|
110
|
-
if (parOpened === parClosed) {
|
|
111
|
-
|
|
112
|
-
currentArg["name"] = all.slice(0, i).trim();
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
currentArg["name"] = exp.trim();
|
|
116
|
-
}
|
|
114
|
+
if (exp.trim() !== "" && parOpened === parClosed) {
|
|
115
|
+
currentArg["name"] = exp.trim();
|
|
117
116
|
args.push(currentArg);
|
|
118
117
|
currentArg = {};
|
|
119
118
|
exp = "";
|
|
120
119
|
}
|
|
121
|
-
bbn.fn.log(["LOGGGGG", exp, all.slice(0, i).trim(), parOpened, parClosed]);
|
|
122
120
|
isArrow = true;
|
|
123
121
|
i++;
|
|
124
122
|
continue;
|