sprof 0.9.1 → 0.9.2

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
@@ -4989,25 +4989,24 @@ class je {
4989
4989
  }
4990
4990
  }
4991
4991
  async FTSP(e) {
4992
- var n;
4993
4992
  try {
4994
- const s = ((e == null ? void 0 : e.ftsp) ?? cn.Get()).clearForHTTP(), o = {
4995
- payload: { ftsp: s },
4993
+ const i = ((e == null ? void 0 : e.ftsp) ?? cn.Get()).clearForHTTP(), s = {
4994
+ payload: { ftsp: i },
4996
4995
  query: this.getUrl("ftsp")
4997
- }, r = await He.Post(o);
4998
- if (!r || !r.ftsp)
4996
+ }, o = await He.Post(s);
4997
+ if (!o)
4999
4998
  return;
5000
- if (Array.isArray(r.data))
5001
- this.SetAll(r.data);
5002
- else {
5003
- if (s.p.append) {
5004
- this.AppendToAll((n = r.data) == null ? void 0 : n.items);
4999
+ if (Array.isArray(o.data))
5000
+ this.SetAll(o.data);
5001
+ else if (o.data && Array.isArray(o.data.items)) {
5002
+ if (i.p.append) {
5003
+ this.AppendToAll(o.data.items);
5005
5004
  return;
5006
5005
  }
5007
- this.SetAllWithCount(r.data);
5006
+ this.SetAllWithCount(o.data);
5008
5007
  }
5009
- } catch (i) {
5010
- console.warn("FTSP failed:", i);
5008
+ } catch (n) {
5009
+ console.warn("FTSP failed:", n);
5011
5010
  }
5012
5011
  }
5013
5012
  async Create(e) {