@bbn/bbn 1.0.264 → 1.0.266

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.
@@ -107,10 +107,12 @@ export default function analyzeFunction(fn) {
107
107
  break;
108
108
  }
109
109
  else if (!exp && (all[i] === "=") && (all[i + 1] === ">")) {
110
- currentArg["name"] = exp.trim();
110
+ currentArg["name"] = all.slice(0, i).trim();
111
111
  args.push(currentArg);
112
112
  currentArg = {};
113
- exp = "";
113
+ isArrow = true;
114
+ i++;
115
+ continue;
114
116
  }
115
117
  else if (all[i] === "=" && all[i + 1] === ">") {
116
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.264",
3
+ "version": "1.0.266",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",