diff --git a/plugins/exporter-curl/package-lock.json b/plugins/exporter-curl/package-lock.json index 673b3e0f..50e01ba0 100644 --- a/plugins/exporter-curl/package-lock.json +++ b/plugins/exporter-curl/package-lock.json @@ -8,7 +8,7 @@ "name": "exporter-curl", "version": "0.0.1", "dependencies": { - "@yaakapp/api": "^0.1.11" + "@yaakapp/api": "^0.1.12" }, "devDependencies": { "@types/node": "^20.14.9", @@ -701,9 +701,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.11.tgz", - "integrity": "sha512-dRZAXrQpftWygy9nJXiIYPzLA9om6reO/RiEacMe9RKqMjNG6FRF8cGmj7BcdyreizJOkH/DmcOpxn09kDD0XA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", + "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/exporter-curl/package.json b/plugins/exporter-curl/package.json index b4c5f94b..28a89254 100644 --- a/plugins/exporter-curl/package.json +++ b/plugins/exporter-curl/package.json @@ -11,6 +11,6 @@ "vitest": "^1.4.0" }, "dependencies": { - "@yaakapp/api": "^0.1.11" + "@yaakapp/api": "^0.1.12" } } diff --git a/plugins/exporter-curl/src/index.ts b/plugins/exporter-curl/src/index.ts index 163c423f..a87da82e 100644 --- a/plugins/exporter-curl/src/index.ts +++ b/plugins/exporter-curl/src/index.ts @@ -8,7 +8,7 @@ export const plugin: Plugin = { label: 'Copy as Curl', icon: 'copy', async onSelect(ctx, args) { - const rendered_request = await ctx.httpRequest.render({ httpRequest: args.httpRequest }); + const rendered_request = await ctx.httpRequest.render({ httpRequest: args.httpRequest, purpose: 'preview' }); const data = await pluginHookExport(ctx, rendered_request); ctx.clipboard.copyText(data); ctx.toast.show({ variant: 'copied', message: 'Curl copied to clipboard' }); diff --git a/plugins/filter-jsonpath/package-lock.json b/plugins/filter-jsonpath/package-lock.json index 5de50098..63e535b4 100644 --- a/plugins/filter-jsonpath/package-lock.json +++ b/plugins/filter-jsonpath/package-lock.json @@ -8,7 +8,7 @@ "name": "filter-jsonpath", "version": "0.0.1", "dependencies": { - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "jsonpath-plus": "^9.0.0" }, "devDependencies": { @@ -48,9 +48,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.11.tgz", - "integrity": "sha512-dRZAXrQpftWygy9nJXiIYPzLA9om6reO/RiEacMe9RKqMjNG6FRF8cGmj7BcdyreizJOkH/DmcOpxn09kDD0XA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", + "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/filter-jsonpath/package.json b/plugins/filter-jsonpath/package.json index fe6d9d9d..4e28707c 100644 --- a/plugins/filter-jsonpath/package.json +++ b/plugins/filter-jsonpath/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "jsonpath-plus": "^9.0.0", - "@yaakapp/api": "^0.1.11" + "@yaakapp/api": "^0.1.12" }, "devDependencies": { "@types/node": "^20.14.9", diff --git a/plugins/filter-xpath/package-lock.json b/plugins/filter-xpath/package-lock.json index 64394d48..6afa3055 100644 --- a/plugins/filter-xpath/package-lock.json +++ b/plugins/filter-xpath/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "dependencies": { "@xmldom/xmldom": "^0.8.10", - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "xpath": "^0.0.34" }, "devDependencies": { @@ -35,9 +35,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.11.tgz", - "integrity": "sha512-dRZAXrQpftWygy9nJXiIYPzLA9om6reO/RiEacMe9RKqMjNG6FRF8cGmj7BcdyreizJOkH/DmcOpxn09kDD0XA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", + "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/filter-xpath/package.json b/plugins/filter-xpath/package.json index c9dc6e00..98f517ce 100644 --- a/plugins/filter-xpath/package.json +++ b/plugins/filter-xpath/package.json @@ -6,7 +6,7 @@ "build": "yaakcli ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "@xmldom/xmldom": "^0.8.10", "xpath": "^0.0.34" }, diff --git a/plugins/importer-curl/package-lock.json b/plugins/importer-curl/package-lock.json index 9be007cd..94edb0a7 100644 --- a/plugins/importer-curl/package-lock.json +++ b/plugins/importer-curl/package-lock.json @@ -8,7 +8,7 @@ "name": "importer-curl", "version": "0.0.1", "dependencies": { - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "shell-quote": "^1.8.1" }, "devDependencies": { @@ -709,9 +709,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.11.tgz", - "integrity": "sha512-dRZAXrQpftWygy9nJXiIYPzLA9om6reO/RiEacMe9RKqMjNG6FRF8cGmj7BcdyreizJOkH/DmcOpxn09kDD0XA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", + "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-curl/package.json b/plugins/importer-curl/package.json index 91e2bc4a..e80877db 100644 --- a/plugins/importer-curl/package.json +++ b/plugins/importer-curl/package.json @@ -6,7 +6,7 @@ "build": "yaakcli ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "shell-quote": "^1.8.1" }, "devDependencies": { diff --git a/plugins/importer-curl/src/index.ts b/plugins/importer-curl/src/index.ts index 888f39b1..87b6f40e 100644 --- a/plugins/importer-curl/src/index.ts +++ b/plugins/importer-curl/src/index.ts @@ -173,7 +173,7 @@ function importCommand(parseEntries: ParseEntry[], workspaceId: string) { urlParameters = search?.split('&').map((p) => { const v = splitOnce(p, '='); - return { name: v[0] ?? '', value: v[1] ?? '', enabled: true }; + return { name: decodeURIComponent(v[0] ?? ''), value: decodeURIComponent(v[1] ?? ''), enabled: true }; }) ?? []; url = baseUrl ?? urlArg; diff --git a/plugins/importer-insomnia/package-lock.json b/plugins/importer-insomnia/package-lock.json index 29c44011..bbb49eda 100644 --- a/plugins/importer-insomnia/package-lock.json +++ b/plugins/importer-insomnia/package-lock.json @@ -8,7 +8,7 @@ "name": "importer-insomnia", "version": "0.0.1", "dependencies": { - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "yaml": "^2.4.2" }, "devDependencies": { @@ -26,9 +26,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.11.tgz", - "integrity": "sha512-dRZAXrQpftWygy9nJXiIYPzLA9om6reO/RiEacMe9RKqMjNG6FRF8cGmj7BcdyreizJOkH/DmcOpxn09kDD0XA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", + "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-insomnia/package.json b/plugins/importer-insomnia/package.json index 4eed9cca..394a1def 100644 --- a/plugins/importer-insomnia/package.json +++ b/plugins/importer-insomnia/package.json @@ -6,7 +6,7 @@ "build": "yaakcli ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "yaml": "^2.4.2" }, "devDependencies": { diff --git a/plugins/importer-openapi/package-lock.json b/plugins/importer-openapi/package-lock.json index 7fe8b9d5..cd2ce71a 100644 --- a/plugins/importer-openapi/package-lock.json +++ b/plugins/importer-openapi/package-lock.json @@ -8,7 +8,7 @@ "name": "importer-openapi", "version": "0.0.1", "dependencies": { - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "openapi-to-postmanv2": "^4.23.1", "yaml": "^2.4.2" }, @@ -56,9 +56,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.11.tgz", - "integrity": "sha512-dRZAXrQpftWygy9nJXiIYPzLA9om6reO/RiEacMe9RKqMjNG6FRF8cGmj7BcdyreizJOkH/DmcOpxn09kDD0XA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", + "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-openapi/package.json b/plugins/importer-openapi/package.json index 355c9cb3..8df85f4e 100644 --- a/plugins/importer-openapi/package.json +++ b/plugins/importer-openapi/package.json @@ -6,7 +6,7 @@ "build": "yaakcli ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "openapi-to-postmanv2": "^4.23.1", "yaml": "^2.4.2" }, diff --git a/plugins/importer-postman/package-lock.json b/plugins/importer-postman/package-lock.json index 29c68466..b77c23c6 100644 --- a/plugins/importer-postman/package-lock.json +++ b/plugins/importer-postman/package-lock.json @@ -8,7 +8,7 @@ "name": "importer-postman", "version": "0.0.1", "dependencies": { - "@yaakapp/api": "^0.1.11" + "@yaakapp/api": "^0.1.12" }, "devDependencies": { "@types/node": "^20.14.9", @@ -663,9 +663,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.11.tgz", - "integrity": "sha512-dRZAXrQpftWygy9nJXiIYPzLA9om6reO/RiEacMe9RKqMjNG6FRF8cGmj7BcdyreizJOkH/DmcOpxn09kDD0XA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", + "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-postman/package.json b/plugins/importer-postman/package.json index bf5b89cb..3d96ed72 100644 --- a/plugins/importer-postman/package.json +++ b/plugins/importer-postman/package.json @@ -7,7 +7,7 @@ "build": "yaakcli ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.11" + "@yaakapp/api": "^0.1.12" }, "devDependencies": { "@types/node": "^20.14.9", diff --git a/plugins/importer-yaak/package-lock.json b/plugins/importer-yaak/package-lock.json index f96ee609..15f6d53d 100644 --- a/plugins/importer-yaak/package-lock.json +++ b/plugins/importer-yaak/package-lock.json @@ -8,7 +8,7 @@ "name": "importer-yaak", "version": "0.0.1", "dependencies": { - "@yaakapp/api": "^0.1.11" + "@yaakapp/api": "^0.1.12" }, "devDependencies": { "@types/node": "^20.14.9", @@ -394,9 +394,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.11.tgz", - "integrity": "sha512-dRZAXrQpftWygy9nJXiIYPzLA9om6reO/RiEacMe9RKqMjNG6FRF8cGmj7BcdyreizJOkH/DmcOpxn09kDD0XA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", + "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-yaak/package.json b/plugins/importer-yaak/package.json index ea6ab6cb..aa14cafc 100644 --- a/plugins/importer-yaak/package.json +++ b/plugins/importer-yaak/package.json @@ -6,7 +6,7 @@ "build": "yaakcli ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.11" + "@yaakapp/api": "^0.1.12" }, "devDependencies": { "@types/node": "^20.14.9", diff --git a/plugins/template-function-response/package-lock.json b/plugins/template-function-response/package-lock.json index 3d64a872..d95c474f 100644 --- a/plugins/template-function-response/package-lock.json +++ b/plugins/template-function-response/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "dependencies": { "@xmldom/xmldom": "^0.8.10", - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "jsonpath-plus": "^9.0.0", "xpath": "^0.0.34" }, @@ -741,9 +741,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.11.tgz", - "integrity": "sha512-dRZAXrQpftWygy9nJXiIYPzLA9om6reO/RiEacMe9RKqMjNG6FRF8cGmj7BcdyreizJOkH/DmcOpxn09kDD0XA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", + "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/template-function-response/package.json b/plugins/template-function-response/package.json index b8147860..8d6d6567 100644 --- a/plugins/template-function-response/package.json +++ b/plugins/template-function-response/package.json @@ -6,7 +6,7 @@ "build": "yaakcli src/index.ts" }, "dependencies": { - "@yaakapp/api": "^0.1.11", + "@yaakapp/api": "^0.1.12", "jsonpath-plus": "^9.0.0", "xpath": "^0.0.34", "@xmldom/xmldom": "^0.8.10"