diff --git a/plugins/exporter-curl/package-lock.json b/plugins/exporter-curl/package-lock.json index 50e01ba0..19bbec7e 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.12" + "@yaakapp/api": "^0.1.13" }, "devDependencies": { "@types/node": "^20.14.9", @@ -701,9 +701,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", - "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.13.tgz", + "integrity": "sha512-FSYPHZV0mP967w63VXi9zYP81hPo3vjSW3/UElJLuF/8ig6WmG4p1q2oYos4Ik267Z3qSQAGN5dPMfuk3DAnBA==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/exporter-curl/package.json b/plugins/exporter-curl/package.json index 28a89254..99185fcc 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.12" + "@yaakapp/api": "^0.1.13" } } diff --git a/plugins/filter-jsonpath/package-lock.json b/plugins/filter-jsonpath/package-lock.json index 63e535b4..8b61cc56 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.12", + "@yaakapp/api": "^0.1.13", "jsonpath-plus": "^9.0.0" }, "devDependencies": { @@ -48,9 +48,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", - "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.13.tgz", + "integrity": "sha512-FSYPHZV0mP967w63VXi9zYP81hPo3vjSW3/UElJLuF/8ig6WmG4p1q2oYos4Ik267Z3qSQAGN5dPMfuk3DAnBA==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/filter-jsonpath/package.json b/plugins/filter-jsonpath/package.json index 4e28707c..43c7a5b8 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.12" + "@yaakapp/api": "^0.1.13" }, "devDependencies": { "@types/node": "^20.14.9", diff --git a/plugins/filter-xpath/package-lock.json b/plugins/filter-xpath/package-lock.json index 6afa3055..1a99ffc3 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.12", + "@yaakapp/api": "^0.1.13", "xpath": "^0.0.34" }, "devDependencies": { @@ -35,9 +35,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", - "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.13.tgz", + "integrity": "sha512-FSYPHZV0mP967w63VXi9zYP81hPo3vjSW3/UElJLuF/8ig6WmG4p1q2oYos4Ik267Z3qSQAGN5dPMfuk3DAnBA==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/filter-xpath/package.json b/plugins/filter-xpath/package.json index 98f517ce..fbdc198e 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.12", + "@yaakapp/api": "^0.1.13", "@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 94edb0a7..d7c07fae 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.12", + "@yaakapp/api": "^0.1.13", "shell-quote": "^1.8.1" }, "devDependencies": { @@ -709,9 +709,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", - "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.13.tgz", + "integrity": "sha512-FSYPHZV0mP967w63VXi9zYP81hPo3vjSW3/UElJLuF/8ig6WmG4p1q2oYos4Ik267Z3qSQAGN5dPMfuk3DAnBA==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-curl/package.json b/plugins/importer-curl/package.json index e80877db..c9ba285b 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.12", + "@yaakapp/api": "^0.1.13", "shell-quote": "^1.8.1" }, "devDependencies": { diff --git a/plugins/importer-insomnia/package-lock.json b/plugins/importer-insomnia/package-lock.json index bbb49eda..e2513aec 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.12", + "@yaakapp/api": "^0.1.13", "yaml": "^2.4.2" }, "devDependencies": { @@ -26,9 +26,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", - "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.13.tgz", + "integrity": "sha512-FSYPHZV0mP967w63VXi9zYP81hPo3vjSW3/UElJLuF/8ig6WmG4p1q2oYos4Ik267Z3qSQAGN5dPMfuk3DAnBA==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-insomnia/package.json b/plugins/importer-insomnia/package.json index 394a1def..d44a0cc2 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.12", + "@yaakapp/api": "^0.1.13", "yaml": "^2.4.2" }, "devDependencies": { diff --git a/plugins/importer-openapi/package-lock.json b/plugins/importer-openapi/package-lock.json index cd2ce71a..29922f6a 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.12", + "@yaakapp/api": "^0.1.13", "openapi-to-postmanv2": "^4.23.1", "yaml": "^2.4.2" }, @@ -56,9 +56,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", - "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.13.tgz", + "integrity": "sha512-FSYPHZV0mP967w63VXi9zYP81hPo3vjSW3/UElJLuF/8ig6WmG4p1q2oYos4Ik267Z3qSQAGN5dPMfuk3DAnBA==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-openapi/package.json b/plugins/importer-openapi/package.json index 8df85f4e..01e7ea27 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.12", + "@yaakapp/api": "^0.1.13", "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 b77c23c6..738a3d99 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.12" + "@yaakapp/api": "^0.1.13" }, "devDependencies": { "@types/node": "^20.14.9", @@ -663,9 +663,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", - "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.13.tgz", + "integrity": "sha512-FSYPHZV0mP967w63VXi9zYP81hPo3vjSW3/UElJLuF/8ig6WmG4p1q2oYos4Ik267Z3qSQAGN5dPMfuk3DAnBA==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-postman/package.json b/plugins/importer-postman/package.json index 3d96ed72..82ccbd2f 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.12" + "@yaakapp/api": "^0.1.13" }, "devDependencies": { "@types/node": "^20.14.9", diff --git a/plugins/importer-yaak/package-lock.json b/plugins/importer-yaak/package-lock.json index 15f6d53d..ad581679 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.12" + "@yaakapp/api": "^0.1.13" }, "devDependencies": { "@types/node": "^20.14.9", @@ -394,9 +394,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", - "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.13.tgz", + "integrity": "sha512-FSYPHZV0mP967w63VXi9zYP81hPo3vjSW3/UElJLuF/8ig6WmG4p1q2oYos4Ik267Z3qSQAGN5dPMfuk3DAnBA==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/importer-yaak/package.json b/plugins/importer-yaak/package.json index aa14cafc..f3d93d1e 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.12" + "@yaakapp/api": "^0.1.13" }, "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 d95c474f..a20869fa 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.12", + "@yaakapp/api": "^0.1.13", "jsonpath-plus": "^9.0.0", "xpath": "^0.0.34" }, @@ -741,9 +741,9 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.12.tgz", - "integrity": "sha512-qA+2BBZz1LGTi0wsOmlwaw6xJbE3elPIUMt/BkiRT+DqQC5spZtISsyoPXjtsM0xZc2orjoRJd0LesXH7xkD0g==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.13.tgz", + "integrity": "sha512-FSYPHZV0mP967w63VXi9zYP81hPo3vjSW3/UElJLuF/8ig6WmG4p1q2oYos4Ik267Z3qSQAGN5dPMfuk3DAnBA==", "dependencies": { "@types/node": "^22.0.0" } diff --git a/plugins/template-function-response/package.json b/plugins/template-function-response/package.json index 8d6d6567..f480350c 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.12", + "@yaakapp/api": "^0.1.13", "jsonpath-plus": "^9.0.0", "xpath": "^0.0.34", "@xmldom/xmldom": "^0.8.10" diff --git a/plugins/template-function-response/src/index.ts b/plugins/template-function-response/src/index.ts index 966e23e9..fc77f0ef 100644 --- a/plugins/template-function-response/src/index.ts +++ b/plugins/template-function-response/src/index.ts @@ -27,7 +27,6 @@ export const plugin: Plugin = { options: [ { name: 'When no responses', value: 'smart' }, { name: 'Always', value: 'always' }, - { name: 'Never', value: 'never' }, ], }, ], @@ -40,7 +39,7 @@ export const plugin: Plugin = { if (httpRequest == null) { return null; } - const renderedHttpRequest = await ctx.httpRequest.render({ httpRequest }); + const renderedHttpRequest = await ctx.httpRequest.render({ httpRequest, purpose: args.purpose }); const responses = await ctx.httpResponse.find({ requestId: httpRequest.id, limit: 1 }); @@ -52,7 +51,9 @@ export const plugin: Plugin = { // Previews happen a ton, and we don't want to send too many times on "always," so treat // it as "smart" during preview. - let behavior = args.values.behavior === 'always' && args.purpose === 'preview' ? 'smart' : args.values.behavior; + let behavior = (args.values.behavior === 'always' && args.purpose === 'preview') + ? 'smart' + : args.values.behavior; // Send if no responses and "smart," or "always" if ((behavior === 'smart' && response == null) || behavior === 'always') {