Bump @yaakapp/api deps

This commit is contained in:
Gregory Schier
2024-09-20 07:09:01 -07:00
parent 92ac91733e
commit aed73482d1
20 changed files with 140 additions and 122 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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' });
},
}],
};