@bbn/bbn 1.0.261 → 1.0.263

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.
@@ -106,19 +106,19 @@ 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
+ currentArg = {};
113
+ exp = "";
114
+ }
109
115
  else if (all[i] === "=" && all[i + 1] === ">") {
110
- if (parOpened === parClosed) {
111
- if (!parOpened) {
112
- currentArg["name"] = all.slice(0, i).trim();
113
- }
114
- else {
115
- currentArg["name"] = exp.trim();
116
- }
116
+ if (exp.trim() !== "" && parOpened === parClosed) {
117
+ currentArg["name"] = exp.trim();
117
118
  args.push(currentArg);
118
119
  currentArg = {};
119
120
  exp = "";
120
121
  }
121
- bbn.fn.log(["LOGGGGG", exp, all.slice(0, i).trim(), parOpened, parClosed]);
122
122
  isArrow = true;
123
123
  i++;
124
124
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.261",
3
+ "version": "1.0.263",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",