sprof 0.9.2 → 0.9.3

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/sprof.js CHANGED
@@ -4996,14 +4996,16 @@ class je {
4996
4996
  }, o = await He.Post(s);
4997
4997
  if (!o)
4998
4998
  return;
4999
- if (Array.isArray(o.data))
5000
- this.SetAll(o.data);
5001
- else if (o.data && Array.isArray(o.data.items)) {
4999
+ const r = o.data ?? o;
5000
+ if (Array.isArray(r))
5001
+ this.SetAll(r);
5002
+ else if (r && Array.isArray(r.items)) {
5003
+ const l = r;
5002
5004
  if (i.p.append) {
5003
- this.AppendToAll(o.data.items);
5005
+ this.AppendToAll(l.items);
5004
5006
  return;
5005
5007
  }
5006
- this.SetAllWithCount(o.data);
5008
+ this.SetAllWithCount(l);
5007
5009
  }
5008
5010
  } catch (n) {
5009
5011
  console.warn("FTSP failed:", n);