Add list/get cookie plugin APIs

This commit is contained in:
Gregory Schier
2025-05-25 08:02:36 -07:00
parent 9ec9222216
commit 9d54e40aa8
14 changed files with 199 additions and 26 deletions

View File

@@ -7564,7 +7564,7 @@ function importHttpRequest2(r, workspaceId, parentId) {
const sortKey = r.meta?.sortKey ?? r.sortKey;
let bodyType = null;
let body = {};
if (r.body.mimeType === "application/octet-stream") {
if (r.body?.mimeType === "application/octet-stream") {
bodyType = "binary";
body = { filePath: r.body.fileName ?? "" };
} else if (r.body?.mimeType === "application/x-www-form-urlencoded") {
@@ -7720,7 +7720,7 @@ function importEnvironment2(e, workspaceId, isParent) {
base: isParent ?? e.parentId === workspaceId,
model: "environment",
name: e.name,
variables: Object.entries(e.data).map(([name, value]) => ({
variables: Object.entries(e.data ?? {}).map(([name, value]) => ({
enabled: true,
name,
value: `${value}`