@bbn/bbn 1.0.134 → 1.0.136
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.
- package/dist/fn/misc/analyzeFunction.js +7 -2
- package/dist/index.js +7 -2
- package/package.json +1 -1
|
@@ -108,7 +108,10 @@ var analyzeFunction = function (fn) {
|
|
|
108
108
|
settingDefault = true;
|
|
109
109
|
}
|
|
110
110
|
else if (all[i] === ",") {
|
|
111
|
-
if (
|
|
111
|
+
if (isDestructuring) {
|
|
112
|
+
exp += all[i];
|
|
113
|
+
}
|
|
114
|
+
else if (parOpened > parClosed) {
|
|
112
115
|
if (settingDefault) {
|
|
113
116
|
currentArg["default"] = exp.trim();
|
|
114
117
|
settingDefault = false;
|
|
@@ -140,7 +143,9 @@ var analyzeFunction = function (fn) {
|
|
|
140
143
|
isDestructuring = false;
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
|
-
|
|
146
|
+
else {
|
|
147
|
+
exp = "";
|
|
148
|
+
}
|
|
144
149
|
}
|
|
145
150
|
}
|
|
146
151
|
else if (isArrow) {
|
package/dist/index.js
CHANGED
|
@@ -3425,7 +3425,10 @@
|
|
|
3425
3425
|
settingDefault = true;
|
|
3426
3426
|
}
|
|
3427
3427
|
else if (all[i] === ",") {
|
|
3428
|
-
if (
|
|
3428
|
+
if (isDestructuring) {
|
|
3429
|
+
exp += all[i];
|
|
3430
|
+
}
|
|
3431
|
+
else if (parOpened > parClosed) {
|
|
3429
3432
|
if (settingDefault) {
|
|
3430
3433
|
currentArg["default"] = exp.trim();
|
|
3431
3434
|
settingDefault = false;
|
|
@@ -3457,7 +3460,9 @@
|
|
|
3457
3460
|
isDestructuring = false;
|
|
3458
3461
|
}
|
|
3459
3462
|
}
|
|
3460
|
-
|
|
3463
|
+
else {
|
|
3464
|
+
exp = "";
|
|
3465
|
+
}
|
|
3461
3466
|
}
|
|
3462
3467
|
}
|
|
3463
3468
|
else if (isArrow) {
|