diff --git a/fiori/server.js b/fiori/server.js deleted file mode 100644 index 15860d524..000000000 --- a/fiori/server.js +++ /dev/null @@ -1,8 +0,0 @@ -// install OData v2 adapter -const cds = require("@sap/cds") -const proxy = require('@cap-js-community/odata-v2-adapter') -const opts = global.it ? { target:'auto' } : {} // for tests, set 'auto' to detect port dynamically -cds.on('bootstrap', app => app.use(proxy(opts))) // install proxy -// cds.log('cov2ap','silent') // suppress anoying log outpout, e.g. for `npm run mocha -- --reporter nyan` - -module.exports = require('@capire/bookstore/server.js') diff --git a/package-lock.json b/package-lock.json index 1dd9bea17..1b2b49eb6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -246,9 +246,9 @@ } }, "node_modules/@cap-js/db-service": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@cap-js/db-service/-/db-service-1.9.0.tgz", - "integrity": "sha512-l6qFcgBZg9s40nmBLaSCbFFCNFDCwYIoSrgEAo0uRIXdBYZFGJMwtVC88xzG0ro5PyACat3DJ3C8lNYMxHDzCg==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@cap-js/db-service/-/db-service-1.9.1.tgz", + "integrity": "sha512-lYsDKlaIk2e6jcaJRmDdidrBWNf15myy3vjnn4IUrrUeSqDJBdbc0f5JD5QQTop00+ID/Wtqay47XMnW/X4Edw==", "dev": true, "engines": { "node": ">=16", @@ -259,13 +259,13 @@ } }, "node_modules/@cap-js/sqlite": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@cap-js/sqlite/-/sqlite-1.7.0.tgz", - "integrity": "sha512-Ic0TNNOlK2ziW+JitU62qn9bo4rilJmMMbhWRf0Ra49IcCMe/6kk9GE2qfIRuX18pTJZLJfiJVt3okcybjAVGw==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@cap-js/sqlite/-/sqlite-1.7.1.tgz", + "integrity": "sha512-cHjZKFDJekCXyABOhwYqzKgRJXS7ZsrHhSGCyqkcbmeX6pwx6JD69hXFoTT8ZqsKuMqQHgvIHVtzdydx+ihMfw==", "dev": true, "dependencies": { "@cap-js/db-service": "^1.9.0", - "better-sqlite3": "^9.3.0" + "better-sqlite3": "^10.0.0" }, "engines": { "node": ">=16", @@ -352,9 +352,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.0.2.tgz", - "integrity": "sha512-wV19ZEGEMAC1eHgrS7UQPqsdEiCIbTKTasEfcXAigzoXICcqZSjBZEHlZwNVvKg6UBCjSlos84XiLqsRJnIcIg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", + "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", @@ -375,9 +375,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.2.0.tgz", - "integrity": "sha512-ESiIudvhoYni+MdsI8oD7skpprZ89qKocwRM2KEvhhBJ9nl5MRh7BXU5GTod7Mdygq+AUl+QzId6iWJKR/wABA==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.3.0.tgz", + "integrity": "sha512-niBqk8iwv96+yuTwjM6bWg8ovzAPF9qkICsGtcoa5/dmqcEMfdwNAX7+/OHcJHc7wj7XqPxH98oAHytFYlw6Sw==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -417,9 +417,9 @@ "dev": true }, "node_modules/@humanwhocodes/retry": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.2.3.tgz", - "integrity": "sha512-X38nUbachlb01YMlvPFojKoiXq+LzZvuSce70KPMPdeM1Rj03k4dR7lDslhbqXn3Ang4EU3+EAmwEAsbrjHW3g==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.0.tgz", + "integrity": "sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==", "dev": true, "engines": { "node": ">=18.18" @@ -506,9 +506,9 @@ } }, "node_modules/@sap/cds": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@sap/cds/-/cds-7.9.0.tgz", - "integrity": "sha512-vjCmTVvaVKGxZoMWWnb0sEZD8JJtANX3lFWTbMppKGpSXeqRDmL4ORdVyAVSroAtIsVcBGvkMqe2XfGtuYos5g==", + "version": "7.9.1", + "resolved": "https://registry.npmjs.org/@sap/cds/-/cds-7.9.1.tgz", + "integrity": "sha512-p+/vD/oZJUN45xDh3KjNNsWoVMfkc5yqCut565tOR16RGePy7J+wXcHanAr9vXu8VF8MbHMX0nWt4Af285dd+A==", "dependencies": { "@cap-js/cds-types": "<1", "@sap/cds-compiler": "^4", @@ -524,9 +524,9 @@ } }, "node_modules/@sap/cds-compiler": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@sap/cds-compiler/-/cds-compiler-4.9.0.tgz", - "integrity": "sha512-eX1+mpL4z/UVNa5blIuqguWF3txIBOw7OCuVOnCQMStNhHXxbnTnDRZrh7+S4AH9kxT0DmJXMHR6JN44xzzprg==", + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/@sap/cds-compiler/-/cds-compiler-4.9.2.tgz", + "integrity": "sha512-2YPMWCGq5MGks9dEmgQzmnAq21zYXJ7sq8H2FYOQytnH7daOHqhUloJRyNV6VJYHg+revxPhjeCh4b9ZRx8y1Q==", "dependencies": { "antlr4": "4.9.3" }, @@ -627,9 +627,9 @@ } }, "node_modules/@types/node": { - "version": "20.12.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.11.tgz", - "integrity": "sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==", + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", "dependencies": { "undici-types": "~5.26.4" } @@ -767,9 +767,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.0.tgz", + "integrity": "sha512-IiB0wQeKyPRdsFVhBgIo31FbzOyf2M6wYl7/NVutFwFBRMiAbjNiydJIHKeLmPugF4kJLfA1uWZ82Is2QzqqFA==", "dev": true, "dependencies": { "follow-redirects": "^1.15.6", @@ -804,9 +804,9 @@ ] }, "node_modules/better-sqlite3": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-9.6.0.tgz", - "integrity": "sha512-yR5HATnqeYNVnkaUTf4bOP2dJSnyhP4puJN/QPRyx4YkBEEUxib422n2XzPqDEHjQQqazoYoADdAm5vE15+dAQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-10.0.0.tgz", + "integrity": "sha512-rOz0JY8bt9oMgrFssP7GnvA5R3yln73y/NizzWqy3WlFth8Ux8+g4r/N9fjX97nn4X1YX6MTER2doNpTu5pqiA==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -1371,18 +1371,18 @@ } }, "node_modules/eslint": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.2.0.tgz", - "integrity": "sha512-0n/I88vZpCOzO+PQpt0lbsqmn9AsnsJAQseIqhZFI8ibQT0U1AkEKRxA3EVMos0BoHSXDQvCXY25TUjB5tr8Og==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.3.0.tgz", + "integrity": "sha512-5Iv4CsZW030lpUqHBapdPo3MJetAPtejVW8B84GIcIIv8+ohFaddXsrn1Gn8uD9ijDb+kcYKFUVmC8qG8B2ORQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^3.0.2", - "@eslint/js": "9.2.0", + "@eslint/eslintrc": "^3.1.0", + "@eslint/js": "9.3.0", "@humanwhocodes/config-array": "^0.13.0", "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.2.3", + "@humanwhocodes/retry": "^0.3.0", "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.12.4", "chalk": "^4.0.0", @@ -2571,9 +2571,9 @@ } }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", "dev": true }, "node_modules/picomatch": { diff --git a/test/fiori.test.js b/test/fiori.test.js index 2a68f2779..951ddbbdd 100644 --- a/test/fiori.test.js +++ b/test/fiori.test.js @@ -1,3 +1,7 @@ +// Quick hack: suppress deprecation warnings w/ Node22 caused by http-proxy (used by OData v2 proxy) +// See also: https://github.com/http-party/node-http-proxy/pull/1666 +require('util')._extend = Object.assign + const cds = require('@sap/cds') describe('cap/samples - Fiori APIs - v2', function() {