@mks2508/bundlp 0.1.25 → 0.1.26
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.mjs +13 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -771,8 +771,19 @@ var InnerTubeClient = class {
|
|
|
771
771
|
log$8.debug(`Client: ${this.currentClient}`);
|
|
772
772
|
log$8.debug(`API Key: ${config.API_KEY || "none"}`);
|
|
773
773
|
log$8.debug(`URL: ${url}`);
|
|
774
|
-
|
|
775
|
-
|
|
774
|
+
const requestData = {
|
|
775
|
+
url,
|
|
776
|
+
method: "POST",
|
|
777
|
+
headers,
|
|
778
|
+
body: payload
|
|
779
|
+
};
|
|
780
|
+
try {
|
|
781
|
+
const { writeFileSync } = await import("fs");
|
|
782
|
+
writeFileSync("/tmp/bundlp_request.json", JSON.stringify(requestData, null, 2));
|
|
783
|
+
log$8.info("Saved request to /tmp/bundlp_request.json");
|
|
784
|
+
} catch (e) {
|
|
785
|
+
log$8.debug("Could not save request to file");
|
|
786
|
+
}
|
|
776
787
|
const responseResult = this.httpMode === "impit" ? await httpClient.postWithBrowserTLS(url, payload, { headers }) : await httpClient.post(url, payload, { headers });
|
|
777
788
|
if (isErr(responseResult)) {
|
|
778
789
|
log$8.error(`HTTP request failed for client ${this.currentClient}:`, responseResult.error.message);
|