From aed73482d1cccbd4e4a8d04b57dfcf3b954ec2d1 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 20 Sep 2024 07:09:01 -0700 Subject: [PATCH] Bump @yaakapp/api deps --- plugins/exporter-curl/package-lock.json | 26 ++++++++++--------- plugins/exporter-curl/package.json | 2 +- plugins/exporter-curl/src/index.ts | 6 ++--- plugins/filter-jsonpath/package-lock.json | 26 ++++++++++--------- plugins/filter-jsonpath/package.json | 2 +- plugins/filter-xpath/package-lock.json | 26 ++++++++++--------- plugins/filter-xpath/package.json | 2 +- plugins/importer-curl/package-lock.json | 26 ++++++++++--------- plugins/importer-curl/package.json | 2 +- plugins/importer-insomnia/package-lock.json | 26 ++++++++++--------- plugins/importer-insomnia/package.json | 2 +- plugins/importer-openapi/package-lock.json | 26 ++++++++++--------- plugins/importer-openapi/package.json | 2 +- plugins/importer-postman/package-lock.json | 26 ++++++++++--------- plugins/importer-postman/package.json | 2 +- plugins/importer-yaak/package-lock.json | 26 ++++++++++--------- plugins/importer-yaak/package.json | 2 +- .../package-lock.json | 26 ++++++++++--------- .../template-function-response/package.json | 2 +- .../template-function-response/src/index.ts | 4 +-- 20 files changed, 140 insertions(+), 122 deletions(-) diff --git a/plugins/exporter-curl/package-lock.json b/plugins/exporter-curl/package-lock.json index 169e246d..6da045bf 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.14" + "@yaakapp/api": "^0.2.5" }, "devDependencies": { "@types/node": "^20.14.9", @@ -702,25 +702,27 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.15.tgz", - "integrity": "sha512-4nrImM9r4Afih0CcG6PWtGA6Luap/Ki5ZVl56WejWA8WPpy8AhEpC0KErpJChNzzqRjgK9ZEWdQNsBHppzAs8A==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz", + "integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.5.4" } }, "node_modules/@yaakapp/api/node_modules/@types/node": { - "version": "22.2.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.2.0.tgz", - "integrity": "sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.13.0" + "undici-types": "~6.19.2" } }, "node_modules/@yaakapp/api/node_modules/undici-types": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz", - "integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==" + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" }, "node_modules/@yaakapp/cli": { "version": "0.0.42", diff --git a/plugins/exporter-curl/package.json b/plugins/exporter-curl/package.json index 1ee36f06..7dbbe30b 100644 --- a/plugins/exporter-curl/package.json +++ b/plugins/exporter-curl/package.json @@ -6,7 +6,7 @@ "build": "yaakcli build ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.14" + "@yaakapp/api": "^0.2.5" }, "devDependencies": { "@types/node": "^20.14.9", diff --git a/plugins/exporter-curl/src/index.ts b/plugins/exporter-curl/src/index.ts index a87da82e..2bf3b7af 100644 --- a/plugins/exporter-curl/src/index.ts +++ b/plugins/exporter-curl/src/index.ts @@ -1,8 +1,8 @@ -import { Context, HttpRequest, Plugin } from '@yaakapp/api'; +import { Context, HttpRequest, PluginDefinition } from '@yaakapp/api'; const NEWLINE = '\\\n '; -export const plugin: Plugin = { +export const plugin: PluginDefinition = { httpRequestActions: [{ key: 'export-curl', label: 'Copy as Curl', @@ -11,7 +11,7 @@ export const plugin: Plugin = { 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' }); + ctx.toast.show({ message: 'Curl copied to clipboard', icon: 'copy' }); }, }], }; diff --git a/plugins/filter-jsonpath/package-lock.json b/plugins/filter-jsonpath/package-lock.json index 6b8796bb..36b80dc2 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.14", + "@yaakapp/api": "^0.2.5", "jsonpath-plus": "^9.0.0" }, "devDependencies": { @@ -49,25 +49,27 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.15.tgz", - "integrity": "sha512-4nrImM9r4Afih0CcG6PWtGA6Luap/Ki5ZVl56WejWA8WPpy8AhEpC0KErpJChNzzqRjgK9ZEWdQNsBHppzAs8A==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz", + "integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.5.4" } }, "node_modules/@yaakapp/api/node_modules/@types/node": { - "version": "22.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", - "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.18.2" + "undici-types": "~6.19.2" } }, "node_modules/@yaakapp/api/node_modules/undici-types": { - "version": "6.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", - "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==" + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" }, "node_modules/@yaakapp/cli": { "version": "0.0.42", diff --git a/plugins/filter-jsonpath/package.json b/plugins/filter-jsonpath/package.json index 578507ec..4485f071 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.14" + "@yaakapp/api": "^0.2.5" }, "devDependencies": { "@yaakapp/cli": "^0.0.42", diff --git a/plugins/filter-xpath/package-lock.json b/plugins/filter-xpath/package-lock.json index f5d9f091..4e27df34 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.14", + "@yaakapp/api": "^0.2.5", "xpath": "^0.0.34" }, "devDependencies": { @@ -36,25 +36,27 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.15.tgz", - "integrity": "sha512-4nrImM9r4Afih0CcG6PWtGA6Luap/Ki5ZVl56WejWA8WPpy8AhEpC0KErpJChNzzqRjgK9ZEWdQNsBHppzAs8A==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz", + "integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.5.4" } }, "node_modules/@yaakapp/api/node_modules/@types/node": { - "version": "22.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", - "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.18.2" + "undici-types": "~6.19.2" } }, "node_modules/@yaakapp/api/node_modules/undici-types": { - "version": "6.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", - "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==" + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" }, "node_modules/@yaakapp/cli": { "version": "0.0.42", diff --git a/plugins/filter-xpath/package.json b/plugins/filter-xpath/package.json index 67e5230a..7018698c 100644 --- a/plugins/filter-xpath/package.json +++ b/plugins/filter-xpath/package.json @@ -6,7 +6,7 @@ "build": "yaakcli build ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.14", + "@yaakapp/api": "^0.2.5", "@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 8b711cb6..686d0c67 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.14", + "@yaakapp/api": "^0.2.5", "shell-quote": "^1.8.1" }, "devDependencies": { @@ -710,25 +710,27 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.15.tgz", - "integrity": "sha512-4nrImM9r4Afih0CcG6PWtGA6Luap/Ki5ZVl56WejWA8WPpy8AhEpC0KErpJChNzzqRjgK9ZEWdQNsBHppzAs8A==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz", + "integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.5.4" } }, "node_modules/@yaakapp/api/node_modules/@types/node": { - "version": "22.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", - "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.18.2" + "undici-types": "~6.19.2" } }, "node_modules/@yaakapp/api/node_modules/undici-types": { - "version": "6.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", - "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==" + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" }, "node_modules/@yaakapp/cli": { "version": "0.0.42", diff --git a/plugins/importer-curl/package.json b/plugins/importer-curl/package.json index c6fed24d..41fcc851 100644 --- a/plugins/importer-curl/package.json +++ b/plugins/importer-curl/package.json @@ -6,7 +6,7 @@ "build": "yaakcli build ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.14", + "@yaakapp/api": "^0.2.5", "shell-quote": "^1.8.1" }, "devDependencies": { diff --git a/plugins/importer-insomnia/package-lock.json b/plugins/importer-insomnia/package-lock.json index d483dbcd..a1c7febd 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.14", + "@yaakapp/api": "^0.2.5", "yaml": "^2.4.2" }, "devDependencies": { @@ -27,25 +27,27 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.15.tgz", - "integrity": "sha512-4nrImM9r4Afih0CcG6PWtGA6Luap/Ki5ZVl56WejWA8WPpy8AhEpC0KErpJChNzzqRjgK9ZEWdQNsBHppzAs8A==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz", + "integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.5.4" } }, "node_modules/@yaakapp/api/node_modules/@types/node": { - "version": "22.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", - "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.18.2" + "undici-types": "~6.19.2" } }, "node_modules/@yaakapp/api/node_modules/undici-types": { - "version": "6.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", - "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==" + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" }, "node_modules/@yaakapp/cli": { "version": "0.0.42", diff --git a/plugins/importer-insomnia/package.json b/plugins/importer-insomnia/package.json index 6b403659..1bc2ad03 100644 --- a/plugins/importer-insomnia/package.json +++ b/plugins/importer-insomnia/package.json @@ -6,7 +6,7 @@ "build": "yaakcli build ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.14", + "@yaakapp/api": "^0.2.5", "yaml": "^2.4.2" }, "devDependencies": { diff --git a/plugins/importer-openapi/package-lock.json b/plugins/importer-openapi/package-lock.json index 2bd77758..013c9ea6 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.14", + "@yaakapp/api": "^0.2.5", "openapi-to-postmanv2": "^4.23.1", "yaml": "^2.4.2" }, @@ -57,25 +57,27 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.15.tgz", - "integrity": "sha512-4nrImM9r4Afih0CcG6PWtGA6Luap/Ki5ZVl56WejWA8WPpy8AhEpC0KErpJChNzzqRjgK9ZEWdQNsBHppzAs8A==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz", + "integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.5.4" } }, "node_modules/@yaakapp/api/node_modules/@types/node": { - "version": "22.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", - "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.18.2" + "undici-types": "~6.19.2" } }, "node_modules/@yaakapp/api/node_modules/undici-types": { - "version": "6.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", - "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==" + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" }, "node_modules/@yaakapp/cli": { "version": "0.0.42", diff --git a/plugins/importer-openapi/package.json b/plugins/importer-openapi/package.json index 3a6fc524..71ce22ba 100644 --- a/plugins/importer-openapi/package.json +++ b/plugins/importer-openapi/package.json @@ -6,7 +6,7 @@ "build": "yaakcli build ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.14", + "@yaakapp/api": "^0.2.5", "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 5ec3241a..f670c432 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.14" + "@yaakapp/api": "^0.2.5" }, "devDependencies": { "@types/node": "^20.14.9", @@ -664,25 +664,27 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.15.tgz", - "integrity": "sha512-4nrImM9r4Afih0CcG6PWtGA6Luap/Ki5ZVl56WejWA8WPpy8AhEpC0KErpJChNzzqRjgK9ZEWdQNsBHppzAs8A==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz", + "integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.5.4" } }, "node_modules/@yaakapp/api/node_modules/@types/node": { - "version": "22.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", - "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.18.2" + "undici-types": "~6.19.2" } }, "node_modules/@yaakapp/api/node_modules/undici-types": { - "version": "6.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", - "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==" + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" }, "node_modules/@yaakapp/cli": { "version": "0.0.42", diff --git a/plugins/importer-postman/package.json b/plugins/importer-postman/package.json index 41ef569d..8bf5fd7e 100644 --- a/plugins/importer-postman/package.json +++ b/plugins/importer-postman/package.json @@ -7,7 +7,7 @@ "build": "yaakcli build ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.14" + "@yaakapp/api": "^0.2.5" }, "devDependencies": { "@yaakapp/cli": "^0.0.42", diff --git a/plugins/importer-yaak/package-lock.json b/plugins/importer-yaak/package-lock.json index 43241e86..788776b1 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.14" + "@yaakapp/api": "^0.2.5" }, "devDependencies": { "@types/node": "^20.14.9", @@ -395,25 +395,27 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.15.tgz", - "integrity": "sha512-4nrImM9r4Afih0CcG6PWtGA6Luap/Ki5ZVl56WejWA8WPpy8AhEpC0KErpJChNzzqRjgK9ZEWdQNsBHppzAs8A==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz", + "integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.5.4" } }, "node_modules/@yaakapp/api/node_modules/@types/node": { - "version": "22.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", - "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.18.2" + "undici-types": "~6.19.2" } }, "node_modules/@yaakapp/api/node_modules/undici-types": { - "version": "6.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", - "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==" + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" }, "node_modules/@yaakapp/cli": { "version": "0.0.42", diff --git a/plugins/importer-yaak/package.json b/plugins/importer-yaak/package.json index db9e64f4..0d6aceae 100644 --- a/plugins/importer-yaak/package.json +++ b/plugins/importer-yaak/package.json @@ -6,7 +6,7 @@ "build": "yaakcli build ./src/index.js" }, "dependencies": { - "@yaakapp/api": "^0.1.14" + "@yaakapp/api": "^0.2.5" }, "devDependencies": { "@yaakapp/cli": "^0.0.42", diff --git a/plugins/template-function-response/package-lock.json b/plugins/template-function-response/package-lock.json index b0871814..db9caadf 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.14", + "@yaakapp/api": "^0.2.5", "jsonpath-plus": "^9.0.0", "xpath": "^0.0.34" }, @@ -742,25 +742,27 @@ } }, "node_modules/@yaakapp/api": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.1.15.tgz", - "integrity": "sha512-4nrImM9r4Afih0CcG6PWtGA6Luap/Ki5ZVl56WejWA8WPpy8AhEpC0KErpJChNzzqRjgK9ZEWdQNsBHppzAs8A==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz", + "integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.5.4" } }, "node_modules/@yaakapp/api/node_modules/@types/node": { - "version": "22.2.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.2.0.tgz", - "integrity": "sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==", + "version": "22.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.13.0" + "undici-types": "~6.19.2" } }, "node_modules/@yaakapp/api/node_modules/undici-types": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz", - "integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==" + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" }, "node_modules/@yaakapp/cli": { "version": "0.0.42", diff --git a/plugins/template-function-response/package.json b/plugins/template-function-response/package.json index cfad1236..632474ae 100644 --- a/plugins/template-function-response/package.json +++ b/plugins/template-function-response/package.json @@ -6,7 +6,7 @@ "build": "yaakcli build ./src/index.ts" }, "dependencies": { - "@yaakapp/api": "^0.1.14", + "@yaakapp/api": "^0.2.5", "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 023707f1..69e0145f 100644 --- a/plugins/template-function-response/src/index.ts +++ b/plugins/template-function-response/src/index.ts @@ -1,10 +1,10 @@ import { DOMParser } from '@xmldom/xmldom'; -import { CallTemplateFunctionArgs, Context, HttpResponse, Plugin } from '@yaakapp/api'; +import { CallTemplateFunctionArgs, Context, HttpResponse, PluginDefinition } from '@yaakapp/api'; import { JSONPath } from 'jsonpath-plus'; import { readFileSync } from 'node:fs'; import xpath from 'xpath'; -export const plugin: Plugin = { +export const plugin: PluginDefinition = { templateFunctions: [{ name: 'response', args: [