@bbn/bbn 1.0.267 → 1.0.269

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