mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-01 15:13:04 +02:00
Compare commits
2 Commits
worktree-f
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ecd6983f89 | ||
|
|
eb9b5b6bb6 |
@@ -226,10 +226,8 @@ async fn build_body(
|
||||
|
||||
let (body, content_type) = match body_type.as_str() {
|
||||
"binary" => (build_binary_body(&body).await?, None),
|
||||
"graphql" => (build_graphql_body(&method, &body), Some("application/json".to_string())),
|
||||
"application/x-www-form-urlencoded" => {
|
||||
(build_form_body(&body), Some("application/x-www-form-urlencoded".to_string()))
|
||||
}
|
||||
"graphql" => (build_graphql_body(&method, &body), None),
|
||||
"application/x-www-form-urlencoded" => (build_form_body(&body), None),
|
||||
"multipart/form-data" => build_multipart_body(&body, &headers).await?,
|
||||
_ if body.contains_key("text") => (build_text_body(&body, body_type), None),
|
||||
t => {
|
||||
|
||||
@@ -144,10 +144,9 @@ export function duplicateModel<M extends AnyModel["model"], T extends ExtractMod
|
||||
throw new Error("Failed to duplicate null model");
|
||||
}
|
||||
|
||||
// If the model has an explicit (non-empty) name, try to duplicate it with a name that doesn't conflict.
|
||||
// When the name is empty, keep it empty so the display falls back to the URL.
|
||||
let name = "name" in model ? model.name : undefined;
|
||||
if (name) {
|
||||
// If the model has a name, try to duplicate it with a name that doesn't conflict
|
||||
let name = "name" in model ? resolvedModelName(model) : undefined;
|
||||
if (name != null) {
|
||||
const existingModels = listModels(model.model);
|
||||
for (let i = 0; i < 100; i++) {
|
||||
const hasConflict = existingModels.some((m) => {
|
||||
|
||||
14
package-lock.json
generated
14
package-lock.json
generated
@@ -77,7 +77,7 @@
|
||||
"nodejs-file-downloader": "^4.13.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"typescript": "^5.8.3",
|
||||
"vite-plus": "latest",
|
||||
"vite-plus": "*",
|
||||
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
|
||||
}
|
||||
},
|
||||
@@ -4630,9 +4630,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@xmldom/xmldom": {
|
||||
"version": "0.9.8",
|
||||
"resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.8.tgz",
|
||||
"integrity": "sha512-p96FSY54r+WJ50FIOsCOjyj/wavs8921hG5+kVMmZgKcvIKxMXHTrjNJvRgWa/zuX3B6t2lijLNFaOyuxUH+2A==",
|
||||
"version": "0.9.9",
|
||||
"resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.9.tgz",
|
||||
"integrity": "sha512-qycIHAucxy/LXAYIjmLmtQ8q9GPnMbnjG1KXhWm9o5sCr6pOYDATkMPiTNa6/v8eELyqOQ2FsEqeoFYmgv/gJg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=14.6"
|
||||
@@ -16709,7 +16709,7 @@
|
||||
"name": "@yaak/filter-xpath",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@xmldom/xmldom": "^0.9.8",
|
||||
"@xmldom/xmldom": "^0.9.9",
|
||||
"xpath": "^0.0.34"
|
||||
}
|
||||
},
|
||||
@@ -16846,7 +16846,7 @@
|
||||
"name": "@yaak/template-function-xml",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@xmldom/xmldom": "^0.9.8",
|
||||
"@xmldom/xmldom": "^0.9.9",
|
||||
"xpath": "^0.0.34"
|
||||
}
|
||||
},
|
||||
@@ -16950,7 +16950,7 @@
|
||||
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
||||
"vite-plugin-static-copy": "^3.3.0",
|
||||
"vite-plugin-svgr": "^4.5.0",
|
||||
"vite-plus": "latest"
|
||||
"vite-plus": "*"
|
||||
}
|
||||
},
|
||||
"src-web/node_modules/@rolldown/pluginutils": {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"dev": "yaakcli dev"
|
||||
},
|
||||
"dependencies": {
|
||||
"@xmldom/xmldom": "^0.9.8",
|
||||
"@xmldom/xmldom": "^0.9.9",
|
||||
"xpath": "^0.0.34"
|
||||
}
|
||||
}
|
||||
|
||||
2
plugins/template-function-xml/package.json
Executable file → Normal file
2
plugins/template-function-xml/package.json
Executable file → Normal file
@@ -11,7 +11,7 @@
|
||||
"dev": "yaakcli dev"
|
||||
},
|
||||
"dependencies": {
|
||||
"@xmldom/xmldom": "^0.9.8",
|
||||
"@xmldom/xmldom": "^0.9.9",
|
||||
"xpath": "^0.0.34"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user