@bbn/bbn 1.0.260 → 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.
@@ -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
114
  if (exp.trim() !== "" && parOpened === parClosed) {
111
- if (!parOpened) {
112
- currentArg["name"] = all.slice(0, i).trim();
113
- }
114
- else {
115
- currentArg["name"] = exp.trim();
116
- }
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.260",
3
+ "version": "1.0.262",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",