agendex-cli 0.8.2 → 0.8.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/cli.js +6 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2778,10 +2778,14 @@ async function refreshToken(currentToken, convexUrl) {
|
|
|
2778
2778
|
function requestText(urlString, options) {
|
|
2779
2779
|
const url = new URL(urlString);
|
|
2780
2780
|
const request = url.protocol === "https:" ? httpsRequest : httpRequest;
|
|
2781
|
+
const headers = { ...options.headers };
|
|
2782
|
+
if (options.body) {
|
|
2783
|
+
headers["Content-Length"] = String(Buffer.byteLength(options.body));
|
|
2784
|
+
}
|
|
2781
2785
|
return new Promise((resolve4, reject) => {
|
|
2782
2786
|
const req = request(url, {
|
|
2783
2787
|
agent: false,
|
|
2784
|
-
headers
|
|
2788
|
+
headers,
|
|
2785
2789
|
method: options.method
|
|
2786
2790
|
}, (res) => {
|
|
2787
2791
|
let body = "";
|
|
@@ -3251,7 +3255,7 @@ import { join as join11 } from "node:path";
|
|
|
3251
3255
|
// package.json
|
|
3252
3256
|
var package_default = {
|
|
3253
3257
|
name: "agendex-cli",
|
|
3254
|
-
version: "0.8.
|
|
3258
|
+
version: "0.8.3",
|
|
3255
3259
|
description: "Agendex CLI for login, sync, and daemon workflows",
|
|
3256
3260
|
homepage: "https://github.com/Tyru5/Agendex#readme",
|
|
3257
3261
|
repository: {
|