@cap-js-community/odata-v2-adapter
Advanced tools
Comparing version 1.11.8 to 1.11.9
"use strict"; | ||
const cds = require("@sap/cds"); | ||
const path = require("path"); | ||
const cov2ap = require("./src"); | ||
const PLUGIN = "@cap-js-community/odata-v2-adapter"; | ||
const PLUGIN_CONFIG = [PLUGIN, `${PLUGIN}/cds-plugin`, `${PLUGIN}/cds-plugin.js`]; | ||
const packageJSON = require(path.join(process.cwd(), "package.json")); | ||
const pluginActive = | ||
(cds.env.cov2ap && cds.env.cov2ap.plugin) || | ||
(packageJSON && | ||
packageJSON.cds && | ||
packageJSON.cds.plugins && | ||
!!packageJSON.cds.plugins.find((plugin) => PLUGIN_CONFIG.includes(plugin) || PLUGIN_CONFIG.includes(plugin.impl))); | ||
if (pluginActive) { | ||
if (cds.env.cov2ap && cds.env.cov2ap.plugin) { | ||
cds.on("bootstrap", async (app) => { | ||
@@ -21,0 +8,0 @@ app.use(cov2ap()); |
@@ -8,2 +8,11 @@ # Changelog | ||
## Version 1.11.9 - 2023-11-20 | ||
### Fixed | ||
- Support union queries as parameterized views | ||
- Fix pull requests actions for external contributions | ||
- Simplify plugin detection again | ||
- Performance improvements | ||
## Version 1.11.8 - 2023-10-24 | ||
@@ -10,0 +19,0 @@ |
{ | ||
"name": "@cap-js-community/odata-v2-adapter", | ||
"version": "1.11.8", | ||
"version": "1.11.9", | ||
"description": "OData V2 adapter for CDS", | ||
@@ -37,2 +37,3 @@ "homepage": "https://cap.cloud.sap/", | ||
"test:unit": "jest --testPathPattern='/test/'", | ||
"test:external": "npm run test:unit -- --config=jest.external.config.js", | ||
"test:unit:file": "CDS_ENV=testdb npm run test:unit", | ||
@@ -58,3 +59,3 @@ "test:unit:deploy": "cd ./test/_env && npm run test:deploy", | ||
"express": "^4.18.2", | ||
"express-fileupload": "^1.4.1", | ||
"express-fileupload": "^1.4.2", | ||
"http-proxy-middleware": "^2.0.6", | ||
@@ -66,12 +67,12 @@ "node-fetch": "^2.7.0", | ||
"@cap-js/sqlite": "^1.3.1", | ||
"@sap/cds": "^7.3.0", | ||
"@types/express": "^4.17.20", | ||
"@sap/cds": "^7.4.0", | ||
"@types/express": "^4.17.21", | ||
"compression": "^1.7.4", | ||
"eslint": "^8.52.0", | ||
"eslint": "^8.54.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-jest": "^27.4.3", | ||
"eslint-plugin-jest": "^27.6.0", | ||
"hdb": "^0.19.6", | ||
"jest": "^29.7.0", | ||
"passport": "^0.6.0", | ||
"prettier": "^3.0.3", | ||
"prettier": "^3.1.0", | ||
"sqlite3": "^5.1.6", | ||
@@ -78,0 +79,0 @@ "supertest": "^6.3.3" |
@@ -133,2 +133,3 @@ # @cap-js-community/odata-v2-adapter (cov2ap) | ||
- `[cov2ap] - Proxy:` Proxy processing error | ||
- `[cov2ap] - Cache:` Metadata cache error | ||
- `[cov2ap] - Authorization:` Authorization header parsing error | ||
@@ -135,0 +136,0 @@ - `[cov2ap] - MetadataRequest:` Metadata request processing error |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
235925
4573
484
1
Updatedexpress-fileupload@^1.4.2