@vercel/queue 0.2.1 → 0.3.0
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/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1632,7 +1632,7 @@ Cause: ${cause}`
|
|
|
1632
1632
|
}
|
|
1633
1633
|
console.debug("[VQS Debug] Request:", JSON.stringify(logData, null, 2));
|
|
1634
1634
|
}
|
|
1635
|
-
init.headers.set("User-Agent", `@vercel/queue/${"0.
|
|
1635
|
+
init.headers.set("User-Agent", `@vercel/queue/${"0.3.0"}`);
|
|
1636
1636
|
init.headers.set("Vqs-Client-Ts", (/* @__PURE__ */ new Date()).toISOString());
|
|
1637
1637
|
const fetchInit = this.dispatcher ? { ...init, dispatcher: this.dispatcher } : init;
|
|
1638
1638
|
const response = await fetch(url, fetchInit);
|
|
@@ -1726,6 +1726,7 @@ Cause: ${cause}`
|
|
|
1726
1726
|
);
|
|
1727
1727
|
}
|
|
1728
1728
|
if (response.status === 202) {
|
|
1729
|
+
await response.text();
|
|
1729
1730
|
return { messageId: null };
|
|
1730
1731
|
}
|
|
1731
1732
|
const responseData = await response.json();
|
|
@@ -1763,6 +1764,7 @@ Cause: ${cause}`
|
|
|
1763
1764
|
}
|
|
1764
1765
|
);
|
|
1765
1766
|
if (response.status === 204) {
|
|
1767
|
+
await response.text();
|
|
1766
1768
|
return;
|
|
1767
1769
|
}
|
|
1768
1770
|
if (!response.ok) {
|
|
@@ -1912,6 +1914,7 @@ Cause: ${cause}`
|
|
|
1912
1914
|
"Missing or invalid receipt handle"
|
|
1913
1915
|
);
|
|
1914
1916
|
}
|
|
1917
|
+
await response.text();
|
|
1915
1918
|
return { acknowledged: true };
|
|
1916
1919
|
}
|
|
1917
1920
|
async changeVisibility(options) {
|
|
@@ -1963,6 +1966,7 @@ Cause: ${cause}`
|
|
|
1963
1966
|
"Missing receipt handle or invalid visibility timeout"
|
|
1964
1967
|
);
|
|
1965
1968
|
}
|
|
1969
|
+
await response.text();
|
|
1966
1970
|
return { success: true };
|
|
1967
1971
|
}
|
|
1968
1972
|
};
|