@burdenoff/microfe-movethewheels 2026.1011.3 → 2026.1012.1
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/hooks/useEpod.js
CHANGED
|
@@ -120,7 +120,7 @@ function b(e = {}) {
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
function x(e, t) {
|
|
123
|
-
return !!e && typeof e.id == "string" && e.id.trim().length > 0 && e.deliveryJobId === t.deliveryJobId && e.shipmentId === t.expectedShipmentId && e.recipientName === t.recipientName && e.signatureType === g(t.signatureType) && e.signatureData === t.signatureData && typeof e.capturedByDriverId == "string" && e.capturedByDriverId.trim().length > 0 && typeof e.deliveredAt == "string" && Number.isFinite(Date.parse(e.deliveredAt)) && Array.isArray(e.photoFileIds) && e.photoFileIds.length === (t.photoFileIds ?? []).length && e.photoFileIds.every((e, n) => e === (t.photoFileIds ?? [])[n]) && e.latitude === (t.latitude ?? null) && e.longitude === (t.longitude ?? null) && e.locationAccuracy === (t.locationAccuracy ?? null) && e.notes === (t.notes ?? null);
|
|
123
|
+
return !!e && typeof e.id == "string" && e.id.trim().length > 0 && e.deliveryJobId === t.deliveryJobId && e.shipmentId === t.expectedShipmentId && e.recipientName === t.recipientName && e.signatureType === g(t.signatureType) && e.signatureData === t.signatureData && typeof e.capturedByDriverId == "string" && e.capturedByDriverId.trim().length > 0 && typeof e.deliveredAt == "string" && Number.isFinite(Date.parse(e.deliveredAt)) && (e.photoFileIds === null ? (t.photoFileIds ?? []).length === 0 : Array.isArray(e.photoFileIds) && e.photoFileIds.length === (t.photoFileIds ?? []).length && e.photoFileIds.every((e, n) => e === (t.photoFileIds ?? [])[n])) && e.latitude === (t.latitude ?? null) && e.longitude === (t.longitude ?? null) && e.locationAccuracy === (t.locationAccuracy ?? null) && e.notes === (t.notes ?? null);
|
|
124
124
|
}
|
|
125
125
|
function S() {
|
|
126
126
|
let e = n(), [t, i] = o(null);
|
|
@@ -31,7 +31,7 @@ async function p(r, i, a, o = "RETRY_TRANSIENT") {
|
|
|
31
31
|
await d();
|
|
32
32
|
try {
|
|
33
33
|
let t = typeof window < "u" ? await e({
|
|
34
|
-
url:
|
|
34
|
+
url: new URL(l, typeof document < "u" && document.baseURI || window.location.href).toString(),
|
|
35
35
|
authToken: s.authToken ?? "",
|
|
36
36
|
actorId: s.actorId ?? "",
|
|
37
37
|
workspaceId: s.workspaceId ?? "",
|
package/package.json
CHANGED
|
@@ -291,9 +291,11 @@ export function epodAcknowledged(
|
|
|
291
291
|
actual.capturedByDriverId.trim().length > 0 &&
|
|
292
292
|
typeof actual.deliveredAt === 'string' &&
|
|
293
293
|
Number.isFinite(Date.parse(actual.deliveredAt)) &&
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
(actual.photoFileIds === null
|
|
295
|
+
? (expected.photoFileIds ?? []).length === 0
|
|
296
|
+
: Array.isArray(actual.photoFileIds) &&
|
|
297
|
+
actual.photoFileIds.length === (expected.photoFileIds ?? []).length &&
|
|
298
|
+
actual.photoFileIds.every((id, index) => id === (expected.photoFileIds ?? [])[index])) &&
|
|
297
299
|
actual.latitude === (expected.latitude ?? null) &&
|
|
298
300
|
actual.longitude === (expected.longitude ?? null) &&
|
|
299
301
|
actual.locationAccuracy === (expected.locationAccuracy ?? null) &&
|
|
@@ -124,7 +124,11 @@ export async function executeGraphQL<TData>(
|
|
|
124
124
|
const authority =
|
|
125
125
|
typeof window !== 'undefined'
|
|
126
126
|
? await prepareWorkspaceRequest({
|
|
127
|
-
|
|
127
|
+
// Match fetch's document-relative URL resolution without changing its input.
|
|
128
|
+
url: new URL(
|
|
129
|
+
url,
|
|
130
|
+
(typeof document !== 'undefined' && document.baseURI) || window.location.href
|
|
131
|
+
).toString(),
|
|
128
132
|
authToken: request.authToken ?? '',
|
|
129
133
|
actorId: request.actorId ?? '',
|
|
130
134
|
workspaceId: request.workspaceId ?? '',
|