mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-22 10:51:02 +01:00
feat: add yaml dependency and update import in OpenAPI server handler
This commit is contained in:
19
package-lock.json
generated
19
package-lock.json
generated
@@ -16,7 +16,8 @@
|
|||||||
"lucide-svelte": "^0.546.0",
|
"lucide-svelte": "^0.546.0",
|
||||||
"marked": "^15.0.6",
|
"marked": "^15.0.6",
|
||||||
"simple-icons": "^15.17.0",
|
"simple-icons": "^15.17.0",
|
||||||
"sveltekit-adapter-deno": "^0.16.1"
|
"sveltekit-adapter-deno": "^0.16.1",
|
||||||
|
"yaml": "^2.8.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/compat": "^1.4.0",
|
"@eslint/compat": "^1.4.0",
|
||||||
@@ -4923,6 +4924,22 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/yaml": {
|
||||||
|
"version": "2.8.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz",
|
||||||
|
"integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==",
|
||||||
|
"license": "ISC",
|
||||||
|
"peer": true,
|
||||||
|
"bin": {
|
||||||
|
"yaml": "bin.mjs"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 14.6"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/eemeli"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/yaml-ast-parser": {
|
"node_modules/yaml-ast-parser": {
|
||||||
"version": "0.0.43",
|
"version": "0.0.43",
|
||||||
"resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz",
|
"resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz",
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
"lucide-svelte": "^0.546.0",
|
"lucide-svelte": "^0.546.0",
|
||||||
"marked": "^15.0.6",
|
"marked": "^15.0.6",
|
||||||
"simple-icons": "^15.17.0",
|
"simple-icons": "^15.17.0",
|
||||||
"sveltekit-adapter-deno": "^0.16.1"
|
"sveltekit-adapter-deno": "^0.16.1",
|
||||||
|
"yaml": "^2.8.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/compat": "^1.4.0",
|
"@eslint/compat": "^1.4.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { json } from '@sveltejs/kit';
|
import { json } from '@sveltejs/kit';
|
||||||
import type { RequestHandler } from '@sveltejs/kit';
|
import type { RequestHandler } from '@sveltejs/kit';
|
||||||
import { parse } from '@std/yaml';
|
import { parse } from 'yaml';
|
||||||
|
|
||||||
// Cache the parsed spec to avoid re-reading on every request
|
// Cache the parsed spec to avoid re-reading on every request
|
||||||
let cachedSpec: unknown = null;
|
let cachedSpec: unknown = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user