mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-11 03:36:49 +02:00
Fix Postman variable import
This commit is contained in:
@@ -37,10 +37,11 @@ export function pluginHookImport(contents: string): { resources: ExportResources
|
|||||||
id: generateId('wk'),
|
id: generateId('wk'),
|
||||||
name: info.name || 'Postman Import',
|
name: info.name || 'Postman Import',
|
||||||
description: info.description || '',
|
description: info.description || '',
|
||||||
variables: root.variable?.map((v: any) => ({
|
variables:
|
||||||
name: v.key,
|
root.variable?.map((v: any) => ({
|
||||||
value: v.value,
|
name: v.key,
|
||||||
})),
|
value: v.value,
|
||||||
|
})) ?? [],
|
||||||
};
|
};
|
||||||
exportResources.workspaces.push(workspace);
|
exportResources.workspaces.push(workspace);
|
||||||
|
|
||||||
|
|||||||
@@ -17,10 +17,10 @@ function v(t) {
|
|||||||
id: m("wk"),
|
id: m("wk"),
|
||||||
name: n.name || "Postman Import",
|
name: n.name || "Postman Import",
|
||||||
description: n.description || "",
|
description: n.description || "",
|
||||||
variables: (b = e.variable) == null ? void 0 : b.map((r) => ({
|
variables: ((b = e.variable) == null ? void 0 : b.map((r) => ({
|
||||||
name: r.key,
|
name: r.key,
|
||||||
value: r.value
|
value: r.value
|
||||||
}))
|
}))) ?? []
|
||||||
};
|
};
|
||||||
i.workspaces.push(c);
|
i.workspaces.push(c);
|
||||||
const f = (r, u = null) => {
|
const f = (r, u = null) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user