@bbn/bbn 1.0.129 → 1.0.130

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.
@@ -126,8 +126,13 @@ var analyzeFunction = function (fn) {
126
126
  }
127
127
  }
128
128
  else if (all[i] === '{' || all[i] === '}') {
129
- body = all.substring(i).trim();
130
- break;
129
+ if (parOpened === parClosed) {
130
+ body = all.substring(i).trim();
131
+ break;
132
+ }
133
+ else {
134
+ exp = '';
135
+ }
131
136
  }
132
137
  else if (isArrow) {
133
138
  body = all.substring(all.indexOf('=>') + 2).trim();
package/dist/index.js CHANGED
@@ -3443,8 +3443,13 @@
3443
3443
  }
3444
3444
  }
3445
3445
  else if (all[i] === '{' || all[i] === '}') {
3446
- body = all.substring(i).trim();
3447
- break;
3446
+ if (parOpened === parClosed) {
3447
+ body = all.substring(i).trim();
3448
+ break;
3449
+ }
3450
+ else {
3451
+ exp = '';
3452
+ }
3448
3453
  }
3449
3454
  else if (isArrow) {
3450
3455
  body = all.substring(all.indexOf('=>') + 2).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.129",
3
+ "version": "1.0.130",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",