Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cap-js-community/odata-v2-adapter

Package Overview
Dependencies
Maintainers
7
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cap-js-community/odata-v2-adapter - npm Package Compare versions

Comparing version 1.11.12 to 1.12.0

7

cds-plugin.js

@@ -6,5 +6,10 @@ "use strict";

if (cds.env.cov2ap && cds.env.cov2ap.plugin) {
cds.env.cov2ap = cds.env.cov2ap || {};
cds.env.cov2ap.plugin = cds.env.cov2ap.plugin === undefined ? true : cds.env.cov2ap.plugin;
cds.env.cov2ap.build = cds.env.cov2ap.build === undefined ? true : cds.env.cov2ap.build;
if (cds.env.cov2ap.plugin) {
cds.on("bootstrap", async (app) => {
app.use(cov2ap());
cov2ap._pluginActive = true;
});

@@ -11,0 +16,0 @@ if (cds.env.cov2ap.build && cds.build && cds.build.register) {

@@ -8,2 +8,18 @@ # Changelog

## Version 1.12.0 - 2024-01-08
### Removed
- Drop Node.js 16 support (as out-of-maintenance)
- Replace `node-fetch` by standard `fetch`
### Added
- Support Node.js 20 (as new active)
- Default of `target` changed to `auto`
- Activate CDS plugin per default (can be disabled with option `plugin: false`)
- Activate CDS build to precompile OData V2 metadata per default (can be disabled with option `build: false`)
- Start CDS OData V2 adapter as CDS plugin in test setup
- Protect against double instantiation, when loaded via CDS plugin
## Version 1.11.12 - 2023-12-18

@@ -34,2 +50,3 @@

- Replace deprecated `substr` usages
-

@@ -36,0 +53,0 @@ ## Version 1.11.9 - 2023-11-20

12

package.json
{
"name": "@cap-js-community/odata-v2-adapter",
"version": "1.11.12",
"version": "1.12.0",
"description": "OData V2 adapter for CDS",
"homepage": "https://cap.cloud.sap/",
"engines": {
"node": ">=16"
"node": ">=18"
},

@@ -60,3 +60,2 @@ "author": "Oliver Klemenz <oklemenz@gmail.com>, Richard Lindner <rlindner81@gmail.com>",

"http-proxy-middleware": "^2.0.6",
"node-fetch": "^2.7.0",
"xml2js": "^0.6.2"

@@ -66,4 +65,5 @@ },

"@cap-js/sqlite": "^1.4.0",
"@sap/cds": "^7.5.0",
"@sap/cds-dk": "^7.4.1",
"@cap-js-community/odata-v2-adapter": "./",
"@sap/cds": "^7.5.2",
"@sap/cds-dk": "^7.5.0",
"@sap/cds-hana": "^2.0.0",

@@ -74,3 +74,3 @@ "@types/express": "^4.17.21",

"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-jest": "^27.6.1",
"jest": "^29.7.0",

@@ -77,0 +77,0 @@ "prettier": "^3.1.1",

@@ -18,4 +18,2 @@ # @cap-js-community/odata-v2-adapter (cov2ap)

- Run `npm add @cap-js-community/odata-v2-adapter` in `@sap/cds` project
- Activate CDS plugin by setting CDS env `cds.cov2ap.plugin: true`
- Available since CDS 6.7, otherwise custom server is needed (see advanced section)
- Execute `cds-serve` to start server

@@ -29,4 +27,4 @@ - OData V2 service is available at http://localhost:4004/odata/v2/<service-path>

- **plugin:** OData V2 adapter is instantiated as part of CDS plugin. Default is `false`.
- **build:** In case of plugin scenario, a build step is registered to prepare the OData V2 metadata. Default is `false`.
- **plugin:** OData V2 adapter is instantiated as part of CDS plugin. Default is `true`.
- **build:** In case of plugin scenario, a build step is registered to prepare the OData V2 metadata. Default is `true`.
- **base:** Base path under which the service is reachable. Default is `''`.

@@ -39,4 +37,4 @@ - **path:** Path under which the service is reachable. Default is `'odata/v2'`. Default path is `'v2'` for CDS <7 or `middlewares` deactivated.

- **services:** Service mapping object from url path name to service name. Default is `{}`.
- **mtxRemote:** CDS model is retrieved remotely via MTX endpoint for multitenant scenario (old MTX only). Default is `false`.
- **mtxEndpoint:** Endpoint to retrieve MTX metadata when option 'mtxRemote' is active (old MTX only). Default is `'/mtx/v1'`.
- **mtxRemote:** CDS model is retrieved remotely via MTX endpoint for multitenant scenario (classic MTX only). Default is `false`.
- **mtxEndpoint:** Endpoint to retrieve MTX metadata when option 'mtxRemote' is active (classic MTX only). Default is `'/mtx/v1'`.
- **ieee754Compatible:** Edm.Decimal and Edm.Int64 are serialized IEEE754 compatible. Default is `true`.

@@ -43,0 +41,0 @@ - **fileUploadSizeLimit:** File upload file size limit (in bytes) for multipart/form-data requests. Default is `10485760` (10 MB).

@@ -36,5 +36,5 @@ import {RequestHandler} from "express";

/**
* Target which points to OData V4 backend host:port. Use 'auto' to infer the target from server url after listening. Default is e.g. 'http://localhost:4004'.
* Target which points to OData V4 backend host:port. Use 'auto' to infer the target from server url after listening. Default is e.g. 'auto'.
*/
target?: string | "http://localhost:4004" | "auto",
target?: string | "auto" | "http://localhost:4004",

@@ -41,0 +41,0 @@ /**

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc