@bbn/bbn 1.0.282 → 1.0.284

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.
@@ -115,8 +115,8 @@ export default function analyzeFunction(fn) {
115
115
  body = bbn.fn.substr(all, i + 2).trim();
116
116
  break;
117
117
  }
118
- else if (all[i] === "=" && all[i + 1] === ">") {
119
- if (exp.trim() !== "" && parOpened === parClosed) {
118
+ else if (parOpened === parClosed && all[i] === "=" && all[i + 1] === ">") {
119
+ if (exp.trim() !== "") {
120
120
  currentArg["name"] = exp.trim();
121
121
  args.push(currentArg);
122
122
  currentArg = {};
@@ -18,12 +18,15 @@ export default function cast(st) {
18
18
  if (!st) {
19
19
  return '';
20
20
  }
21
- if (st.toString) {
22
- return st.toString();
23
- }
24
21
  if (typeof st === 'object') {
22
+ if (bbn.fn.isArray(st)) {
23
+ return 'Array (' + st.length + ')';
24
+ }
25
25
  return ((_a = st.constructor) === null || _a === void 0 ? void 0 : _a.name) || '{}';
26
26
  }
27
+ if (st.toString) {
28
+ return st.toString();
29
+ }
27
30
  return typeof st === 'string' ? st : '';
28
31
  }
29
32
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.282",
3
+ "version": "1.0.284",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",