- Add contentFetchFlow() to proxy (FR-001 through FR-012) - Add extractArticleBody() helper with vkm:articleBody / articleBody fallback - Dynamic proxyBaseUrl derivation from x-forwarded-proto/host headers - Forward query/size/category params on /sitemap.xml requests - Add Accept: application/ld+json header to content API calls - Remove oidcAuthFlow() - unmatched requests now return 404 Not Found - Fix xmlbuilder2 import: default import, call as xmlbuilder2.create(...) - Version bump 0.2.0 → 0.3.0 - 45/45 tests passing Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
35 lines
1003 B
JSON
35 lines
1003 B
JSON
{
|
|
"name": "kme-content-adapter",
|
|
"version": "0.3.0",
|
|
"description": "HTTP proxy adapter to search and export documents from KME",
|
|
"type": "module",
|
|
"main": "src/server.js",
|
|
"scripts": {
|
|
"dev": "node --watch src/server.js",
|
|
"start": "node src/server.js | jq -R 'fromjson? | select(. != null)'",
|
|
"test": "node --test tests/**/*.test.js",
|
|
"test:unit": "node --test tests/unit/**/*.test.js",
|
|
"test:integration": "node --test tests/integration/**/*.test.js",
|
|
"test:contract": "node --test tests/contract/**/*.test.js",
|
|
"clean": "rm -rvf dist/* & rm -rvf **/*.old & rm -rvf **/*.{backup,backup-new,backup-old,backup-regenerated} & rm -rvf **/*-old.js"
|
|
},
|
|
"keywords": [
|
|
"proxy",
|
|
"markdown",
|
|
"export",
|
|
"adapter"
|
|
],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.13.6",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"redis": "^5.12.1",
|
|
"uuid": "^13.0.0",
|
|
"xmlbuilder2": "^4.0.3"
|
|
}
|
|
}
|