@bbn/bbn 1.0.256 → 1.0.258

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.
@@ -108,7 +108,12 @@ export default function analyzeFunction(fn) {
108
108
  }
109
109
  else if (all[i] === "=" && all[i + 1] === ">") {
110
110
  if (exp.trim() !== "" && parOpened === parClosed) {
111
- currentArg["name"] = exp.trim();
111
+ if (!parOpened) {
112
+ currentArg["name"] = all.slice(0, i).trim();
113
+ }
114
+ else {
115
+ currentArg["name"] = exp.trim();
116
+ }
112
117
  args.push(currentArg);
113
118
  currentArg = {};
114
119
  exp = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.256",
3
+ "version": "1.0.258",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",