@overmap-ai/core 1.0.78-bulk-update.15 → 1.0.78-bulk-update.17

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.
@@ -3024,7 +3024,7 @@ const A = (
3024
3024
  enqueueRequest: {
3025
3025
  reducer: (t, s) => t,
3026
3026
  prepare: (t) => {
3027
- console.debug("Preparing to enqueue request", t);
3027
+ console.debug("Preparing to enqueue request", t.url);
3028
3028
  const { BASE_URL: s, serviceName: e, ...i } = t;
3029
3029
  return KS(i, s, e);
3030
3030
  }
@@ -3511,8 +3511,8 @@ function NI(t, s, e = 0) {
3511
3511
  t,
3512
3512
  `(${typeof t})`,
3513
3513
  `
3514
- Action:`,
3515
- s,
3514
+ Url:`,
3515
+ s.payload.url,
3516
3516
  `
3517
3517
  Retries:`,
3518
3518
  e
@@ -3532,7 +3532,7 @@ Retries:`,
3532
3532
  const p = s.meta.offline.rollback;
3533
3533
  throw p && (console.warn("Rolling back request due to SDK error:", s), i.dispatch(p)), t;
3534
3534
  }
3535
- if (t instanceof U && t.options.discard && (console.debug("Discarding request due to explicit discard:", s), o()), a.includes(r) && (console.debug("Discarding request due to deletion:", s), o()), t instanceof U) {
3535
+ if (t instanceof U && t.options.discard && (console.debug("Discarding request due to explicit discard:", s.payload.url), o()), a.includes(r) && (console.debug("Discarding request due to deletion:", s.payload.url), o()), t instanceof U) {
3536
3536
  const u = t.status || ((c = t.response) == null ? void 0 : c.status);
3537
3537
  if (u || console.warn("Error has no status code:", t), u !== void 0 && dc.includes(u)) {
3538
3538
  console.warn("Discarding request due to error:", t, `
@@ -5126,19 +5126,15 @@ class Gg extends k {
5126
5126
  }), d = [];
5127
5127
  let c = null;
5128
5128
  for (const u of o) {
5129
- const { batchId: p, payload: y } = u, f = y.assets.map(({ uuid: v }) => v), T = y.assets.map(({ asset_type: v }) => v), b = y.assets.map(({ project: v }) => v), I = T.concat(b);
5130
- c && I.push(c);
5131
- const P = f;
5132
- P.push(p);
5133
- const g = this.enqueueRequest({
5129
+ const { batchId: p, payload: y } = u, f = y.assets.map(({ uuid: g }) => g), T = y.assets.map(({ asset_type: g }) => g), b = y.assets.map(({ project: g }) => g), I = y.assets.map(({ status: g }) => g), P = this.enqueueRequest({
5134
5130
  description: O(l.POST, this.name, !0),
5135
5131
  method: l.POST,
5136
5132
  url: `${this.url}/bulk/`,
5137
5133
  payload: y,
5138
- blockers: I,
5139
- blocks: P
5134
+ blockers: (c ? [c] : []).concat(T).concat(b).concat(I),
5135
+ blocks: [p].concat(f)
5140
5136
  });
5141
- c = u.batchId, d.push(g);
5137
+ c = u.batchId, d.push(P);
5142
5138
  }
5143
5139
  return Promise.all(d).then((u) => {
5144
5140
  const p = u.flat();
@@ -5171,8 +5167,8 @@ class Gg extends k {
5171
5167
  payload: {
5172
5168
  payloads: f
5173
5169
  },
5174
- blockers: b.concat(I).concat(y ? [y] : []),
5175
- blocks: b.concat([T])
5170
+ blockers: (y ? [y] : []).concat(b).concat(I),
5171
+ blocks: [T].concat(b)
5176
5172
  });
5177
5173
  p.push(P), y = T;
5178
5174
  }
@@ -8074,8 +8070,8 @@ class b_ extends k {
8074
8070
  payload: {
8075
8071
  payloads: f
8076
8072
  },
8077
- blockers: b.concat(I).concat(P).concat(y ? [y] : []),
8078
- blocks: b.concat([T])
8073
+ blockers: (y ? [y] : []).concat(b).concat(I).concat(P),
8074
+ blocks: [T].concat(b)
8079
8075
  });
8080
8076
  p.push(g), y = T;
8081
8077
  }
@@ -9787,7 +9783,7 @@ async function mc(t, s, e, i, n) {
9787
9783
  }[u];
9788
9784
  let z = j();
9789
9785
  if (n == null || n.addEventListener("abort", () => {
9790
- console.debug("aborting request:", s), z.abort();
9786
+ console.debug("aborting request:", s.url), z.abort();
9791
9787
  }), T && a) {
9792
9788
  const V = i.auth.getAuthHeader();
9793
9789
  z = z.set("Authorization", V);
@@ -9943,8 +9939,8 @@ class nt {
9943
9939
  if (this.graph.addNode(s.payload.uuid, s), !(s.payload.blockers.length === 0 || this.graph.size() === 1))
9944
9940
  for (const e of this.graph.overallOrder()) {
9945
9941
  if (e === s.payload.uuid) continue;
9946
- const i = this.graph.getNodeData(e);
9947
- s.payload.blockers.some((n) => i.payload.blocks.includes(n)) && this._addDependency(s.payload.uuid, e);
9942
+ const i = this.graph.getNodeData(e), n = new Set(i.payload.blocks);
9943
+ s.payload.blockers.some((a) => n.has(a)) && this._addDependency(s.payload.uuid, e);
9948
9944
  }
9949
9945
  }
9950
9946
  /**
@@ -9958,7 +9954,8 @@ class nt {
9958
9954
  this.graph.addNode(s.payload.uuid, s);
9959
9955
  for (const e of this.graph.overallOrder()) {
9960
9956
  if (e === s.payload.uuid) continue;
9961
- this.graph.getNodeData(e).payload.blockers.some((n) => s.payload.blocks.includes(n)) && this._addDependency(e, s.payload.uuid);
9957
+ const i = this.graph.getNodeData(e), n = new Set(i.payload.blocks);
9958
+ i.payload.blockers.some((a) => n.has(a)) && this._addDependency(e, s.payload.uuid);
9962
9959
  }
9963
9960
  }
9964
9961
  /**
@@ -10089,7 +10086,7 @@ class Ac {
10089
10086
  if (this.next)
10090
10087
  return this.next.run(s);
10091
10088
  {
10092
- if (console.debug("Middleware finished. Performing request:", s), !rt()) throw new Error("Client store not set");
10089
+ if (console.debug("Middleware finished. Performing request:", s.payload.url), !rt()) throw new Error("Client store not set");
10093
10090
  const i = sb();
10094
10091
  if (!i) throw new Error("Client SDK not set");
10095
10092
  return LI(s, i);