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

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

View File

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

View File

@@ -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: [