@bbn/bbn 1.0.137 → 1.0.138
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 +3 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
|
@@ -91,6 +91,9 @@ var analyzeFunction = function (fn) {
|
|
|
91
91
|
}
|
|
92
92
|
parClosed++;
|
|
93
93
|
}
|
|
94
|
+
else if (isDestructuring && all[i] !== "}") {
|
|
95
|
+
exp += all[i];
|
|
96
|
+
}
|
|
94
97
|
else if (all[i] === "=" && all[i + 1] === ">") {
|
|
95
98
|
if (exp.trim() !== "" && parOpened === parClosed) {
|
|
96
99
|
currentArg["name"] = exp.trim();
|
package/dist/index.js
CHANGED
|
@@ -3408,6 +3408,9 @@
|
|
|
3408
3408
|
}
|
|
3409
3409
|
parClosed++;
|
|
3410
3410
|
}
|
|
3411
|
+
else if (isDestructuring && all[i] !== "}") {
|
|
3412
|
+
exp += all[i];
|
|
3413
|
+
}
|
|
3411
3414
|
else if (all[i] === "=" && all[i + 1] === ">") {
|
|
3412
3415
|
if (exp.trim() !== "" && parOpened === parClosed) {
|
|
3413
3416
|
currentArg["name"] = exp.trim();
|