Template response plugin

This commit is contained in:
Gregory Schier
2024-08-19 19:11:36 -07:00
parent 54efb6ae4e
commit d1871b19ee
30 changed files with 2272 additions and 329 deletions

View File

@@ -1,8 +1,8 @@
import { HttpRequest, YaakContext, YaakPlugin } from '@yaakapp/api';
import { Context, HttpRequest, Plugin } from '@yaakapp/api';
const NEWLINE = '\\\n ';
export const plugin: YaakPlugin = {
export const plugin: Plugin = {
httpRequestActions: [{
key: 'export-curl',
label: 'Copy as Curl',
@@ -16,7 +16,7 @@ export const plugin: YaakPlugin = {
}],
};
export async function pluginHookExport(_ctx: YaakContext, request: Partial<HttpRequest>) {
export async function pluginHookExport(_ctx: Context, request: Partial<HttpRequest>) {
const xs = ['curl'];
// Add method and URL all on first line